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

Commit aa9ca10

Browse files
committed
putIfAbsentできていなかった問題を修正
1 parent 72692c4 commit aa9ca10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal class ParameterForMap<T : Any> private constructor(val param: KParamete
2525

2626
// パラメータに対してvalueが代入可能(同じもしくは親クラス)であればそのまま用いる
2727
if (clazz.isSuperclassOf(valueClazz)) {
28-
convertCache[valueClazz] = { it }
28+
convertCache.putIfAbsent(valueClazz) { it }
2929
return value
3030
}
3131

0 commit comments

Comments
 (0)