This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ package com.mapk.annotations
2
2
3
3
@Target(AnnotationTarget .PROPERTY_GETTER )
4
4
@Retention(AnnotationRetention .RUNTIME )
5
+ @MustBeDocumented
5
6
annotation class KGetterAlias (val value : String )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class KMapper<T : Any> private constructor(
49
49
50
50
val tempBinderArrayList = ArrayList <ArgumentBinder >()
51
51
52
- src:: class .memberProperties.forEach outer@{ property ->
52
+ clazz .memberProperties.forEach outer@{ property ->
53
53
// propertyが公開されていない場合は処理を行わない
54
54
if (property.visibility != KVisibility .PUBLIC ) return @outer
55
55
@@ -130,11 +130,11 @@ class KMapper<T : Any> private constructor(
130
130
}
131
131
132
132
private class ArgumentBinder (private val param : ParameterForMap <* >, private val javaGetter : Method ) {
133
- fun bindArgument (value : Any , bucket : ArgumentBucket ) {
133
+ fun bindArgument (src : Any , bucket : ArgumentBucket ) {
134
134
// 初期化済みであれば高コストな取得処理は行わない
135
135
if (! bucket.containsKey(param.param)) {
136
136
// javaGetterを呼び出す方が高速
137
- bucket.putIfAbsent(param.param, javaGetter.invoke(value )?.let { param.mapObject(it) })
137
+ bucket.putIfAbsent(param.param, javaGetter.invoke(src )?.let { param.mapObject(it) })
138
138
}
139
139
}
140
140
}
You can’t perform that action at this time.
0 commit comments