java - 使用idea开发时,如何开启泛型检查?
伊谢尔伦
伊谢尔伦 2017-04-18 09:05:22
0
2
755

我记得之前用MyEclipse时,如果只写 List opponents = new ArrayList();的话,代码下面会有一道黄线,提示要补充泛型,但是现在在Idea中压根不会有提示,是不是要在哪里开启?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
阿神

Refer to this answer:

Enable inspection : Raw use of parameterized class

小葫芦

Set the syntax check of the eclipse compiler:
java class windows->preferences->java->validation

jsp page windows->preferences->jsp files->validation

javascript page windows->preferences->javascript->validation

For details, please refer to: http://jingyan.baidu.com/article/bad08e1e8d719809c85121f6.html

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!