Index: applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/Lakewalker.java
===================================================================
--- applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/Lakewalker.java	(revision 30736)
+++ applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/Lakewalker.java	(revision 30737)
@@ -93,5 +93,5 @@
             Boolean detect_loop = false;
 
-            ArrayList<double[]> nodelist = new ArrayList<double[]>();
+            ArrayList<double[]> nodelist = new ArrayList<>();
 
             int[] xy = geo_to_xy(lat,lon,this.resolution);
@@ -255,5 +255,5 @@
 
         double[] test_v = nodes.get(0);
-        ArrayList<double[]> reducednodes = new ArrayList<double[]>();
+        ArrayList<double[]> reducednodes = new ArrayList<>();
 
         double prox_sq = Math.pow(proximity, 2);
@@ -362,5 +362,5 @@
         double[] last = nodes.get(nodes.size()-1);
 
-        ArrayList<double[]> new_nodes = new ArrayList<double[]>();
+        ArrayList<double[]> new_nodes = new ArrayList<>();
 
         double d = 0;
@@ -391,5 +391,5 @@
 
     private ArrayList<double[]> sublist(ArrayList<double[]> l, int i, int f) throws ArrayIndexOutOfBoundsException {
-        ArrayList<double[]> sub = new ArrayList<double[]>();
+        ArrayList<double[]> sub = new ArrayList<>();
 
         if(f<i || i < 0 || f < 0 || f > l.size()){
Index: applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerAction.java
===================================================================
--- applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerAction.java	(revision 30736)
+++ applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerAction.java	(revision 30737)
@@ -46,6 +46,6 @@
     protected boolean active = false;
 
-    protected Collection<Command> commands = new LinkedList<Command>();
-    protected Collection<Way> ways = new ArrayList<Way>();
+    protected Collection<Command> commands = new LinkedList<>();
+    protected Collection<Way> ways = new ArrayList<>();
 
     public LakewalkerAction(String name) {
@@ -170,5 +170,5 @@
         progressMonitor.beginTask(null, 3);
         try {
-            ArrayList<double[]> nodelist = new ArrayList<double[]>();
+            ArrayList<double[]> nodelist = new ArrayList<>();
 
             Lakewalker lw = new Lakewalker(waylen,maxnode,threshold,epsilon,resolution,tilesize,startdir,wmslayer,workingdir);
@@ -291,6 +291,6 @@
             }
 
-            commands = new LinkedList<Command>();
-            ways = new ArrayList<Way>();
+            commands = new LinkedList<>();
+            ways = new ArrayList<>();
         } finally {
             progressMonitor.finishTask();
Index: applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerWMS.java
===================================================================
--- applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerWMS.java	(revision 30736)
+++ applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerWMS.java	(revision 30737)
@@ -29,7 +29,7 @@
 
     // Vector to cache images in memory
-    private List<BufferedImage> images = new Vector<BufferedImage>();
+    private List<BufferedImage> images = new Vector<>();
     // Hashmap to hold the mapping of cached images
-    private Map<String,Integer> imageindex = new HashMap<String,Integer>();
+    private Map<String,Integer> imageindex = new HashMap<>();
 
     private int resolution;
