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