aboutsummaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-02-05 20:34:11 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-02-05 20:34:11 +0530
commitdd37614bf83ca78ba350a063873444ca20b4fcd7 (patch)
treed41de6c779a4184a7f744eebad4df13dbe538633 /framework
parent8bf3e7795bcc1c068b800bf3a974312a47e883a2 (diff)
Ignore those exceptions never occurs
Issue-ID: CLI-50 Change-Id: If7de4980b0c7b205bd6fcbb8ead71eb017ec1a43 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java4
-rw-r--r--framework/src/main/java/org/onap/cli/fw/utils/OnapCommandHelperUtils.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java b/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java
index 19dc3f56..854b55be 100644
--- a/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java
+++ b/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java
@@ -314,8 +314,8 @@ public class OnapCommandRegistrar {
String versionInfo = "";
try {
versionInfo = IOUtils.toString(this.getClass().getClassLoader().getResourceAsStream(OnapCommandConstants.VERSION_INFO));
- } catch (IOException e) {
- //Never occurs // NOSONAR
+ } catch (IOException e) { // NOSONAR
+ //Never occurs
}
versionInfo = versionInfo.replaceAll(OnapCommandConstants.VERSION_INFO_PLACE_HOLDER_ENB_PRD_VER, configuredProductVersion);
diff --git a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandHelperUtils.java b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandHelperUtils.java
index 5e8c3f52..81589b09 100644
--- a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandHelperUtils.java
+++ b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandHelperUtils.java
@@ -53,7 +53,7 @@ public class OnapCommandHelperUtils {
impBuildDate = attributes.getValue("Build-Time");
}
- catch (IOException e)
+ catch (IOException e) // NOSONAR
{
//Ignore it as it will never occur
}