activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r382252 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/BooleanStream.java
Date Thu, 02 Mar 2006 02:56:41 GMT
Author: aco
Date: Wed Mar  1 18:56:39 2006
New Revision: 382252

URL: http://svn.apache.org/viewcvs?rev=382252&view=rev
Log:
Possible bug in computation of BooleanStream size.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/BooleanStream.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/BooleanStream.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/BooleanStream.java?rev=382252&r1=382251&r2=382252&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/BooleanStream.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/BooleanStream.java
Wed Mar  1 18:56:39 2006
@@ -97,8 +97,10 @@
     public int marshalledSize() {
         if( arrayLimit < 64 ) {
             return 1+arrayLimit;
-        } else {
+        } else if (arrayLimit < 256) {
             return 2+arrayLimit;
+        } else {
+            return 3+arrayLimit;
         }
     }
 



Mime
View raw message