sonar code smells fix- Remove the declaration of thrown exception, as it cannot be... 40/107640/1
authorpriyanka.akhade <priyanka.akhade@huawei.com>
Wed, 13 May 2020 19:50:07 +0000 (19:50 +0000)
committerpriyanka.akhade <priyanka.akhade@huawei.com>
Wed, 13 May 2020 19:50:07 +0000 (19:50 +0000)
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com>
Issue-ID: CLI-270
Change-Id: I392b1c4403e7f8cde1d7b06c34455b9f00af4a64

framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java

index abd1dbc..74e488b 100644 (file)
@@ -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());
     }