Ignore:
Timestamp:
2013-10-07T00:04:48+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - Nested blocks of code should not be left empty

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

Legend:

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

    r6248 r6310  
    210210        stage = stageStr == null ? 50 : Integer.parseInt(stageStr);
    211211        version = attr.getValue("Plugin-Version");
    212         try { mainversion = Integer.parseInt(attr.getValue("Plugin-Mainversion")); }
    213         catch(NumberFormatException e) {}
     212        try {
     213            mainversion = Integer.parseInt(attr.getValue("Plugin-Mainversion"));
     214        } catch(NumberFormatException e) {
     215            Main.warn(e);
     216        }
    214217        author = attr.getValue("Author");
    215218        iconPath = attr.getValue("Plugin-Icon");
  • trunk/src/org/openstreetmap/josm/plugins/PluginProxy.java

    r2830 r6310  
    44import java.util.List;
    55
     6import org.openstreetmap.josm.Main;
    67import org.openstreetmap.josm.gui.MapFrame;
    78import org.openstreetmap.josm.gui.download.DownloadSelection;
     
    2930            plugin.getClass().getMethod("mapFrameInitialized", MapFrame.class, MapFrame.class).invoke(plugin, oldFrame, newFrame);
    3031        } catch (NoSuchMethodException e) {
     32            Main.debug("Plugin "+plugin+" does not define mapFrameInitialized");
    3133        } catch (Exception e) {
    3234            BugReportExceptionHandler.handleException(new PluginException(this, getPluginInformation().name, e));
     
    3840            return (PreferenceSetting)plugin.getClass().getMethod("getPreferenceSetting").invoke(plugin);
    3941        } catch (NoSuchMethodException e) {
     42            Main.debug("Plugin "+plugin+" does not define getPreferenceSetting");
    4043            return null;
    4144        } catch (Exception e) {
     
    4952            plugin.getClass().getMethod("addDownloadSelection", List.class).invoke(plugin, list);
    5053        } catch (NoSuchMethodException e) {
    51             // ignore
     54            Main.debug("Plugin "+plugin+" does not define addDownloadSelection");
    5255        } catch (Exception e) {
    5356            BugReportExceptionHandler.handleException(new PluginException(this, getPluginInformation().name, e));
Note: See TracChangeset for help on using the changeset viewer.