git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1410583 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-11-16 21:44:59 +00:00
parent 543935b6e9
commit 6f0a3355c4
1 changed files with 8 additions and 17 deletions

View File

@ -96,7 +96,6 @@ public final class MarshallingSupport {
} }
return rc; return rc;
} }
} }
public static void marshalPrimitiveList(List list, DataOutputStream out) throws IOException { public static void marshalPrimitiveList(List list, DataOutputStream out) throws IOException {
@ -183,25 +182,17 @@ public final class MarshallingSupport {
in.readFully((byte[])value); in.readFully((byte[])value);
break; break;
case STRING_TYPE: { case STRING_TYPE: {
if (true) {
int length = in.readUnsignedShort(); int length = in.readUnsignedShort();
byte data[] = new byte[length]; byte data[] = new byte[length];
in.readFully(data); in.readFully(data);
value = new UTF8Buffer(data); value = new UTF8Buffer(data);
} else {
value = in.readUTF();
}
break; break;
} }
case BIG_STRING_TYPE: { case BIG_STRING_TYPE: {
if (true) {
int length = in.readInt(); int length = in.readInt();
byte data[] = new byte[length]; byte data[] = new byte[length];
in.readFully(data); in.readFully(data);
value = new UTF8Buffer(data); value = new UTF8Buffer(data);
} else {
value = readUTF8(in);
}
break; break;
} }
case MAP_TYPE: case MAP_TYPE: