jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1336218 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeState.java
Date Wed, 09 May 2012 14:19:00 GMT
Author: mduerig
Date: Wed May  9 14:19:00 2012
New Revision: 1336218

URL: http://svn.apache.org/viewvc?rev=1336218&view=rev
Log:
fix formatting in toString() (if Java only had folds...)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeState.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeState.java?rev=1336218&r1=1336217&r2=1336218&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeState.java
Wed May  9 14:19:00 2012
@@ -16,11 +16,11 @@
  */
 package org.apache.jackrabbit.oak.spi.state;
 
+import org.apache.jackrabbit.oak.api.PropertyState;
+
 import java.util.Iterator;
 import java.util.concurrent.atomic.AtomicBoolean;
 
-import org.apache.jackrabbit.oak.api.PropertyState;
-
 /**
  * Abstract base class for {@link NodeState} implementations.
  * This base class contains default implementations of the
@@ -85,13 +85,13 @@ public abstract class AbstractNodeState 
         StringBuilder builder = new StringBuilder("{");
         AtomicBoolean first = new AtomicBoolean(true);
         for (PropertyState property : getProperties()) {
-            if (first.getAndSet(false)) {
+            if (!first.getAndSet(false)) {
                 builder.append(',');
             }
             builder.append(' ').append(property);
         }
         for (ChildNodeEntry entry : getChildNodeEntries()) {
-            if (first.getAndSet(false)) {
+            if (!first.getAndSet(false)) {
                 builder.append(',');
             }
             builder.append(' ').append(entry);



Mime
View raw message