diff --git a/src/main/java/com/avaje/ebeaninternal/server/deploy/BeanLifecycleAdapterFactory.java b/src/main/java/com/avaje/ebeaninternal/server/deploy/BeanLifecycleAdapterFactory.java index 71c053945..22eb69b27 100644 --- a/src/main/java/com/avaje/ebeaninternal/server/deploy/BeanLifecycleAdapterFactory.java +++ b/src/main/java/com/avaje/ebeaninternal/server/deploy/BeanLifecycleAdapterFactory.java @@ -123,13 +123,11 @@ 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) { - throw new PersistenceException("Error invoking lifecycle method", e); - } + } catch (InvocationTargetException e) { + throw new PersistenceException("Error invoking lifecycle method", e); + } catch (IllegalAccessException e) { + throw new PersistenceException("Error invoking lifecycle method", e); + } } private void invoke(Method method, BeanPersistRequest request) {