mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
10 lines
176 B
Java
10 lines
176 B
Java
// "Replace with 'putIfAbsent' method call" "true"
|
|
import java.util.Map;
|
|
|
|
class Test{
|
|
|
|
Integer m2(Map<String, Integer> map) {
|
|
return map.putIfAbsent("asd", 123);
|
|
}
|
|
|
|
} |