rocketmq
rocketmq copied to clipboard
Correct wrong value
trafficstars
Which Issue(s) This PR Fixes
Fixes #issue_id
Brief Description
How Did You Test This Change?
please start an issue and describe it
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 PR is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR.
This PR was closed because it has been inactive for 3 days since being marked as stale.