summaryrefslogtreecommitdiff
path: root/src/ast/nodes/TestlistCompNode.java
diff options
context:
space:
mode:
authorL0P0P <grassoemanuele@live.com>2024-06-29 09:54:08 +0200
committerL0P0P <grassoemanuele@live.com>2024-06-29 09:54:08 +0200
commitaaa97e2e41c0aa17a6f99099dd39bb73a935fe02 (patch)
treeb8145ba056534835a9315ac7603ba99413fd2fb5 /src/ast/nodes/TestlistCompNode.java
parent37665fb6d0bc1eb29396ae949354cf7d6f9d54ca (diff)
Fixed some warnings
Diffstat (limited to 'src/ast/nodes/TestlistCompNode.java')
-rw-r--r--src/ast/nodes/TestlistCompNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/nodes/TestlistCompNode.java b/src/ast/nodes/TestlistCompNode.java
index 244f4ef..cba056c 100644
--- a/src/ast/nodes/TestlistCompNode.java
+++ b/src/ast/nodes/TestlistCompNode.java
@@ -20,7 +20,7 @@ public class TestlistCompNode implements Node {
@Override
public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
- ArrayList<SemanticError> errors = new ArrayList();
+ ArrayList<SemanticError> errors = new ArrayList<>();
if (comp != null) {
// if comp is set, then we save the atom in the ST (we assume the first expr is