summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2012-01-26 14:38:51 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2012-01-26 14:38:51 +0000
commit9add9164565aaf36252c98ea4f3e82672e40e036 (patch)
tree2ab8ed69efa22efd864f98a7b552c5d2a2d9fc4d /java
parent5a6879d97e64c05b0ea66b090cf0532fe498aaf7 (diff)
downloadqpid-python-9add9164565aaf36252c98ea4f3e82672e40e036.tar.gz
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. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1236196 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java b/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java
index 7b31436ba0..9fb30f9b8a 100644
--- a/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java
+++ b/java/common/src/main/java/org/apache/qpid/messaging/util/AddressParser.java
@@ -257,6 +257,10 @@ public class AddressParser extends Parser
{
eat(SLASH);
subject = toks2str(eat_until(SEMI, EOF));
+ if ("None".equals(subject))
+ {
+ subject = null;
+ }
}
else
{