Ignore:
Timestamp:
2016-05-15T00:51:10+02:00 (8 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/data/projection/Projections.java

    r9950 r10212  
    323323            try {
    324324                proj = pc.getProjection();
    325             } catch (Exception e) {
     325            } catch (RuntimeException e) {
    326326                String cause = e.getMessage();
    327327                Main.warn("Unable to get projection "+code+" with "+pc + (cause != null ? ". "+cause : ""));
Note: See TracChangeset for help on using the changeset viewer.