Changeset 7004 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
- Timestamp:
- 2014-04-26T15:28:16+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r6927 r7004 83 83 parameterFunctions.add(Math.class.getMethod("tan", double.class)); 84 84 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) { 88 86 throw new RuntimeException(ex); 89 87 } … … 752 750 try { 753 751 result = m.invoke(FUNCTIONS_INSTANCE, convertedArgs); 754 } catch (IllegalAccessException ex) { 755 throw new RuntimeException(ex); 756 } catch (IllegalArgumentException ex) { 752 } catch (IllegalAccessException | IllegalArgumentException ex) { 757 753 throw new RuntimeException(ex); 758 754 } catch (InvocationTargetException ex) { … … 815 811 try { 816 812 result = m.invoke(null, convertedArgs); 817 } catch (IllegalAccessException ex) { 818 throw new RuntimeException(ex); 819 } catch (IllegalArgumentException ex) { 813 } catch (IllegalAccessException | IllegalArgumentException ex) { 820 814 throw new RuntimeException(ex); 821 815 } catch (InvocationTargetException ex) {
Note:
See TracChangeset
for help on using the changeset viewer.