Inspectopedia
 
2024.3

Anonymous class with too many methods

Warning
New
Last modified: 03 December 2024

Reports anonymous inner classes whose method count exceeds the specified maximum.

Anonymous classes with numerous methods may be difficult to understand and should be promoted to become named inner classes.

Use the Method count limit field to specify the maximum allowed number of methods in an anonymous inner class.