Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
- Timestamp:
- 2014-04-26T17:39:23+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r6995 r7005 77 77 public static double griddetail; 78 78 79 public static final Collection<String> ignoredErrors = new TreeSet< String>();79 public static final Collection<String> ignoredErrors = new TreeSet<>(); 80 80 81 81 /** … … 124 124 private static Map<String, Test> allTestsMap; 125 125 static { 126 allTestsMap = new HashMap< String, Test>();126 allTestsMap = new HashMap<>(); 127 127 for (Class<Test> testClass : allAvailableTests) { 128 128 try { … … 226 226 applyPrefs(allTestsMap, false); 227 227 applyPrefs(allTestsMap, true); 228 return new TreeMap< String, Test>(allTestsMap);228 return new TreeMap<>(allTestsMap); 229 229 } 230 230 … … 263 263 public static Collection<Test> getEnabledTests(boolean beforeUpload) { 264 264 Collection<Test> enabledTests = getTests(); 265 for (Test t : new ArrayList< Test>(enabledTests)) {265 for (Test t : new ArrayList<>(enabledTests)) { 266 266 if (beforeUpload ? t.testBeforeUpload : t.enabled) { 267 267 continue;
Note:
See TracChangeset
for help on using the changeset viewer.
