jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1396947 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java
Date Thu, 11 Oct 2012 08:44:26 GMT
Author: alexparvulescu
Date: Thu Oct 11 08:44:25 2012
New Revision: 1396947

URL: http://svn.apache.org/viewvc?rev=1396947&view=rev
Log:
OAK-350: Unify PropertyState and CoreValue
 - fixed equals in the case of BINARY values

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java?rev=1396947&r1=1396946&r2=1396947&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java
Thu Oct 11 08:44:25 2012
@@ -108,7 +108,8 @@ abstract class EmptyPropertyState implem
                 return false;
             }
             if (getType().tag() == PropertyType.BINARY) {
-                return getValue(BINARIES).equals(that.getValue(BINARIES));
+                return Iterables.elementsEqual(
+                        getValue(BINARIES), that.getValue(BINARIES));
             }
             else {
                 return Iterables.elementsEqual(



Mime
View raw message