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.
For example:
public class Main {
@Resource
private int a; //I see no warning here
}
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错误报告386692应该很快重新打开,以同时忽略Spring框架中的@Autowired批注。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.