jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1303951 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
Date Thu, 22 Mar 2012 18:17:38 GMT
Author: mduerig
Date: Thu Mar 22 18:17:38 2012
New Revision: 1303951

URL: http://svn.apache.org/viewvc?rev=1303951&view=rev
Log:
OAK-38: KernelNodeState should handle multi valued properties

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java?rev=1303951&r1=1303950&r2=1303951&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
Thu Mar 22 18:17:38 2012
@@ -215,10 +215,12 @@ class KernelNodeState extends AbstractNo
         String sep = "";
         while (!reader.matches(']')) {
             String v;
-            if (reader.matches(JsopTokenizer.NUMBER) ||
-                    reader.matches(JsopTokenizer.STRING)) {
+            if (reader.matches(JsopTokenizer.NUMBER)) {
                 v = reader.getToken();
-            } else if (reader.matches(JsopTokenizer.TRUE)) {
+            } else if (reader.matches(JsopTokenizer.STRING)) {
+                v = '"' + reader.getToken() + '"';
+            }
+            else if (reader.matches(JsopTokenizer.TRUE)) {
                 v = "true";
             } else if (reader.matches(JsopTokenizer.FALSE)) {
                 v = "false";



Mime
View raw message