summaryrefslogtreecommitdiffstats
path: root/csarvalidation/src/main/java
diff options
context:
space:
mode:
authorAvinash S <avinash.s@huawei.com>2018-03-08 05:19:17 +0000
committerAvinash S <avinash.s@huawei.com>2018-03-08 05:19:17 +0000
commitcc1ecbb01b39f972535e24cd38fb641ccf4cd6b4 (patch)
treef49484fb4a8ac24e8887383e292b408e54cc78c1 /csarvalidation/src/main/java
parent3b98cea01fc44f7fc0d18fc03acd24b487e595ec (diff)
Fix sonar issues for VNFSDK Validation
Sonar blocker fix Issue-ID: VNFSDK-219 Change-Id: Ifb4fff7f1d74e132698f4a89ac0306ab0ba0d3cb Signed-off-by: Avinash S <avinash.s@huawei.com>
Diffstat (limited to 'csarvalidation/src/main/java')
-rw-r--r--csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java b/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java
index 8b6be13..bd5646c 100644
--- a/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java
+++ b/csarvalidation/src/main/java/org/onap/validation/csar/CsarValidator.java
@@ -114,20 +114,19 @@ public class CsarValidator {
LOG.error("CSAR %s contents are not a valid! ");
return false;
}
- return true;
} catch (FileNotFoundException e1) {
LOG.error("CSAR %s is not a valid CSAR/ZIP file! ", e1);
return false;
}
finally {
raf.close();
- return true;
}
}
catch (IOException e1) {
LOG.error("CSAR %s is not a valid CSAR/ZIP file! ", e1);
return false;
}
+ return true;
}
/**