directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r575347 - in /directory/apacheds/trunk/mitosis/src: main/java/org/apache/directory/mitosis/service/ main/java/org/apache/directory/mitosis/service/protocol/handler/ test/java/org/apache/directory/mitosis/service/protocol/codec/
Date Thu, 13 Sep 2007 16:05:05 GMT
Author: elecharny
Date: Thu Sep 13 09:05:04 2007
New Revision: 575347

URL: http://svn.apache.org/viewvc?rev=575347&view=rev
Log:
Removed warnings by using generics, cleaning the antlr .g files from useless imports, removed
useless casts.

Modified:
    directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/ReplicationService.java
    directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java
    directory/apacheds/trunk/mitosis/src/test/java/org/apache/directory/mitosis/service/protocol/codec/AbstractMessageCodecTest.java

Modified: directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/ReplicationService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/ReplicationService.java?rev=575347&r1=575346&r2=575347&view=diff
==============================================================================
--- directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/ReplicationService.java
(original)
+++ directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/ReplicationService.java
Thu Sep 13 09:05:04 2007
@@ -408,7 +408,7 @@
     @Override
     public void move( NextInterceptor next, MoveOperationContext opContext ) throws NamingException
     {
-        MoveOperationContext moveOpContext = (MoveOperationContext) opContext;
+        MoveOperationContext moveOpContext = opContext;
         Operation op = operationFactory.newMove( moveOpContext.getDn(), moveOpContext.getParent()
);
         op.execute( nexus, store, attrRegistry );
     }
@@ -417,7 +417,7 @@
     @Override
     public void moveAndRename( NextInterceptor next, MoveAndRenameOperationContext opContext
) throws NamingException
     {
-        MoveAndRenameOperationContext moveAndRenameOpContext = (MoveAndRenameOperationContext)
opContext;
+        MoveAndRenameOperationContext moveAndRenameOpContext = opContext;
         Operation op = operationFactory.newMove( moveAndRenameOpContext.getDn(), moveAndRenameOpContext.getParent(),
moveAndRenameOpContext.getNewRdn(), moveAndRenameOpContext.getDelOldDn() );
         op.execute( nexus, store, attrRegistry );
     }

Modified: directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java?rev=575347&r1=575346&r2=575347&view=diff
==============================================================================
--- directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java
(original)
+++ directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/service/protocol/handler/ReplicationClientContextHandler.java
Thu Sep 13 09:05:04 2007
@@ -57,6 +57,7 @@
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.filter.PresenceNode;
 import org.apache.directory.shared.ldap.name.LdapDN;
+import org.apache.directory.shared.ldap.schema.OidNormalizer;
 import org.apache.mina.common.IdleStatus;
 import org.apache.mina.common.WriteFuture;
 import org.apache.mina.util.SessionLog;
@@ -363,7 +364,7 @@
 
             SessionLog.info( ctx.getSession(), "Sending entries under '" + contextName +
'\'' );
 
-            Map mapping = ctx.getServiceConfiguration().getRegistries().getAttributeTypeRegistry()
+            Map<String, OidNormalizer> mapping = ctx.getServiceConfiguration().getRegistries().getAttributeTypeRegistry()
                 .getNormalizerMapping();
             contextName.normalize( mapping );
             sendAllEntries( ctx, contextName );

Modified: directory/apacheds/trunk/mitosis/src/test/java/org/apache/directory/mitosis/service/protocol/codec/AbstractMessageCodecTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/mitosis/src/test/java/org/apache/directory/mitosis/service/protocol/codec/AbstractMessageCodecTest.java?rev=575347&r1=575346&r2=575347&view=diff
==============================================================================
--- directory/apacheds/trunk/mitosis/src/test/java/org/apache/directory/mitosis/service/protocol/codec/AbstractMessageCodecTest.java
(original)
+++ directory/apacheds/trunk/mitosis/src/test/java/org/apache/directory/mitosis/service/protocol/codec/AbstractMessageCodecTest.java
Thu Sep 13 09:05:04 2007
@@ -73,7 +73,7 @@
 
         };
         encoder.encode( null, message, encoderOut );
-        ByteBuffer buf = ( ByteBuffer ) encoderOut.getBufferQueue().poll();
+        ByteBuffer buf = encoderOut.getBufferQueue().poll();
 
         buf.mark();
         Assert.assertTrue( decoder.decodable( null, buf ) == MessageDecoder.OK );



Mime
View raw message