You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2020/02/06 09:59:29 UTC
[syncope] branch master updated: [SYNCOPE-1538] Cleanup
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new dab3acb [SYNCOPE-1538] Cleanup
dab3acb is described below
commit dab3acbda04dd0ccb730eee539db4f4a82359d2e
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Thu Feb 6 10:59:14 2020 +0100
[SYNCOPE-1538] Cleanup
---
.../org/apache/syncope/client/console/panels/RealmChoicePanel.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/RealmChoicePanel.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/RealmChoicePanel.java
index e7d52c3..682e0b1 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/RealmChoicePanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/RealmChoicePanel.java
@@ -26,6 +26,7 @@ import de.agilecoders.wicket.core.markup.html.bootstrap.button.dropdown.DropDown
import de.agilecoders.wicket.core.markup.html.bootstrap.image.GlyphIconType;
import de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
@@ -420,7 +421,7 @@ public class RealmChoicePanel extends Panel {
} else if (cache.containsKey(realm.getParent())) {
cache.get(realm.getParent()).add(realm);
} else {
- cache.put(realm.getParent(), List.of(realm));
+ cache.put(realm.getParent(), Arrays.asList(realm));
}
});
return tree;