Ignore:
Timestamp:
2021-09-12T02:10:25+02:00 (3 years ago)
Author:
Don-vip
Message:

global use of !Utils.isEmpty/isBlank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r18208 r18211  
    240240                continue;
    241241            Set<String> values = TaggingPresets.getPresetValues(key);
    242             boolean allNumerical = values != null && !values.isEmpty()
     242            boolean allNumerical = !Utils.isEmpty(values)
    243243                    && values.stream().allMatch(TagChecker::isNum);
    244244            if (allNumerical) {
     
    428428     */
    429429    static boolean containsUnwantedNonPrintingControlCharacter(String s) {
    430         return s != null && !s.isEmpty() && (
     430        return !Utils.isEmpty(s) && (
    431431                isJoiningChar(s.charAt(0)) ||
    432432                isJoiningChar(s.charAt(s.length() - 1)) ||
     
    640640                checkSingleTagComplex(withErrors, p, key, value);
    641641            }
    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")) {
    643643                errors.add(TestError.builder(this, Severity.OTHER, FIXME)
    644644                        .message(tr("fixme"))
Note: See TracChangeset for help on using the changeset viewer.