From 82e99b5cf2785749bc433246bf868fdbd66b56de Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Mon, 17 Sep 2018 14:37:12 +0530 Subject: ActionPuntDAO.java: Fixed sonar issue Sonar Link: https://sonar.onap.org/code?id=org.onap.aaf.authz%3Aparent&selected=org.onap.aaf.authz%3Aaaf-auth-batch%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Factions%2FActionPuntDAO.java Issue-ID: AAF-498 Change-Id: Ic1358553b771af53abf25ab073d36ec0d1ab84f7 Signed-off-by: Arundathi Patil --- .../src/main/java/org/onap/aaf/auth/actions/ActionPuntDAO.java | 5 ----- 1 file changed, 5 deletions(-) (limited to 'auth/auth-batch') diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/ActionPuntDAO.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/ActionPuntDAO.java index 707425ca..ed032c95 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/ActionPuntDAO.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/actions/ActionPuntDAO.java @@ -31,21 +31,17 @@ import org.onap.aaf.misc.env.APIException; import com.datastax.driver.core.Cluster; public abstract class ActionPuntDAO extends ActionDAO { -// private static final SecureRandom random = new SecureRandom(); private int months; -// private int range; protected static final Date now = new Date(); public ActionPuntDAO(AuthzTrans trans, Cluster cluster, int months, int range, boolean dryRun) throws APIException, IOException { super(trans, cluster,dryRun); this.months = months; -// this.range = range; } public ActionPuntDAO(AuthzTrans trans, ActionDAO predecessor, int months, int range) { super(trans, predecessor); this.months = months; -// this.range = range; } @@ -56,7 +52,6 @@ public abstract class ActionPuntDAO extends ActionDAO { /* * This method Randomized date. This is no longer needed. Just add the Punt Months. - temp.setTime(now); temp.add(GregorianCalendar.MONTH, months); if (range>0) { int forward = Math.abs(random.nextInt()%range); -- cgit 1.2.3-korg