Skip to content

Commit

Permalink
Internal is deprecated in interfaces: reflection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mglukhikh committed Oct 7, 2015
1 parent 434a318 commit 5e6c9f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import kotlin.reflect.jvm.internal.JvmPropertySignature.JavaField
import kotlin.reflect.jvm.internal.JvmPropertySignature.KotlinProperty

internal abstract class DescriptorBasedProperty<out R> protected constructor(
internal val container: KDeclarationContainerImpl,
val container: KDeclarationContainerImpl,
name: String,
signature: String,
descriptorInitialValue: PropertyDescriptor?
Expand All @@ -42,7 +42,7 @@ internal abstract class DescriptorBasedProperty<out R> protected constructor(
container.findPropertyDescriptor(name, signature)
}

internal val javaField: Field? by ReflectProperties.lazySoft {
val javaField: Field? by ReflectProperties.lazySoft {
val jvmSignature = RuntimeTypeMapper.mapPropertySignature(descriptor)
when (jvmSignature) {
is KotlinProperty -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import kotlin.reflect.KMutableProperty
import kotlin.reflect.KProperty

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>

Expand Down

0 comments on commit 5e6c9f1

Please sign in to comment.