Changeset 18211 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
- Timestamp:
- 2021-09-12T02:10:25+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r18208 r18211 240 240 continue; 241 241 Set<String> values = TaggingPresets.getPresetValues(key); 242 boolean allNumerical = values != null && !values.isEmpty()242 boolean allNumerical = !Utils.isEmpty(values) 243 243 && values.stream().allMatch(TagChecker::isNum); 244 244 if (allNumerical) { … … 428 428 */ 429 429 static boolean containsUnwantedNonPrintingControlCharacter(String s) { 430 return s != null && !s.isEmpty() && (430 return !Utils.isEmpty(s) && ( 431 431 isJoiningChar(s.charAt(0)) || 432 432 isJoiningChar(s.charAt(s.length() - 1)) || … … 640 640 checkSingleTagComplex(withErrors, p, key, value); 641 641 } 642 if (checkFixmes && key != null && value != null && !value.isEmpty() && isFixme(key, value) && !withErrors.contains(p, "FIXME")) {642 if (checkFixmes && key != null && !Utils.isEmpty(value) && isFixme(key, value) && !withErrors.contains(p, "FIXME")) { 643 643 errors.add(TestError.builder(this, Severity.OTHER, FIXME) 644 644 .message(tr("fixme"))
Note:
See TracChangeset
for help on using the changeset viewer.