mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-115838 FQN inserted for annotated code instead of using imports
This commit is contained in:
@@ -345,6 +345,7 @@ public class PsiImplUtil {
|
||||
if (annotationType instanceof PsiClass) {
|
||||
return findApplicableTarget((PsiClass)annotationType, types);
|
||||
}
|
||||
if (annotationType == null) return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -166,6 +166,22 @@ class Test {
|
||||
@TA
|
||||
Collection<caret> c;
|
||||
}
|
||||
'''
|
||||
}
|
||||
|
||||
public void testUnresolvedAnnotatedQualifiedImport() {
|
||||
myFixture.configureByText 'a.java', '''
|
||||
class Test {
|
||||
@Nullable Collection<caret> c;
|
||||
}
|
||||
'''
|
||||
importClass();
|
||||
myFixture.checkResult '''import java.util.Collection;
|
||||
|
||||
class Test {
|
||||
@Nullable
|
||||
Collection<caret> c;
|
||||
}
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user