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

Commit a9d061a

Browse files
committed
KFunctionForCallの初期化を修正
1 parent da03974 commit a9d061a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/mapk/kmapper/PlainKMapper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class PlainKMapper<T : Any> private constructor(
2020
parameterNameConverter: (String) -> String
2121
) {
2222
constructor(function: KFunction<T>, parameterNameConverter: (String) -> String = { it }) : this(
23-
KFunctionForCall(function), parameterNameConverter
23+
KFunctionForCall(function, parameterNameConverter), parameterNameConverter
2424
)
2525

2626
constructor(clazz: KClass<T>, parameterNameConverter: (String) -> String = { it }) : this(
27-
clazz.toKConstructor(), parameterNameConverter
27+
clazz.toKConstructor(parameterNameConverter), parameterNameConverter
2828
)
2929

3030
private val parameterMap: Map<String, PlainParameterForMap<*>> = function.parameters

0 commit comments

Comments
 (0)