浏览代码

Changed internals to use list instead of set, to preserve element ordering.

Ben Alex 21 年之前
父节点
当前提交
4124b1c298
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      core/src/main/java/org/acegisecurity/runas/RunAsManagerImpl.java

+ 3 - 3
core/src/main/java/org/acegisecurity/runas/RunAsManagerImpl.java

@@ -26,9 +26,9 @@ import org.aopalliance.intercept.MethodInvocation;
 
 import org.springframework.beans.factory.InitializingBean;
 
-import java.util.HashSet;
 import java.util.Iterator;
-import java.util.Set;
+import java.util.List;
+import java.util.Vector;
 
 
 /**
@@ -73,7 +73,7 @@ public class RunAsManagerImpl implements RunAsManager, InitializingBean {
 
     public Authentication buildRunAs(Authentication authentication,
         MethodInvocation invocation, ConfigAttributeDefinition config) {
-        Set newAuthorities = new HashSet();
+        List newAuthorities = new Vector();
         Iterator iter = config.getConfigAttributes();
 
         while (iter.hasNext()) {