Ignore:
Timestamp:
2015-05-18T23:34:11+02:00 (11 years ago)
Author:
Don-vip
Message:
  • global use of String.isEmpty()
  • Correctness - Method throws alternative exception from catch block without history
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/Shape.java

    r8291 r8394  
    7272                throw new IllegalArgumentException(tr("Illegal latitude value ''{0}''", lat));
    7373        } catch (NumberFormatException e) {
    74             throw new IllegalArgumentException(MessageFormat.format("Illegal double value ''{0}''", sLat));
     74            throw new IllegalArgumentException(MessageFormat.format("Illegal double value ''{0}''", sLat), e);
    7575        }
    7676
     
    8080                throw new IllegalArgumentException(tr("Illegal longitude value ''{0}''", lon));
    8181        } catch (NumberFormatException e) {
    82             throw new IllegalArgumentException(MessageFormat.format("Illegal double value ''{0}''", sLon));
     82            throw new IllegalArgumentException(MessageFormat.format("Illegal double value ''{0}''", sLon), e);
    8383        }
    8484
Note: See TracChangeset for help on using the changeset viewer.