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

global use of !Utils.isEmpty/isBlank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java

    r18208 r18211  
    6969    protected void updateEnabledState(Collection<? extends OsmPrimitive> selection) {
    7070        updateEnabledStateOnModifiableSelection(selection);
    71         if (isEnabled() && selection != null && !selection.isEmpty()
     71        if (isEnabled() && !Utils.isEmpty(selection)
    7272                && DownloadPolicy.BLOCKED.equals(selection.iterator().next().getDataSet().getDownloadPolicy())) {
    7373            setEnabled(false);
Note: See TracChangeset for help on using the changeset viewer.