Change identical 'catch' statements

This commit is contained in:
Thibault Meyer
2016-11-06 10:26:13 +01:00
parent 2a6d38eef2
commit a8778ef14c
3 changed files with 5 additions and 18 deletions
@@ -45,10 +45,7 @@ public class MigrationXmlWriter {
writer.close();
} catch (IOException e) {
throw new RuntimeException(e);
} catch (JAXBException e) {
} catch (IOException | JAXBException e) {
throw new RuntimeException(e);
}
}
@@ -170,9 +170,7 @@ public class BeanLifecycleAdapterFactory {
private void invoke(Method method, Object bean) {
try {
method.invoke(bean);
} catch (InvocationTargetException e) {
throw new PersistenceException("Error invoking lifecycle method", e);
} catch (IllegalAccessException e) {
} catch (InvocationTargetException | IllegalAccessException e) {
throw new PersistenceException("Error invoking lifecycle method", e);
}
}
@@ -237,9 +235,7 @@ public class BeanLifecycleAdapterFactory {
private void invoke(Method method, Object bean) {
try {
method.invoke(bean);
} catch (InvocationTargetException e) {
throw new PersistenceException("Error invoking lifecycle method", e);
} catch (IllegalAccessException e) {
} catch (InvocationTargetException | IllegalAccessException e) {
throw new PersistenceException("Error invoking lifecycle method", e);
}
}
@@ -272,9 +268,7 @@ public class BeanLifecycleAdapterFactory {
private void invoke(Method method, Object bean) {
try {
method.invoke(bean);
} catch (InvocationTargetException e) {
throw new PersistenceException("Error invoking lifecycle method", e);
} catch (IllegalAccessException e) {
} catch (InvocationTargetException | IllegalAccessException e) {
throw new PersistenceException("Error invoking lifecycle method", e);
}
}
@@ -163,11 +163,7 @@ public class TestPropertyChangeSupport extends EbeanTestCase implements Property
Method apcs = al.getClass().getMethod("addPropertyChangeListener", PropertyChangeListener.class);
apcs.invoke(al, listener);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
} catch (InvocationTargetException e) {
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}