jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1469261 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak: plugins/memory/MemoryNodeBuilder.java spi/state/AbstractChildNodeEntry.java
Date Thu, 18 Apr 2013 10:06:10 GMT
Author: mduerig
Date: Thu Apr 18 10:06:10 2013
New Revision: 1469261

URL: http://svn.apache.org/r1469261
Log:
OAK-741: Better toString() methods
better match json representation

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractChildNodeEntry.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java?rev=1469261&r1=1469260&r2=1469261&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java
Thu Apr 18 10:06:10 2013
@@ -506,7 +506,7 @@ public class MemoryNodeBuilder implement
      * so it's not a problem that we intentionally break the immutability
      * assumption of the {@link NodeState} interface.
      */
-    private class MutableNodeState extends AbstractNodeState {
+    private static class MutableNodeState extends AbstractNodeState {
 
         /**
          * The immutable base state.
@@ -584,7 +584,7 @@ public class MemoryNodeBuilder implement
             for (Entry<String, MutableNodeState> entry : nodes.entrySet()) {
                 builder.append(separator);
                 separator = ", ";
-                builder.append(entry);
+                builder.append(entry.getKey()).append(" : ").append(entry.getValue());
             }
             builder.append(" }");
             return builder.toString();

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractChildNodeEntry.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractChildNodeEntry.java?rev=1469261&r1=1469260&r2=1469261&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractChildNodeEntry.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractChildNodeEntry.java
Thu Apr 18 10:06:10 2013
@@ -34,7 +34,7 @@ public abstract class AbstractChildNodeE
         String name = getName();
         NodeState state = getNodeState();
         if (state.getChildNodeCount() == 0) {
-            return name + " = " + state;
+            return name + " : " + state;
         } else {
             return name + " = { ... }";
         }



Mime
View raw message