lizhimins commented on code in PR #8664:
URL: https://github.com/apache/rocketmq/pull/8664#discussion_r1774320509


##########
filter/src/main/java/org/apache/rocketmq/filter/util/BitsArray.java:
##########
@@ -195,7 +195,7 @@ protected int position(int bitPos) {
 
     protected void checkBytePosition(int bytePos, BitsArray bitsArray) {
         checkInitialized(bitsArray);
-        if (bytePos > bitsArray.byteLength()) {
+        if (bytePos >= bitsArray.byteLength()) {
             throw new IllegalArgumentException("BytePos is greater than " + 
bytes.length);

Review Comment:
   fix error message



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to