Add javadoc note on recursive resolution as of 6.2

See gh-30079
This commit is contained in:
Juergen Hoeller 2024-02-15 16:50:53 +01:00
parent e788aeb25b
commit d4e8daaede
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2023 the original author or authors. * Copyright 2002-2024 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.
@ -147,6 +147,7 @@ public final class GenericTypeResolver {
/** /**
* Resolve the given generic type against the given context class, * Resolve the given generic type against the given context class,
* substituting type variables as far as possible. * substituting type variables as far as possible.
* <p>As of 6.2, this method resolves type variables recursively.
* @param genericType the (potentially) generic type * @param genericType the (potentially) generic type
* @param contextClass a context class for the target type, for example a class * @param contextClass a context class for the target type, for example a class
* in which the target type appears in a method signature (can be {@code null}) * in which the target type appears in a method signature (can be {@code null})

View File

@ -393,11 +393,9 @@ class GenericTypeResolverTests {
public interface ListOfListSupplier<T> { public interface ListOfListSupplier<T> {
List<List<T>> get(); List<List<T>> get();
} }
public interface StringListOfListSupplier extends ListOfListSupplier<String> { public interface StringListOfListSupplier extends ListOfListSupplier<String> {
} }
} }