sonar minor issue for TopicRestService.java 97/43297/1
authorSnigdha Sucharita Patra <sp00503415@techmahindra.com>
Tue, 17 Apr 2018 09:38:47 +0000 (15:08 +0530)
committerSnigdha Sucharita Patra <sp00503415@techmahindra.com>
Tue, 17 Apr 2018 09:38:47 +0000 (15:08 +0530)
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 <sp00503415@techmahindra.com>
src/main/java/com/att/nsa/dmaap/service/TopicRestService.java

index 50bd069..597390a 100644 (file)
@@ -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());