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

Commit cc438c9

Browse files
committed
記述を簡略化
1 parent 3b18514 commit cc438c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ private fun <T : Any> KClass<T>.getDeserializer(): KFunction<T>? {
9898

9999
private fun <T> Collection<KFunction<T>>.getDeserializerFromFunctions(): Collection<KFunction<T>> {
100100
return filter { it.annotations.any { annotation -> annotation is KColumnDeserializer } }
101-
.map { func ->
102-
func.isAccessible = true
103-
func
104-
}
101+
.onEach { it.isAccessible = true }
105102
}
106103

107104
private fun <T : Any> deserializerFromConstructors(clazz: KClass<T>): Collection<KFunction<T>> {

0 commit comments

Comments
 (0)