mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-19 17:29:34 +07:00
fix for IDEA-163932 Map.get suggested replacement with Map.getOrDefault is misleading
7 lines
162 B
Java
7 lines
162 B
Java
// "Replace with 'putIfAbsent' method call" "true"
|
|
import java.util.Map;
|
|
class Test {
|
|
void m1(Map<String, Integer> map) {
|
|
map.putIfAbsent("ads", i);
|
|
}
|
|
} |