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