summaryrefslogtreecommitdiff
path: root/src/ast/nodes/DottedNameNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/nodes/DottedNameNode.java')
-rw-r--r--src/ast/nodes/DottedNameNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/nodes/DottedNameNode.java b/src/ast/nodes/DottedNameNode.java
index 23f14c1..2698b1c 100644
--- a/src/ast/nodes/DottedNameNode.java
+++ b/src/ast/nodes/DottedNameNode.java
@@ -20,7 +20,7 @@ public class DottedNameNode implements Node {
@Override
public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
- ArrayList<SemanticError> errors = new ArrayList();
+ ArrayList<SemanticError> errors = new ArrayList<>();
for (int i = 0; i < names.size(); ++i) {
ST.insert(names.get(i).toString(), this.typeCheck(), _nesting, null);