mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
8 lines
283 B
Java
8 lines
283 B
Java
// "Use 'putIfAbsent' method without lambda" "true-preview"
|
|
import java.util.Map;
|
|
|
|
class Test {
|
|
public void test(Map<String, String> map, String key) {
|
|
map.computeIfAbsent(key, (/*comment in param*/k) /*comment in arrow*/<caret>-> (/*comment in parens*/"empty"));
|
|
}
|
|
} |