cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Removing some unused code
Date Tue, 22 Nov 2016 14:45:02 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 5156dd256 -> 6899a37bc


Removing some unused code


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

Branch: refs/heads/3.1.x-fixes
Commit: 6899a37bcd3ed2f9e1b7e47100ecd2dfdb569479
Parents: 5156dd2
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Nov 22 14:40:33 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Nov 22 14:41:00 2016 +0000

----------------------------------------------------------------------
 .../rs/security/saml/sso/SamlpRequestComponentBuilder.java  | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/6899a37b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlpRequestComponentBuilder.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlpRequestComponentBuilder.java
b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlpRequestComponentBuilder.java
index 69c4cea3..5280cb8 100644
--- a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlpRequestComponentBuilder.java
+++ b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlpRequestComponentBuilder.java
@@ -19,7 +19,6 @@
 
 package org.apache.cxf.rs.security.saml.sso;
 
-import java.util.ArrayList;
 import java.util.List;
 import java.util.UUID;
 
@@ -138,17 +137,11 @@ public final class SamlpRequestComponentBuilder {
         
         if (authnCtxClassRefList != null) {
             List<AuthnContextClassRef> classRefList = authnCtx.getAuthnContextClassRefs();
-            if (classRefList == null) {
-                classRefList = new ArrayList<>();
-            }
             classRefList.addAll(authnCtxClassRefList);
         }
         
         if (authnCtxDeclRefList != null) {
             List<AuthnContextDeclRef> declRefList = authnCtx.getAuthnContextDeclRefs();
-            if (declRefList == null) {
-                declRefList = new ArrayList<>();
-            }
             declRefList.addAll(authnCtxDeclRefList);
         }
         
@@ -169,4 +162,4 @@ public final class SamlpRequestComponentBuilder {
         return authnCtxClassRef;
     }
     
-}
\ No newline at end of file
+}


Mime
View raw message