From: Ramanjaneya-Huawei Date: Thu, 19 Oct 2017 05:40:56 +0000 (+0530) Subject: Remove the declaration of thrown exception X-Git-Tag: v1.1.0~119^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F19651%2F1;p=so.git Remove the declaration of thrown exception 'org.codehaus.jackson.JsonProcessingException' which is a subclass of 'java.io.IOException' Change-Id: I29ddf71ad7166824dd3fdc8e3aa40fb5d482b4c0 Issue-id: SO-224 Signed-off-by: Ramanjaneya-Huawei --- diff --git a/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/IdentityAuthenticationTypeJsonSerializer.java b/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/IdentityAuthenticationTypeJsonSerializer.java index 0777c60278..052f09ab85 100644 --- a/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/IdentityAuthenticationTypeJsonSerializer.java +++ b/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/IdentityAuthenticationTypeJsonSerializer.java @@ -22,17 +22,15 @@ package org.openecomp.mso.cloud; import java.io.IOException; import org.codehaus.jackson.JsonGenerator; -import org.codehaus.jackson.JsonProcessingException; import org.codehaus.jackson.map.JsonSerializer; import org.codehaus.jackson.map.SerializerProvider; -import org.openecomp.mso.cloud.CloudIdentity.IdentityServerType; public class IdentityAuthenticationTypeJsonSerializer extends JsonSerializer { @Override public void serialize(IdentityAuthenticationTypeAbstract tmpObj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) - throws IOException, JsonProcessingException { + throws IOException { jsonGenerator.writeObject(tmpObj.toString()); } }