簡體   English   中英

Eclipse Juno-為什么對未使用批注的私有字段沒有警告?

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

在早期版本的Eclipse中,它可以正常工作。

在“錯誤/警告”中,我選中了"Unused private field" -> Warning 但這似乎不起作用。

例如:

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/bugs/show_bug.cgi?id=376590

Eclipse錯誤報告386692應該很快重新打開,以同時忽略Spring框架中的@Autowired批注。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM