From 7574ed2410095df464619a834d4c7052a99c60e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kal=C3=A9n?= Date: Tue, 30 Oct 2018 02:53:01 +0100 Subject: [PATCH] feat(jsr-310): default to scalar for java time package Default to scalar handling of JDK8+ time package for JSR-310 support --- .../main/java/io/aexp/nodes/graphql/GraphQLRequestEntity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodes/src/main/java/io/aexp/nodes/graphql/GraphQLRequestEntity.java b/nodes/src/main/java/io/aexp/nodes/graphql/GraphQLRequestEntity.java index 25fe7ef..30a625c 100644 --- a/nodes/src/main/java/io/aexp/nodes/graphql/GraphQLRequestEntity.java +++ b/nodes/src/main/java/io/aexp/nodes/graphql/GraphQLRequestEntity.java @@ -198,7 +198,9 @@ private boolean isProperty(Class clazz) { if (scalar.equals(clazz)) return true; } } - return clazz.isPrimitive() || clazz.getPackage().getName().equalsIgnoreCase("java.lang"); + return clazz.isPrimitive() + || clazz.getPackage().getName().equalsIgnoreCase("java.lang") + || clazz.getPackage().getName().equalsIgnoreCase("java.time"); } /**