directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r541832 - in /directory/apacheds/trunk: protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/shared/interceptors/ schema-registries/src/main/java/org/apache/directory/server/schema/registries/ server-tools/src/main/java/org/...
Date Sat, 26 May 2007 00:52:54 GMT
Author: erodriguez
Date: Fri May 25 17:52:53 2007
New Revision: 541832

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

Modified:
    directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/shared/interceptors/KeyDerivationService.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxCheckerRegistry.java
    directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxRegistry.java
    directory/apacheds/trunk/server-tools/src/main/java/org/apache/directory/server/tools/commands/dumpcmd/DumpCommandExecutor.java

Modified: directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/shared/interceptors/KeyDerivationService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/shared/interceptors/KeyDerivationService.java?view=diff&rev=541832&r1=541831&r2=541832
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/shared/interceptors/KeyDerivationService.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/shared/interceptors/KeyDerivationService.java
Fri May 25 17:52:53 2007
@@ -257,7 +257,7 @@
                 newModsList.add( mods[ii] );
             }
 
-            mods = ( ModificationItemImpl[] ) newModsList.toArray( mods );
+            mods = newModsList.toArray( mods );
 
             modContext.setModItems( mods );
         }

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxCheckerRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxCheckerRegistry.java?view=diff&rev=541832&r1=541831&r2=541832
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxCheckerRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxCheckerRegistry.java
Fri May 25 17:52:53 2007
@@ -95,7 +95,7 @@
             throw e;
         }
 
-        SyntaxChecker syntaxChecker = ( SyntaxChecker ) byOid.get( oid );
+        SyntaxChecker syntaxChecker = byOid.get( oid );
         if ( log.isDebugEnabled() )
         {
             log.debug( "looked up syntaxChecher with OID " + oid );

Modified: directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxRegistry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxRegistry.java?view=diff&rev=541832&r1=541831&r2=541832
==============================================================================
--- directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxRegistry.java
(original)
+++ directory/apacheds/trunk/schema-registries/src/main/java/org/apache/directory/server/schema/registries/DefaultSyntaxRegistry.java
Fri May 25 17:52:53 2007
@@ -77,7 +77,7 @@
 
         if ( byOid.containsKey( id ) )
         {
-            Syntax syntax = ( Syntax ) byOid.get( id );
+            Syntax syntax = byOid.get( id );
             
             if ( IS_DEBUG )
             {

Modified: directory/apacheds/trunk/server-tools/src/main/java/org/apache/directory/server/tools/commands/dumpcmd/DumpCommandExecutor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-tools/src/main/java/org/apache/directory/server/tools/commands/dumpcmd/DumpCommandExecutor.java?view=diff&rev=541832&r1=541831&r2=541832
==============================================================================
--- directory/apacheds/trunk/server-tools/src/main/java/org/apache/directory/server/tools/commands/dumpcmd/DumpCommandExecutor.java
(original)
+++ directory/apacheds/trunk/server-tools/src/main/java/org/apache/directory/server/tools/commands/dumpcmd/DumpCommandExecutor.java
Fri May 25 17:52:53 2007
@@ -274,21 +274,21 @@
         }
 
         // OutputListener param
-        ToolCommandListener outputListener = ( ToolCommandListener ) parameters.get( OUTPUTLISTENER_PARAMETER
);
+        ToolCommandListener outputListener = parameters.get( OUTPUTLISTENER_PARAMETER );
         if ( outputListener != null )
         {
             this.outputListener = outputListener;
         }
 
         // ErrorListener param
-        ToolCommandListener errorListener = ( ToolCommandListener ) parameters.get( ERRORLISTENER_PARAMETER
);
+        ToolCommandListener errorListener = parameters.get( ERRORLISTENER_PARAMETER );
         if ( errorListener != null )
         {
             this.errorListener = errorListener;
         }
 
         // ExceptionListener param
-        ToolCommandListener exceptionListener = ( ToolCommandListener ) parameters.get( EXCEPTIONLISTENER_PARAMETER
);
+        ToolCommandListener exceptionListener = parameters.get( EXCEPTIONLISTENER_PARAMETER
);
         if ( exceptionListener != null )
         {
             this.exceptionListener = exceptionListener;
@@ -379,7 +379,7 @@
         }
         for ( int ii = 0; ii < toRemove.size(); ii++ )
         {
-            String id = ( String ) toRemove.get( ii );
+            String id = toRemove.get( ii );
             entry.remove( id );
             if ( isDebugEnabled() )
             {



Mime
View raw message