mirror of https://github.com/apache/lucene.git
Fix test failure with JDK8: The problem is undefined order of HashMaps. This here is more a NamedList like object, so we use LinkedHashMap.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1356033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6a6aaf67d2
commit
8356f38ad5
|
@ -2,7 +2,7 @@ package org.apache.solr.schema;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
@ -208,7 +208,7 @@ public class JsonPreAnalyzedParser implements PreAnalyzedParser {
|
|||
|
||||
@Override
|
||||
public String toFormattedString(Field f) throws IOException {
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
Map<String,Object> map = new LinkedHashMap<String,Object>();
|
||||
map.put(VERSION_KEY, VERSION);
|
||||
if (f.fieldType().stored()) {
|
||||
String stringValue = f.stringValue();
|
||||
|
|
Loading…
Reference in New Issue