You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by fm...@apache.org on 2015/10/30 12:34:56 UTC

[17/50] [abbrv] syncope git commit: ordered set for the entitlement

ordered set for the entitlement


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/207d93c7
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/207d93c7
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/207d93c7

Branch: refs/heads/SYNCOPE-156
Commit: 207d93c7ceadd2d3a6798308558a81e69c6ce24e
Parents: 435e59d
Author: massi <ma...@tirasa.net>
Authored: Wed Oct 28 15:00:39 2015 +0100
Committer: massi <ma...@tirasa.net>
Committed: Wed Oct 28 15:00:39 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/syncope/common/lib/types/Entitlement.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/207d93c7/common/lib/src/main/java/org/apache/syncope/common/lib/types/Entitlement.java
----------------------------------------------------------------------
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/types/Entitlement.java b/common/lib/src/main/java/org/apache/syncope/common/lib/types/Entitlement.java
index 20b8347..746a95b 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/types/Entitlement.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/types/Entitlement.java
@@ -23,6 +23,7 @@ import java.lang.reflect.Modifier;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.Set;
+import java.util.TreeSet;
 
 public final class Entitlement {
 
@@ -253,7 +254,7 @@ public final class Entitlement {
     private static final Set<String> ENTITLEMENTS;
 
     static {
-        Set<String> values = new HashSet<>();
+        Set<String> values = new TreeSet<>();
         for (Field field : Entitlement.class.getDeclaredFields()) {
             if (Modifier.isStatic(field.getModifiers()) && String.class.equals(field.getType())) {
                 values.add(field.getName());