sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r613897 - /incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java
Date Mon, 21 Jan 2008 14:21:36 GMT
Author: bdelacretaz
Date: Mon Jan 21 06:21:35 2008
New Revision: 613897

URL: http://svn.apache.org/viewvc?rev=613897&view=rev
Log:
toString added for easier debugging

Modified:
    incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java

Modified: incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java?rev=613897&r1=613896&r2=613897&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java
(original)
+++ incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/Mapping.java
Mon Jan 21 06:21:35 2008
@@ -122,6 +122,12 @@
                 ? Mapping.INBOUND
                 : ("<".equals(parts[1]) ? Mapping.OUTBOUND : Mapping.BOTH);
     }
+    
+    @Override
+    public String toString() {
+        return "Mapping (from=" + from + ", to=" + to + ", direction=" + direction 
+            + ", lengths=" + fromLength + "/" + toLength;
+    }
 
     /**
      * Replaces the prefix <em>to</em> by the new prefix <em>from</em>,
if



Mime
View raw message