diff options
author | geno <gabriele.genovese2@studio.unibo.it> | 2024-06-30 13:36:37 +0200 |
---|---|---|
committer | geno <gabriele.genovese2@studio.unibo.it> | 2024-06-30 13:36:37 +0200 |
commit | afff6a80cd58f7787efa1398f7c8cbdce8989323 (patch) | |
tree | e6021201d6e7049da640687c7ce61c898aaea4d8 /src/ast/nodes/CompNode.java | |
parent | aaa97e2e41c0aa17a6f99099dd39bb73a935fe02 (diff) |
fixed warnings, better formatting, final added where possible
Diffstat (limited to 'src/ast/nodes/CompNode.java')
-rw-r--r-- | src/ast/nodes/CompNode.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast/nodes/CompNode.java b/src/ast/nodes/CompNode.java index 8be6ea1..22906df 100644 --- a/src/ast/nodes/CompNode.java +++ b/src/ast/nodes/CompNode.java @@ -12,7 +12,7 @@ import org.antlr.v4.runtime.tree.TerminalNode; */ public class CompNode implements Node { - private TerminalNode op; + private final TerminalNode op; public CompNode(TerminalNode op) { this.op = op; @@ -20,7 +20,7 @@ public class CompNode implements Node { @Override public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) { - return new ArrayList<SemanticError>(); + return new ArrayList(); } // TODO: it should be boolean, right? |