Browse Source

Add javadoc note on recursive resolution as of 6.2

See gh-30079
pull/32281/head
Juergen Hoeller 2 years ago
parent
commit
d4e8daaede
  1. 3
      spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java
  2. 2
      spring-core/src/test/java/org/springframework/core/GenericTypeResolverTests.java

3
spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java

@ -1,5 +1,5 @@ @@ -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");
* you may not use this file except in compliance with the License.
@ -147,6 +147,7 @@ public final class GenericTypeResolver { @@ -147,6 +147,7 @@ public final class GenericTypeResolver {
/**
* Resolve the given generic type against the given context class,
* 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 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})

2
spring-core/src/test/java/org/springframework/core/GenericTypeResolverTests.java

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

Loading…
Cancel
Save