Inspection Gadgets: Include Constant Fields doesn't work

When I enable the "Class with too many fields" check and uncheck "include constant fields", it still counts my public static final int constants when making the check.

Mike

2 comments
Comment actions Permalink


To be precise, it counts constant fields when formatting the error string, not when counting the fields. It'll still only show an error if there are more non-constant fields than the threshold. Still a bug, and I've submitted a fix that should go out in the first 5.0 EAP.

Please submit a tracker item, as IG now ships with IDEA, and it's worth keeping track of these things in a way that others can search for.

--Dave Griffith

0
Comment actions Permalink

http://www.intellij.net/tracker/idea/viewSCR?publicId=37247

Are you sure about the reporting of the error? I have an Interface that has 1200 public static final int's and public static final strings, and I get the error, even when the checkbox is unchecked.

The file is generated from a database, so I know there aren't any "accidental" fields scattered throughout.

Mike

0

Please sign in to leave a comment.