directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r359765 - /directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java
Date Thu, 29 Dec 2005 09:43:37 GMT
Author: trustin
Date: Thu Dec 29 01:43:35 2005
New Revision: 359765

URL: http://svn.apache.org/viewcvs?rev=359765&view=rev
Log:
Removed SLF4J dependency in BlacklistFilter


Modified:
    directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java

Modified: directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java
URL: http://svn.apache.org/viewcvs/directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java?rev=359765&r1=359764&r2=359765&view=diff
==============================================================================
--- directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java (original)
+++ directory/trunk/mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java Thu Dec
29 01:43:35 2005
@@ -30,8 +30,6 @@
 import org.apache.mina.common.IoFilterAdapter;
 import org.apache.mina.common.IoSession;
 import org.apache.mina.util.SessionLog;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * A {@link IoFilter} which blocks connections from blacklisted remote
@@ -42,8 +40,6 @@
  */
 public class BlacklistFilter extends IoFilterAdapter
 {
-    private static final Logger log = LoggerFactory.getLogger( BlacklistFilter.class );
-    
     private final Set blacklist = new HashSet();
 
     /**
@@ -91,9 +87,8 @@
         }
         catch ( ArrayStoreException ase )
         {
-            String msg = "Collection of addresses must contain only InetAddress instances";
-            log.error( msg, ase );
-            IllegalArgumentException iae = new IllegalArgumentException( msg );
+            IllegalArgumentException iae = new IllegalArgumentException(
+                    "Collection of addresses must contain only InetAddress instances." );
             iae.initCause( ase );
             throw iae;
         }
@@ -217,4 +212,4 @@
 
         return false;
     }
-}
\ No newline at end of file
+}



Mime
View raw message