cat-and-tomato commented on code in PR #9458:
URL: https://github.com/apache/rocketmq/pull/9458#discussion_r2137348889
##########
filter/src/main/java/org/apache/rocketmq/filter/util/BitsArray.java:
##########
@@ -45,9 +46,7 @@ private BitsArray(int bitLength) {
temp++;
}
bytes = new byte[temp];
- for (int i = 0; i < bytes.length; i++) {
- bytes[i] = (byte) 0x00;
- }
+ Arrays.fill(bytes, (byte) 0x00); // 替换为 Arrays.fill()
Review Comment:
I've made the suggested changes. Please take another look when you have
time:)
--
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]