dlg99 commented on code in PR #4067:
URL: https://github.com/apache/bookkeeper/pull/4067#discussion_r1585262831


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/util/collections/ConcurrentLongHashMap.java:
##########
@@ -710,8 +710,14 @@ static final long hash(long key) {
         return hash;
     }
 
-    static final int signSafeMod(long n, int max) {
-        return (int) n & (max - 1);
+    static final int signSafeMod(long dividend, int divisor) {

Review Comment:
   can this be replaced by `Integer.remainderUnsigned(dividend, divisor)`?



-- 
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