Commit Graph
3 Commits
Author SHA1 Message Date
Nikita Eshkeevandintellij-monorepo-bot 07c55c801c [codeinsight][cleanup] IDEA-236413 Java: incorrect text for unused public fields with Inject
There were added additional hightlight tests to
QsImplicitUsageProviderTest, which is out-of-scope of the task. The
highlight tests was moved to MarkFieldsWhichAreExplicitlyWrittenAsUnused

Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: 67a9383b6bdf34adc1a1412e60f1328fdd591b35
2020-04-09 09:41:07 +00:00
Nikita Eshkeevandintellij-monorepo-bot c5914f53b9 [codeinsight] IDEA-236413 Java: incorrect text for unused public fields with Inject
IDEA used did not use to check the visibility of a field and if there is
the javax.inject.Inject or similar annotations added to the field IDEA
used to always reported the the Private field is not used.

This patch adds a new method that generates the error messages
based on the visibility level of the field.

Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: 89d7e2f783b1e54b239d15a2007d9e7376ffdbfa
2020-04-07 20:31:46 +00:00
Anna.Kozlova ab1a47ddef highlight unused fields implicitly assigned by extension (IDEA-166091) 2017-01-02 14:25:16 +01:00