Author: rajith
Date: Thu Jan 26 14:38:51 2012
New Revision: 1236196

URL: http://svn.apache.org/viewvc?rev=1236196&view=rev
Log:
QPID-3783 The AddressParser will now set the subject to Null if it equals to 
None.
The only drawback is that if somebody wants to use a subject called "None" 
which is hard to imagine :)
However even if they want to use such a subject it will not be easy to 
distinguish due to the fact we print null subjects as None.

Modified:
    
qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java

Modified: 
qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java?rev=1236196&r1=1236195&r2=1236196&view=diff
==============================================================================
--- 
qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java
 (original)
+++ 
qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java
 Thu Jan 26 14:38:51 2012
@@ -257,6 +257,10 @@ public class AddressParser extends Parse
         {
             eat(SLASH);
             subject = toks2str(eat_until(SEMI, EOF));
+            if ("None".equals(subject))
+            {
+               subject = null;
+            }
         }
         else
         {



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to