incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject svn commit: r1520305 - /sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrResult.java
Date Thu, 05 Sep 2013 13:40:11 GMT
Author: rombert
Date: Thu Sep  5 13:40:11 2013
New Revision: 1520305

URL: http://svn.apache.org/r1520305
Log:
SLING-2989 - [Tooling] integrate with vlt once available

Meaningful toString() for JcrResult

Modified:
    sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrResult.java

Modified: sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrResult.java
URL: http://svn.apache.org/viewvc/sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrResult.java?rev=1520305&r1=1520304&r2=1520305&view=diff
==============================================================================
--- sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrResult.java
(original)
+++ sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrResult.java
Thu Sep  5 13:40:11 2013
@@ -56,4 +56,19 @@ public class JcrResult<T> implements Res
         return success;
     }
 
+    @Override
+    public String toString() {
+        StringBuilder out = new StringBuilder();
+        out.append(getClass().getSimpleName()).append("[ success:").append(success);
+
+        if (exception != null)
+            out.append(", exception: ").append(exception.getClass().getName()).append(" -
")
+                    .append(exception.getMessage());
+
+        out.append(']');
+
+        return out.toString();
+
+    }
+
 }



Mime
View raw message