From 25e675bc353c8fab4b077af67e58e3567fa8d570 Mon Sep 17 00:00:00 2001 From: Snigdha Sucharita Patra Date: Fri, 6 Apr 2018 11:56:34 +0530 Subject: sonar issue for ConfigTool.java Either log or rethrow this exception Sonar Link: https://sonar.onap.org/project/issues?assignees=Snigdha503415&id=org.onap.dmaap.messagerouter.messageservice%3AdmaapMR1&open=AV5hThD632hFUzlqeS4d&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/dmaap/tools/ConfigTool.java Line No-129 Change-Id: I5788872926495b1aa335d6ad88c89de69c9360c2 Issue-ID: DMAAP-392 Signed-off-by: Snigdha Sucharita Patra --- src/main/java/com/att/nsa/dmaap/tools/ConfigTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/att/nsa/dmaap/tools/ConfigTool.java b/src/main/java/com/att/nsa/dmaap/tools/ConfigTool.java index 85725e5..19f22d0 100644 --- a/src/main/java/com/att/nsa/dmaap/tools/ConfigTool.java +++ b/src/main/java/com/att/nsa/dmaap/tools/ConfigTool.java @@ -128,7 +128,7 @@ public class ConfigTool extends CommandLineTool } catch ( ConfigDbException e ) { - out.println ( "Command failed: " + e.getMessage() ); + out.println ( "Command failed: " + e); } } -- cgit 1.2.3-korg From c67e38cdaff3cb8c9a8ee4d2e9339190f69c278a Mon Sep 17 00:00:00 2001 From: Snigdha Sucharita Patra Date: Fri, 6 Apr 2018 12:57:19 +0530 Subject: sonar issue for ApiKeysRestService.java.java Remove the declaration of thrown exception Sonar Link: https://sonar.onap.org/project/issues?assignees=Snigdha503415&id=org.onap.dmaap.messagerouter.messageservice%3AdmaapMR1&open=AV5hThCr32hFUzlqeS1M&resolved=false&severities=MINOR Location: src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java Line No-163 Change-Id: Icc4bbba249b3e135c0794609c83ef9edcbe1901c Issue-ID: DMAAP-393 Signed-off-by: Snigdha Sucharita Patra --- src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java b/src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java index eb76a96..95b2d5e 100644 --- a/src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java +++ b/src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java @@ -160,7 +160,7 @@ public class ApiKeysRestService { @POST @Path("/create") @Consumes(MediaType.APPLICATION_JSON) - public void createApiKey(ApiKeyBean nsaApiKey) throws CambriaApiException, JSONException { + public void createApiKey(ApiKeyBean nsaApiKey) throws CambriaApiException { log.info("Creating Api Key."); try { -- cgit 1.2.3-korg From 244299e82d62ad61882a1927221ed9da0add4619 Mon Sep 17 00:00:00 2001 From: Snigdha Sucharita Patra Date: Fri, 6 Apr 2018 13:16:04 +0530 Subject: sonar issue for ApiKeysRestService.java.java Remove the declaration of thrown exception Sonar Link: https://sonar.onap.org/project/issues?assignees=Snigdha503415&id=org.onap.dmaap.messagerouter.messageservice%3AdmaapMR1&open=AV5hThCs32hFUzlqeS1N&resolved=false&severities=MINOR Location: src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java Line No-195 Change-Id: I6c771a10b98ea999c928214205d8eb615d5b6be4 Issue-ID: DMAAP-394 Signed-off-by: Snigdha Sucharita Patra --- src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java b/src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java index 95b2d5e..a76a04c 100644 --- a/src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java +++ b/src/main/java/com/att/nsa/dmaap/service/ApiKeysRestService.java @@ -192,7 +192,7 @@ public class ApiKeysRestService { @PUT @Path("/{apiKey}") public void updateApiKey(@PathParam("apiKey") String apiKeyName, - ApiKeyBean nsaApiKey) throws CambriaApiException, JSONException { + ApiKeyBean nsaApiKey) throws CambriaApiException { log.info("Updating Api Key."); try { -- cgit 1.2.3-korg