Static imports do not affect annotations:
====================$ cat -n T.java
1 import java.lang.annotation.Retention;
2 import static java.lang.annotation.RetentionPolicy.RUNTIME;
3
4 @Retention(RUNTIME)
5 @interface T {
6 }
====================$ newjavac T.java
T.java:4: cannot find symbol
symbol : variable RUNTIME
location: @interface T
@Retention(RUNTIME)
^
1 error
====================$
====================$ cat -n T.java
1 import java.lang.annotation.Retention;
2 import static java.lang.annotation.RetentionPolicy.RUNTIME;
3
4 @Retention(RUNTIME)
5 @interface T {
6 }
====================$ newjavac T.java
T.java:4: cannot find symbol
symbol : variable RUNTIME
location: @interface T
@Retention(RUNTIME)
^
1 error
====================$