FileGetter.java-Merge this if statement with the enclosing one 39/96839/2
authorThugutla sailakshmi <tsaila10@in.ibm.com>
Thu, 10 Oct 2019 05:54:46 +0000 (11:24 +0530)
committerJonathan Gathman <jonathan.gathman@att.com>
Mon, 14 Oct 2019 20:59:00 +0000 (20:59 +0000)
Issue-ID: AAF-876
Change-Id: I447c46173742f47177e3584c99720d5a2ea6f8d3
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cached/FileGetter.java

index b7a6c59..a8c86fa 100644 (file)
@@ -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);
                                        }
-                               }
+                               
                        }
                }
        }