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/mina-ftpserver.git
commit c09a8a9d97962e9e75d7415dc99725a7cf44bc39 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Jul 5 08:18:22 2023 -0400 Throw IllegalStateException instead of RuntimeException on bad state in RemoteIpFilter --- core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java b/core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java index 8a1b0368..6389ee6a 100644 --- a/core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java +++ b/core/src/main/java/org/apache/ftpserver/ipfilter/RemoteIpFilter.java @@ -216,7 +216,7 @@ public class RemoteIpFilter extends CopyOnWriteArraySet<Subnet> implements } return true; default: - throw new RuntimeException("Unknown or unimplemented filter type: " + throw new IllegalStateException("Unknown or unimplemented filter type: " + type); } }