From 3ddff861e314b6a450044c2fe295281f58b64eb9 Mon Sep 17 00:00:00 2001 From: "priyanka.akhade" Date: Wed, 13 May 2020 19:50:07 +0000 Subject: sonar code smells fix- Remove the declaration of thrown exception, as it cannot be thrown from method's body Signed-off-by: priyanka.akhade Issue-ID: CLI-270 Change-Id: I392b1c4403e7f8cde1d7b06c34455b9f00af4a64 --- framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/src/main') 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 initializeProfileSchema(Map schemaMap, boolean validate) throws OnapCommandException { + protected List initializeProfileSchema(Map 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()); } -- cgit 1.2.3-korg