Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 591413128
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Dec 18, 2023
1 parent d812e15 commit c5a9d89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,8 @@ private InvalidatableSet(Set<E> delegate, Supplier<Boolean> validator, String er
this.errorMessage = errorMessage;
}

// Override hashCode() and equals() to access delegate directly (so that they don't trigger the
// validate() call via delegate()); it seems inappropriate to throw ISE on these methods.
// @Override
// public boolean equals(Object o) {
// return delegate == o || delegate.equals(o);
// }

// Override hashCode() to access delegate directly (so that it doesn't trigger the validate() call
// via delegate()); it seems inappropriate to throw ISE on this method.
@Override
public int hashCode() {
return delegate.hashCode();
Expand Down
9 changes: 2 additions & 7 deletions guava/src/com/google/common/graph/InvalidatableSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,8 @@ private InvalidatableSet(Set<E> delegate, Supplier<Boolean> validator, String er
this.errorMessage = errorMessage;
}

// Override hashCode() and equals() to access delegate directly (so that they don't trigger the
// validate() call via delegate()); it seems inappropriate to throw ISE on these methods.
// @Override
// public boolean equals(Object o) {
// return delegate == o || delegate.equals(o);
// }

// Override hashCode() to access delegate directly (so that it doesn't trigger the validate() call
// via delegate()); it seems inappropriate to throw ISE on this method.
@Override
public int hashCode() {
return delegate.hashCode();
Expand Down

0 comments on commit c5a9d89

Please sign in to comment.