diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 09:46:37 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 09:46:37 +0000 |
commit | 17830c6147d74d8d9165e3deee0eac6c2b82aa46 (patch) | |
tree | dcf334b3fe2077df8bb20eb866a75b1be5839d67 /sca-java-1.x/branches/sca-java-1.6/modules | |
parent | 2602773c8acc38d126c0c402d72bea40fa868797 (diff) |
TUSCANY-3418 add missing equals operator to JMS wire formats so that interceptors are not injected twice.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897821 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches/sca-java-1.6/modules')
4 files changed, 20 insertions, 0 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/WireFormatJMSBytes.java b/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/WireFormatJMSBytes.java index 84d1a2740f..93e9c80cdd 100644 --- a/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/WireFormatJMSBytes.java +++ b/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/WireFormatJMSBytes.java @@ -42,4 +42,9 @@ public class WireFormatJMSBytes implements WireFormat { public void setUnresolved(boolean unresolved) { } + + @Override + public boolean equals(Object obj) { + return this.getClass() == obj.getClass(); + } } diff --git a/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/WireFormatJMSBytesXML.java b/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/WireFormatJMSBytesXML.java index 668171fc9f..8dcf538ffb 100644 --- a/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/WireFormatJMSBytesXML.java +++ b/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/WireFormatJMSBytesXML.java @@ -37,4 +37,9 @@ public class WireFormatJMSBytesXML implements WireFormat { public void setUnresolved(boolean unresolved) { } + + @Override + public boolean equals(Object obj) { + return this.getClass() == obj.getClass(); + } } diff --git a/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/WireFormatJMSObject.java b/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/WireFormatJMSObject.java index a485d2b5ec..385eab7117 100644 --- a/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/WireFormatJMSObject.java +++ b/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/WireFormatJMSObject.java @@ -54,4 +54,9 @@ public class WireFormatJMSObject implements WireFormat { public boolean isWrappedSingleInput() { return wrappedSingleInput; } + + @Override + public boolean equals(Object obj) { + return this.getClass() == obj.getClass(); + } } diff --git a/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/WireFormatJMSText.java b/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/WireFormatJMSText.java index fff33df1f4..47b60c33e5 100644 --- a/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/WireFormatJMSText.java +++ b/sca-java-1.x/branches/sca-java-1.6/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/WireFormatJMSText.java @@ -42,4 +42,9 @@ public class WireFormatJMSText implements WireFormat { public void setUnresolved(boolean unresolved) { } + + @Override + public boolean equals(Object obj) { + return this.getClass() == obj.getClass(); + } } |