SonarFix-Remove declaration of thrown exception 23/92023/2
authoranushadasari <danush10@in.ibm.com>
Thu, 25 Jul 2019 16:01:56 +0000 (21:31 +0530)
committeranusha dasari <danush10@in.ibm.com>
Fri, 26 Jul 2019 05:36:49 +0000 (05:36 +0000)
Remove the declaration of thrown exception 'org.onap.appc.exceptions.APPCException', as it cannot be thrown from method's body.

Issue-ID: APPC-1664
Change-Id: I0c66da105d735b4ac97ee35d1e6bea122be80722
Signed-off-by: anushadasari <danush10@in.ibm.com>
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/CreateSnapshot.java

index ee25ad0..81a939e 100644 (file)
@@ -162,7 +162,7 @@ public class CreateSnapshot extends ProviderServerOperation {
     }
 
     private Image createSnapshotNested(Image SnapShot, RequestContext RcContext, VMURL vm, String vmUrl,
-            String identStr, SvcLogicContext ctx) throws APPCException {
+            String identStr, SvcLogicContext ctx){
         String msg;
         Context context = null;
         String tenantName = "Unknown";// this variable is also used in catch