Ignore:
Timestamp:
2016-07-24T14:48:47+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1166 - Exception handlers should preserve the original exceptions

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r10626 r10627  
    257257            sources.add(org.openstreetmap.josm.gui.MainApplication.class.getClassLoader());
    258258        } catch (SecurityException ex) {
     259            Main.debug(ex);
    259260            sources.add(ImageProvider.class.getClassLoader());
    260261        }
  • TabularUnified trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r10358 r10627  
    216216                    s = tr(s);
    217217                } catch (IllegalArgumentException e) {
     218                    Main.debug(e);
    218219                    Main.info(tr("Invalid plugin description ''{0}'' in plugin {1}", s, name));
    219220                }
  • TabularUnified trunk/src/org/openstreetmap/josm/plugins/PluginProxy.java

    r10212 r10627  
    4545            plugin.getClass().getMethod("mapFrameInitialized", MapFrame.class, MapFrame.class).invoke(plugin, oldFrame, newFrame);
    4646        } catch (NoSuchMethodException e) {
     47            Main.trace(e);
    4748            Main.debug("Plugin "+plugin+" does not define mapFrameInitialized");
    4849        } catch (InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {
     
    5657            return (PreferenceSetting) plugin.getClass().getMethod("getPreferenceSetting").invoke(plugin);
    5758        } catch (NoSuchMethodException e) {
     59            Main.trace(e);
    5860            Main.debug("Plugin "+plugin+" does not define getPreferenceSetting");
    5961            return null;
     
    6971            plugin.getClass().getMethod("addDownloadSelection", List.class).invoke(plugin, list);
    7072        } catch (NoSuchMethodException e) {
     73            Main.trace(e);
    7174            Main.debug("Plugin "+plugin+" does not define addDownloadSelection");
    7275        } catch (InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {
Note: See TracChangeset for help on using the changeset viewer.