Changeset 11129 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateWay.java
- Timestamp:
- 2016-10-15T00:17:47+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateWay.java
r9371 r11129 123 123 for (Set<OsmPrimitive> duplicated : ways.values()) { 124 124 if (duplicated.size() > 1) { 125 TestError testError = new TestError(this, Severity.ERROR, tr("Duplicated ways"), DUPLICATE_WAY, duplicated); 125 TestError testError = TestError.builder(this, Severity.ERROR, DUPLICATE_WAY) 126 .message(tr("Duplicated ways")) 127 .primitives(duplicated) 128 .build(); 126 129 errors.add(testError); 127 130 } … … 150 153 continue; 151 154 } 152 TestError testError = new TestError(this, Severity.WARNING, tr("Ways with same position"), SAME_WAY, sameway); 155 TestError testError = TestError.builder(this, Severity.WARNING, SAME_WAY) 156 .message(tr("Ways with same position")) 157 .primitives(sameway) 158 .build(); 153 159 errors.add(testError); 154 160 }
Note:
See TracChangeset
for help on using the changeset viewer.