File tree Expand file tree Collapse file tree 9 files changed +23
-14
lines changed
blackbox-test/src/test/java/example/avaje/nested
validator/src/main/java/io/avaje/validation/core Expand file tree Collapse file tree 9 files changed +23
-14
lines changed Original file line number Diff line number Diff line change 1
1
package example .avaje .nested ;
2
2
3
- import io .avaje .lang .Nullable ;
3
+ import org .jspecify .annotations .Nullable ;
4
+
4
5
import jakarta .validation .Valid ;
5
6
import jakarta .validation .constraints .NotBlank ;
6
7
import jakarta .validation .constraints .Size ;
Original file line number Diff line number Diff line change 27
27
<surefire .useModulePath>false</surefire .useModulePath>
28
28
<nexus .staging.autoReleaseAfterClose>true</nexus .staging.autoReleaseAfterClose>
29
29
<maven .compiler.release>17</maven .compiler.release>
30
- <inject .version>10.1 </inject .version>
30
+ <inject .version>10.2 </inject .version>
31
31
<spi .version>2.1</spi .version>
32
32
</properties >
33
33
Original file line number Diff line number Diff line change 12
12
import java .util .concurrent .ConcurrentHashMap ;
13
13
import java .util .function .Supplier ;
14
14
15
- import io .avaje .lang .Nullable ;
15
+ import org .jspecify .annotations .Nullable ;
16
+
16
17
import io .avaje .validation .adapter .ValidationAdapter ;
17
18
import io .avaje .validation .adapter .ValidationContext ;
18
19
import io .avaje .validation .core .adapters .BasicAdapters ;
Original file line number Diff line number Diff line change 1
1
package io .avaje .validation .core ;
2
2
3
- import io .avaje .lang .Nullable ;
3
+ import java .util .ArrayDeque ;
4
+ import java .util .LinkedHashSet ;
5
+ import java .util .List ;
6
+ import java .util .Locale ;
7
+ import java .util .Set ;
8
+
9
+ import org .jspecify .annotations .Nullable ;
10
+
4
11
import io .avaje .validation .ConstraintViolation ;
5
12
import io .avaje .validation .ConstraintViolationException ;
6
13
import io .avaje .validation .adapter .ValidationContext ;
7
14
import io .avaje .validation .adapter .ValidationRequest ;
8
15
import io .avaje .validation .groups .Default ;
9
16
10
- import java .util .*;
11
-
12
17
final class DRequest implements ValidationRequest {
13
18
14
19
private static final List <Class <?>> DEFAULT_GROUP = List .of (Default .class );
@@ -83,9 +88,9 @@ public void throwWithViolations() {
83
88
private String message () {
84
89
final var msg = new StringBuilder (100 );
85
90
msg .append (violations .size ()).append (" constraint violation(s) occurred." );
86
- violations .stream (). limit ( 10 ). forEach ( cv -> {
87
- msg . append ( " \n " ). append ( cv . path ()). append ( ": " ). append ( cv . message ());
88
- } );
91
+ violations .stream ()
92
+ . limit ( 10 )
93
+ . forEach ( cv -> msg . append ( " \n " ). append ( cv . path ()). append ( ": " ). append ( cv . message ()) );
89
94
final int others = violations .size () - 10 ;
90
95
if (others > 0 ) {
91
96
msg .append ("\n and " ).append (others ).append (" other error(s)" );
Original file line number Diff line number Diff line change 21
21
import java .util .concurrent .ConcurrentHashMap ;
22
22
import java .util .function .Supplier ;
23
23
24
- import io .avaje .lang .Nullable ;
24
+ import org .jspecify .annotations .Nullable ;
25
+
25
26
import io .avaje .validation .ConstraintViolation ;
26
27
import io .avaje .validation .Validator ;
27
28
import io .avaje .validation .adapter .ValidationAdapter ;
Original file line number Diff line number Diff line change 5
5
import java .util .Locale ;
6
6
import java .util .Set ;
7
7
8
- import io . avaje . lang .Nullable ;
8
+ import org . jspecify . annotations .Nullable ;
9
9
10
10
final class LocaleResolver {
11
11
Original file line number Diff line number Diff line change 11
11
import java .util .MissingResourceException ;
12
12
import java .util .ResourceBundle ;
13
13
14
+ import org .jspecify .annotations .Nullable ;
15
+
14
16
import io .avaje .applog .AppLog ;
15
- import io .avaje .lang .Nullable ;
16
17
17
18
final class ResourceBundleManager {
18
19
private static final System .Logger logger = AppLog .getLogger (ResourceBundleManager .class );
Original file line number Diff line number Diff line change 4
4
import java .util .Locale ;
5
5
import java .util .Set ;
6
6
7
- import io .avaje .lang .Nullable ;
7
+ import org .jspecify .annotations .Nullable ;
8
+
8
9
import io .avaje .validation .ConstraintViolation ;
9
10
import io .avaje .validation .ConstraintViolationException ;
10
11
import io .avaje .validation .adapter .ValidationAdapter ;
Original file line number Diff line number Diff line change 15
15
import io .avaje .validation .adapter .ValidationContext ;
16
16
import io .avaje .validation .adapter .ValidationContext .AdapterCreateRequest ;
17
17
import io .avaje .validation .adapter .ValidationRequest ;
18
- import io .avaje .validation .core .adapters .BasicAdapters .PatternAdapter ;
19
18
import io .avaje .validation .spi .AnnotationFactory ;
20
19
21
20
public final class BasicAdapters {
You can’t perform that action at this time.
0 commit comments