Skip to content

Commit

Permalink
Remove @CanIgnoreReturnValue from Ordering.compare.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 432213378
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Mar 3, 2022
1 parent 0ef6688 commit 0333746
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions android/guava/src/com/google/common/collect/Ordering.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Function;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
Expand Down Expand Up @@ -530,7 +529,6 @@ public <S extends T> Ordering<Iterable<S>> lexicographical() {

// Regular instance methods

@CanIgnoreReturnValue // TODO(kak): Consider removing this
@Override
public abstract int compare(@ParametricNullness T left, @ParametricNullness T right);

Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/collect/Ordering.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Function;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
Expand Down Expand Up @@ -530,7 +529,6 @@ public <S extends T> Ordering<Iterable<S>> lexicographical() {

// Regular instance methods

@CanIgnoreReturnValue // TODO(kak): Consider removing this
@Override
public abstract int compare(@ParametricNullness T left, @ParametricNullness T right);

Expand Down

0 comments on commit 0333746

Please sign in to comment.