eclipse:未警告未使用的私有方法 [英] eclipse: no warning for unused private methods
问题描述
关于日食开普勒SR1
Regarding eclipse Kepler SR1
我记得有一个未使用的私有方法正在收到警告
I remember that a unused private methods were getting a warning from the compiler.
我不知道是否更改为切换到开普勒(或先前版本)还是项目设置,因为我正在研究共享月蚀设置的新项目。
I don't know if it's changed switching to Kepler (or a previous release) or if it is project settings, because I'm working on a new project where the eclipse settings are shared.
我什至在eclipse编译器设置中找不到该设置。
I even couldn't find the setting in the eclipse compiler settings.
推荐答案
转到打包资源管理器上的项目,右键单击它,然后选择属性。然后在属性 Java编译器,错误/警告中。选中启用项目特定设置复选框。向下滚动到显示不必要的代码的部分,然后将其选中警告
go to your project on "Package Explorer", right-click on it and choose "properties". Then inside properties "Java Compiler", "Errors/Warnings". Check the box with "Enable project specific settings". Scroll down to the section where it says "Unnecessary code" and check them to "Warning"
这篇关于eclipse:未警告未使用的私有方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!