java interface JA.java:
interface JA
{
void a(integer code)
}
kotlin implement JA, JAImpl.kt:
abstract class JAImpl: JA
{
override fun a(code: Int){
hookA(code)
}
abstract fun hookCode(code: Int)
}
but when new JAImpl in java class.
it must to implement ’ void a(integer code )’ and ‘hookCode’ . but in kotlin class only need implement ‘hookCode’
new JAImpl(){
@override
void a(integer code){}
@override
void hookCode(int code){}
}
object: JAImpl(){
override fun hookCode(code: Int)
}
how to fix this ? i don’t want override ‘a’ method in java . but IDE tip must to implement, i think the “integer” is key.