You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/11/22 14:40:44 UTC

cxf git commit: Removing some unused code

Repository: cxf
Updated Branches:
  refs/heads/master 301248b26 -> 6b35ed0f2


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/6b35ed0f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/6b35ed0f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/6b35ed0f

Branch: refs/heads/master
Commit: 6b35ed0f2e8f6c4debc5b5133b7a190d299f2a79
Parents: 301248b
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Tue Nov 22 14:40:33 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Tue Nov 22 14:40:33 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/6b35ed0f/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
+}