diff options
Diffstat (limited to 'java/sca/modules/assembly')
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(); |