mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check suspicious ConcurrentHashMap.contains (IDEA-124698)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
class Main<K, V> {
|
||||
void f(ConcurrentHashMap<K, V> map, K key){
|
||||
if (map.contains(<warning descr="Suspicious call to 'ConcurrentHashMap.contains'">key</warning>)) {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user