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

Commit 206b84c

Browse files
committed
共通化に合わせ修正
1 parent 1ff7adf commit 206b84c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ internal fun <T : Any> KClass<T>.toKConstructor(parameterNameConverter: Paramete
9595
}
9696
}
9797

98-
this.constructors
99-
.filter { it.annotations.any { annotation -> annotation is KConstructor } }
100-
.forEach { constructors.add(KFunctionForCall(it, parameterNameConverter)) }
98+
this.constructors.getAnnotatedFunctions<KConstructor, T>().forEach {
99+
constructors.add(KFunctionForCall(it, parameterNameConverter))
100+
}
101101

102102
if (constructors.size == 1) return constructors.single()
103103

0 commit comments

Comments
 (0)