Request or Bug? Configuration for "Class does not declare a logger"

I have a class like this:


I have the inspection "Class without Logger" turned on. IDEA now marks the anonymous inner class with a warning. It would be nice to have the possibility to ignore anonymous inner classes from this inspection.

There is an checkbox for ignoring classes that have an accessible Logger in a superclass but this checkbox cannot be selected. It gets always unselected when I leave the dialog.

5 comments
Comment actions Permalink

On a related subject, the inspection "Comparator class not declared serializable" needs a similar option.

0
Comment actions Permalink

Could you clarify this? (preferably in a JIRA request).

Bas

0
Comment actions Permalink

Well, you can't make an anonymous inner comparator implement serializable; it would be nice if there was an option to prevent the inspection from triggering on those classes.

0
Comment actions Permalink

Ok, this is fixed in the next EAP

0

Please sign in to leave a comment.