turned TypeDescriptor.UNKNOWN into an internal detail (SPR-7349)
This commit is contained in:
parent
3c0ce48cbd
commit
d4f73c1d3d
|
|
@ -43,7 +43,7 @@ public class TypeDescriptor {
|
|||
public static final TypeDescriptor NULL = new TypeDescriptor();
|
||||
|
||||
/** Constant defining a TypeDescriptor for 'unknown type' */
|
||||
public static final TypeDescriptor UNKNOWN = new TypeDescriptor(Object.class);
|
||||
private static final TypeDescriptor UNKNOWN = new TypeDescriptor(Object.class);
|
||||
|
||||
private static final Map<Class<?>, TypeDescriptor> typeDescriptorCache = new HashMap<Class<?>, TypeDescriptor>();
|
||||
|
||||
|
|
|
|||
|
|
@ -118,11 +118,11 @@ public class PropertyTypeDescriptor extends TypeDescriptor {
|
|||
}
|
||||
|
||||
public TypeDescriptor forElementType(Class<?> elementType) {
|
||||
if (elementType == null) {
|
||||
return TypeDescriptor.UNKNOWN;
|
||||
if (elementType != null) {
|
||||
return new PropertyTypeDescriptor(this.propertyDescriptor, getMethodParameter(), elementType);
|
||||
}
|
||||
else {
|
||||
return new PropertyTypeDescriptor(this.propertyDescriptor, getMethodParameter(), elementType);
|
||||
return super.forElementType(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue