directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1064368 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators: AbandonRequestDecorator.java MessageDecorator.java
Date Thu, 27 Jan 2011 23:58:46 GMT
Author: akarasulu
Date: Thu Jan 27 23:58:45 2011
New Revision: 1064368

URL: http://svn.apache.org/viewvc?rev=1064368&view=rev
Log:
Fixed accidental use of AddRequest in AbandonRequestDecorator

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/MessageDecorator.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java?rev=1064368&r1=1064367&r2=1064368&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java
Thu Jan 27 23:58:45 2011
@@ -21,7 +21,6 @@ package org.apache.directory.shared.ldap
 
 
 import org.apache.directory.shared.ldap.model.message.AbandonRequest;
-import org.apache.directory.shared.ldap.model.message.AddRequest;
 
 
 /**
@@ -36,7 +35,7 @@ public class AbandonRequestDecorator ext
      *
      * @param decoratedMessage the decorated AddRequest
      */
-    public AbandonRequestDecorator( AddRequest decoratedMessage )
+    public AbandonRequestDecorator( AbandonRequest decoratedMessage )
     {
         super( decoratedMessage );
     }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/MessageDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/MessageDecorator.java?rev=1064368&r1=1064367&r2=1064368&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/MessageDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/MessageDecorator.java
Thu Jan 27 23:58:45 2011
@@ -23,6 +23,7 @@ package org.apache.directory.shared.ldap
 import java.util.Map;
 
 import org.apache.directory.shared.ldap.model.exception.MessageException;
+import org.apache.directory.shared.ldap.model.message.AbandonRequest;
 import org.apache.directory.shared.ldap.model.message.AddRequest;
 import org.apache.directory.shared.ldap.model.message.AddResponse;
 import org.apache.directory.shared.ldap.model.message.BindRequest;
@@ -73,7 +74,7 @@ public class MessageDecorator implements
         switch ( decoratedMessage.getType() )
         {
             case ABANDON_REQUEST:
-                return new MessageDecorator( decoratedMessage );
+                return new AbandonRequestDecorator( ( AbandonRequest ) decoratedMessage );
 
             case ADD_REQUEST:
                 return new AddRequestDecorator( ( AddRequest ) decoratedMessage );



Mime
View raw message