diff options
Diffstat (limited to 'plugins/org.eclipse.emf.compare.ide/src/org/eclipse/emf/compare/ide/internal/utils/ForwardingXMLHandler.java')
-rw-r--r-- | plugins/org.eclipse.emf.compare.ide/src/org/eclipse/emf/compare/ide/internal/utils/ForwardingXMLHandler.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/org.eclipse.emf.compare.ide/src/org/eclipse/emf/compare/ide/internal/utils/ForwardingXMLHandler.java b/plugins/org.eclipse.emf.compare.ide/src/org/eclipse/emf/compare/ide/internal/utils/ForwardingXMLHandler.java index f02e7c6ad..a6088a773 100644 --- a/plugins/org.eclipse.emf.compare.ide/src/org/eclipse/emf/compare/ide/internal/utils/ForwardingXMLHandler.java +++ b/plugins/org.eclipse.emf.compare.ide/src/org/eclipse/emf/compare/ide/internal/utils/ForwardingXMLHandler.java @@ -509,11 +509,7 @@ public class ForwardingXMLHandler extends XMLHandler { throw new RuntimeException(new NoSuchMethodException("Could not find method " + methodName //$NON-NLS-1$ + " on " + XMLHandler.class.getName())); //$NON-NLS-1$ } - } catch (IllegalArgumentException e) { - throw new RuntimeException(e); - } catch (IllegalAccessException e) { - throw new RuntimeException(e); - } catch (InvocationTargetException e) { + } catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException e) { throw new RuntimeException(e); } } @@ -538,11 +534,7 @@ public class ForwardingXMLHandler extends XMLHandler { throw new RuntimeException(new NoSuchFieldException("Could not find field " + fieldName //$NON-NLS-1$ + " on " + XMLHandler.class.getName())); //$NON-NLS-1$ } - } catch (IllegalArgumentException e) { - throw new RuntimeException(e); - } catch (IllegalAccessException e) { - throw new RuntimeException(e); - } catch (ExecutionException e) { + } catch (IllegalArgumentException | IllegalAccessException | ExecutionException e) { throw new RuntimeException(e); } } |