我是 IntelliJ IDEA 的新手。我曾经使用 Eclipse。
默认情况下,IntelliJ 不要求为 Java 泛型类型提供参数类型。
// Following code doesn't give any warning
List list = null;
// I want to make IntelliJ ask me to specify type parameter (say Long)
List<Long> list = null; // i.e If I want a List of Long
如何设置 IntelliJ,使其在使用泛型 Java 类型时要求我提供泛型类型参数?
如果重要的话,我正在使用 JDK 8。
最佳答案
关于java - 在 java 中使用泛型时设置 intellij 询问类型参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23138501/