package de.otto.edison.validation.validators;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Constraint(validatedBy = {SafeIdValidator.class})
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface SafeId {

    String message() default "{invalid.id.value}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}

@@ -153,49 +153,8 @@
 ed;%0A
-import java.lang.annotation.ElementType;%0A
 impo
@@ -188,16 +188,16 @@
 ention;%0A
+
 import j
@@ -270,16 +270,67 @@
 arget;%0A%0A
+import static java.lang.annotation.ElementType.*;%0A%0A
 @Documen
@@ -397,68 +397,42 @@
 et(%7B
-ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER
+METHOD, FIELD, PARAMETER, TYPE_USE
 %7D)%0A@

add TYPE_USE to @SafeId validation annotation