From 021b394a49a39dbaf5265cec0d4ebae2a729813b Mon Sep 17 00:00:00 2001 From: anushadasari Date: Sun, 25 Aug 2019 21:18:38 +0530 Subject: [PATCH] Remove the declaration of thrown exception Remove the declaration of thrown exception 'java.io.IOException','java.security.NoSuchAlgorithmException', 'javax.crypto.NoSuchPaddingException', as it cannot be thrown from constructor's body Change-Id: I0af468d8112fa8ecb3c7626fbbdedf2d375f7601 Issue-ID: AAF-956 Signed-off-by: anushadasari --- cadi/core/src/main/java/org/onap/aaf/cadi/AES.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/AES.java b/cadi/core/src/main/java/org/onap/aaf/cadi/AES.java index c4f3d504..4ec51682 100644 --- a/cadi/core/src/main/java/org/onap/aaf/cadi/AES.java +++ b/cadi/core/src/main/java/org/onap/aaf/cadi/AES.java @@ -63,7 +63,7 @@ public class AES implements Encryption { return kgen.generateKey(); } - public AES(byte[] aeskey, int offset, int len) throws IOException, NoSuchAlgorithmException, NoSuchPaddingException { + public AES(byte[] aeskey, int offset, int len){ aeskeySpec = new SecretKeySpec(aeskey,offset,len,AES); } -- 2.16.6