summaryrefslogtreecommitdiff
path: root/src/ast/nodes/WhileStmtNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/nodes/WhileStmtNode.java')
-rw-r--r--src/ast/nodes/WhileStmtNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/nodes/WhileStmtNode.java b/src/ast/nodes/WhileStmtNode.java
index 1db01ea..352cbc0 100644
--- a/src/ast/nodes/WhileStmtNode.java
+++ b/src/ast/nodes/WhileStmtNode.java
@@ -20,7 +20,7 @@ public class WhileStmtNode implements Node {
@Override
public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
- ArrayList<SemanticError> errors = new ArrayList();
+ ArrayList<SemanticError> errors = new ArrayList<>();
errors.addAll(expr.checkSemantics(ST, _nesting));
errors.addAll(block.checkSemantics(ST, _nesting));