From dd37614bf83ca78ba350a063873444ca20b4fcd7 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 5 Feb 2018 20:34:11 +0530 Subject: Ignore those exceptions never occurs Issue-ID: CLI-50 Change-Id: If7de4980b0c7b205bd6fcbb8ead71eb017ec1a43 Signed-off-by: Kanagaraj Manickam k00365106 --- .../src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java | 4 ++-- .../src/main/java/org/onap/cli/fw/utils/OnapCommandHelperUtils.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'framework') 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 } -- cgit 1.2.3-korg