Merge "Sonar fix in mso-adapter-utils"
[so.git] / bpmn / so-bpmn-infrastructure-common / src / main / groovy / org / onap / so / bpmn / infrastructure / scripts / CompareModelofE2EServiceInstance.groovy
index 608bf66..df11549 100644 (file)
@@ -6,7 +6,7 @@
  * ================================================================================
  * Modifications Copyright (c) 2019 Samsung
  * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the Apache License, Version 2.0 (the "License")
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * 
@@ -19,9 +19,9 @@
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
-package org.onap.so.bpmn.infrastructure.scripts;
+package org.onap.so.bpmn.infrastructure.scripts
 
-import static org.apache.commons.lang3.StringUtils.*;
+import static org.apache.commons.lang3.StringUtils.*
 
 import org.apache.commons.lang3.*
 import org.camunda.bpm.engine.delegate.BpmnError
@@ -55,7 +55,7 @@ import groovy.json.*
  * @param - WorkflowException
  */
 public class CompareModelofE2EServiceInstance extends AbstractServiceTaskProcessor {
-    private static final Logger logger = LoggerFactory.getLogger( CompareModelofE2EServiceInstance.class);
+    private static final Logger logger = LoggerFactory.getLogger( CompareModelofE2EServiceInstance.class)
 
        String Prefix="CMPMDSI_"
        private static final String DebugFlag = "isDebugEnabled"
@@ -64,7 +64,7 @@ public class CompareModelofE2EServiceInstance extends AbstractServiceTaskProcess
        JsonUtils jsonUtil = new JsonUtils()
        VidUtils vidUtils = new VidUtils()
 
-       public void preProcessRequest (DelegateExecution execution) {
+        void preProcessRequest (DelegateExecution execution) {
                execution.setVariable("prefix",Prefix)
                String msg = ""
                
@@ -128,7 +128,7 @@ public class CompareModelofE2EServiceInstance extends AbstractServiceTaskProcess
                        execution.setVariable("operationType", "CompareModel") 
        
                } catch (BpmnError e) {
-                       throw e;
+                       throw e
                } catch (Exception ex){
                        msg = "Exception in preProcessRequest " + ex.getMessage()
                        logger.info(msg)
@@ -137,7 +137,7 @@ public class CompareModelofE2EServiceInstance extends AbstractServiceTaskProcess
                logger.trace("Exit preProcessRequest ")
        }
 
-       public void sendSyncResponse (DelegateExecution execution) {
+        void sendSyncResponse (DelegateExecution execution) {
                logger.trace("sendSyncResponse  ")
 
                try {
@@ -155,7 +155,7 @@ public class CompareModelofE2EServiceInstance extends AbstractServiceTaskProcess
                logger.trace("Exit sendSyncResopnse ")
        }
        
-       public void sendSyncError (DelegateExecution execution) {
+        void sendSyncError (DelegateExecution execution) {
                logger.trace("sendSyncError ")
 
                try {
@@ -182,7 +182,7 @@ public class CompareModelofE2EServiceInstance extends AbstractServiceTaskProcess
 
        }
        
-       public void prepareCompletionRequest (DelegateExecution execution) {
+        void prepareCompletionRequest (DelegateExecution execution) {
                logger.trace("prepareCompletion ")
 
                try {
@@ -214,7 +214,7 @@ public class CompareModelofE2EServiceInstance extends AbstractServiceTaskProcess
                logger.trace("Exit prepareCompletionRequest ")
        }
        
-       public void prepareFalloutRequest(DelegateExecution execution){
+        void prepareFalloutRequest(DelegateExecution execution){
                logger.trace("prepareFalloutRequest ")
 
                try {