Changeset 11628 in josm for trunk/src/org
- Timestamp:
- 2017-02-26T01:02:54+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r11627 r11628 57 57 import org.openstreetmap.josm.tools.JosmRuntimeException; 58 58 import org.openstreetmap.josm.tools.Shortcut; 59 import org.openstreetmap.josm.tools.Utils;60 59 import org.xml.sax.SAXException; 61 60 … … 596 595 protected void fixError(TestError error) throws InterruptedException, InvocationTargetException { 597 596 if (error.isFixable()) { 598 long start = System.currentTimeMillis();599 597 final Command fixCommand = error.getFix(); 600 long phase1 = System.currentTimeMillis() - start;601 start = System.currentTimeMillis();602 598 if (fixCommand != null) { 603 599 SwingUtilities.invokeAndWait(() -> Main.main.undoRedo.addNoRedraw(fixCommand)); 604 if (Main.isDebugEnabled()) {605 long phase2 = System.currentTimeMillis() - start;606 Main.debug(String.format("%s fix: %s + %s",607 error.getTester().getClass().getSimpleName(), Utils.getDurationString(phase1),608 Utils.getDurationString(phase2)));609 }610 600 } 611 601 // It is wanted to ignore an error if it said fixable, even if fixCommand was null
Note:
See TracChangeset
for help on using the changeset viewer.