Internal is deprecated in interfaces: reflection fix
This commit is contained in:
committed by
Mikhail Glukhikh
parent
434a318439
commit
5e6c9f1979
@@ -22,7 +22,7 @@ import kotlin.reflect.jvm.internal.JvmPropertySignature.JavaField
|
|||||||
import kotlin.reflect.jvm.internal.JvmPropertySignature.KotlinProperty
|
import kotlin.reflect.jvm.internal.JvmPropertySignature.KotlinProperty
|
||||||
|
|
||||||
internal abstract class DescriptorBasedProperty<out R> protected constructor(
|
internal abstract class DescriptorBasedProperty<out R> protected constructor(
|
||||||
internal val container: KDeclarationContainerImpl,
|
val container: KDeclarationContainerImpl,
|
||||||
name: String,
|
name: String,
|
||||||
signature: String,
|
signature: String,
|
||||||
descriptorInitialValue: PropertyDescriptor?
|
descriptorInitialValue: PropertyDescriptor?
|
||||||
@@ -42,7 +42,7 @@ internal abstract class DescriptorBasedProperty<out R> protected constructor(
|
|||||||
container.findPropertyDescriptor(name, signature)
|
container.findPropertyDescriptor(name, signature)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal val javaField: Field? by ReflectProperties.lazySoft {
|
val javaField: Field? by ReflectProperties.lazySoft {
|
||||||
val jvmSignature = RuntimeTypeMapper.mapPropertySignature(descriptor)
|
val jvmSignature = RuntimeTypeMapper.mapPropertySignature(descriptor)
|
||||||
when (jvmSignature) {
|
when (jvmSignature) {
|
||||||
is KotlinProperty -> {
|
is KotlinProperty -> {
|
||||||
|
|||||||
@@ -26,9 +26,9 @@ import kotlin.reflect.KMutableProperty
|
|||||||
import kotlin.reflect.KProperty
|
import kotlin.reflect.KProperty
|
||||||
|
|
||||||
internal interface KPropertyImpl<out R> : KProperty<R>, KCallableImpl<R> {
|
internal interface KPropertyImpl<out R> : KProperty<R>, KCallableImpl<R> {
|
||||||
internal val javaField: Field?
|
val javaField: Field?
|
||||||
|
|
||||||
internal val container: KDeclarationContainerImpl
|
val container: KDeclarationContainerImpl
|
||||||
|
|
||||||
override val getter: Getter<R>
|
override val getter: Getter<R>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user