Skip to content

Commit

Permalink
Cleanup ImmutableEmpty(Int)List
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Nov 14, 2023
1 parent 19d8cea commit a98e558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public boolean equals(final @Nullable Object o) {
if (!(o instanceof ImmutableIntList)) {
return false;
}
return ((ImmutableIntList) o).size() == 0;
return ((ImmutableIntList) o).isEmpty();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public boolean equals(final @Nullable Object o) {
if (!(o instanceof List)) {
return false;
}
return ((List<?>) o).size() == 0;
return ((List<?>) o).isEmpty();
}

@Override
Expand Down

0 comments on commit a98e558

Please sign in to comment.