Add javadoc note on recursive resolution as of 6.2
See gh-30079
This commit is contained in:
parent
e788aeb25b
commit
d4e8daaede
|
@ -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})
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue