Support preference of TYPE_USE annotations to enhance over others like METHOD, FIELD and VALUE_PARAMETER to avoid double applying them in case of arrays: @NotNull Integer [] (both to the array element and to the entire array)
^KT-24392 Fixed
This commit is contained in:
@@ -14,8 +14,8 @@ object SpecialJvmAnnotations {
|
||||
JvmAnnotationNames.METADATA_FQ_NAME,
|
||||
JvmAnnotationNames.JETBRAINS_NOT_NULL_ANNOTATION,
|
||||
JvmAnnotationNames.JETBRAINS_NULLABLE_ANNOTATION,
|
||||
FqName("java.lang.annotation.Target"),
|
||||
FqName("java.lang.annotation.Retention"),
|
||||
FqName("java.lang.annotation.Documented")
|
||||
JvmAnnotationNames.TARGET_ANNOTATION,
|
||||
JvmAnnotationNames.RETENTION_ANNOTATION,
|
||||
JvmAnnotationNames.DOCUMENTED_ANNOTATION
|
||||
).mapTo(mutableSetOf(), ClassId::topLevel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user