jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1134337 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Date Fri, 10 Jun 2011 15:13:57 GMT
Author: thomasm
Date: Fri Jun 10 15:13:55 2011
New Revision: 1134337

URL: http://svn.apache.org/viewvc?rev=1134337&view=rev
Log:
Simplify building JSOP, and correctly encode keys and values.

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java?rev=1134337&r1=1134336&r2=1134337&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Fri Jun 10 15:13:55 2011
@@ -225,9 +225,9 @@ public class MicroKernelImpl implements 
         }
 
         try {
-            JsopBuilder buf = new JsopBuilder();
+            JsopBuilder buf = new JsopBuilder().object();
             toJson(rep.getNode(revisionId, path), PathUtil.getName(path), depth, true, buf);
-            return buf.toString();
+            return buf.endObject().toString();
         } catch (Exception e) {
             throw new MicroKernelException(e);
         }



Mime
View raw message