tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r801150 - /tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
Date Wed, 05 Aug 2009 12:01:22 GMT
Author: slaws
Date: Wed Aug  5 12:01:22 2009
New Revision: 801150

URL: http://svn.apache.org/viewvc?rev=801150&view=rev
Log:
Provide mechanism of printing out the endpoint without the hash code to make test comparison
easy

Modified:
    tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java

Modified: tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java?rev=801150&r1=801149&r2=801150&view=diff
==============================================================================
--- tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
(original)
+++ tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
Wed Aug  5 12:01:22 2009
@@ -141,9 +141,9 @@
     public void setExtensionType(ExtensionType type) {
         throw new UnsupportedOperationException();
     }
-
-    public String toString() {
-        String output = "Endpoint(@" + this.hashCode() + "): ";
+    
+    public String toStringWithoutHash() {
+        String output = "Endpoint: ";
         
         if (getURI() != null) {
             output += " URI = " + getURI();
@@ -156,6 +156,10 @@
         return output;
     }
 
+    public String toString() {
+        return "(@" + this.hashCode() + ")" + toStringWithoutHash();
+    }
+
     public String getURI() {
         if (uri == null) {
             if (component != null && service != null && binding != null)
{



Mime
View raw message