Ignore:
Timestamp:
2017-05-20T17:22:34+02:00 (3 years ago)
Author:
Don-vip
Message:

code cleanup - catch ReflectiveOperationException when possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java

    r12189 r12218  
    305305            Constructor<?> c = activeRenderer.getConstructor(new Class<?>[]{Graphics2D.class, NavigatableComponent.class, boolean.class});
    306306            return AbstractMapRenderer.class.cast(c.newInstance(g, viewport, isInactiveMode));
    307         } catch (NoSuchMethodException | IllegalArgumentException | InstantiationException | IllegalAccessException e) {
    308             throw new MapRendererFactoryException(e);
    309307        } catch (InvocationTargetException e) {
    310308            Main.debug(e);
    311309            throw new MapRendererFactoryException(e.getCause());
     310        } catch (ReflectiveOperationException | IllegalArgumentException e) {
     311            throw new MapRendererFactoryException(e);
    312312        }
    313313    }
Note: See TracChangeset for help on using the changeset viewer.