Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jme3-core/src/main/java/com/jme3/animation/AudioTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public float[] getKeyFrameTimes() {
* @return a new track
*/
@Override
public Track clone() {
public AudioTrack clone() {
return new AudioTrack(audio, length, startOffset);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public final T[] toObjectArray() {
* @throws CloneNotSupportedException never
*/
@Override
public Object clone() throws CloneNotSupportedException {
public CompactArray clone() throws CloneNotSupportedException {
return Cloner.deepClone(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public float[] getKeyFrameTimes() {
* @return a new instance
*/
@Override
public Track clone() {
public EffectTrack clone() {
return new EffectTrack(emitter, length, startOffset);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface CloneableSmartAsset extends Cloneable {
* @return A clone of this asset.
* The cloned asset cannot reference equal this asset.
*/
public Object clone();
public CloneableSmartAsset clone();

/**
* Set by the {@link AssetManager} to track this asset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void read(JmeImporter im) throws IOException {
}

@Override
public ParticleInfluencer clone() {
public DefaultParticleInfluencer clone() {
try {
DefaultParticleInfluencer clone = (DefaultParticleInfluencer) super.clone();
clone.initialVelocity = initialVelocity.clone();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public float getVelocityVariation() {
}

@Override
public ParticleInfluencer clone() {
public EmptyParticleInfluencer clone() {
try {
return (ParticleInfluencer) super.clone();
return (EmptyParticleInfluencer) super.clone();
} catch (CloneNotSupportedException e) {
throw new AssertionError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected void applyVelocityVariation(Particle particle) {
}

@Override
public ParticleInfluencer clone() {
public NewtonianParticleInfluencer clone() {
NewtonianParticleInfluencer result = new NewtonianParticleInfluencer();
result.normalVelocity = normalVelocity;
result.initialVelocity = initialVelocity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@ public void instance() {
}

@Override
public Node clone() {
public InstancedNode clone() {
return clone(true);
}

@Override
public Node clone(boolean cloneMaterials) {
public InstancedNode clone(boolean cloneMaterials) {
InstancedNode clone = (InstancedNode)super.clone(cloneMaterials);

if (instancesMap.size() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static class DummyData implements CloneableSmartAsset {
private byte[] data = new byte[10 * 1024];

@Override
public Object clone(){
public DummyData clone(){
try {
DummyData clone = (DummyData) super.clone();
clone.data = data.clone();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public IrBoneWeightIndex(int boneIndex, float boneWeight) {
}

@Override
public Object clone() {
public IrBoneWeightIndex clone() {
try {
return super.clone();
return (IrBoneWeightIndex)super.clone();
} catch (CloneNotSupportedException ex) {
throw new AssertionError(ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void read(JmeImporter im) throws IOException {
}

@Override
public LodCalculator clone() {
public DistanceLodCalculator clone() {
DistanceLodCalculator clone = new DistanceLodCalculator(size, lodMultiplier);
return clone;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ public Vector3f getCenterLocation(TerrainPatch patch) {
}

@Override
public LodCalculator clone() {
public PerspectiveLodCalculator clone() {
try {
return (LodCalculator) super.clone();
return (PerspectiveLodCalculator) super.clone();
} catch (CloneNotSupportedException ex) {
throw new AssertionError();
}
Expand Down