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>
@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());