From db1de2e62e53a8967c75829accdbfc127d0f3acf Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Mon, 20 Feb 2012 23:21:27 +0000 Subject: QPID-2750: remove erroneous assert about 'LongString' lengths git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291518 13f79535-47bb-0310-9956-ffa450edef68 --- .../common/src/main/java/org/apache/qpid/framing/EncodingUtils.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'qpid/java/common/src') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java b/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java index 6d05c2fd3a..1ecd8a13b7 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java @@ -264,7 +264,6 @@ public class EncodingUtils public static void writeLongStringBytes(DataOutput buffer, String s) throws IOException { - assert (s == null) || (s.length() <= 0xFFFE); if (s != null) { int len = s.length(); @@ -286,7 +285,6 @@ public class EncodingUtils public static void writeLongStringBytes(DataOutput buffer, char[] s) throws IOException { - assert (s == null) || (s.length <= 0xFFFE); if (s != null) { int len = s.length; @@ -307,7 +305,6 @@ public class EncodingUtils public static void writeLongStringBytes(DataOutput buffer, byte[] bytes) throws IOException { - assert (bytes == null) || (bytes.length <= 0xFFFE); if (bytes != null) { writeUnsignedInteger(buffer, bytes.length); -- cgit v1.2.1