suspicious calls: support new Map methods (IDEA-170815)

This commit is contained in:
Anna.Kozlova
2017-04-05 18:28:48 +02:00
parent 163a6bfe54
commit 0340bd66af
4 changed files with 31 additions and 1 deletions
@@ -0,0 +1,11 @@
import java.util.Map;
class Test {
void m(Map<String, String> map){
map.getOrDefault(<warning descr="'Map<String, String>' may not contain objects of type 'Integer'">1</warning>, "");
map.getOrDefault("", "");
map.remove(<warning descr="'Map<String, String>' may not contain objects of type 'Integer'">1</warning>, "");
map.remove("", "");
}
}