Move superinterface to the only subclass of FunctionBase
This commit is contained in:
committed by
Ilya Gorbunov
parent
07a0cb91d4
commit
e35ebff4e1
@@ -7,8 +7,6 @@ package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.Function;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface FunctionBase extends Function, Serializable {
|
||||
public interface FunctionBase extends Function {
|
||||
int getArity();
|
||||
}
|
||||
|
||||
@@ -5,8 +5,10 @@
|
||||
|
||||
package kotlin.jvm.internal
|
||||
|
||||
public abstract class Lambda(private val arity: Int) : FunctionBase {
|
||||
override fun getArity() = arity
|
||||
import java.io.Serializable
|
||||
|
||||
override fun toString() = Reflection.renderLambdaToString(this)
|
||||
abstract class Lambda(private val arity: Int) : FunctionBase, Serializable {
|
||||
override fun getArity(): Int = arity
|
||||
|
||||
override fun toString(): String = Reflection.renderLambdaToString(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user