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
commit994fb411f269fe86adb7c1c99d21f7d18b45eb68 (patch)
tree2ab8ed69efa22efd864f98a7b552c5d2a2d9fc4d /java
parent11653076b39b1502257e1631454bb1b0cb2ffbec (diff)
downloadqpid-python-994fb411f269fe86adb7c1c99d21f7d18b45eb68.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
{