Fix compatibility with Android plugin broken in 896cf61

This commit is contained in:
Alexander Udalov
2018-08-29 15:24:58 +02:00
parent 3ea0222d43
commit e85dcfc3e3
@@ -40,3 +40,11 @@ fun DeclarationDescriptor.hasImplicitIntegerCoercionAnnotation(): Boolean {
fun AnnotationDescriptor.argumentValue(parameterName: String): ConstantValue<*>? {
return allValueArguments[Name.identifier(parameterName)].takeUnless { it is ErrorValue }
}
@Deprecated(
"Use org.jetbrains.kotlin.load.java.JvmAbi.JVM_FIELD_ANNOTATION_FQ_NAME or " +
"org.jetbrains.kotlin.resolve.jvm.annotations.hasJvmFieldAnnotation instead.",
ReplaceWith("org.jetbrains.kotlin.load.java.JvmAbi.JVM_FIELD_ANNOTATION_FQ_NAME"),
DeprecationLevel.ERROR
)
val JVM_FIELD_ANNOTATION_FQ_NAME = FqName("kotlin.jvm.JvmField")