This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 64e51ecf8 Sort members
64e51ecf8 is described below

commit 64e51ecf83b9408f54e3943ecb2027372caea6e0
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 9 13:42:39 2024 -0500

    Sort members
---
 .../commons/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<L> 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<L> 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 */

Reply via email to