diff options
author | Emanuele Grasso <96300448+L0P0P@users.noreply.github.com> | 2024-07-06 09:47:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-06 09:47:25 +0200 |
commit | f0692ff5f9e39cbd1c203e9d5abebf55a3d0f6fc (patch) | |
tree | 36518af3f04a751ba5bb8158c3f005cfa3e8c7c3 /src/semanticanalysis/Share.java | |
parent | 8aa8b5834953cab15c0687608f4fafea2e6c61be (diff) |
Fixed the print of the ast and some warnings (#19)
Co-authored-by: Santo Cariotti <santo@dcariotti.me>
Diffstat (limited to 'src/semanticanalysis/Share.java')
-rw-r--r-- | src/semanticanalysis/Share.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/semanticanalysis/Share.java b/src/semanticanalysis/Share.java index 7542cf7..a05c4c5 100644 --- a/src/semanticanalysis/Share.java +++ b/src/semanticanalysis/Share.java @@ -10,7 +10,7 @@ public class Share { * generic because it's used a custom contains function. */ public static ArrayList<SemanticError> removeDuplicates(ArrayList<SemanticError> list) { - ArrayList<SemanticError> newList = new ArrayList(); + ArrayList<SemanticError> newList = new ArrayList<>(); for (SemanticError element : list) { if (!customContains(newList, element)) { |