简体   繁体   中英

Eclipse Juno - why no warning on unused annotated private field?

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
}

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM