You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by st...@apache.org on 2015/09/17 09:21:04 UTC
svn commit: r1703507 -
/sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/TopologyViewImpl.java
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 + "]";
}
}