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 51d1f869804ae9430c38e7bec03747204eb221b5 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jun 23 09:06:09 2023 -0400 SMTPCommand static initializer now throws IllegalStateException instead of RuntimeException. --- src/changes/changes.xml | 3 +++ src/main/java/org/apache/commons/net/smtp/SMTPCommand.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 7a9071be..359a0595 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -97,6 +97,9 @@ The <action> type attribute can be add,update,fix,remove. <action type="fix" dev="ggregory" due-to="Gary Gregory"> POP3Command static initializer now throws IllegalStateException instead of RuntimeException. </action> + <action type="fix" dev="ggregory" due-to="Gary Gregory"> + SMTPCommand 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/smtp/SMTPCommand.java b/src/main/java/org/apache/commons/net/smtp/SMTPCommand.java index cd3c7d69..c08f5cb8 100644 --- a/src/main/java/org/apache/commons/net/smtp/SMTPCommand.java +++ b/src/main/java/org/apache/commons/net/smtp/SMTPCommand.java @@ -78,7 +78,7 @@ public final class SMTPCommand { static { if (commands.length != NEXT) { - throw new RuntimeException("Error in array definition"); + throw new IllegalStateException("Error in array definition"); } }