This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/kotlin/com/mapk/kmapper Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments