Merge branch '6.2.x'

This commit is contained in:
Sam Brannen 2025-01-27 15:22:10 +01:00
commit 5574f45cb1
5 changed files with 12 additions and 10 deletions

View File

@ -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");
* you may not use this file except in compliance with the License.

View File

@ -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");
* you may not use this file except in compliance with the License.
@ -180,10 +180,7 @@ class RegisterReflectionReflectiveProcessorTests {
@RegisterReflection(memberCategories = MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)
static class AnnotatedSimplePojo {
String test;
AnnotatedSimplePojo(String test) {
this.test = test;
}
}

View File

@ -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");
* 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 {
}

View File

@ -570,12 +570,12 @@ class GenericConversionServiceTests {
conversionService.addConverter(new StringListToAListConverter());
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(ARaw.class)));
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(BRaw.class)));
assertThat(bList).allMatch(e -> e instanceof BRaw);
@ -943,9 +943,11 @@ class GenericConversionServiceTests {
private static class GenericBaseClass<T> {
}
@SuppressWarnings("rawtypes")
private static class ARaw extends GenericBaseClass {
}
@SuppressWarnings("rawtypes")
private static class BRaw extends GenericBaseClass {
}

View File

@ -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");
* you may not use this file except in compliance with the License.