Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/explicitArgumentCanBeLambda/beforeMapPutIfAbsentUsed.java
Alexander Zolotov 391bda1c4b Update color schemes
- support the new Go colors

GitOrigin-RevId: 4ecd779a6ceae3f36b60c6656d9ff819fe844f89
2019-07-02 06:52:16 +03:00

10 lines
269 B
Java

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