jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1226285 - /jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java
Date Sun, 01 Jan 2012 18:34:18 GMT
Author: mduerig
Date: Sun Jan  1 18:34:18 2012
New Revision: 1226285

URL: http://svn.apache.org/viewvc?rev=1226285&view=rev
Log:
Microkernel based prototype of JCR implementation (WIP)
- better toString

Modified:
    jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java?rev=1226285&r1=1226284&r2=1226285&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/state/ChangeTree.java
Sun Jan  1 18:34:18 2012
@@ -869,12 +869,8 @@ public class ChangeTree {
 
         @Override
         public String toString() {
-            if (isMoved()) {
-                return "MovedTo[" + movedTo + ']';
-            }
-            else {
-                return "Removed[" + getPath() + ']';
-            }
+            return "Removed[" + getPath() + ']'
+                    + (isMoved() ? "to " + movedTo : "");
         }
 
     }



Mime
View raw message