Inspection Unused declaration - how to supress for fields with certain type?

Answered

I have a plain java class (without annotations) and it contains private fields of certain type (for example subtype of PageObject).

And this inspection produces message on those fields: "Private field 'foo' is never assigned". It's possible to suppress/disable this inspection for fields of such type/subtype?

I tried also specify Entry points - Annotation... - and it works (when I added annotation) but it's not solution for my case,
I tried also specify Entry points - Code pattern... - not working. (screenshot https://i.imgur.com/SBCfXxf.png )

I'm not sure what exactly is entry point and how it works and if it can solve my issue.

Thanks for answer.

Lukas

0

Please sign in to leave a comment.