InspectionGadgets: requests for Quickfixes

Hi Dave,

Thanks for your great plugin. I have onerequests for quickfix
for one of your inspections:

- static non final field. quickfix to make field final.


1 comment
Comment actions Permalink

Unfortunately, I can't know easily that marking the field as "final" is actually legal. So far, it's been an iron-clad rule that quickfixes are not allowed to result in uncompilable code. The built-in "field may be static" inspection will do what you want (if the field may actually be static), although it isn't available interactively. The "static non-final field" inspection is simply noting a design weakness.

--Dave Griffith


Please sign in to leave a comment.