Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r12542 r12620 61 61 import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference; 62 62 import org.openstreetmap.josm.gui.preferences.validator.ValidatorPreference; 63 import org.openstreetmap.josm.tools.Logging; 63 64 import org.openstreetmap.josm.tools.Utils; 64 65 … … 143 144 allTestsMap.put(testClass.getName(), testClass.getConstructor().newInstance()); 144 145 } catch (ReflectiveOperationException e) { 145 Main.error(e);146 Logging.error(e); 146 147 } 147 148 } … … 189 190 ignoredErrors.addAll(Files.readAllLines(path, StandardCharsets.UTF_8)); 190 191 } catch (final FileNotFoundException e) { 191 Main.debug(Main.getErrorMessage(e));192 Logging.debug(Logging.getErrorMessage(e)); 192 193 } catch (final IOException e) { 193 Main.error(e);194 Logging.error(e); 194 195 } 195 196 } … … 225 226 } 226 227 } catch (IOException e) { 227 Main.error(e);228 Logging.error(e); 228 229 } 229 230 } … … 355 356 public static synchronized void initializeTests() { 356 357 if (!testsInitialized) { 357 Main.debug("Initializing validator tests");358 Logging.debug("Initializing validator tests"); 358 359 final long startTime = System.currentTimeMillis(); 359 360 initializeTests(getTests()); 360 361 testsInitialized = true; 361 if ( Main.isDebugEnabled()) {362 if (Logging.isDebugEnabled()) { 362 363 final long elapsedTime = System.currentTimeMillis() - startTime; 363 Main.debug("Initializing validator tests completed in " +Utils.getDurationString(elapsedTime));364 Logging.debug("Initializing validator tests completed in {0}", Utils.getDurationString(elapsedTime)); 364 365 } 365 366 } … … 377 378 } 378 379 } catch (Exception e) { // NOPMD 379 Main.error(e);380 Logging.error(e); 380 381 if (!GraphicsEnvironment.isHeadless()) { 381 382 JOptionPane.showMessageDialog(Main.parent,
Note:
See TracChangeset
for help on using the changeset viewer.