mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
fix getClass() type in non-physical context
IDEA-188897
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace explicit type with 'var'" "false"
|
||||
import java.util.List;
|
||||
|
||||
class Program {
|
||||
void getRidOfType() {
|
||||
Li<caret>st<?> list = getList(getClass());
|
||||
list = getList(Integer.class);
|
||||
}
|
||||
|
||||
public static <T> List<T> getList(Class<T> clazz) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user