cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject git commit: pmd build fix for CXF-5614
Date Fri, 14 Mar 2014 10:18:14 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 2f54cec24 -> a390021cb


pmd build fix for CXF-5614


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

Branch: refs/heads/2.7.x-fixes
Commit: a390021cba3d9235bd0be34ee8dc954b6dbd99da
Parents: 2f54cec
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Fri Mar 14 11:16:24 2014 +0100
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Fri Mar 14 11:17:57 2014 +0100

----------------------------------------------------------------------
 api/src/main/java/org/apache/cxf/io/CipherPair.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/a390021c/api/src/main/java/org/apache/cxf/io/CipherPair.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/cxf/io/CipherPair.java b/api/src/main/java/org/apache/cxf/io/CipherPair.java
index bf30344..0a4b856 100644
--- a/api/src/main/java/org/apache/cxf/io/CipherPair.java
+++ b/api/src/main/java/org/apache/cxf/io/CipherPair.java
@@ -21,12 +21,10 @@ package org.apache.cxf.io;
 
 import java.security.GeneralSecurityException;
 import java.security.Key;
-import java.security.NoSuchAlgorithmException;
 import java.security.SecureRandom;
 
 import javax.crypto.Cipher;
 import javax.crypto.KeyGenerator;
-import javax.crypto.NoSuchPaddingException;
 import javax.crypto.spec.IvParameterSpec;
 
 /**
@@ -71,6 +69,7 @@ public class CipherPair {
             enccipher = Cipher.getInstance(transformation);
             enccipher.init(Cipher.ENCRYPT_MODE, key);
         } catch (GeneralSecurityException e) {
+            // ignore
         }
         return enccipher;
     }
@@ -81,6 +80,7 @@ public class CipherPair {
             deccipher = Cipher.getInstance(transformation);
             deccipher.init(Cipher.DECRYPT_MODE, key, ivp == null ? null : new IvParameterSpec(ivp));
         } catch (GeneralSecurityException e) {
+            // ignore
         }
         return deccipher;
     }


Mime
View raw message