summaryrefslogtreecommitdiff
path: root/java/common
diff options
context:
space:
mode:
authorRobert Godfrey <rgodfrey@apache.org>2014-10-12 15:43:40 +0000
committerRobert Godfrey <rgodfrey@apache.org>2014-10-12 15:43:40 +0000
commitb71808f6e2d65056b3cded958012ad1d96cd7391 (patch)
treebe93be32300eccdf9fdccfc2fcdb55d7f0f9a39b /java/common
parentce16072eb7da6d02e7224380459a27a19770a5d5 (diff)
downloadqpid-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.java11
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()