Skip to content

Commit 11526e7

Browse files
authored
Update JavacCompilerTest.java to not allow annotation on classes
Usage of the annotation on classes is undocumented and not actively supported. Signed-off-by: ascopes <[email protected]>
1 parent 6867641 commit 11526e7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

java-compiler-testing/src/main/java/io/github/ascopes/jct/junit/JavacCompilerTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,15 @@
8080
@Documented
8181
@ParameterizedTest(name = "for compiler \"{0}\"")
8282
@Retention(RetentionPolicy.RUNTIME)
83-
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.TYPE})
84-
@TestTemplate
8583
@Tags({
8684
@Tag("java-compiler-testing-test"),
8785
@Tag("javac-test")
8886
})
87+
@Target({
88+
ElementType.ANNOTATION_TYPE,
89+
ElementType.METHOD,
90+
})
91+
@TestTemplate
8992
public @interface JavacCompilerTest {
9093

9194
/**

0 commit comments

Comments
 (0)