You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2019/04/21 15:37:25 UTC

[lucene-solr] branch master updated: LUCENE-2562: Preserve map key order for the user interface.

This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 62ed046  LUCENE-2562: Preserve map key order for the user interface.
62ed046 is described below

commit 62ed046e52df0d120c285819c7b9680288681b0b
Author: Tomoko Uchida <to...@apache.org>
AuthorDate: Mon Apr 22 00:36:41 2019 +0900

    LUCENE-2562: Preserve map key order for the user interface.
---
 .../src/java/org/apache/lucene/luke/models/commits/CommitsImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/luke/src/java/org/apache/lucene/luke/models/commits/CommitsImpl.java b/lucene/luke/src/java/org/apache/lucene/luke/models/commits/CommitsImpl.java
index 23cc68a..f1dcf43 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/models/commits/CommitsImpl.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/models/commits/CommitsImpl.java
@@ -200,7 +200,7 @@ public final class CommitsImpl extends LukeModel implements Commits {
     if (dir == null) {
       return Collections.emptyMap();
     }
-    return Map.copyOf(commitMap);
+    return new TreeMap<>(commitMap);
   }
 
   private SegmentInfos findSegmentInfos(long commitGen) throws LukeException, IOException {