directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1060419 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncRequestValue/SyncRequestValueControl.java
Date Tue, 18 Jan 2011 15:35:04 GMT
Author: elecharny
Date: Tue Jan 18 15:35:03 2011
New Revision: 1060419

URL: http://svn.apache.org/viewvc?rev=1060419&view=rev
Log:
Forgot one Control

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncRequestValue/SyncRequestValueControl.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncRequestValue/SyncRequestValueControl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncRequestValue/SyncRequestValueControl.java?rev=1060419&r1=1060418&r2=1060419&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncRequestValue/SyncRequestValueControl.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncRequestValue/SyncRequestValueControl.java
Tue Jan 18 15:35:03 2011
@@ -20,6 +20,7 @@
 package org.apache.directory.shared.ldap.codec.controls.replication.syncRequestValue;
 
 import java.nio.ByteBuffer;
+import java.util.Arrays;
 
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
 import org.apache.directory.shared.asn1.ber.tlv.UniversalTag;
@@ -238,6 +239,26 @@ public class SyncRequestValueControl  ex
     }
 
 
+
+
+    /**
+     * @see Object#equals(Object)
+     */
+    public boolean equals( Object o )
+    {
+        if ( !super.equals( o ) )
+        {
+            return false;
+        }
+
+        SyncRequestValueControl otherControl = ( SyncRequestValueControl ) o;
+        
+        return ( mode == otherControl.mode ) && 
+            ( reloadHint == otherControl.reloadHint ) &&
+            ( Arrays.equals( cookie, otherControl.cookie ) );
+    }
+
+
     /**
      * @see Object#toString()
      */



Mime
View raw message