summaryrefslogtreecommitdiff
path: root/src/semanticanalysis/Share.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/semanticanalysis/Share.java')
-rw-r--r--src/semanticanalysis/Share.java2
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)) {