Changeset 6117 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2013-08-07T22:11:35+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxReader.java
r6080 r6117 20 20 import javax.xml.parsers.SAXParserFactory; 21 21 22 import org.openstreetmap.josm.Main; 22 23 import org.openstreetmap.josm.data.coor.LatLon; 23 24 import org.openstreetmap.josm.data.gpx.Extensions; … … 31 32 import org.xml.sax.InputSource; 32 33 import org.xml.sax.SAXException; 34 import org.xml.sax.SAXParseException; 33 35 import org.xml.sax.helpers.DefaultHandler; 34 36 … … 406 408 GpxLink link = new GpxLink(url); 407 409 link.text = urlname; 408 @SuppressWarnings( "unchecked")410 @SuppressWarnings({ "unchecked", "rawtypes" }) 409 411 Collection<GpxLink> links = (Collection) attr.get(META_LINKS); 410 412 links.add(link); … … 455 457 if (parser.data.isEmpty()) 456 458 throw e; 459 String message = e.getMessage(); 460 if (e instanceof SAXParseException) { 461 SAXParseException spe = ((SAXParseException)e); 462 message += " " + tr("(at line {0}, column {1})", spe.getLineNumber(), spe.getColumnNumber()); 463 } 464 Main.warn(message); 457 465 return false; 458 466 } else … … 464 472 } 465 473 474 /** 475 * Replies the GPX data. 476 * @return The GPX data 477 */ 466 478 public GpxData getGpxData() { 467 479 return gpxData;
Note:
See TracChangeset
for help on using the changeset viewer.