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-net.git

commit 672cdd46cd439dc2eafb5abcb0dc55a47c80cb04
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Jun 23 09:03:43 2023 -0400

    POP3Command static initializer now throws IllegalStateException
    instead of RuntimeException.
---
 src/changes/changes.xml                                    | 3 +++
 src/main/java/org/apache/commons/net/pop3/POP3Command.java | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 8f59d4ff..7a9071be 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -94,6 +94,9 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Gary Gregory">
         org.apache.commons.net.nntp.Threader now throws IllegalStateException 
instead of RuntimeException.
       </action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">
+        POP3Command static initializer now throws IllegalStateException 
instead of RuntimeException.
+      </action>
       <!-- UPDATE -->
       <action type="update" dev="ggregory" due-to="Dependabot">
         Bump commons-parent from 54 to 58 #132, #137, #153.
diff --git a/src/main/java/org/apache/commons/net/pop3/POP3Command.java 
b/src/main/java/org/apache/commons/net/pop3/POP3Command.java
index 782d7c6d..a08cbb1a 100644
--- a/src/main/java/org/apache/commons/net/pop3/POP3Command.java
+++ b/src/main/java/org/apache/commons/net/pop3/POP3Command.java
@@ -65,7 +65,7 @@ public final class POP3Command {
 
     static {
         if (commands.length != NEXT) {
-            throw new RuntimeException("Error in array definition");
+            throw new IllegalStateException("Error in array definition");
         }
     }
 

Reply via email to