mirror of https://github.com/apache/activemq.git
Possible bug in computation of BooleanStream size.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382252 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9efa4e6e68
commit
1d6fb63a95
|
@ -97,8 +97,10 @@ final public class BooleanStream {
|
||||||
public int marshalledSize() {
|
public int marshalledSize() {
|
||||||
if( arrayLimit < 64 ) {
|
if( arrayLimit < 64 ) {
|
||||||
return 1+arrayLimit;
|
return 1+arrayLimit;
|
||||||
} else {
|
} else if (arrayLimit < 256) {
|
||||||
return 2+arrayLimit;
|
return 2+arrayLimit;
|
||||||
|
} else {
|
||||||
|
return 3+arrayLimit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue