sonar-smell add logic to this catch clause 87/129287/2
authorGanesh <ganesh.c@samsung.com>
Tue, 17 May 2022 14:02:22 +0000 (19:32 +0530)
committerGanesh <ganesh.c@samsung.com>
Tue, 17 May 2022 14:31:05 +0000 (20:01 +0530)
Signed-off-by: Ganesh <ganesh.c@samsung.com>
Change-Id: I00e014fda8015c9f5d308d3443cd601cf59863f2
Issue-ID: CLI-444

profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java

index b4654cc..d18090b 100644 (file)
@@ -218,7 +218,7 @@ public class OnapHttpCommand extends OnapCommand {
             if (isAuthRequired) {
                 this.authClient.logout();
             }
-        } catch (OnapCommandException e) {
+        } catch (OnapCommandException e) { //NOSONAR
             throw e;
         } finally {
             this.getResult().setDebugInfo(this.input.toString() + "\n" + this.output.toString());
@@ -262,7 +262,7 @@ public class OnapHttpCommand extends OnapCommand {
         try{
             generateJsonMock(this.getInput(), output, this.getSchemaName());
         } catch (OnapCommandFailedMocoGenerate e) {
-            //NO SONAR ignore it
+            //NOSONAR ignore it
         }
     }