From e6d44937288210e0e3f8bbe7858fa60d2a570048 Mon Sep 17 00:00:00 2001 From: Ghislain Fourny Date: Mon, 28 Oct 2024 16:27:16 +0100 Subject: [PATCH] Remove some warnings. --- .../expressions/primary/InlineFunctionExpression.java | 4 ++-- .../expressions/scripting/block/BlockStatement.java | 4 ++-- .../expressions/scripting/control/SwitchStatement.java | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/rumbledb/expressions/primary/InlineFunctionExpression.java b/src/main/java/org/rumbledb/expressions/primary/InlineFunctionExpression.java index 95f05b526..81a7019ad 100644 --- a/src/main/java/org/rumbledb/expressions/primary/InlineFunctionExpression.java +++ b/src/main/java/org/rumbledb/expressions/primary/InlineFunctionExpression.java @@ -138,7 +138,7 @@ public StatementsAndOptionalExpr getBody() { @Nullable public List getAnnotations() { - return annotations; + return thisannotations; } @Override @@ -252,7 +252,7 @@ public void serializeToJSONiq(StringBuffer sb, int indent) { } public boolean hasSequentialPropertyAnnotation() { - return hasSequentialPropertyAnnotation; + return this.hasSequentialPropertyAnnotation; } public void setHasExitStatement(boolean hasExitStatement) { diff --git a/src/main/java/org/rumbledb/expressions/scripting/block/BlockStatement.java b/src/main/java/org/rumbledb/expressions/scripting/block/BlockStatement.java index 075209262..281bc1989 100644 --- a/src/main/java/org/rumbledb/expressions/scripting/block/BlockStatement.java +++ b/src/main/java/org/rumbledb/expressions/scripting/block/BlockStatement.java @@ -27,7 +27,7 @@ public T accept(AbstractNodeVisitor visitor, T argument) { @Override public List getChildren() { List result = new ArrayList<>(); - blockStatements.forEach(statement -> { + this.blockStatements.forEach(statement -> { if (statement != null) { result.add(statement); } @@ -49,6 +49,6 @@ public void serializeToJSONiq(StringBuffer sb, int indent) { } public List getBlockStatements() { - return blockStatements; + return this.blockStatements; } } diff --git a/src/main/java/org/rumbledb/expressions/scripting/control/SwitchStatement.java b/src/main/java/org/rumbledb/expressions/scripting/control/SwitchStatement.java index a19182d91..f6bc43efc 100644 --- a/src/main/java/org/rumbledb/expressions/scripting/control/SwitchStatement.java +++ b/src/main/java/org/rumbledb/expressions/scripting/control/SwitchStatement.java @@ -74,14 +74,14 @@ public void serializeToJSONiq(StringBuffer sb, int indent) { } public Expression getTestCondition() { - return testCondition; + return this.testCondition; } public List getCases() { - return cases; + return this.cases; } public Statement getDefaultStatement() { - return defaultStatement; + return this.defaultStatement; } }