Method not used warning on setter that is used by Spring through injection

Hi,

We just noticed that the IDE is suggesting as a warning that a setter is not being used anywhere, but, it is used by spring injection.

Is it correct? Is there any configuration that make the setter "spring aware"?

Cheers

Markus

1 comment
Comment actions Permalink

Hello Markus,

Are you using IntelliJ IDEA Ultimate with the Spring plugin enabled? The
Spring plugin makes IntelliJ IDEA aware of the setters used by Spring, and
they aren't highlighted as unused.

We just noticed that the IDE is suggesting as a warning that a setter
is not being used anywhere, but, it is used by spring injection.

Is it correct? Is there any configuration that make the setter "spring
aware"?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.