kang-hl commented on PR #7309:
URL: https://github.com/apache/rocketmq/pull/7309#issuecomment-1719135415
> please start an issue and describe it
for (String s : list) {
countMap.compute(s, (k, count) -> count == null ? 1 : count + 1); //
not 0
}
for (String s : list) {
Integer count = countMap.get(s);
if (count == null) {
count = 1; // not 0
} else {
count += 1;
}
countMap.put(s, count);
}
--
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]