diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado/info')
-rw-r--r-- | src/main/java/com/amazon/carbonado/info/AutomaticAdapterSelector.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/info/AutomaticAdapterSelector.java b/src/main/java/com/amazon/carbonado/info/AutomaticAdapterSelector.java index dad7f17..1a1b0c9 100644 --- a/src/main/java/com/amazon/carbonado/info/AutomaticAdapterSelector.java +++ b/src/main/java/com/amazon/carbonado/info/AutomaticAdapterSelector.java @@ -55,7 +55,8 @@ class AutomaticAdapterSelector { if (DateTime.class.isAssignableFrom(propertyType) ||
DateMidnight.class.isAssignableFrom(propertyType) ||
LocalDate.class.isAssignableFrom(propertyType) ||
- LocalDateTime.class.isAssignableFrom(propertyType))
+ LocalDateTime.class.isAssignableFrom(propertyType) ||
+ java.util.Date.class.isAssignableFrom(propertyType))
{
return selectAdapter(property, DateTimeAdapter.class, readMethod);
} else if (String.class.isAssignableFrom(propertyType)) {
|