From 0252f7c5861afbffa589081d518375d5db0f4eb5 Mon Sep 17 00:00:00 2001 From: Dmitrii Krasnov Date: Tue, 13 Jun 2023 14:28:33 +0200 Subject: [PATCH] Improved kdoc for OsCondition annotation --- .../org/jetbrains/kotlin/gradle/testbase/osConditions.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/osConditions.kt b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/osConditions.kt index e0ea9803f4e..9761ebb728a 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/osConditions.kt +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/testbase/osConditions.kt @@ -28,9 +28,8 @@ import java.util.* * For example, if you have this annotation on both the class level and method level, * the method level annotation can only narrow the scope of the class level annotation. * - * Exception: When used in a superclass declaration, - * this declaration does not compete with other declaration levels. - * It works only if it is the only declaration present for the superclass. + * Exception: If the annotation is present on both the class and superclass, + * the class-level annotation takes priority. */ @Target(AnnotationTarget.FUNCTION, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS) @Retention(AnnotationRetention.RUNTIME)