aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main
diff options
context:
space:
mode:
authorpriyanka.akhade <priyanka.akhade@huawei.com>2020-05-13 19:50:07 +0000
committerpriyanka.akhade <priyanka.akhade@huawei.com>2020-05-13 19:50:07 +0000
commit3ddff861e314b6a450044c2fe295281f58b64eb9 (patch)
treec86ab3e32641531738580420b383a3b9605da156 /framework/src/main
parent5f8784d570e719f4be3d50969f905bc1c31ed42c (diff)
sonar code smells fix- Remove the declaration of thrown exception, as it cannot be thrown from method's body
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Issue-ID: CLI-270 Change-Id: I392b1c4403e7f8cde1d7b06c34455b9f00af4a64
Diffstat (limited to 'framework/src/main')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java b/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java
index abd1dbcc..74e488b4 100644
--- a/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java
+++ b/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java
@@ -216,7 +216,7 @@ public abstract class OnapCommand {
/**
* Any additional profile based such as http schema could be initialized.
*/
- protected List<String> initializeProfileSchema(Map<String, ?> schemaMap, boolean validate) throws OnapCommandException {
+ protected List<String> initializeProfileSchema(Map<String, ?> schemaMap, boolean validate) throws OnapCommandException { //NOSONAR
return new ArrayList<>();
}
@@ -231,11 +231,11 @@ public abstract class OnapCommand {
}
}
- protected void preRun() throws OnapCommandException {
+ protected void preRun() throws OnapCommandException { //NOSONAR
log.debug("{} PRE-RUN", this.getName());
}
- protected void postRun() throws OnapCommandException {
+ protected void postRun() throws OnapCommandException { //NOSONAR
log.debug("{} POST-RUN", this.getName());
}