Changeset 10136 in josm for trunk/src/org
- Timestamp:
- 2016-04-10T18:13:08+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NoteReader.java
r10134 r10136 9 9 import java.util.Date; 10 10 import java.util.List; 11 import java.util.Locale; 11 12 12 13 import javax.xml.parsers.ParserConfigurationException; … … 116 117 } 117 118 commentUsername = attrs.getValue("user"); 118 noteAction = Action.valueOf(attrs.getValue("action")); 119 noteAction = Action.valueOf(attrs.getValue("action").toUpperCase(Locale.ENGLISH)); 119 120 commentCreateDate = DateUtils.fromString(attrs.getValue("timestamp")); 120 121 String isNew = attrs.getValue("is_new"); … … 161 162 break; 162 163 case "status": 163 thisNote.setState(Note.State.valueOf(buffer.toString())); 164 thisNote.setState(Note.State.valueOf(buffer.toString().toUpperCase(Locale.ENGLISH))); 164 165 break; 165 166 case "date_created": … … 183 184 break; 184 185 case "action": 185 noteAction = Action.valueOf(buffer.toString()); 186 noteAction = Action.valueOf(buffer.toString().toUpperCase(Locale.ENGLISH)); 186 187 break; 187 188 case "note": //nothing to do for comment or note, already handled above
Note:
See TracChangeset
for help on using the changeset viewer.