Changeset 13712 in josm for trunk/src/org/openstreetmap/josm/data/validation
- Timestamp:
- 2018-05-07T23:40:50+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/RightAngleBuildingTest.java
r13698 r13712 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.util. Collections;6 import java.util.Arrays; 7 7 import java.util.List; 8 8 … … 52 52 .primitives(w) 53 53 .highlight(pair.b); 54 if (angles.stream().noneMatch( 55 p -> Math.abs(p.a - 90) >= maxAngleDelta && Math.abs(p.a - 180) >= minAngleDelta)) { 56 builder.fix(() -> { 57 try { 58 return OrthogonalizeAction.orthogonalize(Collections.singleton(w)); 59 } catch (InvalidUserInputException e) { 60 Logging.warn(e); 61 return null; 62 } 63 }); 64 } 54 builder.fix(() -> { 55 try { 56 return OrthogonalizeAction.orthogonalize(Arrays.asList(w, pair.b)); 57 } catch (InvalidUserInputException e) { 58 Logging.warn(e); 59 return null; 60 } 61 }); 65 62 errors.add(builder.build()); 66 63 return;
Note:
See TracChangeset
for help on using the changeset viewer.