jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r691296 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core: ItemImpl.java PropertyImpl.java
Date Tue, 02 Sep 2008 16:16:13 GMT
Author: jukka
Date: Tue Sep  2 09:16:05 2008
New Revision: 691296

URL: http://svn.apache.org/viewvc?rev=691296&view=rev
Log:
JCR-1538: [patch] add toString for NodeImpl and PropertyImpl

Moved the toString() implementation from PropertyImpl to ItemImpl to
apply the same behavior also to nodes.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java?rev=691296&r1=691295&r2=691296&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
Tue Sep  2 09:16:05 2008
@@ -1318,4 +1318,17 @@
         }
         return false;
     }
+
+    //--------------------------------------------------------------< Object >
+
+    /**
+     * Returns the ({@link #safeGetJCRPath() safe}) path of this item
+     * for use in diagnostic output.
+     *
+     * @return item path
+     */
+    public String toString() {
+        return safeGetJCRPath();
+    }
+
 }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java?rev=691296&r1=691295&r2=691296&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
Tue Sep  2 09:16:05 2008
@@ -765,15 +765,4 @@
         return (Node) itemMgr.getItem(getPropertyState().getParentId());
     }
 
-    //--------------------------------------------------------------< Object >
-
-    /**
-     * Returns the (safe) path of this property.
-     *
-     * @return property path
-     */
-    public String toString() {
-        return safeGetJCRPath();
-    }
-
 }



Mime
View raw message