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

ggregory pushed a commit to branch 1.2.X
in repository https://gitbox.apache.org/repos/asf/mina-ftpserver.git

commit f8463718f44b5c96ddbeaef00d8b09efce6638c2
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);
         }
     }

Reply via email to