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/plugins/PluginProxy.java

    r10055 r10212  
    22package org.openstreetmap.josm.plugins;
    33
     4import java.lang.reflect.InvocationTargetException;
    45import java.util.List;
    56
     
    4546        } catch (NoSuchMethodException e) {
    4647            Main.debug("Plugin "+plugin+" does not define mapFrameInitialized");
    47         } catch (Exception e) {
     48        } catch (InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {
    4849            handlePluginException(e);
    4950        }
     
    5758            Main.debug("Plugin "+plugin+" does not define getPreferenceSetting");
    5859            return null;
    59         } catch (Exception e) {
     60        } catch (InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {
    6061            handlePluginException(e);
    6162        }
     
    6970        } catch (NoSuchMethodException e) {
    7071            Main.debug("Plugin "+plugin+" does not define addDownloadSelection");
    71         } catch (Exception e) {
     72        } catch (InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {
    7273            handlePluginException(e);
    7374        }
Note: See TracChangeset for help on using the changeset viewer.