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