Fixed name of JSR310 module

Silly error, which resulted in code that didn't compile :-(.
This commit is contained in:
ant3 2016-06-19 21:10:59 +01:00
parent c1a5839d44
commit cf42b4166f
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ public class ApiClient {
objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);{{#java8}}
objectMapper.registerModule(new JavaTimeModule());{{/java8}}{{^java8}}
objectMapper.registerModule(new JSR310Module());{{/java8}}{{^java8}}
objectMapper.registerModule(new JodaModule());{{/java8}}
objectMapper.setDateFormat(ApiClient.buildDefaultDateFormat());

View File

@ -20,7 +20,7 @@ public class JSON implements ContextResolver<ObjectMapper> {
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);{{#java8}}
mapper.registerModule(new JavaTimeModule());{{/java8}}{{^java8}}
mapper.registerModule(new JSR310Module());{{/java8}}{{^java8}}
mapper.registerModule(new JodaModule());{{/java8}}
}