LUCENE-2562: Preserve map key order for the user interface.

This commit is contained in:
Tomoko Uchida 2019-04-22 00:36:41 +09:00
parent 1204327b56
commit 62ed046e52
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ public final class CommitsImpl extends LukeModel implements Commits {
if (dir == null) { if (dir == null) {
return Collections.emptyMap(); return Collections.emptyMap();
} }
return Map.copyOf(commitMap); return new TreeMap<>(commitMap);
} }
private SegmentInfos findSegmentInfos(long commitGen) throws LukeException, IOException { private SegmentInfos findSegmentInfos(long commitGen) throws LukeException, IOException {