Index: /trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java	(revision 9970)
+++ /trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java	(revision 9971)
@@ -20,4 +20,5 @@
     protected transient Collection<Relation> relations = Collections.<Relation>emptySet();
 
+    @SuppressWarnings("unused")
     protected static final Collection<Relation> getRelations(Collection<? extends OsmPrimitive> primitives) {
         if (primitives == null || primitives.isEmpty()) {
Index: /trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/command/DeleteCommand.java	(revision 9970)
+++ /trunk/src/org/openstreetmap/josm/command/DeleteCommand.java	(revision 9971)
@@ -370,4 +370,5 @@
 
         // Diamond operator does not work with Java 9 here
+        @SuppressWarnings("unused")
         Set<OsmPrimitive> primitivesToDelete = new HashSet<OsmPrimitive>(selection);
 
Index: /trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java	(revision 9970)
+++ /trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java	(revision 9971)
@@ -383,4 +383,5 @@
         if (!isFixable(testError)) return null;
         // Diamond operator does not work with Java 9 here
+        @SuppressWarnings("unused")
         Collection<OsmPrimitive> sel = new LinkedList<OsmPrimitive>(testError.getPrimitives());
         Set<Node> nodes = new LinkedHashSet<>(OsmPrimitive.getFilteredList(sel, Node.class));
Index: /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java	(revision 9970)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java	(revision 9971)
@@ -1615,5 +1615,5 @@
     @Override
     public Action[] getMenuEntries() {
-        ArrayList<Action> actions = new ArrayList<Action>();
+        ArrayList<Action> actions = new ArrayList<>();
         actions.addAll(Arrays.asList(getLayerListEntries()));
         actions.addAll(Arrays.asList(getCommonEntries()));
Index: /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java	(revision 9970)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java	(revision 9971)
@@ -146,5 +146,5 @@
      */
     public ArrayList<Relation> getRecentRelations() {
-        ArrayList<Relation> list = new ArrayList<Relation>(recentRelations.keySet());
+        ArrayList<Relation> list = new ArrayList<>(recentRelations.keySet());
         Collections.reverse(list);
         return list;
Index: /trunk/src/org/openstreetmap/josm/tools/Utils.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/Utils.java	(revision 9970)
+++ /trunk/src/org/openstreetmap/josm/tools/Utils.java	(revision 9971)
@@ -145,4 +145,5 @@
     }
 
+    @SuppressWarnings("unused")
     public static <T> Collection<T> filter(Collection<? extends T> collection, Predicate<? super T> predicate) {
         // Diamond operator does not work with Java 9 here
