Changeset 12218 in josm
- Timestamp:
- 2017-05-20T17:22:34+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
r12189 r12218 305 305 Constructor<?> c = activeRenderer.getConstructor(new Class<?>[]{Graphics2D.class, NavigatableComponent.class, boolean.class}); 306 306 return AbstractMapRenderer.class.cast(c.newInstance(g, viewport, isInactiveMode)); 307 } catch (NoSuchMethodException | IllegalArgumentException | InstantiationException | IllegalAccessException e) {308 throw new MapRendererFactoryException(e);309 307 } catch (InvocationTargetException e) { 310 308 Main.debug(e); 311 309 throw new MapRendererFactoryException(e.getCause()); 310 } catch (ReflectiveOperationException | IllegalArgumentException e) { 311 throw new MapRendererFactoryException(e); 312 312 } 313 313 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.java
r12031 r12218 2 2 package org.openstreetmap.josm.gui.mappaint.mapcss; 3 3 4 import java.lang.reflect.InvocationTargetException;5 4 import java.lang.reflect.Method; 6 5 import java.text.MessageFormat; … … 824 823 try { 825 824 return not ^ (Boolean) method.invoke(null, e); 826 } catch ( IllegalAccessException | InvocationTargetException ex) {825 } catch (ReflectiveOperationException ex) { 827 826 throw new JosmRuntimeException(ex); 828 827 } -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmImageView.java
r10223 r12218 67 67 setPropertiesFromAttributes(); 68 68 } 69 } catch (IllegalArgumentException | IllegalAccessException | 70 InvocationTargetException | NoSuchMethodException | SecurityException e) { 69 } catch (IllegalArgumentException | ReflectiveOperationException | SecurityException e) { 71 70 Main.error(e); 72 71 } -
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r11893 r12218 9 9 import java.io.InputStream; 10 10 import java.lang.reflect.Constructor; 11 import java.lang.reflect.InvocationTargetException;12 11 import java.net.URL; 13 12 import java.text.MessageFormat; … … 325 324 Object plugin = c.newInstance(this); 326 325 return new PluginProxy(plugin, this); 327 } catch ( NoSuchMethodException | IllegalAccessException | InstantiationException | InvocationTargetException e) {326 } catch (ReflectiveOperationException e) { 328 327 throw new PluginException(name, e); 329 328 } -
trunk/src/org/openstreetmap/josm/plugins/PluginProxy.java
r10627 r12218 2 2 package org.openstreetmap.josm.plugins; 3 3 4 import java.lang.reflect.InvocationTargetException;5 4 import java.util.List; 6 5 … … 47 46 Main.trace(e); 48 47 Main.debug("Plugin "+plugin+" does not define mapFrameInitialized"); 49 } catch ( InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {48 } catch (ReflectiveOperationException | IllegalArgumentException e) { 50 49 handlePluginException(e); 51 50 } … … 60 59 Main.debug("Plugin "+plugin+" does not define getPreferenceSetting"); 61 60 return null; 62 } catch ( InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {61 } catch (ReflectiveOperationException | IllegalArgumentException e) { 63 62 handlePluginException(e); 64 63 } … … 73 72 Main.trace(e); 74 73 Main.debug("Plugin "+plugin+" does not define addDownloadSelection"); 75 } catch ( InvocationTargetException | IllegalAccessException | IllegalArgumentException e) {74 } catch (ReflectiveOperationException | IllegalArgumentException e) { 76 75 handlePluginException(e); 77 76 } -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r12217 r12218 295 295 .append(getReleaseId()).append(" (") 296 296 .append(getCurrentBuild()).append(')'); 297 } catch ( IllegalAccessException | InvocationTargetException e) {297 } catch (ReflectiveOperationException e) { 298 298 Main.error(e); 299 299 } -
trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java
r11374 r12218 8 8 import java.io.Reader; 9 9 import java.lang.reflect.Field; 10 import java.lang.reflect.InvocationTargetException;11 10 import java.lang.reflect.Method; 12 11 import java.lang.reflect.Modifier; … … 157 156 } 158 157 } 159 } catch ( IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {158 } catch (ReflectiveOperationException | IllegalArgumentException e) { 160 159 Main.error(e); // SAXException does not dump inner exceptions. 161 160 throwException(e);
Note:
See TracChangeset
for help on using the changeset viewer.