Class may extend adapter instead of implementing listener
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.
Inspection options
Option | Type | Default |
---|---|---|
Only warn when empty implementing methods are found | Checkbox | true |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023