sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1703507 - /sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/TopologyViewImpl.java
Date Thu, 17 Sep 2015 07:21:04 GMT
Author: stefanegli
Date: Thu Sep 17 07:21:02 2015
New Revision: 1703507

URL: http://svn.apache.org/r1703507
Log:
SLING-4761 : toString modified to ease test debugging for similar cases in the future : the
hashCode being overwritten makes it look like topologyViews are equal when looking at the
toString - even though they are not necessarily equal

Modified:
    sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/TopologyViewImpl.java

Modified: sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/TopologyViewImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/TopologyViewImpl.java?rev=1703507&r1=1703506&r2=1703507&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/TopologyViewImpl.java
(original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/TopologyViewImpl.java
Thu Sep 17 07:21:02 2015
@@ -234,7 +234,7 @@ public class TopologyViewImpl implements
 
     @Override
     public String toString() {
-        return "TopologyViewImpl [current=" + current + ", instances="
-                + instances + "]";
+        return "TopologyViewImpl [current=" + current + ", super.hashCode=" + super.hashCode()
+
+                ", instances=" + instances + "]";
     }
 }



Mime
View raw message