Skip to content

Commit

Permalink
[SEDONA-434] Improve reliability by resolve the nondeterministic of t…
Browse files Browse the repository at this point in the history
…he order of the Map (#1130)
  • Loading branch information
MyEnthusiastic committed Nov 22, 2023
1 parent a282ed0 commit 6478129
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
Expand Down Expand Up @@ -568,7 +568,7 @@ public void saveAsGeoJSON(String outputLocation)
Geometry spatialObject = iterator.next();
Feature jsonFeature;
if (spatialObject.getUserData() != null) {
Map<String, Object> fields = new HashMap<String, Object>();
Map<String, Object> fields = new LinkedHashMap<String, Object>();
String[] fieldValues = spatialObject.getUserData().toString().split("\t");
if (fieldNames != null && fieldValues.length == fieldNames.size()) {
for (int i = 0 ; i < fieldValues.length ; i++) {
Expand Down

0 comments on commit 6478129

Please sign in to comment.