Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java
- Timestamp:
- 2014-04-26T17:39:23+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java
r6922 r7005 30 30 * List of checks to run on data 31 31 */ 32 private List<FixData> deprecated = new LinkedList< FixData>();32 private List<FixData> deprecated = new LinkedList<>(); 33 33 34 34 /** … … 76 76 @Override 77 77 public boolean fixKeys(Map<String, String> keys, OsmPrimitive osm) { 78 Map<String, String> newKeys = new HashMap< String, String>(keys);78 Map<String, String> newKeys = new HashMap<>(keys); 79 79 for (Entry<String, String> e : keys.entrySet()) { 80 80 String v = Tag.removeWhiteSpaces(e.getValue()); … … 184 184 185 185 List<OsmPrimitive> objectsToUpload = apiDataSet.getPrimitives(); 186 Collection<Command> cmds = new LinkedList< Command>();186 Collection<Command> cmds = new LinkedList<>(); 187 187 188 188 for (OsmPrimitive osm : objectsToUpload) { … … 195 195 } 196 196 if(modified) 197 cmds.add(new ChangePropertyCommand(Collections.singleton(osm), new HashMap< String, String>(keys)));197 cmds.add(new ChangePropertyCommand(Collections.singleton(osm), new HashMap<>(keys))); 198 198 } 199 199 }
Note:
See TracChangeset
for help on using the changeset viewer.