This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/kotlin/com/mapk/core Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import kotlin.reflect.KFunction
55import kotlin.reflect.full.companionObject
66import kotlin.reflect.full.functions
77
8- inline fun <reified A : Annotation > KClass <* >.getAnnotatedFunctionFromCompanionObject (): Pair <Any , List <KFunction <* >>>? {
8+ inline fun <reified A : Annotation > KClass <* >.getAnnotatedFunctionsFromCompanionObject (): Pair <Any , List <KFunction <* >>>? {
99 return this .companionObject?.let { companionObject ->
1010 val temp = companionObject.functions.filter { functions -> functions.annotations.any { it is A } }
1111
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ class KFunctionForCall<T> internal constructor(
8989internal fun <T : Any > KClass<T>.toKConstructor (parameterNameConverter : ParameterNameConverter ): KFunctionForCall <T > {
9090 val constructors = ArrayList <KFunctionForCall <T >>()
9191
92- this .getAnnotatedFunctionFromCompanionObject <KConstructor >()?.let { (instance, functions) ->
92+ this .getAnnotatedFunctionsFromCompanionObject <KConstructor >()?.let { (instance, functions) ->
9393 functions.forEach {
9494 constructors.add(KFunctionForCall (it as KFunction <T >, parameterNameConverter, instance))
9595 }
You can’t perform that action at this time.
0 commit comments