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

Commit b94b30a

Browse files
committed
変更を反映
1 parent 6e5f901 commit b94b30a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.mapk.krowmapper
22

3-
import com.mapk.annotations.KPropertyAlias
3+
import com.mapk.annotations.KParameterAlias
44
import kotlin.reflect.KClass
55
import kotlin.reflect.KParameter
66
import kotlin.reflect.full.findAnnotation
@@ -12,7 +12,7 @@ class ParameterForMap<T : Any> private constructor(
1212
) {
1313
companion object {
1414
fun newInstance(param: KParameter, propertyNameConverter: (String) -> String = { it }): ParameterForMap<*> {
15-
val name: String = (param.findAnnotation<KPropertyAlias>()?.value ?: propertyNameConverter(param.name!!))
15+
val name: String = (param.findAnnotation<KParameterAlias>()?.value ?: propertyNameConverter(param.name!!))
1616
return ParameterForMap(name, param.index, (param.type.classifier as KClass<*>).java)
1717
}
1818
}

0 commit comments

Comments
 (0)