From: Snigdha Sucharita Patra Date: Tue, 17 Apr 2018 09:38:47 +0000 (+0530) Subject: sonar minor issue for TopicRestService.java X-Git-Tag: v1.1.4~15^2~6 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1345b0df91af107654e49cb6d517a44bdcb03094;p=dmaap%2Fmessagerouter%2Fmessageservice.git sonar minor issue for TopicRestService.java Remove the declaration of thrown exception 'org.json.JSONException' which is a runtime exception Sonar Link: https://sonar.onap.org/project/issues?assignees=Snigdha503415&id=org.onap.dmaap.messagerouter.messageservice%3AdmaapMR1&open=AV5hThDc32hFUzlqeS3r&resolved=false&severities=MINOR Location: src/main/java/com/att/nsa/dmaap/service/TopicRestService.java Line No-302 Change-Id: I44b91c8e0a485400fcaad7ef2e899ffa4d1d0dc1 Issue-ID: DMAAP-420 Signed-off-by: Snigdha Sucharita Patra --- diff --git a/src/main/java/com/att/nsa/dmaap/service/TopicRestService.java b/src/main/java/com/att/nsa/dmaap/service/TopicRestService.java index 50bd069..597390a 100644 --- a/src/main/java/com/att/nsa/dmaap/service/TopicRestService.java +++ b/src/main/java/com/att/nsa/dmaap/service/TopicRestService.java @@ -299,7 +299,7 @@ public class TopicRestService { @Path("/create") @Consumes({ MediaType.APPLICATION_JSON }) // @Produces(MediaType.TEXT_PLAIN) - public void createTopic(TopicBean topicBean) throws CambriaApiException, JSONException { + public void createTopic(TopicBean topicBean) throws CambriaApiException{ try { LOGGER.info("Creating Topic." + topicBean.getTopicName());