Eclipse Juno - 为什么没有注释未注释的私有字段? [英] Eclipse Juno - why no warning on unused annotated private field?
本文介绍了Eclipse Juno - 为什么没有注释未注释的私有字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在以前的Eclipse版本中,这样工作正常。
In the previous version of Eclipse this works fine.
在错误/警告中我检查了未使用的专用字段 - >警告
。但它似乎不起作用
In Errors/Warnings I checked "Unused private field" -> Warning
. But it does not seem to work.
例如:
public class Main {
@Resource
private int a; //I see no warning here
}
推荐答案
这是有意见的 - https://bugs.eclipse.org/bugs/show_bug的CGI?ID = 365437 。另请参阅这个主题的开放错误 - https://bugs.eclipse.org/ bug / show_bug.cgi?id = 376590
This is intentional see - https://bugs.eclipse.org/bugs/show_bug.cgi?id=365437. Also see an open bug on this topic - https://bugs.eclipse.org/bugs/show_bug.cgi?id=376590
这篇关于Eclipse Juno - 为什么没有注释未注释的私有字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文