From 994fb411f269fe86adb7c1c99d21f7d18b45eb68 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Thu, 26 Jan 2012 14:38:51 +0000 Subject: 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 --- .../src/main/java/org/apache/qpid/messaging/util/AddressParser.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'java') 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 { -- cgit v1.2.1