From c697eef803f8a4c159c82bff7c6797d497f79c1c Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Thu, 8 Oct 2015 20:51:24 +0300 Subject: [PATCH] Minor: Undeprecate JetClassOrObject.isAnnotation() function --- .../frontend/src/org/jetbrains/kotlin/psi/JetClassOrObject.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/psi/JetClassOrObject.kt b/compiler/frontend/src/org/jetbrains/kotlin/psi/JetClassOrObject.kt index 0d478ee8048..652c1dd93b2 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/psi/JetClassOrObject.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/psi/JetClassOrObject.kt @@ -108,7 +108,6 @@ abstract public class JetClassOrObject : public fun getSecondaryConstructors(): List = getBody()?.getSecondaryConstructors().orEmpty() - @Deprecated("It's no more possible to determine it exactly using AST. Use ClassDescriptor.getKind() instead") public fun isAnnotation(): Boolean = getAnnotation(KotlinBuiltIns.FQ_NAMES.annotation.shortName().asString()) != null || hasModifier(JetTokens.ANNOTATION_KEYWORD)