jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1394962 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelBlob.java
Date Sat, 06 Oct 2012 08:36:35 GMT
Author: mduerig
Date: Sat Oct  6 08:36:34 2012
New Revision: 1394962

URL: http://svn.apache.org/viewvc?rev=1394962&view=rev
Log:
OAK-350: Unify PropertyState and CoreValue
- Faster equals for KernelBlob

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelBlob.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelBlob.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelBlob.java?rev=1394962&r1=1394961&r2=1394962&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelBlob.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelBlob.java
Sat Oct  6 08:36:34 2012
@@ -43,4 +43,18 @@ public class KernelBlob extends Abstract
     public long length() {
         return kernel.getLength(binaryID);
     }
+
+
+    @Override
+    public boolean equals(Object other) {
+        if (this == other) {
+            return true;
+        }
+        if (other instanceof KernelBlob) {
+            KernelBlob that = (KernelBlob) other;
+            return binaryID.equals(that.binaryID);
+        }
+
+        return super.equals(other);
+    }
 }



Mime
View raw message