Changeset 10378 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/UnclosedWays.java
- Timestamp:
- 2016-06-15T10:30:37+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/UnclosedWays.java
r10376 r10378 95 95 String value = w.get(key); 96 96 if (isValueErroneous(value)) { 97 // CHECKSTYLE.OFF: SingleSpaceSeparator 97 98 String type = engMessage.contains("{0}") ? tr(engMessage, tr(value)) : tr(engMessage); 98 99 String etype = engMessage.contains("{0}") ? MessageFormat.format(engMessage, value) : engMessage; 100 // CHECKSTYLE.ON: SingleSpaceSeparator 99 101 return new TestError(UnclosedWays.this, Severity.WARNING, tr("Unclosed way"), 100 102 type, etype, code, Arrays.asList(w), … … 136 138 137 139 private final UnclosedWaysCheck[] checks = { 140 // CHECKSTYLE.OFF: SingleSpaceSeparator 138 141 new UnclosedWaysCheck(1101, "natural", marktr("natural type {0}"), 139 142 new HashSet<>(Arrays.asList("cave", "coastline", "cliff", "tree_row", "ridge", "valley", "arete", "gorge"))), … … 152 155 new UnclosedWaysBooleanCheck(1120, "building", marktr("building")), 153 156 new UnclosedWaysBooleanCheck(1130, "area", marktr("area")), 157 // CHECKSTYLE.ON: SingleSpaceSeparator 154 158 }; 155 159
Note:
See TracChangeset
for help on using the changeset viewer.
