File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
validator/src/main/java/io/avaje/validation Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
import static java .lang .annotation .ElementType .MODULE ;
4
4
import static java .lang .annotation .ElementType .PACKAGE ;
5
5
import static java .lang .annotation .ElementType .TYPE ;
6
- import static java .lang .annotation .RetentionPolicy .CLASS ;
6
+ import static java .lang .annotation .RetentionPolicy .SOURCE ;
7
7
8
8
import java .lang .annotation .Retention ;
9
9
import java .lang .annotation .Target ;
12
12
* Specify external types for which to generate Valid Adapters. Use when you can't place a @Valid
13
13
* annotation on an external type (such as a mvn/gradle dependency).
14
14
*/
15
- @ Retention (CLASS )
15
+ @ Retention (SOURCE )
16
16
@ Target ({TYPE , PACKAGE , MODULE })
17
17
public @interface ImportValidPojo {
18
18
Original file line number Diff line number Diff line change 1
1
package io .avaje .validation .adapter ;
2
2
3
3
import static java .lang .annotation .ElementType .TYPE ;
4
+ import static java .lang .annotation .RetentionPolicy .SOURCE ;
4
5
5
6
import java .lang .annotation .Annotation ;
7
+ import java .lang .annotation .Retention ;
6
8
import java .lang .annotation .Target ;
7
9
8
10
/**
40
42
* }</pre>
41
43
*/
42
44
@ Target (TYPE )
45
+ @ Retention (SOURCE )
43
46
public @interface ConstraintAdapter {
44
47
45
48
/** The Annotation this validator targets */
You can’t perform that action at this time.
0 commit comments