directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r153128 - incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
Date Wed, 09 Feb 2005 23:07:23 GMT
Author: erodriguez
Date: Wed Feb  9 15:07:21 2005
New Revision: 153128

URL: http://svn.apache.org/viewcvs?view=rev&rev=153128
Log:
Removed two unnecessary casts and one unused variable.

Modified:
    incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java

Modified: incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java?view=diff&r1=153127&r2=153128
==============================================================================
--- incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
(original)
+++ incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
Wed Feb  9 15:07:21 2005
@@ -71,7 +71,6 @@
 import org.apache.ldap.server.schema.bootstrap.BootstrapSchemaLoader;
 import org.apache.mina.io.socket.SocketAcceptor;
 import org.apache.mina.protocol.ProtocolAcceptor;
-import org.apache.mina.protocol.ProtocolProvider;
 import org.apache.mina.protocol.io.IoProtocolAcceptor;
 
 /**
@@ -134,8 +133,6 @@
 
     private ProtocolAcceptor acceptor;
 
-    private ProtocolProvider proto;
-
     /**
      * Default constructor that sets the provider of this ServerContextFactory.
      */
@@ -402,7 +399,7 @@
         {
             String schemaList = ( String ) initialEnv.get( EnvKeys.SCHEMAS );
             schemaList = StringTools.deepTrim( schemaList );
-            schemas = ( ( String ) schemaList ).split( " " );
+            schemas = schemaList.split( " " );
             for( int ii = 0; ii < schemas.length; ii ++ )
             {
                 schemas[ ii ] = schemas[ ii ].trim();
@@ -737,8 +734,7 @@
         env.putAll( initialEnv );
         env.put( Context.PROVIDER_URL, "ou=system" );
         LdapContext ctx = provider.getLdapContext( env );
-        InputStream in = ( InputStream ) getClass().getResourceAsStream(
-                "system.ldif" );
+        InputStream in = getClass().getResourceAsStream( "system.ldif" );
         LdifParser parser = new LdifParserImpl();
 
         try



Mime
View raw message