From ed3b2509d32fecc29f92be5922bf5df9c5d1a120 Mon Sep 17 00:00:00 2001 From: Ramanjaneya-Huawei Date: Thu, 19 Oct 2017 11:10:56 +0530 Subject: 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 --- .../openecomp/mso/cloud/IdentityAuthenticationTypeJsonSerializer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'adapters/mso-adapter-utils/src/main/java') 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()); } } -- cgit 1.2.3-korg