Fix all warnings

Add and make use of Lombok
Remove Mojang API
Remove ZipFileUtils
Remove StreamTools in favor of Apache IOUtils
Keyframe should be abstract all derivatives final
Replace clone in Keyframe with copy
Move some constants from GuiReplaySetttings to GuiConstants
This commit is contained in:
johni0702
2015-06-29 21:45:37 +02:00
parent 3122c0a71e
commit a058497727
110 changed files with 487 additions and 1921 deletions

View File

@@ -24,10 +24,6 @@ public abstract class LinearInterpolation<K> implements Interpolation<K> {
points.add(point);
}
public void clearPoints() {
points = new ArrayList<K>();
}
protected Pair<Float, Pair<K, K>> getCurrentPoints(float position) {
if(points.size() == 0) return null;
position = position * (points.size() - 1);

View File

@@ -24,8 +24,6 @@ public class LinearPoint extends LinearInterpolation<Position> {
float rot = (float)getInterpolatedValue(first.getRoll(), second.getRoll(), perc);
Position inter = new Position(x, y, z, pitch, yaw, rot);
return inter;
return new Position(x, y, z, pitch, yaw, rot);
}
}

View File

@@ -14,8 +14,6 @@ public class LinearTimestamp extends LinearInterpolation<Integer> {
int first = pair.second().first();
int second = pair.second().second();
int val = (int) getInterpolatedValue(first, second, perc);
return val;
return (int) getInterpolatedValue(first, second, perc);
}
}

View File

@@ -7,7 +7,6 @@ import java.lang.reflect.InvocationTargetException;
import java.util.Vector;
public class SplinePoint extends BasicSpline implements Interpolation<Position> {
private static final Object[] EMPTYOBJ = new Object[]{};
private Vector<Position> points;
private Vector<Cubic> xCubics;
private Vector<Cubic> yCubics;