Skip to content

Commit

Permalink
Typo?
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsamehsalah authored and Stephan202 committed Jul 14, 2024
1 parent 62481aa commit 982837e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
final class EqualityRules {
private EqualityRules() {}

/** Prefer reference-based quality for enums. */
/** Prefer reference-based equality for enums. */
// Primitive value comparisons are not listed, because Error Prone flags those out of the box.
static final class PrimitiveOrReferenceEquality<T extends Enum<T>> {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ boolean testEqualsPredicate() {
}

ImmutableSet<Boolean> testEnumsReferenceEqualityLambda() {

return ImmutableSet.of(
Stream.of(RoundingMode.UP).anyMatch(isEqual(RoundingMode.DOWN)),
Stream.of(RoundingMode.UP).anyMatch(RoundingMode.DOWN::equals));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ boolean testEqualsPredicate() {
}

ImmutableSet<Boolean> testEnumsReferenceEqualityLambda() {

return ImmutableSet.of(
Stream.of(RoundingMode.UP).anyMatch(v -> v == RoundingMode.DOWN),
Stream.of(RoundingMode.UP).anyMatch(v -> v == RoundingMode.DOWN));
Expand Down

0 comments on commit 982837e

Please sign in to comment.