| 1 |
package targets.bug544288; |
| 2 |
|
| 3 |
import static java.lang.annotation.ElementType.ANNOTATION_TYPE; |
| 4 |
import static java.lang.annotation.ElementType.CONSTRUCTOR; |
| 5 |
import static java.lang.annotation.ElementType.FIELD; |
| 6 |
import static java.lang.annotation.ElementType.LOCAL_VARIABLE; |
| 7 |
import static java.lang.annotation.ElementType.METHOD; |
| 8 |
import static java.lang.annotation.ElementType.MODULE; |
| 9 |
import static java.lang.annotation.ElementType.PACKAGE; |
| 10 |
import static java.lang.annotation.ElementType.PARAMETER; |
| 11 |
import static java.lang.annotation.ElementType.TYPE; |
| 12 |
import static java.lang.annotation.ElementType.TYPE_PARAMETER; |
| 13 |
import static java.lang.annotation.ElementType.TYPE_USE; |
| 14 |
|
| 15 |
import java.lang.annotation.Target; |
| 16 |
|
| 17 |
|
| 18 |
@Deprecated |
| 19 |
public class TestEntity { |
| 20 |
|
| 21 |
@ATypeUse |
| 22 |
TestEmbeddable fieldWithTypeUse; |
| 23 |
|
| 24 |
@Target({ FIELD, TYPE }) |
| 25 |
public @interface AType { |
| 26 |
} |
| 27 |
|
| 28 |
@Target({ FIELD }) |
| 29 |
public @interface AField { |
| 30 |
} |
| 31 |
|
| 32 |
@Target({ FIELD, METHOD }) |
| 33 |
public @interface AMethod { |
| 34 |
} |
| 35 |
|
| 36 |
@Target({ FIELD, PARAMETER }) |
| 37 |
public @interface AParameter { |
| 38 |
} |
| 39 |
|
| 40 |
@Target({ FIELD, CONSTRUCTOR }) |
| 41 |
public @interface AConstructor { |
| 42 |
} |
| 43 |
|
| 44 |
@Target({ FIELD, LOCAL_VARIABLE }) |
| 45 |
public @interface ALocalVariable { |
| 46 |
} |
| 47 |
|
| 48 |
@Target({ FIELD, ANNOTATION_TYPE }) |
| 49 |
public @interface AAnnotationType { |
| 50 |
} |
| 51 |
|
| 52 |
@Target({ FIELD, PACKAGE }) |
| 53 |
public @interface APackage { |
| 54 |
} |
| 55 |
|
| 56 |
@Target({ FIELD, TYPE_PARAMETER }) |
| 57 |
public @interface ATypeParameter { |
| 58 |
} |
| 59 |
|
| 60 |
@Target({ FIELD, TYPE_USE }) |
| 61 |
public @interface ATypeUse { |
| 62 |
} |
| 63 |
|
| 64 |
@Target({ FIELD, MODULE }) |
| 65 |
public @interface AModule { |
| 66 |
} |
| 67 |
} |