lhotari commented on code in PR #26127:
URL: https://github.com/apache/pulsar/pull/26127#discussion_r3505673030
##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/PositionRangeSet.java:
##########
@@ -276,12 +278,9 @@ public Map<Long, long[]> toRanges(int maxRanges) {
Map<Long, long[]> internalBitSetMap = new HashMap<>();
AtomicInteger rangeCount = new AtomicInteger();
Review Comment:
MutableInt could be used here since there's no async/concurrent code here.
--
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]