Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addAnnotationTarget/afterNotArray.java
Andrey.Cherkasov 8bb8d7ca5d [java-highlighting] Provide the fix for the "*annotation* not applicable to *target*" error (IDEA-216251)
GitOrigin-RevId: ed6eb867457c4b3413156366be89a076c639ccf3
2021-09-24 22:05:56 +00:00

10 lines
214 B
Java

// "Add the 'FIELD' target" "true"
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target({ElementType.FIELD, ElementType.METHOD})
@interface Foo {}
class Main {
@Foo int x = 42;
}