Browse Source

Polishing

pull/23591/head
Sam Brannen 5 years ago
parent
commit
c80705a708
  1. 2
      spring-beans/src/main/java/org/springframework/beans/BeanUtils.java

2
spring-beans/src/main/java/org/springframework/beans/BeanUtils.java

@ -609,7 +609,7 @@ public abstract class BeanUtils { @@ -609,7 +609,7 @@ public abstract class BeanUtils {
* @see #isSimpleProperty(Class)
*/
public static boolean isSimpleValueType(Class<?> type) {
return (type != void.class && type != Void.class &&
return (Void.class != type && void.class != type &&
(ClassUtils.isPrimitiveOrWrapper(type) ||
Enum.class.isAssignableFrom(type) ||
CharSequence.class.isAssignableFrom(type) ||

Loading…
Cancel
Save