Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
r12542 r12620 45 45 import org.openstreetmap.josm.tools.CheckParameterUtil; 46 46 import org.openstreetmap.josm.tools.JosmRuntimeException; 47 import org.openstreetmap.josm.tools.Logging; 47 48 import org.openstreetmap.josm.tools.MultiMap; 48 49 import org.openstreetmap.josm.tools.Utils; … … 447 448 active = !activeAtt.isEmpty() ? (Integer.parseInt(activeAtt)-1) : -1; 448 449 } catch (NumberFormatException e) { 449 Main.warn("Unsupported value for 'active' layer attribute. Ignoring it. Error was: "+e.getMessage());450 Logging.warn("Unsupported value for 'active' layer attribute. Ignoring it. Error was: "+e.getMessage()); 450 451 active = -1; 451 452 } … … 468 469 idx = Integer.valueOf(e.getAttribute("index")); 469 470 } catch (NumberFormatException ex) { 470 Main.warn(ex);471 Logging.warn(ex); 471 472 } 472 473 if (idx == null) { … … 485 486 d = Integer.valueOf(sd); 486 487 } catch (NumberFormatException ex) { 487 Main.warn(ex);488 Logging.warn(ex); 488 489 } 489 490 if (d != null) { … … 567 568 } 568 569 if (exception != null) { 569 Main.error(exception);570 Logging.error(exception); 570 571 if (!GraphicsEnvironment.isHeadless()) { 571 572 CancelOrContinueDialog dialog = new CancelOrContinueDialog(); … … 607 608 layer.setOpacity(opacity); 608 609 } catch (NumberFormatException ex) { 609 Main.warn(ex);610 Logging.warn(ex); 610 611 } 611 612 } … … 625 626 Double.parseDouble(centerEl.getAttribute("lon"))); 626 627 } catch (NumberFormatException ex) { 627 Main.warn(ex);628 Logging.warn(ex); 628 629 } 629 630 if (center == null) return null; … … 634 635 return new SessionViewportData(center, scale); 635 636 } catch (NumberFormatException ex) { 636 Main.warn(ex);637 Logging.warn(ex); 637 638 return null; 638 639 }
Note:
See TracChangeset
for help on using the changeset viewer.