More deprecation removal

This commit is contained in:
Matthew Miller
2018-06-16 16:36:55 +10:00
parent 20bf6e079b
commit aaaf2d5678
152 changed files with 701 additions and 1150 deletions

View File

@ -50,7 +50,7 @@ public final class Polygons {
nPoints = maxPoints - 1;
}
final List<BlockVector2D> points = new ArrayList<BlockVector2D>(nPoints);
final List<BlockVector2D> points = new ArrayList<>(nPoints);
for (int i = 0; i < nPoints; ++i) {
double angle = i * (2.0 * Math.PI) / nPoints;
final Vector2D pos = new Vector2D(Math.cos(angle), Math.sin(angle));

View File

@ -42,7 +42,7 @@ public class ReparametrisingInterpolation implements Interpolation {
private final Interpolation baseInterpolation;
private double totalArcLength;
private final TreeMap<Double, Double> cache = new TreeMap<Double, Double>();
private final TreeMap<Double, Double> cache = new TreeMap<>();
public ReparametrisingInterpolation(Interpolation baseInterpolation) {
checkNotNull(baseInterpolation);

View File

@ -75,7 +75,7 @@ public class CombinedTransform implements Transform {
@Override
public Transform inverse() {
List<Transform> list = new ArrayList<Transform>();
List<Transform> list = new ArrayList<>();
for (int i = transforms.length - 1; i >= 0; i--) {
list.add(transforms[i].inverse());
}