diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-04-21 23:46:30 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-04-21 23:46:30 +0000 |
| commit | efb0bd0b298dd086309fa409643737b4e3b8dab5 (patch) | |
| tree | ae27dd4b4a5c0adfe5e0f7365cdcd61e3a2f27eb /java/client | |
| parent | 3d24f2f61110789f1dd369b2120d0de04c01b39a (diff) | |
| download | qpid-python-efb0bd0b298dd086309fa409643737b4e3b8dab5.tar.gz | |
QPID-2522
Commiting patch submitted by Emmanuel Bourg.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936568 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client')
| -rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java b/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java index 318e9fea4c..07c36888cb 100644 --- a/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java +++ b/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java @@ -28,7 +28,6 @@ import javax.security.sasl.SaslClient; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -import org.apache.commons.lang.StringUtils; import org.apache.qpid.AMQException; import org.apache.qpid.client.AMQConnection; import org.apache.qpid.client.AMQSession; @@ -387,7 +386,7 @@ public class AMQProtocolSession implements AMQVersionAwareProtocolSession id = _queueId++; } // get rid of / and : and ; from address for spec conformance - String localAddress = StringUtils.replaceChars(_protocolHandler.getLocalAddress().toString(), "/;:", ""); + String localAddress = _protocolHandler.getLocalAddress().toString().replaceAll("[/;:]", ""); return new AMQShortString("tmp_" + localAddress + "_" + id); } |
