Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
feat(jsr-310): default to scalar for java time package
Browse files Browse the repository at this point in the history
Default to scalar handling of JDK8+ time package for JSR-310 support
  • Loading branch information
mkalen committed Oct 30, 2018
1 parent e6292c1 commit 7574ed2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/**
Expand Down

0 comments on commit 7574ed2

Please sign in to comment.