Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/excessiveLambdaUsage/beforeComputeIfAbsent.java

8 lines
275 B
Java

// "Use 'putIfAbsent' method without lambda" "true"
import java.util.Map;
class Test {
public void test(Map<String, String> map, String key) {
map.computeIfAbsent(key, (/*comment in param*/k) /*comment in arrow*/<caret>-> (/*comment in parens*/"empty"));
}
}