Redundant overriding method
Reports redundant overriding declarations.
An override can be omitted if it does not modify the inherited signature semantics, for example, by changing visibility.
Example:
open class Foo {
open fun singleExpression() {
}
}
class Bar : Foo() {
override fun singleExpression() = super.singleExpression()
}
After the quick-fix is applied:
class Bar : Foo() {
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Kotlin, @snapshot@ |
Last modified: 13 July 2023