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/tools/ImageProvider.java

    r10179 r10212  
    8383
    8484import com.kitfox.svg.SVGDiagram;
     85import com.kitfox.svg.SVGException;
    8586import com.kitfox.svg.SVGUniverse;
    8687
     
    986987                }
    987988            }
    988         } catch (Exception e) {
     989        } catch (IOException e) {
    989990            Main.warn(tr("Failed to handle zip file ''{0}''. Exception was: {1}", archive.getName(), e.toString()));
    990991        }
     
    11531154        } catch (SAXReturnException r) {
    11541155            return r.getResult();
    1155         } catch (Exception e) {
     1156        } catch (IOException | SAXException e) {
    11561157            Main.warn("Parsing " + base + fn + " failed:\n" + e);
    11571158            return null;
     
    14271428                svg.render(g);
    14281429            }
    1429         } catch (Exception ex) {
     1430        } catch (SVGException ex) {
    14301431            Main.error("Unable to load svg: {0}", ex.getMessage());
    14311432            return null;
Note: See TracChangeset for help on using the changeset viewer.