summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-07-30 16:02:22 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-07-30 16:02:22 +0000
commit5b12bc1283cfdd0f24f6d830b9dcd4292f92526a (patch)
treec39c4cc585bc35bb10285a7b2d48964ca1e38141 /java
parentf0814287496230267f39a28541ab87ff5af35b3c (diff)
Print out the hash code so that you can distinguish between endpoints and endpoint references with the same uri information in the promotion case
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@799345 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java4
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
index 61465bda94..71b73e37fd 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
@@ -143,8 +143,8 @@ public class EndpointImpl implements Endpoint {
}
public String toString() {
- String output = "Endpoint: ";
-
+ String output = "Endpoint(@" + this.hashCode() + "): ";
+
if (getURI() != null) {
output += " URI = " + getURI();
}
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
index f62aee1964..71f0a8f10a 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
@@ -165,7 +165,7 @@ public class EndpointReferenceImpl implements EndpointReference {
}
public String toString() {
- String output = "Endpoint Reference: ";
+ String output = "EndpointReference(@" + this.hashCode() + "): ";
if (getURI() != null) {
output += " URI = " + getURI();