This commit is contained in:
Clément Fournier committed 2022-11-29 15:42:48 +01:00
1 parent 4621d27dfe
commit 6d55c6af27
3 files changed
+8 -6

No files matched your search

@@ -1,3 +1,7 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import static net.sourceforge.pmd.util.OptionalBool.NO;
@@ -100,7 +104,7 @@ public class AnnotationReflectionTest {
@ParameterizedTest
@EnumSource
public void testAnnotOnAnnot(SymImplementation impl) {
// This only checks for Target.ANNOTATION_TYPE annotations
// This only checks for Target.ANNOTATION_TYPE annotations
Class<AnnotWithDefaults> actualClass = AnnotWithDefaults.class;
JClassSymbol sym = impl.getSymbol(ts, actualClass);
@@ -172,7 +176,7 @@ public class AnnotationReflectionTest {
@ParameterizedTest
@EnumSource
public void testAnnotOnConstructor(SymImplementation impl) {
// This only checks Target.CONSTRUCTOR annotations, do not confuse with TYPE_USE on return types
// This only checks Target.CONSTRUCTOR annotations, do not confuse with TYPE_USE on return types
Class<SomeClass> actualClass = SomeClass.class;
JClassSymbol sym = impl.getSymbol(ts, actualClass);
@@ -1,6 +1,7 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.util.Arrays;
@@ -9,11 +9,8 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER})
@Target(ElementType.PARAMETER)
public @interface ParameterAnnotation {
}