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

2

11

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
}
Mellon answered 12/7, 2012 at 8:32 Comment(1)
U
10

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

Unnerve answered 12/7, 2012 at 9:31 Comment(0)
L
3

Eclipse Bug Report 386692 should soon be reopened, to also ignore the @Autowired annotation from the Spring framework.

Lette answered 8/10, 2013 at 8:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.