cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: JDK7 fix
Date Mon, 20 Jun 2016 17:32:08 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 9520839dd -> edb2304a4


JDK7 fix


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

Branch: refs/heads/3.1.x-fixes
Commit: edb2304a4e9213051c052017a397b829048a7485
Parents: 9520839
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Jun 20 18:31:58 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Jun 20 18:31:58 2016 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/sts/claims/LdapUtils.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/edb2304a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/LdapUtils.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/LdapUtils.java
b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/LdapUtils.java
index 55106bc..7d14aca 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/LdapUtils.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/LdapUtils.java
@@ -18,7 +18,7 @@
  */
 package org.apache.cxf.sts.claims;
 
-import java.util.Collections;
+import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -97,8 +97,8 @@ public final class LdapUtils {
         String objectClass, String filterAttributeName, String filterAttributeValue,
         String searchAttribute) {
 
-        List<Filter> filters = 
-            Collections.singletonList(new EqualsFilter(filterAttributeName, filterAttributeValue));
+        List<Filter> filters = new ArrayList<>(1);
+        filters.add(new EqualsFilter(filterAttributeName, filterAttributeValue));
         return getAttributeOfEntries(ldapTemplate, baseDN, objectClass, filters, searchAttribute);
     }
     


Mime
View raw message