eclipse:未警告未使用的私有方法

编程入门 行业动态 更新时间:2024-10-09 19:18:45
本文介绍了eclipse:未警告未使用的私有方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

关于日食开普勒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:未警告未使用的私有方法

本文发布于:2023-11-27 13:13:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638221.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方法   eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!