activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1151857 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/BitArray.java
Date Thu, 28 Jul 2011 14:12:02 GMT
Author: dejanb
Date: Thu Jul 28 14:12:02 2011
New Revision: 1151857

URL: http://svn.apache.org/viewvc?rev=1151857&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3422 - bitarray serialization

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/BitArray.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/BitArray.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/BitArray.java?rev=1151857&r1=1151856&r2=1151857&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/BitArray.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/BitArray.java Thu
Jul 28 14:12:02 2011
@@ -134,7 +134,7 @@ public class BitArray implements Seriali
     public void writeToStream(DataOutput dataOut) throws IOException {
         dataOut.writeByte(length);
         if (length <= BYTE_SIZE) {
-            dataOut.writeByte((int)bits);
+            dataOut.writeByte((byte)bits);
         } else if (length <= SHORT_SIZE) {
             dataOut.writeShort((short)bits);
         } else if (length <= INT_SIZE) {



Mime
View raw message