Ignore:
Timestamp:
2017-03-19T02:26:34+01:00 (7 years ago)
Author:
Don-vip
Message:

PMD - Strict Exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java

    r11297 r11746  
    1414import org.openstreetmap.josm.Main;
    1515import org.openstreetmap.josm.gui.util.GuiHelper;
     16import org.openstreetmap.josm.tools.JosmRuntimeException;
    1617import org.openstreetmap.josm.tools.Utils;
    1718import org.openstreetmap.josm.tools.bugreport.BugReport;
     
    404405            try {
    405406                l.layerAdded(e);
    406             } catch (RuntimeException t) {
     407            } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException t) {
    407408                throw BugReport.intercept(t).put("listener", l).put("event", e);
    408409            }
     
    421422            try {
    422423                l.layerRemoving(e);
    423             } catch (RuntimeException t) {
     424            } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException t) {
    424425                throw BugReport.intercept(t).put("listener", l).put("event", e).put("layer", layer);
    425426            }
     
    434435            try {
    435436                l.layerOrderChanged(e);
    436             } catch (RuntimeException t) {
     437            } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException t) {
    437438                throw BugReport.intercept(t).put("listener", l).put("event", e);
    438439            }
Note: See TracChangeset for help on using the changeset viewer.