lambda: check more specific method based on lambda return types with wildcards

This commit is contained in:
anna
2013-02-27 16:55:43 +01:00
parent 329607d9eb
commit 47c7983713
4 changed files with 35 additions and 4 deletions

View File

@@ -58,11 +58,11 @@ class MyTest1 {
System.out.println(i);
}
private static void m(I2 i) {
private static void <warning descr="Private method 'm(MyTest1.I2)' is never used">m</warning>(I2 i) {
System.out.println(i);
}
private static void <warning descr="Private method 'm(MyTest1.I3)' is never used">m</warning>(I3 i) {
private static void m(I3 i) {
System.out.println(i);
}