Skip to content
Snippets Groups Projects
Commit 1a866e6c authored by treinar's avatar treinar
Browse files

Serialization/deserialization issue fixed

parent 0f38833a
No related branches found
No related tags found
No related merge requests found
...@@ -277,7 +277,8 @@ public class NaerstadModel extends I18nImpl implements Model{ ...@@ -277,7 +277,8 @@ public class NaerstadModel extends I18nImpl implements Model{
List<WeatherObservation> observations = mapper.convertValue(config.getConfigParameter("observations"), new TypeReference<List<WeatherObservation>>(){}); //List<WeatherObservation> observations = mapper.convertValue(config.getConfigParameter("observations"), new TypeReference<List<WeatherObservation>>(){});
List<WeatherObservation> observations = (List<WeatherObservation>) config.getConfigParameter("observations");
for(WeatherObservation o:observations) for(WeatherObservation o:observations)
{ {
switch(o.getElementMeasurementTypeId()) switch(o.getElementMeasurementTypeId())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment