diff --git a/java/java-tests/testData/codeInsight/template/postfix/templates/field/annotated.java b/java/java-tests/testData/codeInsight/template/postfix/templates/field/annotated.java index a8a40611c347..09b7276cb97b 100644 --- a/java/java-tests/testData/codeInsight/template/postfix/templates/field/annotated.java +++ b/java/java-tests/testData/codeInsight/template/postfix/templates/field/annotated.java @@ -1,3 +1,5 @@ +import java.lang.annotation.*; + @Target(ElementType.TYPE_USE) @interface N {} class A { diff --git a/java/java-tests/testData/codeInsight/template/postfix/templates/field/annotated_after.java b/java/java-tests/testData/codeInsight/template/postfix/templates/field/annotated_after.java index 1efb3993efb0..7cfc484b52bd 100644 --- a/java/java-tests/testData/codeInsight/template/postfix/templates/field/annotated_after.java +++ b/java/java-tests/testData/codeInsight/template/postfix/templates/field/annotated_after.java @@ -1,8 +1,10 @@ +import java.lang.annotation.*; + @Target(ElementType.TYPE_USE) @interface N {} class A { - private String par; + private @N String par; void m(@N String par) { this.par = par;