mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
redundant type args: check boxed types if javac would be able to compile (IDEA-53984)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user