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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user