mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3422 - bitarray serialization
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1151857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b0f9afa1b3
commit
1aafa4fa1c
|
@ -134,7 +134,7 @@ public class BitArray implements Serializable {
|
||||||
public void writeToStream(DataOutput dataOut) throws IOException {
|
public void writeToStream(DataOutput dataOut) throws IOException {
|
||||||
dataOut.writeByte(length);
|
dataOut.writeByte(length);
|
||||||
if (length <= BYTE_SIZE) {
|
if (length <= BYTE_SIZE) {
|
||||||
dataOut.writeByte((int)bits);
|
dataOut.writeByte((byte)bits);
|
||||||
} else if (length <= SHORT_SIZE) {
|
} else if (length <= SHORT_SIZE) {
|
||||||
dataOut.writeShort((short)bits);
|
dataOut.writeShort((short)bits);
|
||||||
} else if (length <= INT_SIZE) {
|
} else if (length <= INT_SIZE) {
|
||||||
|
|
Loading…
Reference in New Issue