我是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。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句