Skip to content

Commit

Permalink
Clarify ResolvableType.resolve() Java Doc
Browse files Browse the repository at this point in the history
Issue: SPR-10973
  • Loading branch information
Phillip Webb committed Oct 10, 2013
1 parent 5358cc0 commit ee8f1aa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ public Class<?> resolveGeneric(int... indexes) {
/**
* Resolve this type to a {@link java.lang.Class}, returning {@code null} if the type
* cannot be resolved. This method will consider bounds of {@link TypeVariable}s and
* {@link WildcardType}s if direct resolution fails.
* {@link WildcardType}s if direct resolution fails, however, bounds of Object.class
* will be ignored.
* @return the resolved {@link Class} or {@code null}
* @see #resolve(Class)
* @see #resolveGeneric(int...)
Expand All @@ -469,7 +470,8 @@ public Class<?> resolve() {
/**
* Resolve this type to a {@link java.lang.Class}, returning the specified
* {@code fallback} if the type cannot be resolved. This method will consider bounds
* of {@link TypeVariable}s and {@link WildcardType}s if direct resolution fails.
* of {@link TypeVariable}s and {@link WildcardType}s if direct resolution fails,
* however, bounds of Object.class will be ignored.
* @param fallback the fallback class to use if resolution fails (may be {@code null})
* @return the resolved {@link Class} or the {@code fallback}
* @see #resolve()
Expand Down

0 comments on commit ee8f1aa

Please sign in to comment.