Index: applications/editors/josm/plugins/poly/src/poly/PolyExporter.java
===================================================================
--- applications/editors/josm/plugins/poly/src/poly/PolyExporter.java	(revision 30495)
+++ applications/editors/josm/plugins/poly/src/poly/PolyExporter.java	(revision 30737)
@@ -40,5 +40,5 @@
             try {
                 DataSet ds = ((OsmDataLayer)layer).data;
-                Map<Way, Boolean> ways = new TreeMap<Way, Boolean>();
+                Map<Way, Boolean> ways = new TreeMap<>();
                 String polygonName = file.getName();
                 if( polygonName.indexOf('.') > 0 )
@@ -91,6 +91,6 @@
 
     private Map<Way, Boolean> sortOuterInner( Map<Way, Boolean> ways ) {
-        LinkedHashMap<Way, Boolean> result = new LinkedHashMap<Way, Boolean>(ways.size());
-        List<Way> inner = new ArrayList<Way>();
+        LinkedHashMap<Way, Boolean> result = new LinkedHashMap<>(ways.size());
+        List<Way> inner = new ArrayList<>();
         for( Way w : ways.keySet() ) {
             Boolean outer = ways.get(w);
Index: applications/editors/josm/plugins/poly/src/poly/PolyImporter.java
===================================================================
--- applications/editors/josm/plugins/poly/src/poly/PolyImporter.java	(revision 30495)
+++ applications/editors/josm/plugins/poly/src/poly/PolyImporter.java	(revision 30737)
@@ -72,5 +72,5 @@
         if( name == null || name.trim().length() == 0 )
             throw new IllegalDataException(tr("The file must begin with a polygon name"));
-        List<Area> areas = new ArrayList<Area>();
+        List<Area> areas = new ArrayList<>();
         Area area = null;
         boolean parsingSection = false;
@@ -177,5 +177,5 @@
             if( !outer )
                 this.name = this.name.substring(1);
-            nodes = new ArrayList<LatLon>();
+            nodes = new ArrayList<>();
             way = null;
             polygonName = null;
