Skip to content
Snippets Groups Projects

Fix compilation error after Jackson update

Merged Lene Wasskog requested to merge feature/vipsutv-358-deliarfobs into develop
3 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -260,7 +260,7 @@ public class DeliaRadicumFloralisObservationModel extends I18nImpl implements Mo
@Override
public void setConfiguration(ModelConfiguration config) throws ConfigValidationException {
this.getObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
this.pestObservations = this.getObjectMapper().convertValue(config.getConfigParameter("pestObservations"), new TypeReference<List<ObservationImpl>>(){});
this.pestObservations = this.getObjectMapper().convertValue(config.getConfigParameter("pestObservations"), new TypeReference<List<Observation>>(){});
Collections.sort(this.pestObservations);
// Setting timezone
this.timeZone = TimeZone.getTimeZone((String) config.getConfigParameter("timeZone"));
Loading