From a5198855887d112d5dd218760842a08b8166d57b Mon Sep 17 00:00:00 2001 From: Kenton Gray Date: Fri, 27 Dec 2013 19:07:45 -0600 Subject: [PATCH] Consider Date primitive This allows jersey/jax-ws to handle date representation (by default epoch) --- .../src/main/java/org/skyscreamer/yoga/util/ObjectUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); } }