|
16 | 16 |
|
17 | 17 | package org.springframework.web.method.support; |
18 | 18 |
|
| 19 | +import java.lang.annotation.Annotation; |
| 20 | +import java.lang.annotation.ElementType; |
| 21 | +import java.lang.annotation.Retention; |
| 22 | +import java.lang.annotation.RetentionPolicy; |
| 23 | +import java.lang.annotation.Target; |
| 24 | +import java.lang.reflect.Method; |
| 25 | +import java.util.Arrays; |
| 26 | +import java.util.List; |
| 27 | +import java.util.StringJoiner; |
| 28 | +import java.util.function.Consumer; |
| 29 | +import java.util.function.Predicate; |
| 30 | + |
19 | 31 | import jakarta.validation.Valid; |
20 | 32 | import jakarta.validation.constraints.NotEmpty; |
21 | 33 | import jakarta.validation.constraints.Size; |
22 | 34 | import org.jspecify.annotations.Nullable; |
23 | 35 | import org.junit.jupiter.api.Test; |
| 36 | + |
24 | 37 | import org.springframework.beans.BeanUtils; |
25 | 38 | import org.springframework.context.MessageSourceResolvable; |
26 | 39 | import org.springframework.context.support.DefaultMessageSourceResolvable; |
|
44 | 57 | import org.springframework.web.method.annotation.HandlerMethodValidationException; |
45 | 58 | import org.springframework.web.testfixture.method.ResolvableMethod; |
46 | 59 |
|
47 | | -import java.lang.annotation.Annotation; |
48 | | -import java.lang.annotation.ElementType; |
49 | | -import java.lang.annotation.Retention; |
50 | | -import java.lang.annotation.RetentionPolicy; |
51 | | -import java.lang.annotation.Target; |
52 | | -import java.lang.reflect.Method; |
53 | | -import java.util.Arrays; |
54 | | -import java.util.List; |
55 | | -import java.util.StringJoiner; |
56 | | -import java.util.function.Consumer; |
57 | | -import java.util.function.Predicate; |
58 | | - |
59 | 60 | import static org.assertj.core.api.Assertions.assertThat; |
60 | 61 |
|
61 | 62 | /** |
@@ -140,7 +141,6 @@ private static MethodValidationResult createMethodValidationResult(HandlerMethod |
140 | 141 | } |
141 | 142 |
|
142 | 143 |
|
143 | | - |
144 | 144 | @SuppressWarnings("unused") |
145 | 145 | private record Person(@Size(min = 1, max = 10) String name) { |
146 | 146 |
|
|
0 commit comments