From: anushadasari Date: Tue, 24 Sep 2019 16:07:40 +0000 (+0530) Subject: Sonar-TypedCode.java X-Git-Tag: 2.1.17~107^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=5e0e574432dabcba1fb4a84a752b000b466999bd;hp=8499b068f18fc50aa82cb8489178a969e0fada7c;p=aaf%2Fauthz.git Sonar-TypedCode.java Remove the declaration of thrown exception 'java.io.IOException','javax.servlet.ServletException' as it cannot be thrown from method's body Issue-ID: AAF-985 Change-Id: Iffc6517b569e6f71876eea8839ec30172c508641 Signed-off-by: anushadasari --- diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/TypedCode.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/TypedCode.java index 1a66cf7d..6f1372f3 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/TypedCode.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/TypedCode.java @@ -128,7 +128,7 @@ public class TypedCode extends Content { return type.y.y.add(new Pair(tag,"version".equals(tag)?new Version(value):value)); } - public Pair, List>>> prep(TRANS trans, String compare) throws IOException, ServletException { + public Pair, List>>> prep(TRANS trans, String compare){ Pair, List>>> c,rv=null; if (types.size()==1 && "".equals((c=types.get(0)).x)) { // if there are no checks for type, skip rv = c;