mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 07:28:24 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
16 lines
332 B
Java
16 lines
332 B
Java
// "Replace with 'putIfAbsent()' call" "false"
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
Map<String, String> vals = new HashMap<>();
|
|
String v = vals.get("foo");
|
|
if(v <caret>== null) {
|
|
vals.put("foo", v);
|
|
}
|
|
System.out.println(v);
|
|
}
|
|
}
|