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

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r10181 r10212  
    814814                        }
    815815                    }
    816                 } catch (Exception e) {
     816                } catch (RuntimeException e) {
    817817                    Main.error(e);
    818818                }
  • 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 : ""));
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java

    r9639 r10212  
    22package org.openstreetmap.josm.data.projection.datum;
    33
     4import java.io.IOException;
    45import java.io.InputStream;
    56
     
    5556                instance = new NTV2GridShiftFile();
    5657                instance.loadGridShiftFile(is, false);
    57             } catch (Exception e) {
     58            } catch (IOException e) {
    5859                throw new RuntimeException(e);
    5960            }
Note: See TracChangeset for help on using the changeset viewer.