TypeDescriptor's getResolvableType() and getSource() are @since 4.0

master
Juergen Hoeller 10 years ago
parent 496492b2d8
commit 0ce90f1d16
  1. 4
      spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

@ -153,6 +153,7 @@ public class TypeDescriptor implements Serializable {
/** /**
* Return the underlying {@link ResolvableType}. * Return the underlying {@link ResolvableType}.
* @since 4.0
*/ */
public ResolvableType getResolvableType() { public ResolvableType getResolvableType() {
return this.resolvableType; return this.resolvableType;
@ -163,9 +164,10 @@ public class TypeDescriptor implements Serializable {
* {@link MethodParameter} or {@link Type} depending on how the {@link TypeDescriptor} * {@link MethodParameter} or {@link Type} depending on how the {@link TypeDescriptor}
* was constructed. This method is primarily to provide access to additional * was constructed. This method is primarily to provide access to additional
* type information or meta-data that alternative JVM languages may provide. * type information or meta-data that alternative JVM languages may provide.
* @since 4.0
*/ */
public Object getSource() { public Object getSource() {
return (this.resolvableType == null ? null : this.resolvableType.getSource()); return (this.resolvableType != null ? this.resolvableType.getSource() : null);
} }
/** /**

Loading…
Cancel
Save