DATACMNS-867 - Second draft.

This commit is contained in:
Oliver Gierke
2016-06-21 16:52:28 +02:00
parent 57ed50a730
commit d4811e29d9
222 changed files with 2297 additions and 2138 deletions

View File

@@ -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);
}
/**

View File

@@ -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) {