Skip to content

Commit ee8f1aa

Browse files
author
Phillip Webb
committed
Clarify ResolvableType.resolve() Java Doc
Issue: SPR-10973
1 parent 5358cc0 commit ee8f1aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-core/src/main/java/org/springframework/core/ResolvableType.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ public Class<?> resolveGeneric(int... indexes) {
456456
/**
457457
* Resolve this type to a {@link java.lang.Class}, returning {@code null} if the type
458458
* cannot be resolved. This method will consider bounds of {@link TypeVariable}s and
459-
* {@link WildcardType}s if direct resolution fails.
459+
* {@link WildcardType}s if direct resolution fails, however, bounds of Object.class
460+
* will be ignored.
460461
* @return the resolved {@link Class} or {@code null}
461462
* @see #resolve(Class)
462463
* @see #resolveGeneric(int...)
@@ -469,7 +470,8 @@ public Class<?> resolve() {
469470
/**
470471
* Resolve this type to a {@link java.lang.Class}, returning the specified
471472
* {@code fallback} if the type cannot be resolved. This method will consider bounds
472-
* of {@link TypeVariable}s and {@link WildcardType}s if direct resolution fails.
473+
* of {@link TypeVariable}s and {@link WildcardType}s if direct resolution fails,
474+
* however, bounds of Object.class will be ignored.
473475
* @param fallback the fallback class to use if resolution fails (may be {@code null})
474476
* @return the resolved {@link Class} or the {@code fallback}
475477
* @see #resolve()

0 commit comments

Comments
 (0)