Cleaned up cached methods, added toString

This commit is contained in:
nathan 2020-08-17 16:50:25 +02:00
parent da44f7c339
commit 6f8a9c9d05
2 changed files with 5 additions and 2 deletions

View File

@ -46,4 +46,8 @@ class CachedAsmMethod(val methodAccessIndex: Int, val methodAccess: MethodAccess
override fun invoke(connection: Connection, target: Any, args: Array<Any>): Any? {
return methodAccess.invoke(target, methodAccessIndex, *args)
}
override fun toString(): String {
return "CachedAsmMethod{name:" + method.name + ", methodClassId=" + methodClassId + ", methodIndex=" + methodIndex + '}'
}
}

View File

@ -49,8 +49,7 @@ open class CachedMethod(val method: Method, val methodIndex: Int, val methodClas
var overriddenMethod: Method? = null
@Throws(Exception::class)
open operator fun invoke(connection: Connection, target: Any, args: Array<Any>): Any? {
open fun invoke(connection: Connection, target: Any, args: Array<Any>): Any? {
return method.invoke(target, *args)
}