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/gui/layer/geoimage/ImageEntry.java

    r9383 r10212  
    492492            // default is K (km/h)
    493493            setSpeed(speed);
    494         } catch (Exception ex) {
     494        } catch (MetadataException ex) {
    495495            if (Main.isDebugEnabled()) {
    496496                Main.debug(ex.getMessage());
     
    516516            setPos(getExifCoor());
    517517
    518         } catch (Exception ex) { // (other exceptions, e.g. #5271)
     518        } catch (MetadataException | IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271)
    519519            Main.error("Error reading EXIF from file: " + ex);
    520520            setExifCoor(null);
     
    527527                setExifImgDir(direction);
    528528            }
    529         } catch (Exception ex) { // (CompoundException and other exceptions, e.g. #5271)
     529        } catch (IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271)
    530530            if (Main.isDebugEnabled()) {
    531531                Main.debug(ex.getMessage());
Note: See TracChangeset for help on using the changeset viewer.