NIHVIVO-799 Use LinkedHashMap in SelectListGenerator so order of HARDCODED_LITERALS select is exactly as specified.

This commit is contained in:
rjy7 2010-07-14 23:14:32 +00:00
parent 497f12d633
commit ec71544bb6

View file

@ -7,6 +7,7 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
@ -52,7 +53,7 @@ public class SelectListGenerator {
return Collections.EMPTY_MAP;
}
// now create an empty HashMap to populate and return
HashMap <String,String> optionsMap = new HashMap<String,String>();
HashMap <String,String> optionsMap = new LinkedHashMap<String,String>();
// for debugging, keep a count of the number of options populated
int optionsCount=0;