mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
suspicious calls: support new Map methods (IDEA-170815)
This commit is contained in:
@@ -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("", "");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user