Changeset 14266 in josm for trunk/src


Ignore:
Timestamp:
2018-09-21T21:53:17+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #16762 - support multiple notes in .osc files created by OsmAnd

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmChangeReader.java

    r14101 r14266  
    113113                case "comment":
    114114                    text = parser.getAttributeValue(null, "text");
     115                    jumpToEnd();
    115116                    break;
    116117                default:
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r14219 r14266  
    366366     * @throws XMLStreamException if there is an error processing the underlying XML source
    367367     */
    368     private void jumpToEnd(boolean printWarning) throws XMLStreamException {
     368    protected final void jumpToEnd(boolean printWarning) throws XMLStreamException {
    369369        while (true) {
    370370            int event = parser.next();
     
    376376    }
    377377
    378     private void jumpToEnd() throws XMLStreamException {
     378    protected final void jumpToEnd() throws XMLStreamException {
    379379        jumpToEnd(true);
    380380    }
Note: See TracChangeset for help on using the changeset viewer.