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 07f4eaadd Use IllegalArgumentException llke the reset of the method.
07f4eaadd is described below

commit 07f4eaadddacf7f648031521d7c20139c756ca84
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun May 15 17:01:59 2022 -0400

    Use IllegalArgumentException llke the reset of the method.
---
 src/main/java/org/apache/commons/lang3/event/EventUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/lang3/event/EventUtils.java 
b/src/main/java/org/apache/commons/lang3/event/EventUtils.java
index c5baf62c7..5f18a601e 100644
--- a/src/main/java/org/apache/commons/lang3/event/EventUtils.java
+++ b/src/main/java/org/apache/commons/lang3/event/EventUtils.java
@@ -56,7 +56,7 @@ public class EventUtils {
                     + " does not have an accessible add" + 
listenerType.getSimpleName ()
                     + " method which takes a parameter of type " + 
listenerType.getName() + ".");
         } catch (final InvocationTargetException e) {
-            throw new RuntimeException("Unable to add listener.", 
e.getCause());
+            throw new IllegalArgumentException("Unable to add listener.", 
e.getCause());
         }
     }
 

Reply via email to