From 21afb51be6883c372d56b691bb092fe5136995c8 Mon Sep 17 00:00:00 2001 From: slaws Date: Wed, 22 Feb 2012 12:48:51 +0000 Subject: TUSCANY-3418 - make all the wire format models implement equals() consistently git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1292261 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/jms/wireformat/WireFormatJMSBytes.java | 5 +++++ .../tuscany/sca/binding/jms/wireformat/WireFormatJMSBytesXML.java | 5 +++++ .../tuscany/sca/binding/jms/wireformat/WireFormatJMSObject.java | 5 +++++ .../apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSText.java | 5 +++++ 4 files changed, 20 insertions(+) (limited to 'sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache') diff --git a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytes.java b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytes.java index a16cdc9c4f..ffc0d6fbeb 100644 --- a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytes.java +++ b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/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-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytesXML.java b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytesXML.java index 4f7a91657f..ce404fb5a7 100644 --- a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytesXML.java +++ b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/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-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSObject.java b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSObject.java index e043139010..75ff07d85b 100644 --- a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSObject.java +++ b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/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-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSText.java b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSText.java index 4f728cea92..8043ab70e0 100644 --- a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSText.java +++ b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/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(); + } } -- cgit v1.2.3