aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCoreBPMN/src/main/java
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-09-30 08:04:14 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-30 08:04:14 +0000
commit899ed6f5714968bd0412277df25f9302dc780f08 (patch)
tree26f636be53343ebe7585220e373ecfd5d1a22967 /bpmn/MSOCoreBPMN/src/main/java
parent9bb2e66d382b44058120693e3adf4ce6f3f3c80c (diff)
parent52e2e1573607f8906b4c070c9cf581f34ab63402 (diff)
Merge "Added @Override annotation to method signature"
Diffstat (limited to 'bpmn/MSOCoreBPMN/src/main/java')
-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