mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 04:43:02 +07:00
(cherry picked from commit 484148216a2c29613043695ef3f69238118946a9) IJ-CR-117655 GitOrigin-RevId: 8a95550370e3ee03ec02420254fe2e2287eedf51
9 lines
332 B
Java
9 lines
332 B
Java
// "Replace with 'compute' method call" "true"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public void testCompute(Map<String, Integer> map, String key) {
|
|
Integer value = map/*1*/./*2*/get/*3*/(/*4*/key/*5*/)/*6*/;
|
|
map/*7*/./*8*/pu<caret>t/*9*/(/*10*/key/*11*/, value /*12*/== /*13*/null ? 0 : /*14*/value + 1)/*15*/;
|
|
}
|
|
} |