Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/io/OsmReader.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/OsmReader.java
r12588 r12620 21 21 import javax.xml.stream.XMLStreamReader; 22 22 23 import org.openstreetmap.josm.Main;24 23 import org.openstreetmap.josm.data.Bounds; 25 24 import org.openstreetmap.josm.data.DataSource; … … 43 42 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 44 43 import org.openstreetmap.josm.tools.CheckParameterUtil; 44 import org.openstreetmap.josm.tools.Logging; 45 45 import org.openstreetmap.josm.tools.UncheckedParseException; 46 46 import org.openstreetmap.josm.tools.Utils; … … 202 202 Bounds copy = new Bounds(bounds); 203 203 bounds.normalize(); 204 Main.info("Bbox " + copy + " is out of the world, normalized to " + bounds);204 Logging.info("Bbox " + copy + " is out of the world, normalized to " + bounds); 205 205 } 206 206 DataSource src = new DataSource(bounds, origin); … … 225 225 nd.setCoor(ll); 226 226 } catch (NumberFormatException e) { 227 Main.trace(e);227 Logging.trace(e); 228 228 } 229 229 } … … 277 277 } 278 278 if (w.isDeleted() && !nodeIds.isEmpty()) { 279 Main.info(tr("Deleted way {0} contains nodes", w.getUniqueId()));279 Logging.info(tr("Deleted way {0} contains nodes", w.getUniqueId())); 280 280 nodeIds = new ArrayList<>(); 281 281 } … … 327 327 } 328 328 if (r.isDeleted() && !members.isEmpty()) { 329 Main.info(tr("Deleted relation {0} contains members", r.getUniqueId()));329 Logging.info(tr("Deleted relation {0} contains members", r.getUniqueId())); 330 330 members = new ArrayList<>(); 331 331 } … … 410 410 if (printWarning && ("note".equals(element) || "meta".equals(element))) { 411 411 // we know that Overpass API returns those elements 412 Main.debug(tr("Undefined element ''{0}'' found in input stream. Skipping.", element));412 Logging.debug(tr("Undefined element ''{0}'' found in input stream. Skipping.", element)); 413 413 } else if (printWarning) { 414 Main.info(tr("Undefined element ''{0}'' found in input stream. Skipping.", element));414 Logging.info(tr("Undefined element ''{0}'' found in input stream. Skipping.", element)); 415 415 } 416 416 while (true) { … … 505 505 Long.toString(current.getUniqueId()), versionString)); 506 506 } else if (version < 0 && current.isNew()) { 507 Main.warn(tr("Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.",507 Logging.warn(tr("Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", 508 508 current.getUniqueId(), version, 0, "0.6")); 509 509 version = 0; … … 539 539 current.setChangesetId(Integer.parseInt(v)); 540 540 } catch (IllegalArgumentException e) { 541 Main.debug(e.getMessage());541 Logging.debug(e.getMessage()); 542 542 if (current.isNew()) { 543 543 // for a new primitive we just log a warning 544 Main.info(tr("Illegal value for attribute ''changeset'' on new object {1}. Got {0}. Resetting to 0.",544 Logging.info(tr("Illegal value for attribute ''changeset'' on new object {1}. Got {0}. Resetting to 0.", 545 545 v, current.getUniqueId())); 546 546 current.setChangesetId(0); … … 551 551 } catch (IllegalStateException e) { 552 552 // thrown for positive changeset id on new primitives 553 Main.debug(e);554 Main.info(e.getMessage());553 Logging.debug(e); 554 Logging.info(e.getMessage()); 555 555 current.setChangesetId(0); 556 556 } … … 558 558 if (current.isNew()) { 559 559 // for a new primitive we just log a warning 560 Main.info(tr("Illegal value for attribute ''changeset'' on new object {1}. Got {0}. Resetting to 0.",560 Logging.info(tr("Illegal value for attribute ''changeset'' on new object {1}. Got {0}. Resetting to 0.", 561 561 v, current.getUniqueId())); 562 562 current.setChangesetId(0);
Note:
See TracChangeset
for help on using the changeset viewer.