diff options
author | Robert Godfrey <rgodfrey@apache.org> | 2014-10-12 15:43:40 +0000 |
---|---|---|
committer | Robert Godfrey <rgodfrey@apache.org> | 2014-10-12 15:43:40 +0000 |
commit | b71808f6e2d65056b3cded958012ad1d96cd7391 (patch) | |
tree | be93be32300eccdf9fdccfc2fcdb55d7f0f9a39b /java/common | |
parent | ce16072eb7da6d02e7224380459a27a19770a5d5 (diff) | |
download | qpid-python-b71808f6e2d65056b3cded958012ad1d96cd7391.tar.gz |
Move connection methods into AMQProtocolEngine
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-6125-ProtocolRefactoring@1631192 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common')
-rw-r--r-- | java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java b/java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java index 17735f5c9c..765d742789 100644 --- a/java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java +++ b/java/common/src/main/java/org/apache/qpid/framing/AMQShortString.java @@ -389,6 +389,17 @@ public final class AMQShortString implements CharSequence, Comparable<AMQShortSt { return new CharSubSequence(start + _sequenceOffset, end + _sequenceOffset); } + + @Override + public String toString() + { + char[] chars = new char[length()]; + for(int i = 0; i < length(); i++) + { + chars[i] = charAt(i); + } + return new String(chars); + } } public char[] asChars() |