mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
suspicious removeAll: compare type arguments, not qualifiers
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
class Clazz {
|
||||
void foo(List<String> l, Set<String> s) {
|
||||
l.removeAll(s);
|
||||
}
|
||||
}
|
||||
+1
@@ -21,6 +21,7 @@ public class SuspiciousCollectionMethodCallsTest extends LightCodeInsightFixture
|
||||
|
||||
public void testConcurrentHashMap() throws Exception { doTest(); }
|
||||
public void testRemoveAllCall() throws Exception { doTest(); }
|
||||
public void testSetList() throws Exception { doTest(); }
|
||||
public void testUseDfa() throws Exception { doTest(); }
|
||||
public void testWildcard() throws Exception { doTest(); }
|
||||
public void testIgnoreConvertible() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user