diff --git a/java/java-tests/testData/codeInsight/completion/normalSorting/PreferApplicableAnnotationsMethod.java b/java/java-tests/testData/codeInsight/completion/normalSorting/PreferApplicableAnnotationsMethod.java index 345e8cccbcf0..c7a557cf2e28 100644 --- a/java/java-tests/testData/codeInsight/completion/normalSorting/PreferApplicableAnnotationsMethod.java +++ b/java/java-tests/testData/codeInsight/completion/normalSorting/PreferApplicableAnnotationsMethod.java @@ -1,5 +1,5 @@ class Foo { - @T + @Tx public static void main(String[] args) { } diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/completion/NormalCompletionOrderingTest.groovy b/java/java-tests/testSrc/com/intellij/codeInsight/completion/NormalCompletionOrderingTest.groovy index 0c07fcb300a5..e15f08d9ab68 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/completion/NormalCompletionOrderingTest.groovy +++ b/java/java-tests/testSrc/com/intellij/codeInsight/completion/NormalCompletionOrderingTest.groovy @@ -398,11 +398,14 @@ import java.lang.annotation.ElementType; import java.lang.annotation.Target; @Target({ElementType.TYPE}) -@interface TClassAnno {} +@interface TxClassAnno {} + +interface TxANotAnno {} @Target({ElementType.METHOD}) -@interface TMethodAnno {}''' - checkPreferredItems 0, 'TMethodAnno', 'TClassAnno' +@interface TxMethodAnno {}''' + checkPreferredItems 0, 'TxMethodAnno', 'TxClassAnno' + assert !('TxANotAnno' in myFixture.lookupElementStrings) } public void testJComponentAddNewWithStats() throws Throwable {