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

code cleanup - catch ReflectiveOperationException when possible

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

Legend:

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

    r12031 r12218  
    22package org.openstreetmap.josm.gui.mappaint.mapcss;
    33
    4 import java.lang.reflect.InvocationTargetException;
    54import java.lang.reflect.Method;
    65import java.text.MessageFormat;
     
    824823            try {
    825824                return not ^ (Boolean) method.invoke(null, e);
    826             } catch (IllegalAccessException | InvocationTargetException ex) {
     825            } catch (ReflectiveOperationException ex) {
    827826                throw new JosmRuntimeException(ex);
    828827            }
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmImageView.java

    r10223 r12218  
    6767                setPropertiesFromAttributes();
    6868            }
    69         } catch (IllegalArgumentException | IllegalAccessException |
    70                 InvocationTargetException | NoSuchMethodException | SecurityException e) {
     69        } catch (IllegalArgumentException | ReflectiveOperationException | SecurityException e) {
    7170           Main.error(e);
    7271       }
Note: See TracChangeset for help on using the changeset viewer.