Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

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

    r8509 r8510  
    127127                try {
    128128                    minLon = Double.parseDouble(min_lon);
    129                 } catch(NumberFormatException e) {
     129                } catch (NumberFormatException e) {
    130130                    throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "min_lon", min_lon));
    131131                }
     
    133133                try {
    134134                    minLat = Double.parseDouble(min_lat);
    135                 } catch(NumberFormatException e) {
     135                } catch (NumberFormatException e) {
    136136                    throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "min_lat", min_lat));
    137137                }
     
    143143                try {
    144144                    maxLon = Double.parseDouble(max_lon);
    145                 } catch(NumberFormatException e) {
     145                } catch (NumberFormatException e) {
    146146                    throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "max_lon", max_lon));
    147147                }
     
    149149                try {
    150150                    maxLat = Double.parseDouble(max_lat);
    151                 } catch(NumberFormatException e) {
     151                } catch (NumberFormatException e) {
    152152                    throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "max_lat", max_lat));
    153153                }
     
    177177            try {
    178178                att = Integer.parseInt(value);
    179             } catch(NumberFormatException e) {
     179            } catch (NumberFormatException e) {
    180180                throwException(tr("Illegal value for attribute ''{0}''. Got ''{1}''.", "id", value));
    181181            }
     
    256256                long id = Long.parseLong(uid);
    257257                return User.createOsmUser(id, name);
    258             } catch(NumberFormatException e) {
     258            } catch (NumberFormatException e) {
    259259                throwException(MessageFormat.format("Illegal value for attribute ''uid''. Got ''{0}''.", uid));
    260260            }
     
    281281            Utils.parseSafeSAX(inputSource, parser.new Parser());
    282282            return parser.getChangesets();
    283         } catch(ParserConfigurationException | SAXException e) {
     283        } catch (ParserConfigurationException | SAXException e) {
    284284            throw new IllegalDataException(e.getMessage(), e);
    285         } catch(Exception e) {
     285        } catch (Exception e) {
    286286            throw new IllegalDataException(e);
    287287        } finally {
Note: See TracChangeset for help on using the changeset viewer.