Index: applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysAlgnSegment.java
===================================================================
--- applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysAlgnSegment.java	(revision 30631)
+++ applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysAlgnSegment.java	(revision 30737)
@@ -41,9 +41,9 @@
 
     private PivotLocations currPivot;
-    Map<PivotLocations, EastNorth> pivotList = new EnumMap<PivotLocations, EastNorth>(
+    Map<PivotLocations, EastNorth> pivotList = new EnumMap<>(
             PivotLocations.class);
     private final Color pivotColor = Color.YELLOW;
     private final Color crossColor = pivotColor;
-    private final Map<Node,ArrayList<WaySegment>> adjWaySegs = new HashMap<Node,ArrayList<WaySegment>>();
+    private final Map<Node,ArrayList<WaySegment>> adjWaySegs = new HashMap<>();
 
     public AlignWaysAlgnSegment(MapView mapview, Point p)
@@ -70,5 +70,5 @@
         // Update the list of adjacent waysegments to the endpoints
         for (Node nA : getSegmentEndPoints()) {
-            adjWaySegs.put(nA, new ArrayList<WaySegment>(determineAdjacentWaysegments(nA)));
+            adjWaySegs.put(nA, new ArrayList<>(determineAdjacentWaysegments(nA)));
         }
     }
@@ -182,5 +182,5 @@
      */
     private Collection<WaySegment> determineAdjacentWaysegments(Node node) {
-        Collection<WaySegment> wsSet = new HashSet<WaySegment>();
+        Collection<WaySegment> wsSet = new HashSet<>();
         final double radius = 10.0;
         final int stepsOnCircle = 24;
Index: applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysCmdKeepAngles.java
===================================================================
--- applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysCmdKeepAngles.java	(revision 30631)
+++ applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysCmdKeepAngles.java	(revision 30737)
@@ -71,5 +71,5 @@
                 
                 // In order have a chance to align, (enAdjOther1, enAdjOther2 and endpoint) must be collinear
-                ArrayList<EastNorth> enAdjPts = new ArrayList<EastNorth>(3);
+                ArrayList<EastNorth> enAdjPts = new ArrayList<>(3);
                 enAdjPts.add(enAdjOther1);
                 enAdjPts.add(endpoint.getEastNorth());
@@ -154,5 +154,5 @@
 
     private boolean isEnSetCollinear(ArrayList<EastNorth> enAdjPts) {
-        ArrayList<AlignWaysGeomPoint> awAdjPts = new ArrayList<AlignWaysGeomPoint>();
+        ArrayList<AlignWaysGeomPoint> awAdjPts = new ArrayList<>();
         
         for (EastNorth en : enAdjPts) {
Index: applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysCmdKeepLength.java
===================================================================
--- applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysCmdKeepLength.java	(revision 30631)
+++ applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysCmdKeepLength.java	(revision 30737)
@@ -51,5 +51,5 @@
      * Useful for validation.
      */
-    final Map<Node,EastNorth> calculatedNodes = new HashMap<Node,EastNorth>();
+    final Map<Node,EastNorth> calculatedNodes = new HashMap<>();
 
 
@@ -73,5 +73,5 @@
      * List of all old states of the objects.
      */
-    final Map<Node, Node> oldNodes = new HashMap<Node, Node>();
+    final Map<Node, Node> oldNodes = new HashMap<>();
 
     /**
@@ -148,5 +148,5 @@
 
         // "Backup" state
-        lastAffectedNodes = new HashSet<Node>();
+        lastAffectedNodes = new HashSet<>();
         for (Node n : this.displaceableNodes) {
             Node nodeBackup = new Node(n);
Index: applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSegment.java
===================================================================
--- applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSegment.java	(revision 30631)
+++ applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSegment.java	(revision 30737)
@@ -57,5 +57,5 @@
             Node node2 = segment.way.getNode(segment.lowerIndex + 1);
 
-            segmentEndPoints = new HashSet<Node>();
+            segmentEndPoints = new HashSet<>();
             segmentEndPoints.add(node1);
             segmentEndPoints.add(node2);
Index: applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/geometry/AlignWaysGeomPoint.java
===================================================================
--- applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/geometry/AlignWaysGeomPoint.java	(revision 30631)
+++ applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/geometry/AlignWaysGeomPoint.java	(revision 30737)
@@ -99,5 +99,5 @@
         
         Double[] dValues = {d1, d2, d3};
-        ArrayList<Double> alValues = new ArrayList<Double>(Arrays.asList(dValues));
+        ArrayList<Double> alValues = new ArrayList<>(Arrays.asList(dValues));
         Collections.sort(alValues);
         
