IC-93.13 paints all public getters/setters as unused with warning???

As per subject, this version paints my Java class public getters/setters as a warning for being unused. Is this another new feature of the v 9 by design?

3 comments
Comment actions Permalink

Hello Michael,

If the getters and setters are in fact unused, then this behavior is indeed
by design.

To turn the highlighting off, you can go to Settings | Inspections | Declaration
Redundancy and turn off the "Unused declaration" inspection.

As per subject, this version paints my Java class public
getters/setters as a warning for being unused. Is this another new
feature of the v 9 by design?


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


0
Comment actions Permalink

Dmitry,

Did you notice the word "public" perchance? public getters/setters, in some of my classes at some times. Then it suddenly goes all green and then suddenly back to yellow.

0
Comment actions Permalink

Hello Michael,

Did you notice the word "public" perchance? public getters/setters,
in some of my classes at some times. Then it suddenly goes all green
and then suddenly back to yellow.


Yes, I did. Please see http://blogs.jetbrains.com/idea/2009/04/global-unused-declaration-inspection/
for more information on the feature.

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


0

Please sign in to leave a comment.