Skip to content

Commit

Permalink
@target(ANNOTATION_TYPE) for ValidateWith, fixes junit-team#1611
Browse files Browse the repository at this point in the history
  • Loading branch information
panchenko committed May 21, 2019
1 parent fd27d36 commit ccf1cbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/junit/validator/ValidateWith.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package org.junit.validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* Allows for an {@link AnnotationValidator} to be attached to an annotation.
Expand All @@ -13,6 +15,7 @@
* @since 4.12
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
@Inherited
public @interface ValidateWith {
Class<? extends AnnotationValidator> value();
Expand Down

0 comments on commit ccf1cbb

Please sign in to comment.