jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1538909 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/JsonSerializer.java
Date Tue, 05 Nov 2013 09:07:07 GMT
Author: mreutegg
Date: Tue Nov  5 09:07:06 2013
New Revision: 1538909

URL: http://svn.apache.org/r1538909
Log:
OAK-1080: MongoMK: improved concurrency
- Avoid repeated initialization of default JsonFilter

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/JsonSerializer.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/JsonSerializer.java?rev=1538909&r1=1538908&r2=1538909&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/JsonSerializer.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/JsonSerializer.java
Tue Nov  5 09:07:06 2013
@@ -37,6 +37,9 @@ import org.apache.jackrabbit.oak.spi.sta
  */
 public class JsonSerializer {
 
+    private static final JsonFilter DEFAULT_FILTER =
+            new JsonFilter("{\"properties\":[\"*\", \"-:childNodeCount\"]}");
+
     private final JsopBuilder json;
 
     private final int depth;
@@ -69,8 +72,7 @@ public class JsonSerializer {
 
     public JsonSerializer(JsopBuilder json, BlobSerializer blobs) {
         this(json, Integer.MAX_VALUE, 0, Integer.MAX_VALUE,
-                new JsonFilter("{\"properties\":[\"*\", \"-:childNodeCount\"]}"),
-                blobs);
+                DEFAULT_FILTER, blobs);
     }
 
     protected JsonSerializer getChildSerializer() {



Mime
View raw message