Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/io/OsmChangesetParser.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmChangesetParser.java
r8509 r8510 127 127 try { 128 128 minLon = Double.parseDouble(min_lon); 129 } catch (NumberFormatException e) {129 } catch (NumberFormatException e) { 130 130 throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "min_lon", min_lon)); 131 131 } … … 133 133 try { 134 134 minLat = Double.parseDouble(min_lat); 135 } catch (NumberFormatException e) {135 } catch (NumberFormatException e) { 136 136 throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "min_lat", min_lat)); 137 137 } … … 143 143 try { 144 144 maxLon = Double.parseDouble(max_lon); 145 } catch (NumberFormatException e) {145 } catch (NumberFormatException e) { 146 146 throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "max_lon", max_lon)); 147 147 } … … 149 149 try { 150 150 maxLat = Double.parseDouble(max_lat); 151 } catch (NumberFormatException e) {151 } catch (NumberFormatException e) { 152 152 throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "max_lat", max_lat)); 153 153 } … … 177 177 try { 178 178 att = Integer.parseInt(value); 179 } catch (NumberFormatException e) {179 } catch (NumberFormatException e) { 180 180 throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "id", value)); 181 181 } … … 256 256 long id = Long.parseLong(uid); 257 257 return User.createOsmUser(id, name); 258 } catch (NumberFormatException e) {258 } catch (NumberFormatException e) { 259 259 throwException(MessageFormat.format("Illegal value for attribute ''uid''. Got ''{0}''.", uid)); 260 260 } … … 281 281 Utils.parseSafeSAX(inputSource, parser.new Parser()); 282 282 return parser.getChangesets(); 283 } catch (ParserConfigurationException | SAXException e) {283 } catch (ParserConfigurationException | SAXException e) { 284 284 throw new IllegalDataException(e.getMessage(), e); 285 } catch (Exception e) {285 } catch (Exception e) { 286 286 throw new IllegalDataException(e); 287 287 } finally {
Note:
See TracChangeset
for help on using the changeset viewer.