- Timestamp:
- 2020-12-12T21:39:37+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/RightAngleBuildingTest.java
r15281 r17405 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.util.Arrays;7 6 import java.util.List; 8 7 9 import org.openstreetmap.josm.actions.OrthogonalizeAction;10 import org.openstreetmap.josm.actions.OrthogonalizeAction.InvalidUserInputException;11 8 import org.openstreetmap.josm.data.osm.Node; 12 9 import org.openstreetmap.josm.data.osm.Way; … … 16 13 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 17 14 import org.openstreetmap.josm.spi.preferences.Config; 18 import org.openstreetmap.josm.tools.Logging;19 15 import org.openstreetmap.josm.tools.Pair; 20 16 … … 52 48 .primitives(w) 53 49 .highlight(pair.b); 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 });62 50 errors.add(builder.build()); 63 51 return;
Note:
See TracChangeset
for help on using the changeset viewer.