Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantCollectionOperation/beforeContainsKeyRemove.java
2018-01-22 13:39:09 +07:00

10 lines
231 B
Java

// "Remove the 'containsKey' check" "true"
import java.util.Map;
class Test {
void test(Map<String, Integer> map, String key) {
if(map.co<caret>ntainsKey(/*contains!!!*/key)) {
map.remove(/*remove!!!*/key);
}
}
}