Ignore:
Timestamp:
2015-05-18T23:34:11+02:00 (5 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/gui/util/RotationAngle.java

    r8378 r8394  
    3939     */
    4040    public static RotationAngle buildStaticRotation(final String string) {
    41         final double value;
    4241        try {
    43             value = parseCardinalRotation(string);
    44         } catch (IllegalArgumentException ignore) {
    45             throw new IllegalArgumentException("Invalid string: " + string);
     42            return buildStaticRotation(parseCardinalRotation(string));
     43        } catch (IllegalArgumentException e) {
     44            throw new IllegalArgumentException("Invalid string: " + string, e);
    4645        }
    47         return buildStaticRotation(value);
    4846    }
    4947
Note: See TracChangeset for help on using the changeset viewer.