redundant type args: check boxed types if javac would be able to compile (IDEA-53984)

This commit is contained in:
anna
2010-04-19 17:11:33 +04:00
parent e25e9b6776
commit c5e5bc7237
3 changed files with 46 additions and 0 deletions
@@ -0,0 +1,12 @@
import java.util.*;
class Test {
Map someMap;
public int getGetBar() {
return this.<Integer>getFoo("numberOfConfigurations");
}
protected <T> T getFoo(String key) {
return (T)someMap.get(key);
}
}