mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
Fixes IDEA-215931 Incorrect "Excessive lambda usage" warning GitOrigin-RevId: 13fa8f5d7d283cd7a208053ed0271a644b713391
12 lines
292 B
Java
12 lines
292 B
Java
// "Use 'computeIfAbsent' method with functional argument" "false"
|
|
|
|
import java.util.Map;
|
|
|
|
class Test {
|
|
public void test(Map<String, List<Integer>> map, String key) {
|
|
map.putIfAbsent(key, createList<caret>());
|
|
map.get(key).add(0);
|
|
}
|
|
|
|
private native List<Integer> createList();
|
|
} |