From 64e51ecf83b9408f54e3943ecb2027372caea6e0 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 9 Mar 2024 13:42:39 -0500 Subject: [PATCH] Sort members --- .../lang3/event/EventListenerSupport.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java b/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java index e2f94f67d..c0ac4301c 100644 --- a/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java +++ b/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java @@ -95,6 +95,19 @@ public class EventListenerSupport implements Serializable { this.handler = Objects.requireNonNull(handler); } + /** + * Handles an exception thrown by a listener. By default rethrows the given Throwable. + * + * @param t The Throwable + * @throws IllegalAccessException thrown by the listener. + * @throws IllegalArgumentException thrown by the listener. + * @throws InvocationTargetException thrown by the listener. + * @since 3.15.0 + */ + protected void handle(final Throwable t) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { + handler.accept(t); + } + /** * Propagates the method call to all registered listeners in place of the proxy listener object. * @@ -118,19 +131,6 @@ public class EventListenerSupport implements Serializable { } return null; } - - /** - * Handles an exception thrown by a listener. By default rethrows the given Throwable. - * - * @param t The Throwable - * @throws IllegalAccessException thrown by the listener. - * @throws IllegalArgumentException thrown by the listener. - * @throws InvocationTargetException thrown by the listener. - * @since 3.15.0 - */ - protected void handle(final Throwable t) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { - handler.accept(t); - } } /** Serialization version */