Inspectopedia
 
2024.3

Class may extend adapter instead of implementing listener

Warning
New
Last modified: 03 December 2024

Reports classes implementing listeners instead of extending corresponding adapters.

A quick-fix is available to remove any redundant empty methods left after replacing a listener implementation with an adapter extension.

Use the Only warn when empty implementing methods are found option to configure the inspection to warn even if no empty methods are found.