aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCoreBPMN/src/main
diff options
context:
space:
mode:
authorshashikanth <shashikanth.vh@huawei.com>2017-09-26 18:16:33 +0530
committershashikanth <shashikanth.vh@huawei.com>2017-09-26 18:16:33 +0530
commit52e2e1573607f8906b4c070c9cf581f34ab63402 (patch)
tree49742b00766ffb4f090893aa7683cf3c5f579435 /bpmn/MSOCoreBPMN/src/main
parent00f6a9c613096e3d4623b8e8486992be727d92da (diff)
Added @Override annotation to method signature
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>
Diffstat (limited to 'bpmn/MSOCoreBPMN/src/main')
-rw-r--r--bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/XQueryScriptTask.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/XQueryScriptTask.java b/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/XQueryScriptTask.java
index 6080768cee..419f4aacf5 100644
--- a/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/XQueryScriptTask.java
+++ b/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/XQueryScriptTask.java
@@ -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