From be917802e7f98cc2b3cc67529f0981bdac1ecfed Mon Sep 17 00:00:00 2001 From: anushadasari Date: Thu, 29 Aug 2019 13:02:30 +0530 Subject: Sonar- AAF AUTH BATCH Remove this unused import 'java.io.IOException' Remove the declaration of thrown exception 'java.io.IOException', as it cannot be thrown from constructor's body Issue-ID: AAF-957 Change-Id: Id61b054edafe1ea1766972339ac7e9146198f125 Signed-off-by: anushadasari --- .../java/org/onap/aaf/auth/batch/reports/bodies/NotifyCredBody.java | 2 +- .../org/onap/aaf/auth/batch/reports/bodies/OneMonthNotifyCredBody.java | 2 +- .../org/onap/aaf/auth/batch/reports/bodies/OneWeekNotifyCredBody.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/NotifyCredBody.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/NotifyCredBody.java index 7001c024..8eaf6a86 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/NotifyCredBody.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/NotifyCredBody.java @@ -22,7 +22,7 @@ */ package org.onap.aaf.auth.batch.reports.bodies; -import java.io.IOException; + import java.util.GregorianCalendar; import java.util.List; diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/OneMonthNotifyCredBody.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/OneMonthNotifyCredBody.java index 8747ebf8..417d4be4 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/OneMonthNotifyCredBody.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/OneMonthNotifyCredBody.java @@ -26,7 +26,7 @@ import org.onap.aaf.auth.batch.helpers.ExpireRange; import org.onap.aaf.cadi.Access; public class OneMonthNotifyCredBody extends NotifyCredBody { - public OneMonthNotifyCredBody(Access access) throws IOException { + public OneMonthNotifyCredBody(Access access){ super(access, ExpireRange.ONE_MONTH); } diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/OneWeekNotifyCredBody.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/OneWeekNotifyCredBody.java index a1277d55..dae48d85 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/OneWeekNotifyCredBody.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/OneWeekNotifyCredBody.java @@ -26,7 +26,7 @@ import org.onap.aaf.auth.batch.helpers.ExpireRange; import org.onap.aaf.cadi.Access; public class OneWeekNotifyCredBody extends NotifyCredBody { - public OneWeekNotifyCredBody(Access access) throws IOException { + public OneWeekNotifyCredBody(Access access){ super(access, ExpireRange.ONE_WEEK); } -- cgit 1.2.3-korg