Sonar Minor: Remove the thrown runtime exception. 35/27935/1
authoraishkashyap <as00476394@techmahindra.com>
Thu, 11 Jan 2018 07:59:11 +0000 (13:29 +0530)
committeraishkashyap <as00476394@techmahindra.com>
Thu, 11 Jan 2018 07:59:20 +0000 (13:29 +0530)
Remove the declaration of thrown runtime exception.

Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.aai.esr-server%3Aaai-esr-server-parent#resolved=false|severities=MINOR

Location:
src/main/java/org/onap/aai/esr/externalservice/aai/ThirdpartySdncRegisterProvider.java

Line No:53

Issue-ID: AAI-624
Change-Id: Ief9b736eebcb1e55bbc61e3a4d223368f97ee19a
Signed-off-by: aishkashyap <as00476394@techmahindra.com>
esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ThirdpartySdncRegisterProvider.java

index d4c4bc4..a9b89a5 100644 (file)
@@ -46,7 +46,7 @@ public class ThirdpartySdncRegisterProvider implements MessageBodyWriter<EsrThir
     @Override
     public void writeTo(EsrThirdpartySdncDetail t, Class<?> type, Type genericType, Annotation[] annotations,
             MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
     @Override
     public void writeTo(EsrThirdpartySdncDetail t, Class<?> type, Type genericType, Annotation[] annotations,
             MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-            throws IOException, WebApplicationException {
+            throws IOException{
         String json = new Gson().toJson(t, EsrThirdpartySdncDetail.class);
         logger.info("the param to register VIM input is:" + json);
         entityStream.write(json.getBytes("UTF-8"));
         String json = new Gson().toJson(t, EsrThirdpartySdncDetail.class);
         logger.info("the param to register VIM input is:" + json);
         entityStream.write(json.getBytes("UTF-8"));