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:16:53 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 45d4bebb7 -> fdfc50e48


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

Branch: refs/heads/master
Commit: fdfc50e48fb6fe7a75833e14ea43c53d266b1f40
Parents: 45d4beb
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:16:41 2014 +0100

----------------------------------------------------------------------
 core/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/fdfc50e4/core/src/main/java/org/apache/cxf/io/CipherPair.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/io/CipherPair.java b/core/src/main/java/org/apache/cxf/io/CipherPair.java
index bf30344..0a4b856 100644
--- a/core/src/main/java/org/apache/cxf/io/CipherPair.java
+++ b/core/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