commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-crypto git commit: The declared exception GeneralSecurityException is not actually thrown.
Date Tue, 21 Jun 2016 23:20:39 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master e1021d82b -> be447dbbb


The declared exception GeneralSecurityException is not actually thrown.

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

Branch: refs/heads/master
Commit: be447dbbbf6e31004ee3c604a7538d82e0673703
Parents: e1021d8
Author: ggregory <ggregory@apache.org>
Authored: Tue Jun 21 16:20:37 2016 -0700
Committer: ggregory <ggregory@apache.org>
Committed: Tue Jun 21 16:20:37 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/commons/crypto/examples/StreamExample.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/be447dbb/src/main/java/org/apache/commons/crypto/examples/StreamExample.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/examples/StreamExample.java b/src/main/java/org/apache/commons/crypto/examples/StreamExample.java
index eac4e9e..3cc874b 100644
--- a/src/main/java/org/apache/commons/crypto/examples/StreamExample.java
+++ b/src/main/java/org/apache/commons/crypto/examples/StreamExample.java
@@ -5,7 +5,6 @@ import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.nio.charset.StandardCharsets;
-import java.security.GeneralSecurityException;
 import java.util.Arrays;
 import java.util.Properties;
 
@@ -25,7 +24,7 @@ public class StreamExample {
         return input.getBytes(StandardCharsets.UTF_8);
     }
 
-    public static void main(String []args) throws GeneralSecurityException, IOException {
+    public static void main(String []args) throws IOException {
         final SecretKeySpec key = new SecretKeySpec(getUTF8Bytes("1234567890123456"),"AES");
         final IvParameterSpec iv = new IvParameterSpec(getUTF8Bytes("1234567890123456"));
         Properties properties = new Properties();


Mime
View raw message