DATACMNS-867 - Second draft.
This commit is contained in:
@@ -63,7 +63,7 @@ public class Distance implements Serializable, Comparable<Distance> {
|
||||
* @return will never be {@literal null}.
|
||||
*/
|
||||
public static Range<Distance> between(Distance min, Distance max) {
|
||||
return new Range<Distance>(min, max);
|
||||
return new Range<>(min, max);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -53,7 +53,7 @@ public class Polygon implements Iterable<Point>, Shape {
|
||||
Assert.notNull(z, "Z coordinate must not be null!");
|
||||
Assert.notNull(others, "Others must not be null!");
|
||||
|
||||
List<Point> points = new ArrayList<Point>(3 + others.length);
|
||||
List<Point> points = new ArrayList<>(3 + others.length);
|
||||
points.addAll(Arrays.asList(x, y, z));
|
||||
points.addAll(Arrays.asList(others));
|
||||
|
||||
@@ -70,7 +70,7 @@ public class Polygon implements Iterable<Point>, Shape {
|
||||
|
||||
Assert.notNull(points, "Points must not be null!");
|
||||
|
||||
List<Point> pointsToSet = new ArrayList<Point>(points.size());
|
||||
List<Point> pointsToSet = new ArrayList<>(points.size());
|
||||
|
||||
for (Point point : points) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user