Changeset 16438 in josm for trunk/test/unit/org/openstreetmap/josm/gui/preferences
- Timestamp:
- 2020-05-17T14:18:22+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java
r16398 r16438 20 20 import java.util.concurrent.TimeUnit; 21 21 import java.util.stream.Collectors; 22 import java.util.stream.Stream; 22 23 23 24 import javax.imageio.ImageIO; … … 280 281 // | 8 3 7 | 281 282 // +-----------+ 282 for (LatLon candidate : new LatLon[] {283 return Stream.of( 283 284 new LatLon(y1, x2), 284 285 new LatLon(y2, x3), … … 289 290 new LatLon(y3, x3), 290 291 new LatLon(y3, x1) 291 }) { 292 if (shape.contains(candidate)) { 293 return candidate; 294 } 295 } 296 return center; 292 ).filter(shape::contains).findFirst().orElse(center); 297 293 } 298 294
Note:
See TracChangeset
for help on using the changeset viewer.