mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
disable cast suggestion for incompatible return type (IDEA-186479)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// "Cast parameter to 'java.util.List<A>'" "false"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
class A { }
|
||||
|
||||
class B extends A { }
|
||||
|
||||
class C {
|
||||
public B getStrings(ArrayList<A> l) {
|
||||
return getFi<caret>rstItem(l);
|
||||
}
|
||||
|
||||
private static <T> T getFirstItem(List<T> items) { return null; }
|
||||
private static <T> T getFirstItem(Collection<T> items) { return null; }
|
||||
}
|
||||
Reference in New Issue
Block a user