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:
Uwe Schindler 2012-07-01 21:53:26 +00:00
parent 6a6aaf67d2
commit 8356f38ad5
1 changed files with 2 additions and 2 deletions

View File

@ -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();