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