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/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r12217 r12218  
    295295              .append(getReleaseId()).append(" (")
    296296              .append(getCurrentBuild()).append(')');
    297         } catch (IllegalAccessException | InvocationTargetException e) {
     297        } catch (ReflectiveOperationException e) {
    298298            Main.error(e);
    299299        }
  • trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java

    r11374 r12218  
    88import java.io.Reader;
    99import java.lang.reflect.Field;
    10 import java.lang.reflect.InvocationTargetException;
    1110import java.lang.reflect.Method;
    1211import java.lang.reflect.Modifier;
     
    157156                    }
    158157                }
    159             } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
     158            } catch (ReflectiveOperationException | IllegalArgumentException e) {
    160159                Main.error(e); // SAXException does not dump inner exceptions.
    161160                throwException(e);
Note: See TracChangeset for help on using the changeset viewer.