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:
Adrian T. Co 2006-03-02 02:56:39 +00:00
parent 9efa4e6e68
commit 1d6fb63a95
1 changed files with 3 additions and 1 deletions

View File

@ -97,8 +97,10 @@ final public class BooleanStream {
public int marshalledSize() {
if( arrayLimit < 64 ) {
return 1+arrayLimit;
} else {
} else if (arrayLimit < 256) {
return 2+arrayLimit;
} else {
return 3+arrayLimit;
}
}