diff --git a/yoga-core/src/main/java/org/skyscreamer/yoga/util/ObjectUtil.java b/yoga-core/src/main/java/org/skyscreamer/yoga/util/ObjectUtil.java index 7c2f4aea..b8e0cf9a 100644 --- a/yoga-core/src/main/java/org/skyscreamer/yoga/util/ObjectUtil.java +++ b/yoga-core/src/main/java/org/skyscreamer/yoga/util/ObjectUtil.java @@ -1,11 +1,13 @@ package org.skyscreamer.yoga.util; +import java.util.Date; + public class ObjectUtil { public static boolean isPrimitive( Class clazz ) { return clazz.isPrimitive() || clazz.isEnum() || Number.class.isAssignableFrom( clazz ) || String.class.isAssignableFrom( clazz ) || Boolean.class.isAssignableFrom( clazz ) - || Character.class.isAssignableFrom( clazz ); + || Character.class.isAssignableFrom( clazz ) || Date.class.isAssignableFrom( clazz ); } }