diff options
author | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-09-05 15:12:55 +0530 |
---|---|---|
committer | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-09-05 15:13:35 +0530 |
commit | a5c7f79da240235b626b2e939f57f30b8e36d1a2 (patch) | |
tree | 2a479b4cc97b188351b27ea6c829184e3e6f4f76 | |
parent | 5ef26dcdd8588ec7956c713c2777dd4f0a617988 (diff) |
Merge this if statement with the enclosing one
Merge this if statement with the enclosing one
Issue-ID: AAF-876
Change-Id: Ieb5cc4b96281bdbcf4a809371986fbe9160bab26
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
-rw-r--r-- | auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/Cred.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/Cred.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/Cred.java index 83638cc7..640efae7 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/Cred.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/helpers/Cred.java @@ -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: |