mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
(cherry picked from commit 484148216a2c29613043695ef3f69238118946a9) IJ-CR-117655 GitOrigin-RevId: 8a95550370e3ee03ec02420254fe2e2287eedf51
10 lines
258 B
Java
10 lines
258 B
Java
// "Replace with 'compute' method call" "false"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public void testCompute(Map<String, Integer> map, String key) {
|
|
Integer value = map.get(key);
|
|
%
|
|
map.pu<caret>t(key, value == null ? 0 : value + 1);
|
|
}
|
|
} |