Skip to content

Commit

Permalink
Set Source Retention where needed (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan authored Jul 2, 2024
1 parent 46f451d commit c525a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static java.lang.annotation.ElementType.MODULE;
import static java.lang.annotation.ElementType.PACKAGE;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.CLASS;
import static java.lang.annotation.RetentionPolicy.SOURCE;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;
Expand All @@ -12,7 +12,7 @@
* Specify external types for which to generate Valid Adapters. Use when you can't place a @Valid
* annotation on an external type (such as a mvn/gradle dependency).
*/
@Retention(CLASS)
@Retention(SOURCE)
@Target({TYPE, PACKAGE, MODULE})
public @interface ImportValidPojo {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package io.avaje.validation.adapter;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.SOURCE;

import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
Expand Down Expand Up @@ -40,6 +42,7 @@
* }</pre>
*/
@Target(TYPE)
@Retention(SOURCE)
public @interface ConstraintAdapter {

/** The Annotation this validator targets */
Expand Down

0 comments on commit c525a75

Please sign in to comment.