Changeset 18211 in josm for trunk/scripts


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/scripts/SyncEditorLayerIndex.java

    r18208 r18211  
    962962            if (Utils.isEmpty(jh)) {
    963963                myprintln("- Missing JOSM no tile headers ("+eh+"): "+getDescription(j));
    964             } else if (eh != null && !eh.isEmpty()) {
     964            } else if (!Utils.isEmpty(eh)) {
    965965                myprintln("* No tile headers differ ('"+eh+"' != '"+jh+"'): "+getDescription(j));
    966966            } else if (!optionNoEli) {
     
    15891589        String id = getId(o);
    15901590        String d = cc;
    1591         if (name != null && !name.isEmpty()) {
     1591        if (!Utils.isEmpty(name)) {
    15921592            d += name;
    1593             if (id != null && !id.isEmpty())
     1593            if (!Utils.isEmpty(id))
    15941594              d += " ["+id+"]";
    1595         } else if (url != null && !url.isEmpty())
     1595        } else if (!Utils.isEmpty(url))
    15961596            d += url;
    15971597        if (optionShorten) {
Note: See TracChangeset for help on using the changeset viewer.