Fix Method.invoke() signature

This commit is contained in:
Yan Zhulanow
2015-09-26 01:04:26 +03:00
parent a1c3b26280
commit 3be050640c
2 changed files with 2 additions and 2 deletions
@@ -168,7 +168,7 @@ private object ReflectClassStructure {
annotationType: Class<*>
) {
for (method in annotationType.getDeclaredMethods()) {
processAnnotationArgumentValue(visitor, Name.identifier(method.getName()), method(annotation))
processAnnotationArgumentValue(visitor, Name.identifier(method.getName()), method(annotation)!!)
}
visitor.visitEnd()
}
+1 -1
View File
@@ -54,6 +54,6 @@ public fun <T : Annotation> T.annotationType() : Class<out T> =
* Invokes the underlying method represented by this [Method] object, on the specified [instance] with the specified parameters.
*/
@Suppress("NOTHING_TO_INLINE")
public inline fun Method.invoke(instance: Any, vararg args: Any?): Any? {
public inline operator fun Method.invoke(instance: Any, vararg args: Any?): Any? {
return invoke(instance, *args)
}