Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit e988927

Browse files
committed
関数名を修正
1 parent 206b84c commit e988927

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/com/mapk/core/Functions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import kotlin.reflect.KFunction
55
import kotlin.reflect.full.companionObject
66
import 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

src/main/kotlin/com/mapk/core/KFunctionForCall.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class KFunctionForCall<T> internal constructor(
8989
internal 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
}

0 commit comments

Comments
 (0)