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

Commit 4616d8d

Browse files
committed
変数の命名規則がブレていたため修正
1 parent 07f51dc commit 4616d8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ class KMapper<T : Any> private constructor(
130130
}
131131

132132
private class ArgumentBinder(private val param: ParameterForMap<*>, private val javaGetter: Method) {
133-
fun bindArgument(value: Any, bucket: ArgumentBucket) {
133+
fun bindArgument(src: Any, bucket: ArgumentBucket) {
134134
// 初期化済みであれば高コストな取得処理は行わない
135135
if (!bucket.containsKey(param.param)) {
136136
// javaGetterを呼び出す方が高速
137-
bucket.putIfAbsent(param.param, javaGetter.invoke(value)?.let { param.mapObject(it) })
137+
bucket.putIfAbsent(param.param, javaGetter.invoke(src)?.let { param.mapObject(it) })
138138
}
139139
}
140140
}

0 commit comments

Comments
 (0)