unchecked warnings: check inferred type against bounds for java > 1.8 (IDEA-147529)

This commit is contained in:
Anna Kozlova
2015-11-10 18:45:36 +01:00
parent c686f3ba5a
commit a45937536a
4 changed files with 39 additions and 4 deletions
@@ -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);
}
}