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

Commit 1d9fcbc

Browse files
committed
スコープを適切に修正
1 parent 14932a9 commit 1d9fcbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import kotlin.reflect.KParameter
77
import kotlin.reflect.full.isSubclassOf
88
import kotlin.reflect.full.isSuperclassOf
99

10-
internal class PlainParameterForMap<T : Any> private constructor(val param: KParameter, val clazz: KClass<T>) {
11-
val javaClazz: Class<T> by lazy {
10+
internal class PlainParameterForMap<T : Any> private constructor(val param: KParameter, private val clazz: KClass<T>) {
11+
private val javaClazz: Class<T> by lazy {
1212
clazz.java
1313
}
1414
// リストの長さが小さいと期待されるためこの形で実装しているが、理想的にはmap的なものが使いたい
@@ -36,7 +36,7 @@ internal class PlainParameterForMap<T : Any> private constructor(val param: KPar
3636
}
3737

3838
// 引数の型がconverterに対して入力可能ならconverterを返す
39-
fun <R : Any> getConverter(input: KClass<out R>): KFunction<T>? =
39+
private fun <R : Any> getConverter(input: KClass<out R>): KFunction<T>? =
4040
converters.find { (key, _) -> input.isSubclassOf(key) }?.second
4141

4242
companion object {

0 commit comments

Comments
 (0)