Merge this if statement with the enclosing one 17/95017/1
authorThugutla sailakshmi <tsaila10@in.ibm.com>
Thu, 5 Sep 2019 09:42:55 +0000 (15:12 +0530)
committerThugutla sailakshmi <tsaila10@in.ibm.com>
Thu, 5 Sep 2019 09:43:35 +0000 (15:13 +0530)
Merge this if statement with the enclosing one

Issue-ID: AAF-876
Change-Id: Ieb5cc4b96281bdbcf4a809371986fbe9160bab26
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/Cred.java

index 83638cc..640efae 100644 (file)
@@ -271,11 +271,9 @@ public class Cred  {
         public void inc(int type, Date start, Date expires) {
             for (int i=0;i<dates.length-1;++i) {
                 if (start.before(dates[i])) {
-                    if (type==CredDAO.CERT_SHA256_RSA) {
-                        if (start.after(dates[i+1])) {
+                    if ((type==CredDAO.CERT_SHA256_RSA)&&(start.after(dates[i+1]))) {
                             ++x509Added[i];
-                        }
-                    }
+                         }
                     if (expires.after(dates[i])) {
                         switch(type) {
                             case CredDAO.RAW: