mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 22:20:54 +07:00
10 lines
283 B
Java
10 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) {
|
|
/*comment in param*/
|
|
/*comment in arrow*/
|
|
map.putIfAbsent(key, (/*comment in parens*/"empty"));
|
|
}
|
|
} |