jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1133750 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Date Thu, 09 Jun 2011 09:39:51 GMT
Author: thomasm
Date: Thu Jun  9 09:39:50 2011
New Revision: 1133750

URL: http://svn.apache.org/viewvc?rev=1133750&view=rev
Log:
Support arrays.

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=1133750&r1=1133749&r2=1133750&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
Thu Jun  9 09:39:50 2011
@@ -469,7 +469,10 @@ public class MicroKernelImpl implements 
             JsopBuilder buff = new JsopBuilder();
             buff.beginArray();
             for (Object o : this) {
-                buff.addValue(JsopTokenizer.encode(o.toString()));
+                if (o instanceof String) {
+                    o = JsopTokenizer.encode(o.toString());
+                }
+                buff.addValue(o.toString());
             }
             buff.endArray();
             return buff.toString();



Mime
View raw message