Changeset 7012 in josm for trunk/src/org/openstreetmap/josm/io/OsmChangeReader.java
- Timestamp:
- 2014-04-27T15:35:47+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmChangeReader.java
r6881 r7012 34 34 @Override 35 35 protected void parseRoot() throws XMLStreamException { 36 if ( parser.getLocalName().equals("osmChange")) {36 if ("osmChange".equals(parser.getLocalName())) { 37 37 parseOsmChange(); 38 38 } else { … … 69 69 if (event == XMLStreamConstants.START_ELEMENT) { 70 70 OsmPrimitive p = null; 71 if (parser.getLocalName().equals("node")) { 71 switch (parser.getLocalName()) { 72 case "node": 72 73 p = parseNode(); 73 } else if (parser.getLocalName().equals("way")) { 74 break; 75 case "way": 74 76 p = parseWay(); 75 } else if (parser.getLocalName().equals("relation")) { 77 break; 78 case "relation": 76 79 p = parseRelation(); 77 } else { 80 break; 81 default: 78 82 parseUnknown(); 79 83 } 80 84 if (p != null && action != null) { 81 if ( action.equals("modify")) {85 if ("modify".equals(action)) { 82 86 p.setModified(true); 83 } else if ( action.equals("delete")) {87 } else if ("delete".equals(action)) { 84 88 p.setDeleted(true); 85 89 }
Note:
See TracChangeset
for help on using the changeset viewer.