Got rid of cancerous Cloneable interface and fixed possible NPE when cloning a Position Keyframe

This commit is contained in:
CrushedPixel
2015-06-12 23:27:43 +02:00
parent b1864424d9
commit 8ef7e768d6
5 changed files with 14 additions and 15 deletions

View File

@@ -1,11 +1,10 @@
package eu.crushedpixel.replaymod.holders;
public class Keyframe implements Cloneable {
public class Keyframe {
private int realTimestamp;
@Override
public Object clone() {
public Keyframe clone() {
return new Keyframe(realTimestamp);
}