Skip to content
Snippets Groups Projects
Commit 5b94d02f authored by Lene Wasskog's avatar Lene Wasskog
Browse files

Merge branch 'feature/vipsutv-358-deliarfobs' into 'develop'

Fix compilation error after Jackson update

See merge request VIPS/Model_DELIARFOBS!1
parents ff10bc6b e22bc536
No related branches found
No related tags found
1 merge request!1Fix compilation error after Jackson update
target/
classes/
.idea/
......@@ -7,9 +7,9 @@
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>no.nibio.vips.common</groupId>
<groupId>no.nibio.vips</groupId>
<artifactId>VIPSCommon</artifactId>
<version>1.0-SNAPSHOT</version>
<version>2022.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
......
......@@ -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"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment