mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 18:17:08 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
9 lines
327 B
Java
9 lines
327 B
Java
// "Replace with 'compute()' 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*/;
|
|
}
|
|
} |