Skip to content
Snippets Groups Projects
Commit 0b159929 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Reintroduced the setKeys method to avoid Jackson/ObjectMapper being confused

parent c2bdc550
Branches
Tags
No related merge requests found
...@@ -51,6 +51,7 @@ public interface Result extends Comparable{ ...@@ -51,6 +51,7 @@ public interface Result extends Comparable{
public Geometry getValidGeometry(); public Geometry getValidGeometry();
/* The result parameters in this Result object */ /* The result parameters in this Result object */
public void setKeys(Set<String> keys); // Don't remove this! It's here to trick Jackson/Objectmapper!
public Set<String> getKeys(); public Set<String> getKeys();
/* Setting and getting values */ /* Setting and getting values */
......
...@@ -48,6 +48,12 @@ public class ResultImpl implements Result{ ...@@ -48,6 +48,12 @@ public class ResultImpl implements Result{
public Date getValidTimeStart() { public Date getValidTimeStart() {
return this.validTimeStart; return this.validTimeStart;
} }
@Override
public void setKeys(Set<String> keys) {
// Don't remove this!
// This is just here to trick Jackson/Objectmapper!
}
@Override @Override
public Set<String> getKeys() { public Set<String> getKeys() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment