summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/src/main/java/org
diff options
context:
space:
mode:
authorThugutla sailakshmi <tsaila10@in.ibm.com>2019-10-10 11:24:46 +0530
committerJonathan Gathman <jonathan.gathman@att.com>2019-10-14 20:59:00 +0000
commitc264d0c9cd34398614564672a5a8fb21f15786e4 (patch)
tree64c2f5e96cd99ace6f7a021adb1dd672e51662ae /auth/auth-cass/src/main/java/org
parent2e49787dbbb3093c52babb3ec8a0ab4827d649ce (diff)
FileGetter.java-Merge this if statement with the enclosing one
Issue-ID: AAF-876 Change-Id: I447c46173742f47177e3584c99720d5a2ea6f8d3 Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
Diffstat (limited to 'auth/auth-cass/src/main/java/org')
-rw-r--r--auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/FileGetter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/FileGetter.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/FileGetter.java
index b7a6c59d..a8c86fa5 100644
--- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/FileGetter.java
+++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/FileGetter.java
@@ -51,8 +51,7 @@ public class FileGetter {
private FileGetter(Access access) {
if(access!=null) {
String filename = access.getProperty(AAF_FILEGETTER,null);
- if(filename!=null) {
- if(!isLoaded) {
+ if((filename!=null)&&(!isLoaded)) {
data = new TreeMap<>();
sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss+SSSS");
CSV csv = new CSV(access, filename).setDelimiter('|');
@@ -103,7 +102,7 @@ public class FileGetter {
} catch( CadiException | IOException e) {
access.log(Level.ERROR, e);
}
- }
+
}
}
}