Ignore:
Timestamp:
2016-05-15T00:51:10+02:00 (4 years ago)
Author:
Don-vip
Message:

sonar - squid:S2221 - "Exception" should not be caught when not required by called methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java

    r10133 r10212  
    136136        try {
    137137            return XML_DATE.newXMLGregorianCalendar(str).toGregorianCalendar().getTimeInMillis();
    138         } catch (Exception ex) {
     138        } catch (IllegalArgumentException ex) {
    139139            throw new UncheckedParseException("The date string (" + str + ") could not be parsed.", ex);
    140140        }
Note: See TracChangeset for help on using the changeset viewer.