Changeset 9070 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2015-11-30T08:36:35+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r9067 r9070 1824 1824 Collection<Map<String, String>> data = getListOfStructs(key, (Collection<Map<String, String>>) null); 1825 1825 if (data != null) { 1826 List<Map<String, String>> newlist = new ArrayList< Map<String, String>>();1826 List<Map<String, String>> newlist = new ArrayList<>(); 1827 1827 boolean modified = false; 1828 1828 for (Map<String, String> map : data) { 1829 Map<String, String> newmap = new LinkedHashMap< String, String>();1829 Map<String, String> newmap = new LinkedHashMap<>(); 1830 1830 for (Entry<String, String> entry : map.entrySet()) { 1831 1831 String val = entry.getValue(); -
trunk/src/org/openstreetmap/josm/data/cache/CacheEntryAttributes.java
r8624 r9070 22 22 public class CacheEntryAttributes extends ElementAttributes { 23 23 private static final long serialVersionUID = 1L; //version 24 private final Map<String, String> attrs = new ConcurrentHashMap< String, String>(RESERVED_KEYS.size());24 private final Map<String, String> attrs = new ConcurrentHashMap<>(RESERVED_KEYS.size()); 25 25 private static final String NO_TILE_AT_ZOOM = "noTileAtZoom"; 26 26 private static final String ETAG = "Etag"; -
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r9064 r9070 169 169 } 170 170 } 171 return new CacheAccess< K, V>(cc);171 return new CacheAccess<>(cc); 172 172 } 173 173 -
trunk/src/org/openstreetmap/josm/data/notes/Note.java
r7509 r9070 21 21 private Date closedAt; 22 22 private State state; 23 private List<NoteComment> comments = new ArrayList< NoteComment>();23 private List<NoteComment> comments = new ArrayList<>(); 24 24 25 25 /** -
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r9067 r9070 382 382 public Command fixError(TestError testError) { 383 383 if (!isFixable(testError)) return null; 384 Collection<OsmPrimitive> sel = new LinkedList< OsmPrimitive>(testError.getPrimitives());384 Collection<OsmPrimitive> sel = new LinkedList<>(testError.getPrimitives()); 385 385 Set<Node> nodes = new LinkedHashSet<>(OsmPrimitive.getFilteredList(sel, Node.class)); 386 386 -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r8958 r9070 583 583 */ 584 584 public Set<TagCheck> getTagCheckDependencies(Collection<TagCheck> schecks) { 585 Set<TagCheck> result = new HashSet< MapCSSTagChecker.TagCheck>();585 Set<TagCheck> result = new HashSet<>(); 586 586 Set<String> classes = getClassesIds(); 587 587 if (schecks != null && !classes.isEmpty()) { … … 770 770 final OsmPrimitive p = OsmUtils.createPrimitive(i.getKey()); 771 771 // Build minimal ordered list of checks to run to test the assertion 772 List<Set<TagCheck>> checksToRun = new ArrayList< Set<TagCheck>>();772 List<Set<TagCheck>> checksToRun = new ArrayList<>(); 773 773 Set<TagCheck> checkDependencies = check.getTagCheckDependencies(schecks); 774 774 if (!checkDependencies.isEmpty()) { -
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r8870 r9070 302 302 } 303 303 } 304 List<OsmPrimitive> newPrimitives = new ArrayList< OsmPrimitive>(primitives);304 List<OsmPrimitive> newPrimitives = new ArrayList<>(primitives); 305 305 newPrimitives.add(0, r); 306 306 error.setPrimitives(newPrimitives); -
trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java
r9067 r9070 41 41 private MultiMap<Way, Way> errorWays; 42 42 43 private final List<NormalizeRule> rules = new ArrayList< NormalizeRule>();43 private final List<NormalizeRule> rules = new ArrayList<>(); 44 44 45 45 /**
Note:
See TracChangeset
for help on using the changeset viewer.