From: anushadasari Date: Thu, 19 Sep 2019 04:14:35 +0000 (+0530) Subject: Sonar-AAF_Hello.java X-Git-Tag: 2.1.17~114^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=f2ff377c89102191727d8c8b9050716d59e8b9f4;p=aaf%2Fauthz.git Sonar-AAF_Hello.java Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body. Issue-ID: AAF-982 Change-Id: I91d81ff24dbbf435f1f064675902beb61fa8fb06 Signed-off-by: anushadasari --- diff --git a/auth/auth-hello/src/main/java/org/onap/aaf/auth/hello/AAF_Hello.java b/auth/auth-hello/src/main/java/org/onap/aaf/auth/hello/AAF_Hello.java index ff957093..cd9965cf 100644 --- a/auth/auth-hello/src/main/java/org/onap/aaf/auth/hello/AAF_Hello.java +++ b/auth/auth-hello/src/main/java/org/onap/aaf/auth/hello/AAF_Hello.java @@ -90,7 +90,7 @@ public class AAF_Hello extends AbsService { * to do Versions and Content switches * */ - public void route(HttpMethods meth, String path, API api, HttpCode code) throws Exception { + public void route(HttpMethods meth, String path, API api, HttpCode code){ String version = "1.0"; // Get Correct API Class from Mapper route(env,meth,path,code,"text/plain;version="+version,"*/*");