Added @Override annotation to method signature 33/15533/1
authorshashikanth <shashikanth.vh@huawei.com>
Tue, 26 Sep 2017 12:46:33 +0000 (18:16 +0530)
committershashikanth <shashikanth.vh@huawei.com>
Tue, 26 Sep 2017 12:46:33 +0000 (18:16 +0530)
Fix major sonar issues in so module
https://sonar.onap.org/component_issues?id=org.openecomp.so%3Aso#resolved=false|severities=MAJOR|rules=squid%3AS1161

Add the "@Override" annotation above this method signature

Issue-Id: APPC-186
Change-Id: I1c13d988683b75b6b59e5626e9a0564161d2dc9a
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/XQueryScriptTask.java

index 6080768..419f4aa 100644 (file)
@@ -71,6 +71,7 @@ public class XQueryScriptTask extends BaseTask {
        private Expression atomicInputVariables;
        private Expression outputVariable;
 
+    @Override
        public void execute(DelegateExecution execution) throws Exception {
                if (msoLogger.isDebugEnabled()) {
                        msoLogger.debug("Started Executing " + getTaskName());
@@ -222,12 +223,11 @@ public class XQueryScriptTask extends BaseTask {
         */
        private XQueryExecutable compile(XQueryCompiler compiler, String resource)
                        throws Exception {
-           try (InputStream xqStream = getClass().getResourceAsStream(resource)) {
-               XQueryExecutable executable = compiler.compile(xqStream);
-               return executable;
-           } catch (Exception e) {
-               msoLogger.debug ("Exception at resourceFile stream:", e);
-               return null;
-           }
+               try (InputStream xqStream = getClass().getResourceAsStream(resource)) {
+            return compiler.compile(xqStream);
+               } catch (Exception e) {
+                       msoLogger.debug ("Exception at resourceFile stream:", e);
+                       return null;
+               }
        }
 }
\ No newline at end of file