Changeset 19629 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests
- Timestamp:
- 2026-10-01T17:54:30+02:00 (4 weeks ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 3 edited
-
MapCSSTagChecker.java (modified) (1 diff)
-
PowerLines.java (modified) (1 diff)
-
TagChecker.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r19374 r19629 287 287 * @since 18365 (public, primarily for ValidatorCLI) 288 288 */ 289 @SuppressWarnings("PMD.UseTryWithResources") // zip.a is closed via Utils.close(), which swallows IOException 289 290 public synchronized ParseResult addMapCSS(String url, Consumer<String> assertionConsumer) throws ParseException, IOException { 290 291 CheckParameterUtil.ensureParameterNotNull(url, "url"); -
trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
r19619 r19629 102 102 @Override 103 103 public void visit(Node n) { 104 if (!n.isConnectionNode() || n.referrers(Way.class).noneMatch( w ->isPowerLineOrCable(w)))104 if (!n.isConnectionNode() || n.referrers(Way.class).noneMatch(PowerLines::isPowerLineOrCable)) 105 105 return; 106 106 -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r19437 r19629 1024 1024 withErrors.put(p, "LV"); 1025 1025 } 1026 if (value. trim().isEmpty() && !withErrors.contains(p, "EV")) {1026 if (value.isBlank() && !withErrors.contains(p, "EV")) { 1027 1027 errors.add(TestError.builder(this, Severity.WARNING, EMPTY_VALUES) 1028 1028 .message(tr("Tags with empty values"), s, key)
Note:
See TracChangeset
for help on using the changeset viewer.
