jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1354383 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryValueFactory.java
Date Wed, 27 Jun 2012 09:24:51 GMT
Author: jukka
Date: Wed Jun 27 09:24:50 2012
New Revision: 1354383

URL: http://svn.apache.org/viewvc?rev=1354383&view=rev
Log:
OAK-152: More efficient CoreValues

Fix boolean value creation

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryValueFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryValueFactory.java?rev=1354383&r1=1354382&r2=1354383&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryValueFactory.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryValueFactory.java
Wed Jun 27 09:24:50 2012
@@ -84,8 +84,8 @@ public class MemoryValueFactory implemen
             } catch (UnsupportedEncodingException e) {
                 throw new IllegalStateException("UTF-8 is not supported", e);
             }
-        } else if (type == PropertyType.DECIMAL) {
-            return createValue(createValue(value).getDecimal());
+        } else if (type == PropertyType.BOOLEAN) {
+            return createValue(createValue(value).getBoolean());
         } else if (type == PropertyType.DECIMAL) {
             return createValue(createValue(value).getDecimal());
         } else if (type == PropertyType.DOUBLE) {



Mime
View raw message