Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ED959200B36 for ; Wed, 22 Jun 2016 01:20:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EBD29160A60; Tue, 21 Jun 2016 23:20:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3ED7A160A4F for ; Wed, 22 Jun 2016 01:20:40 +0200 (CEST) Received: (qmail 3070 invoked by uid 500); 21 Jun 2016 23:20:39 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 3061 invoked by uid 99); 21 Jun 2016 23:20:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2016 23:20:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4C490E020A; Tue, 21 Jun 2016 23:20:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ggregory@apache.org To: commits@commons.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: commons-crypto git commit: The declared exception GeneralSecurityException is not actually thrown. Date: Tue, 21 Jun 2016 23:20:39 +0000 (UTC) archived-at: Tue, 21 Jun 2016 23:20:41 -0000 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 Authored: Tue Jun 21 16:20:37 2016 -0700 Committer: ggregory 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();