incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1419297 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java
Date Mon, 10 Dec 2012 09:50:15 GMT
Author: fmeschbe
Date: Mon Dec 10 09:50:14 2012
New Revision: 1419297

URL: http://svn.apache.org/viewvc?rev=1419297&view=rev
Log:
SLING-2697 Check simple name against zero length instead of null to use fully qualified names
(getSimpleName() is never null but may is an empty string for anonymous classes)

Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java?rev=1419297&r1=1419296&r2=1419297&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java
(original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java
Mon Dec 10 09:50:14 2012
@@ -162,7 +162,7 @@ public class ResourceWrapper implements 
     @Override
     public String toString() {
         final String className;
-        if ( getClass().getSimpleName() == null ) {
+        if (getClass().getSimpleName().length() == 0) {
             className = getClass().getName();
         } else {
             className = getClass().getSimpleName();



Mime
View raw message