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

Commit 4fc6116

Browse files
committed
修正への追従
1 parent 34a03d6 commit 4fc6116

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
@@ -75,7 +75,7 @@ class KMapper<T : Any> private constructor(
7575
src.forEach { (key, value) ->
7676
parameterMap[key]?.let { param ->
7777
// 取得した内容がnullでなければ適切にmapする
78-
argumentAdaptor.putIfAbsent(param.name, value?.let { param.mapObject(value) })
78+
argumentAdaptor.putIfAbsent(param.name) { value?.let { param.mapObject(value) } }
7979
// 終了判定
8080
if (argumentAdaptor.isFullInitialized()) return
8181
}
@@ -86,7 +86,7 @@ class KMapper<T : Any> private constructor(
8686
val key = srcPair.first.toString()
8787

8888
parameterMap[key]?.let {
89-
argumentAdaptor.putIfAbsent(key, srcPair.second?.let { value -> it.mapObject(value) })
89+
argumentAdaptor.putIfAbsent(key) { srcPair.second?.let { value -> it.mapObject(value) } }
9090
}
9191
}
9292

0 commit comments

Comments
 (0)