Ignore:
Timestamp:
2014-04-26T15:28:16+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - use multi-catch where applicable

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

Legend:

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

    r6990 r7004  
    11671167            GuiHelper.runInEDT(task);
    11681168            return task.get();
    1169         } catch (InterruptedException e) {
    1170             Main.warn(e);
    1171         } catch (ExecutionException e) {
     1169        } catch (InterruptedException | ExecutionException e) {
    11721170            Main.warn(e);
    11731171        }
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r6890 r7004  
    320320            Object plugin = c.newInstance(this);
    321321            return new PluginProxy(plugin, this);
    322         } catch(NoSuchMethodException e) {
    323             throw new PluginException(name, e);
    324         } catch(IllegalAccessException e) {
    325             throw new PluginException(name, e);
    326         } catch (InstantiationException e) {
    327             throw new PluginException(name, e);
    328         } catch(InvocationTargetException e) {
     322        } catch(NoSuchMethodException | IllegalAccessException | InstantiationException | InvocationTargetException e) {
    329323            throw new PluginException(name, e);
    330324        }
     
    343337        try {
    344338            return Class.forName(className, true, classLoader);
    345         } catch (ClassNotFoundException e) {
    346             throw new PluginException(name, e);
    347         } catch (ClassCastException e) {
     339        } catch (ClassNotFoundException | ClassCastException e) {
    348340            throw new PluginException(name, e);
    349341        }
Note: See TracChangeset for help on using the changeset viewer.