Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/explicitArgumentCanBeLambda/beforeMapPutIfAbsent.java
Tagir Valeev 13be43ae66 LambdaAndExplicitMethodPair: fixed negations (IDEA-CR-48396); imports in tests fixed
GitOrigin-RevId: 6dcd3aa510e733070f5f942d22ce68250d2c5cee
2019-06-15 07:01:36 +03:00

10 lines
248 B
Java

// "Use 'computeIfAbsent' method with functional argument" "true"
import java.util.*;
class Test {
public void test(Map<String, List<Integer>> map, String key) {
map.putIfAbsent(key, new ArrayL<caret>ist<>());
map.get(key).add(0);
}
}