mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
unchecked warnings: check inferred type against bounds for java > 1.8 (IDEA-147529)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import java.util.ArrayList;
|
||||
|
||||
class Test {
|
||||
|
||||
static <T extends ArrayList<String>> T foo() {return null;}
|
||||
|
||||
static class Raw extends ArrayList {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Raw r = <warning descr="Unchecked method 'foo()' invocation">foo</warning>();
|
||||
System.out.println(r);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user