removed block of commented-out lines of code 43/128243/1
authorsharath reddy <bs.reddy@huawei.com>
Fri, 1 Apr 2022 07:54:34 +0000 (13:24 +0530)
committersharath reddy <bs.reddy@huawei.com>
Fri, 1 Apr 2022 07:55:23 +0000 (13:25 +0530)
Issue-ID: CLI-439

report: tested weather-report

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: I2e15d26c85909fa46df248c7ff9ac38fc7c34c70

framework/src/main/java/org/onap/cli/fw/store/OnapCommandArtifactStore.java

index ca4c603..3b6e785 100644 (file)
@@ -233,12 +233,7 @@ public class OnapCommandArtifactStore {
 
         final String SP = searchPattern; //NOSONAR
 
-        for (File file: new File(getBasePath()).listFiles(/*new FilenameFilter() {
-            @Override
-            public boolean accept(File dir, String name) {
-                return name.matches(SP);
-            }
-        }*/)) {
+        for (File file: new File(getBasePath()).listFiles()) {
             try (JsonReader jsonReader = new JsonReader(new FileReader(file))){
                 artifacts.add(gson.fromJson(jsonReader, Artifact.class));
             } catch (Exception e) { // NOSONAR