Skip to content

Commit

Permalink
fix stackedSet
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianHuc committed Jan 19, 2024
1 parent d206b6d commit c3f2267
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public <T> T[] toArray(@NotNull T[] a) {

@Override
public boolean add(E e) {
final boolean isNew = this.sets.peek().add(e);
final boolean isNew = this.sets.peekLast().add(e);
if (isNew) {
occurrences.put(e, occurrences.getOrDefault(e, 0) + 1);
}
Expand Down

0 comments on commit c3f2267

Please sign in to comment.