Skip to content

Commit 49d1c44

Browse files
authored
Stop using HashSet to convey column lists (#108)
1 parent c99da09 commit 49d1c44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

laboratory/src/org/labkey/laboratory/LaboratoryManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
import java.util.Date;
7272
import java.util.HashMap;
7373
import java.util.HashSet;
74+
import java.util.LinkedHashSet;
7475
import java.util.List;
7576
import java.util.Map;
7677
import java.util.Set;
@@ -388,7 +389,7 @@ private void populateDefaultDataForTable(User u, Container c, String schema, Str
388389
List<Object> existingValues = new TableSelector(targetTable, PageFlowUtil.set(keyCol)).getArrayList(Object.class);
389390

390391
//Now find the values from /Shared
391-
Set<String> selectCols = new HashSet<>(columns);
392+
Set<String> selectCols = new LinkedHashSet<>(columns);
392393
columns.add(keyCol);
393394

394395
final List<Map<String, Object>> rows = new ArrayList<>();

0 commit comments

Comments
 (0)