File tree 1 file changed +3
-5
lines changed
spring-expression/src/test/java/org/springframework/expression/spel
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import java .util .Set ;
20
20
21
+ import org .jspecify .annotations .Nullable ;
21
22
import org .junit .jupiter .api .BeforeEach ;
22
23
import org .junit .jupiter .api .Nested ;
23
24
import org .junit .jupiter .api .Test ;
30
31
import org .springframework .expression .spel .support .StandardEvaluationContext ;
31
32
import org .springframework .expression .spel .support .StandardTypeConverter ;
32
33
import org .springframework .expression .spel .support .StandardTypeLocator ;
33
- import org .springframework .lang .Nullable ;
34
34
35
35
import static org .assertj .core .api .Assertions .assertThat ;
36
36
import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
@@ -344,15 +344,13 @@ record ArrayHolder(String... array) {
344
344
345
345
static class ArrayHolderConverter implements GenericConverter {
346
346
347
- @ Nullable
348
347
@ Override
349
- public Set <ConvertiblePair > getConvertibleTypes () {
348
+ public @ Nullable Set <ConvertiblePair > getConvertibleTypes () {
350
349
return Set .of (new ConvertiblePair (ArrayHolder .class , Object [].class ));
351
350
}
352
351
353
- @ Nullable
354
352
@ Override
355
- public String [] convert (@ Nullable Object source , TypeDescriptor sourceType , TypeDescriptor targetType ) {
353
+ public @ Nullable String [] convert (@ Nullable Object source , TypeDescriptor sourceType , TypeDescriptor targetType ) {
356
354
return ((ArrayHolder ) source ).array ();
357
355
}
358
356
}
You can’t perform that action at this time.
0 commit comments