rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

Correct wrong value

Open kang-hl opened this issue 2 years ago • 3 comments
trafficstars

Which Issue(s) This PR Fixes

Fixes #issue_id

Brief Description

How Did You Test This Change?

kang-hl avatar Sep 06 '23 08:09 kang-hl

please start an issue and describe it

joeCarf avatar Sep 11 '23 07:09 joeCarf

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);
}

kang-hl avatar Sep 14 '23 09:09 kang-hl

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.

github-actions[bot] avatar Jun 16 '25 00:06 github-actions[bot]

This PR was closed because it has been inactive for 3 days since being marked as stale.

github-actions[bot] avatar Jun 20 '25 00:06 github-actions[bot]