Ignore:
Timestamp:
2016-05-15T00:51:10+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2221 - "Exception" should not be caught when not required by called methods

File:
1 edited

Legend:

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

    r10208 r10212  
    88import java.io.Reader;
    99import java.lang.reflect.Field;
     10import java.lang.reflect.InvocationTargetException;
    1011import java.lang.reflect.Method;
    1112import java.lang.reflect.Modifier;
     
    156157                    }
    157158                }
    158             } catch (Exception e) {
     159            } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
    159160                Main.error(e); // SAXException does not dump inner exceptions.
    160161                throwException(e);
Note: See TracChangeset for help on using the changeset viewer.