Skip to content

Commit 5574f45

Browse files
committed
Merge branch '6.2.x'
2 parents 1167b30 + 34d6dd9 commit 5574f45

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

spring-context/src/test/java/org/springframework/validation/DataBinderConstructTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-core/src/test/java/org/springframework/aot/hint/annotation/RegisterReflectionReflectiveProcessorTests.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -180,10 +180,7 @@ public void setDescription(String description) {
180180
@RegisterReflection(memberCategories = MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)
181181
static class AnnotatedSimplePojo {
182182

183-
String test;
184-
185183
AnnotatedSimplePojo(String test) {
186-
this.test = test;
187184
}
188185
}
189186

spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -405,7 +405,10 @@ void someMethod(T theArg, Object otherArg) {
405405
}
406406

407407

408-
public abstract static class SubBar<T extends StringBuffer> extends InterBar<T> {
408+
public abstract static class SubBar<T extends StringProducer> extends InterBar<T> {
409+
}
410+
411+
public interface StringProducer extends CharSequence {
409412
}
410413

411414

spring-core/src/test/java/org/springframework/core/convert/support/GenericConversionServiceTests.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -570,12 +570,12 @@ void stringListToListOfSubclassOfUnboundGenericClass() {
570570
conversionService.addConverter(new StringListToAListConverter());
571571
conversionService.addConverter(new StringListToBListConverter());
572572

573-
List<ARaw> aList = (List<ARaw>) conversionService.convert(List.of("foo"),
573+
List<?> aList = (List<?>) conversionService.convert(List.of("foo"),
574574
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class)),
575575
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(ARaw.class)));
576576
assertThat(aList).allMatch(e -> e instanceof ARaw);
577577

578-
List<BRaw> bList = (List<BRaw>) conversionService.convert(List.of("foo"),
578+
List<?> bList = (List<?>) conversionService.convert(List.of("foo"),
579579
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(String.class)),
580580
TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(BRaw.class)));
581581
assertThat(bList).allMatch(e -> e instanceof BRaw);
@@ -943,9 +943,11 @@ public Color convert(String source) {
943943
private static class GenericBaseClass<T> {
944944
}
945945

946+
@SuppressWarnings("rawtypes")
946947
private static class ARaw extends GenericBaseClass {
947948
}
948949

950+
@SuppressWarnings("rawtypes")
949951
private static class BRaw extends GenericBaseClass {
950952
}
951953

spring-web/src/test/java/org/springframework/web/bind/support/WebExchangeDataBinderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)