Ignore:
Timestamp:
2021-09-11T17:50:57+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/gui/widgets/FileChooserManager.java

    r18113 r18208  
    1919import org.openstreetmap.josm.spi.preferences.Config;
    2020import org.openstreetmap.josm.tools.PlatformManager;
     21import org.openstreetmap.josm.tools.Utils;
    2122
    2223/**
     
    9899    public FileChooserManager(boolean open, String lastDirProperty, String defaultDir) {
    99100        this.open = open;
    100         this.lastDirProperty = lastDirProperty == null || lastDirProperty.isEmpty() ? "lastDirectory" : lastDirProperty;
     101        this.lastDirProperty = Utils.isEmpty(lastDirProperty) ? "lastDirectory" : lastDirProperty;
    101102        this.curDir = Config.getPref().get(this.lastDirProperty).isEmpty() ?
    102                 defaultDir == null || defaultDir.isEmpty() ? "." : defaultDir
     103                Utils.isEmpty(defaultDir) ? "." : defaultDir
    103104                : Config.getPref().get(this.lastDirProperty);
    104105    }
Note: See TracChangeset for help on using the changeset viewer.