Remove FIELD target from jvmStatic and platformStatic annotations

This commit is contained in:
Yan Zhulanow
2015-09-02 18:00:01 +03:00
parent c4b18d8fb8
commit 55b2029b3c
8 changed files with 28 additions and 6 deletions
@@ -87,8 +87,8 @@ interface KMutablePropertyImpl<R> : KMutableProperty<R>, KPropertyImpl<R> {
private fun KPropertyImpl.Accessor<*>.computeCallerForAccessor(isGetter: Boolean): FunctionCaller<*> {
fun isJvmStaticProperty() =
Annotations.Companion.findAnyAnnotation(property.descriptor.annotations, PLATFORM_STATIC) != null ||
Annotations.Companion.findAnyAnnotation(property.descriptor.annotations, JVM_STATIC) != null
property.descriptor.annotations.findAnnotation(PLATFORM_STATIC) != null ||
property.descriptor.annotations.findAnnotation(JVM_STATIC) != null
fun isNotNullProperty() =
!TypeUtils.isNullableType(property.descriptor.type)