Changeset 18211 in josm for trunk/test/unit


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/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java

    r17517 r18211  
    156156
    157157    private Optional<byte[]> checkUrl(ImageryInfo info, String url) {
    158         if (url != null && !url.isEmpty()) {
     158        if (!Utils.isEmpty(url)) {
    159159            if (workingURLs.containsKey(url)) {
    160160                return Optional.of(workingURLs.get(url));
     
    302302    private static LatLon getCenter(ImageryBounds bounds) {
    303303        List<Shape> shapes = bounds.getShapes();
    304         return shapes != null && !shapes.isEmpty() ? getPointInShape(shapes.get(0)) : bounds.getCenter();
     304        return !Utils.isEmpty(shapes) ? getPointInShape(shapes.get(0)) : bounds.getCenter();
    305305    }
    306306
Note: See TracChangeset for help on using the changeset viewer.