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

Commit 53b8324

Browse files
committed
paramとpropertyを間違えており正常に文字列へのマッピングができていなかったため修正
1 parent 8a008ad commit 53b8324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ internal class BoundParameterForMap<S : Any>(val param: KParameter, property: KP
3737
paramClazz.java.isEnum && propertyClazz == String::class -> { {
3838
EnumMapper.getEnum(paramClazz.java, propertyGetter.invoke(it) as String)
3939
} }
40-
propertyClazz == String::class -> { { propertyGetter.invoke(it).toString() } }
40+
paramClazz == String::class -> { { propertyGetter.invoke(it).toString() } }
4141
else -> throw IllegalArgumentException("Can not convert $propertyClazz to $paramClazz")
4242
}
4343
}

0 commit comments

Comments
 (0)