When I declare a private variable in my class that is not used, I expect to get a warning.
private JavaScriptSupport jsSupport;
// Warning: The value of the field MyClass.jsSupport is not used
When I add Apache Tapestry's @Inject
-Annotation The warning disappears - but why?
@Inject
private JavaScriptSupport jsSupport;
// No warning
To my understanding, there is no use of unused private variables, even if the get a value injected. Is there a way to define a warning in CheckStyle for this case?