Author: rajith
Date: Tue Mar 26 21:29:45 2013
New Revision: 1461324

URL: http://svn.apache.org/r1461324
Log:
QPID-3769 Added a check to see if the subject is equal.

Modified:
    
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java

Modified: 
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java?rev=1461324&r1=1461323&r2=1461324&view=diff
==============================================================================
--- 
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java
 (original)
+++ 
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java
 Tue Mar 26 21:29:45 2013
@@ -653,6 +653,17 @@ public abstract class AMQDestination imp
             {
                 return false;
             }
+            if (_subject == null)
+            {
+                if (that.getSubject() != null)
+                {
+                    return false;
+                }
+            }
+            else if (!_subject.equals(that.getSubject()))
+            {
+                return false;
+            }
         }
         else
         {
@@ -679,6 +690,10 @@ public abstract class AMQDestination imp
         if (_destSyntax == DestSyntax.ADDR)
         {
             result = 29 * _addressType + _name.hashCode();
+            if (_subject != null)
+            {
+                result = 29 * result + _subject.hashCode();
+            }
         }
         else
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to