With @Inject on a field, it is not marked as never used.

Hi all,

Just a question, maybe it is a small useability issue.

When I have a Java property which is never used throughout the class (not assigned, not used in a expression, ... ), there is an indication that it is never used.

private field 'xx' is never used.

But when I add the annotation @Inject, there is no such message.

Shouldn't the warning be shown here also?  

Saw it during a refactoring and missed at first a property because of this. :)


version : IntelliJ 14.0.3

Thanks
Rudy

2 comments
Comment actions Permalink

Thanks,

I didn't found it immediatly in the issue list.

Have to look better next them, I guess :)

Thanks
Rudy

0

Please sign in to leave a comment.