From: anushadasari Date: Wed, 21 Aug 2019 07:01:47 +0000 (+0530) Subject: Remove the declaration of thrown exception X-Git-Tag: 2.1.17~161^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=21bb68c5ca6be430f085c120792f055d5aefbd27;p=aaf%2Fauthz.git Remove the declaration of thrown exception Remove the declaration of thrown exception 'org.onap.aaf.misc.env.APIException','java.io.IOException' as it cannot be thrown from constructor's and method body. Change-Id: I84519b6df9998bbbc9203a59cc4470f8ef8b4e0f Issue-ID: AAF-946 Signed-off-by: anushadasari --- diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/BatchDataView.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/BatchDataView.java index ab3a49fa..d3209a02 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/BatchDataView.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/BatchDataView.java @@ -49,12 +49,12 @@ public class BatchDataView implements DataView { private final CQLBatchLoop cqlBatch; private final Session session; - public BatchDataView(final AuthzTrans trans, final Session session, final boolean dryRun ) throws APIException, IOException { + public BatchDataView(final AuthzTrans trans, final Session session, final boolean dryRun ){ this.session = session; cqlBatch = new CQLBatchLoop(new CQLBatch(trans.info(),session),50,dryRun); } - public Session getSession(AuthzTrans trans) throws APIException, IOException { + public Session getSession(AuthzTrans trans){ return session; }