Polishing
This commit is contained in:
parent
5499878de0
commit
34d6dd9b62
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -225,7 +225,7 @@ class DataBinderConstructTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static class NestedDataClass {
|
static class NestedDataClass {
|
||||||
|
|
||||||
private final String param1;
|
private final String param1;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -180,10 +180,7 @@ class RegisterReflectionReflectiveProcessorTests {
|
||||||
@RegisterReflection(memberCategories = MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)
|
@RegisterReflection(memberCategories = MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)
|
||||||
static class AnnotatedSimplePojo {
|
static class AnnotatedSimplePojo {
|
||||||
|
|
||||||
private String test;
|
|
||||||
|
|
||||||
AnnotatedSimplePojo(String test) {
|
AnnotatedSimplePojo(String test) {
|
||||||
this.test = test;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -405,7 +405,10 @@ class BridgeMethodResolverTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public abstract static class SubBar<T extends StringBuffer> extends InterBar<T> {
|
public abstract static class SubBar<T extends StringProducer> extends InterBar<T> {
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface StringProducer extends CharSequence {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -570,12 +570,12 @@ class GenericConversionServiceTests {
|
||||||
conversionService.addConverter(new StringListToAListConverter());
|
conversionService.addConverter(new StringListToAListConverter());
|
||||||
conversionService.addConverter(new StringListToBListConverter());
|
conversionService.addConverter(new StringListToBListConverter());
|
||||||
|
|
||||||
List<ARaw> aList = (List<ARaw>) conversionService.convert(List.of("foo"),
|
List<?> aList = (List<?>) conversionService.convert(List.of("foo"),
|
||||||
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class)),
|
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class)),
|
||||||
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(ARaw.class)));
|
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(ARaw.class)));
|
||||||
assertThat(aList).allMatch(e -> e instanceof ARaw);
|
assertThat(aList).allMatch(e -> e instanceof ARaw);
|
||||||
|
|
||||||
List<BRaw> bList = (List<BRaw>) conversionService.convert(List.of("foo"),
|
List<?> bList = (List<?>) conversionService.convert(List.of("foo"),
|
||||||
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class)),
|
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class)),
|
||||||
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(BRaw.class)));
|
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(BRaw.class)));
|
||||||
assertThat(bList).allMatch(e -> e instanceof BRaw);
|
assertThat(bList).allMatch(e -> e instanceof BRaw);
|
||||||
|
@ -945,9 +945,11 @@ class GenericConversionServiceTests {
|
||||||
private static class GenericBaseClass<T> {
|
private static class GenericBaseClass<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
private static class ARaw extends GenericBaseClass {
|
private static class ARaw extends GenericBaseClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
private static class BRaw extends GenericBaseClass {
|
private static class BRaw extends GenericBaseClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -330,7 +330,7 @@ class WebExchangeDataBinderTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static class MultipartDataClass {
|
static class MultipartDataClass {
|
||||||
|
|
||||||
private final FilePart part;
|
private final FilePart part;
|
||||||
|
|
||||||
|
@ -351,4 +351,5 @@ class WebExchangeDataBinderTests {
|
||||||
return nullablePart;
|
return nullablePart;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue