Changeset 18211 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2021-09-12T02:10:25+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java
r17517 r18211 156 156 157 157 private Optional<byte[]> checkUrl(ImageryInfo info, String url) { 158 if ( url != null && !url.isEmpty()) {158 if (!Utils.isEmpty(url)) { 159 159 if (workingURLs.containsKey(url)) { 160 160 return Optional.of(workingURLs.get(url)); … … 302 302 private static LatLon getCenter(ImageryBounds bounds) { 303 303 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(); 305 305 } 306 306
Note:
See TracChangeset
for help on using the changeset viewer.