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 | ecbb521e43eb4f5e2041bfee32f5d0479b2a9aad (patch) | |
| tree | c0a2fd2f314c605d1030896e551345e290677ebe /qpid/java/client | |
| parent | e95ed85b8c9d71d7841ed18d477148b42d2feab3 (diff) | |
| download | qpid-python-ecbb521e43eb4f5e2041bfee32f5d0479b2a9aad.tar.gz | |
QPID-2522
Commiting patch submitted by Emmanuel Bourg.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@936568 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java b/qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java index 318e9fea4c..07c36888cb 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java +++ b/qpid/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); } |
