Fixed bug in checking for annotation writablity.
This commit is contained in:
@@ -94,7 +94,7 @@ class KotlinSignatureUtil {
|
|||||||
PsiModifierListOwner annotationOwner = getAnnotationOwner(element);
|
PsiModifierListOwner annotationOwner = getAnnotationOwner(element);
|
||||||
PsiAnnotation annotation = findKotlinSignatureAnnotation(element);
|
PsiAnnotation annotation = findKotlinSignatureAnnotation(element);
|
||||||
assert annotation != null;
|
assert annotation != null;
|
||||||
if (annotation.getContainingFile() != annotationOwner.getContainingFile()) {
|
if (annotation.getContainingFile() == annotationOwner.getContainingFile()) {
|
||||||
return annotation.isWritable();
|
return annotation.isWritable();
|
||||||
} else {
|
} else {
|
||||||
ExternalAnnotationsManager annotationsManager = ExternalAnnotationsManager.getInstance(element.getProject());
|
ExternalAnnotationsManager annotationsManager = ExternalAnnotationsManager.getInstance(element.getProject());
|
||||||
|
|||||||
Reference in New Issue
Block a user