Changeset 9971 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-03-12T23:29:58+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java
r9072 r9971 20 20 protected transient Collection<Relation> relations = Collections.<Relation>emptySet(); 21 21 22 @SuppressWarnings("unused") 22 23 protected static final Collection<Relation> getRelations(Collection<? extends OsmPrimitive> primitives) { 23 24 if (primitives == null || primitives.isEmpty()) { -
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r9473 r9971 370 370 371 371 // Diamond operator does not work with Java 9 here 372 @SuppressWarnings("unused") 372 373 Set<OsmPrimitive> primitivesToDelete = new HashSet<OsmPrimitive>(selection); 373 374 -
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r9072 r9971 383 383 if (!isFixable(testError)) return null; 384 384 // Diamond operator does not work with Java 9 here 385 @SuppressWarnings("unused") 385 386 Collection<OsmPrimitive> sel = new LinkedList<OsmPrimitive>(testError.getPrimitives()); 386 387 Set<Node> nodes = new LinkedHashSet<>(OsmPrimitive.getFilteredList(sel, Node.class)); -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r9920 r9971 1615 1615 @Override 1616 1616 public Action[] getMenuEntries() { 1617 ArrayList<Action> actions = new ArrayList< Action>();1617 ArrayList<Action> actions = new ArrayList<>(); 1618 1618 actions.addAll(Arrays.asList(getLayerListEntries())); 1619 1619 actions.addAll(Arrays.asList(getCommonEntries())); -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r9941 r9971 146 146 */ 147 147 public ArrayList<Relation> getRecentRelations() { 148 ArrayList<Relation> list = new ArrayList< Relation>(recentRelations.keySet());148 ArrayList<Relation> list = new ArrayList<>(recentRelations.keySet()); 149 149 Collections.reverse(list); 150 150 return list; -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r9954 r9971 145 145 } 146 146 147 @SuppressWarnings("unused") 147 148 public static <T> Collection<T> filter(Collection<? extends T> collection, Predicate<? super T> predicate) { 148 149 // Diamond operator does not work with Java 9 here
Note:
See TracChangeset
for help on using the changeset viewer.