directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r542342 - /directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/
Date Mon, 28 May 2007 22:05:07 GMT
Author: erodriguez
Date: Mon May 28 15:05:06 2007
New Revision: 542342

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

Modified:
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultComparatorRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultDitStructureRuleRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultMatchingRuleRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNameFormRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNormalizerRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultObjectClassRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java?view=diff&rev=542342&r1=542341&r2=542342
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultAttributeTypeRegistry.java
Mon May 28 15:05:06 2007
@@ -161,7 +161,7 @@
             throw e;
         }
 
-        AttributeType attributeType = ( AttributeType ) byOid.get( id );
+        AttributeType attributeType = byOid.get( id );
         
         if ( IS_DEBUG )
         {
@@ -248,7 +248,7 @@
     public Iterator descendants( String ancestorId ) throws NamingException
     {
         String oid = oidRegistry.getOid( ancestorId );
-        Set descendants = ( Set ) oidToDescendantSet.get( oid );
+        Set descendants = oidToDescendantSet.get( oid );
         if ( descendants == null )
         {
             return Collections.EMPTY_SET.iterator();
@@ -260,7 +260,7 @@
     public boolean hasDescendants( String ancestorId ) throws NamingException
     {
         String oid = oidRegistry.getOid( ancestorId );
-        Set descendants = ( Set ) oidToDescendantSet.get( oid );
+        Set descendants = oidToDescendantSet.get( oid );
         if ( descendants == null )
         {
             return false;

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultComparatorRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultComparatorRegistry.java?view=diff&rev=542342&r1=542341&r2=542342
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultComparatorRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultComparatorRegistry.java
Mon May 28 15:05:06 2007
@@ -97,7 +97,7 @@
             return "other";
         }
         
-        return ( String ) desc.getExtensions().get( "X-SCHEMA" ).get( 0 );
+        return desc.getExtensions().get( "X-SCHEMA" ).get( 0 );
     }
     
 
@@ -105,7 +105,7 @@
     {
         if ( byOid.containsKey( oid ) )
         {
-            Comparator c = ( Comparator ) byOid.get( oid );
+            Comparator c = byOid.get( oid );
             if ( log.isDebugEnabled() )
             {
                 log.debug( "looked up comparator with OID: " + oid );

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultDitStructureRuleRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultDitStructureRuleRegistry.java?view=diff&rev=542342&r1=542341&r2=542342
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultDitStructureRuleRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultDitStructureRuleRegistry.java
Mon May 28 15:05:06 2007
@@ -100,7 +100,7 @@
             throw e;
         }
 
-        DITStructureRule dITStructureRule = ( DITStructureRule ) byOid.get( id );
+        DITStructureRule dITStructureRule = byOid.get( id );
         if ( log.isDebugEnabled() )
         {
             log.debug( "lookup with id '" + id + "' for dITStructureRule: " + dITStructureRule
);

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultMatchingRuleRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultMatchingRuleRegistry.java?view=diff&rev=542342&r1=542341&r2=542342
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultMatchingRuleRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultMatchingRuleRegistry.java
Mon May 28 15:05:06 2007
@@ -78,7 +78,7 @@
 
         if ( byOid.containsKey( id ) )
         {
-            MatchingRule matchingRule = ( MatchingRule ) byOid.get( id );
+            MatchingRule matchingRule = byOid.get( id );
             if ( log.isDebugEnabled() )
             {
                 log.debug( "lookup with id '"+id+"' of matchingRule: " + matchingRule );

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNameFormRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNameFormRegistry.java?view=diff&rev=542342&r1=542341&r2=542342
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNameFormRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNameFormRegistry.java
Mon May 28 15:05:06 2007
@@ -93,7 +93,7 @@
             throw e;
         }
 
-        NameForm nameForm = ( NameForm ) byOid.get( id );
+        NameForm nameForm = byOid.get( id );
         if ( log.isDebugEnabled() )
         {
             log.debug( "lookup with id '"+ id + "' of nameForm: " + nameForm );

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNormalizerRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNormalizerRegistry.java?view=diff&rev=542342&r1=542341&r2=542342
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNormalizerRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultNormalizerRegistry.java
Mon May 28 15:05:06 2007
@@ -96,7 +96,7 @@
             throw e;
         }
 
-        Normalizer normalizer = ( Normalizer ) byOid.get( oid );
+        Normalizer normalizer = byOid.get( oid );
         if ( log.isDebugEnabled() )
         {
             log.debug( "registered normalizer with oid: " + oid );
@@ -136,7 +136,7 @@
             return "other";
         }
         
-        return ( String ) desc.getExtensions().get( "X-SCHEMA" ).get( 0 );
+        return desc.getExtensions().get( "X-SCHEMA" ).get( 0 );
     }
     
 

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultObjectClassRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultObjectClassRegistry.java?view=diff&rev=542342&r1=542341&r2=542342
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultObjectClassRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultObjectClassRegistry.java
Mon May 28 15:05:06 2007
@@ -107,7 +107,7 @@
             throw e;
         }
 
-        ObjectClass objectClass = ( ObjectClass ) byOid.get( id );
+        ObjectClass objectClass = byOid.get( id );
         
         if ( IS_DEBUG )
         {

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java?view=diff&rev=542342&r1=542341&r2=542342
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultOidRegistry.java
Mon May 28 15:05:06 2007
@@ -77,7 +77,7 @@
         // If name is mapped to a OID already return OID
         if ( byName.containsKey( name ) )
         {
-            String oid = ( String ) byName.get( name );
+            String oid = byName.get( name );
             
             if ( IS_DEBUG )
             {
@@ -96,7 +96,7 @@
         String lowerCase = name.trim().toLowerCase();
         if ( !name.equals( lowerCase ) && byName.containsKey( lowerCase ) )
         {
-            String oid = ( String ) byName.get( lowerCase );
+            String oid = byName.get( lowerCase );
             
             if ( IS_DEBUG )
             {



Mime
View raw message