Skip to content

Commit

Permalink
unify the Map type used for project groups
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Jul 10, 2023
1 parent 0714998 commit a987198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ public Configuration() {
setFetchHistoryWhenNotInCache(true);
setFoldingEnabled(true);
setGenerateHtml(true);
setGroups(new HashMap<>());
setGroups(new TreeMap<>());
setGroupsCollapseThreshold(4);
setHandleHistoryOfRenamedFiles(false);
setHistoryBasedReindex(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
*/
package org.opengrok.web.api.v1.controller;

Expand Down Expand Up @@ -70,7 +70,7 @@ private List<String> listGroups() {

@Test
void emptyGroups() {
env.setGroups(new HashMap<>());
env.setGroups(new TreeMap<>());
assertFalse(env.hasGroups());
List<String> groups = listGroups();
assertNotNull(groups);
Expand Down

0 comments on commit a987198

Please sign in to comment.