mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
8 lines
222 B
Java
8 lines
222 B
Java
// "Use 'putIfAbsent' method without lambda" "false"
|
|
import java.util.Map;
|
|
|
|
class Test {
|
|
public String test(Map<String, String> map, String key) {
|
|
return map.computeIfAbsent(key, k <caret>-> ("empty"));
|
|
}
|
|
} |