Files
openide/java/java-tests/testData/inspection/java8MapApi/beforeSimpleIf.java
T
2016-11-29 13:35:30 +07:00

14 lines
258 B
Java

// "Replace with 'putIfAbsent' method call" "true"
import java.util.Map;
class Test{
Integer m2(Map<String, Integer> map) {
if (!map.conta<caret>insKey("asd")) {
return map.put("asd", 123);
} else {
return map.get("asd");
}
}
}