directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r542337 - /directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
Date Mon, 28 May 2007 22:01:22 GMT
Author: erodriguez
Date: Mon May 28 15:01:21 2007
New Revision: 542337

URL: http://svn.apache.org/viewvc?view=rev&rev=542337
Log:
Warnings clean-up, unnecessary casts.

Modified:
    directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java

Modified: directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java?view=diff&rev=542337&r1=542336&r2=542337
==============================================================================
--- directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
(original)
+++ directory/apacheds/trunk/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
Mon May 28 15:01:21 2007
@@ -412,7 +412,7 @@
         {
             AttributeType at = ( AttributeType ) ii.next();
             String schemaName = attributeTypeRegistry.getSchemaName( at.getOid() );
-            Schema schema = ( Schema ) registries.getLoadedSchemas().get( schemaName );
+            Schema schema = registries.getLoadedSchemas().get( schemaName );
             getLog().info( "\t\t o [" + schemaName + "] - " + getNameOrNumericoid( at ) );
             LdapDN dn = checkCreateSchema( schemaName );
             dn.add( SchemaConstants.OU_AT + "=attributeTypes" );
@@ -440,7 +440,7 @@
         {
             ObjectClass oc = ( ObjectClass ) ii.next();
             String schemaName = objectClassRegistry.getSchemaName( oc.getOid() );
-            Schema schema = ( Schema ) registries.getLoadedSchemas().get( schemaName );
+            Schema schema = registries.getLoadedSchemas().get( schemaName );
             getLog().info( "\t\t o [" + schemaName + "] - " + getNameOrNumericoid( oc ) );
             LdapDN dn = checkCreateSchema( schemaName );
             dn.add( SchemaConstants.OU_AT + "=objectClasses" );
@@ -468,7 +468,7 @@
         {
             MatchingRule mr = ( MatchingRule ) ii.next();
             String schemaName = matchingRuleRegistry.getSchemaName( mr.getOid() );
-            Schema schema = ( Schema ) registries.getLoadedSchemas().get( schemaName );
+            Schema schema = registries.getLoadedSchemas().get( schemaName );
             getLog().info( "\t\t o [" + schemaName + "] - " + getNameOrNumericoid( mr ) );
             LdapDN dn = checkCreateSchema( schemaName );
             dn.add( SchemaConstants.OU_AT + "=matchingRules" );
@@ -496,7 +496,7 @@
         {
             String oid = ( String ) ii.next();
             String schemaName = comparatorRegistry.getSchemaName( oid );
-            Schema schema = ( Schema ) registries.getLoadedSchemas().get( schemaName );
+            Schema schema = registries.getLoadedSchemas().get( schemaName );
             getLog().info( "\t\t o [" + schemaName + "] - " + oid );
             LdapDN dn = checkCreateSchema( schemaName );
             dn.add( SchemaConstants.OU_AT + "=comparators" );
@@ -524,7 +524,7 @@
         {
             String oid = ( String ) ii.next();
             String schemaName = normalizerRegistry.getSchemaName( oid );
-            Schema schema = ( Schema ) registries.getLoadedSchemas().get( schemaName );
+            Schema schema = registries.getLoadedSchemas().get( schemaName );
             getLog().info( "\t\t o [" + schemaName + "] - " + oid );
             LdapDN dn = checkCreateSchema( schemaName );
             dn.add( SchemaConstants.OU_AT + "=normalizers" );
@@ -553,7 +553,7 @@
             Syntax syntax = ( Syntax ) ii.next();
             getLog().info( "\t\t o [" + syntax.getSchema() + "] - " + getNameOrNumericoid(
syntax ) );
             LdapDN dn = checkCreateSchema( syntax.getSchema() );
-            Schema schema = ( Schema ) registries.getLoadedSchemas().get( syntax.getSchema()
);
+            Schema schema = registries.getLoadedSchemas().get( syntax.getSchema() );
             dn.add( SchemaConstants.OU_AT + "=syntaxes" );
             dn.normalize( registries.getAttributeTypeRegistry().getNormalizerMapping() );
             checkCreateContainer( dn );
@@ -579,7 +579,7 @@
         {
             SyntaxChecker syntaxChecker = ( SyntaxChecker ) ii.next();
             String schemaName = syntaxCheckerRegistry.getSchemaName( syntaxChecker.getSyntaxOid()
);
-            Schema schema = ( Schema ) registries.getLoadedSchemas().get( schemaName );
+            Schema schema = registries.getLoadedSchemas().get( schemaName );
             getLog().info( "\t\t o [" + schemaName + "] - " + syntaxChecker.getSyntaxOid()
);
             LdapDN dn = checkCreateSchema( schemaName );
             dn.add( SchemaConstants.OU_AT + "=syntaxCheckers" );



Mime
View raw message