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

see #8465 - use multi-catch where applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

    r6927 r7004  
    8383            parameterFunctions.add(Math.class.getMethod("tan", double.class));
    8484            parameterFunctions.add(Math.class.getMethod("tanh", double.class));
    85         } catch (NoSuchMethodException ex) {
    86             throw new RuntimeException(ex);
    87         } catch (SecurityException ex) {
     85        } catch (NoSuchMethodException | SecurityException ex) {
    8886            throw new RuntimeException(ex);
    8987        }
     
    752750            try {
    753751                result = m.invoke(FUNCTIONS_INSTANCE, convertedArgs);
    754             } catch (IllegalAccessException ex) {
    755                 throw new RuntimeException(ex);
    756             } catch (IllegalArgumentException ex) {
     752            } catch (IllegalAccessException | IllegalArgumentException ex) {
    757753                throw new RuntimeException(ex);
    758754            } catch (InvocationTargetException ex) {
     
    815811            try {
    816812                result = m.invoke(null, convertedArgs);
    817             } catch (IllegalAccessException ex) {
    818                 throw new RuntimeException(ex);
    819             } catch (IllegalArgumentException ex) {
     813            } catch (IllegalAccessException | IllegalArgumentException ex) {
    820814                throw new RuntimeException(ex);
    821815            } catch (InvocationTargetException ex) {
Note: See TracChangeset for help on using the changeset viewer.