Skip to content

Commit d4e8daa

Browse files
committed
Add javadoc note on recursive resolution as of 6.2
See gh-30079
1 parent e788aeb commit d4e8daa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -147,6 +147,7 @@ public static Class<?>[] resolveTypeArguments(Class<?> clazz, Class<?> genericTy
147147
/**
148148
* Resolve the given generic type against the given context class,
149149
* substituting type variables as far as possible.
150+
* <p>As of 6.2, this method resolves type variables recursively.
150151
* @param genericType the (potentially) generic type
151152
* @param contextClass a context class for the target type, for example a class
152153
* in which the target type appears in a method signature (can be {@code null})

Diff for: spring-core/src/test/java/org/springframework/core/GenericTypeResolverTests.java

-2
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,9 @@ public void nestedGenerics(List<Map<String, Integer>> input) {
393393
public interface ListOfListSupplier<T> {
394394

395395
List<List<T>> get();
396-
397396
}
398397

399398
public interface StringListOfListSupplier extends ListOfListSupplier<String> {
400-
401399
}
402400

403401
}

0 commit comments

Comments
 (0)