Pattern: Unnecessary abstract
modifier
Issue: -
abstract
modifiers are unnecessary and can be removed.
Example of incorrect code:
abstract interface Foo { // abstract keyword not needed
abstract fun x() // abstract keyword not needed
abstract var y: Int // abstract keyword not needed
}
Example of correct code:
interface Foo {
fun x()
var y: Int
}