Skip to content

Commit

Permalink
simplify equals
Browse files Browse the repository at this point in the history
  • Loading branch information
pull-vert committed Nov 4, 2024
1 parent 41049a3 commit fb1eb45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions core/src/main/java/jayo/internal/RealByteString.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,6 @@ public int lastIndexOf(final byte @NonNull [] other, final @NonNegative int star

@Override
public boolean equals(final @Nullable Object other) {
if (other == null) {
return false;
}
if (other == this) {
return true;
}
Expand Down
3 changes: 0 additions & 3 deletions core/src/main/java/jayo/internal/SegmentedByteString.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,6 @@ RealByteString toByteString() {

@Override
public final boolean equals(final @Nullable Object other) {
if (other == null) {
return false;
}
if (other == this) {
return true;
}
Expand Down

0 comments on commit fb1eb45

Please sign in to comment.