File tree 1 file changed +4
-2
lines changed
spring-core/src/main/java/org/springframework/core
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,8 @@ public Class<?> resolveGeneric(int... indexes) {
456
456
/**
457
457
* Resolve this type to a {@link java.lang.Class}, returning {@code null} if the type
458
458
* 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.
460
461
* @return the resolved {@link Class} or {@code null}
461
462
* @see #resolve(Class)
462
463
* @see #resolveGeneric(int...)
@@ -469,7 +470,8 @@ public Class<?> resolve() {
469
470
/**
470
471
* Resolve this type to a {@link java.lang.Class}, returning the specified
471
472
* {@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.
473
475
* @param fallback the fallback class to use if resolution fails (may be {@code null})
474
476
* @return the resolved {@link Class} or the {@code fallback}
475
477
* @see #resolve()
You can’t perform that action at this time.
0 commit comments