Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
(pointed out [by @Stephan202](google#4155 (comment)))

PiperOrigin-RevId: 575004527
  • Loading branch information
cpovirk authored and Error Prone Team committed Oct 19, 2023
1 parent fb06f25 commit 747227a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/bugpattern/SuperCallToObjectMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public boolean equals(Object obj) {
if (obj instanceof Foo) {
return super.equals(obj) && id == ((Foo) obj).id;
}
return obj;
return false;
}

@Override
Expand All @@ -44,7 +44,7 @@ public boolean equals(Object obj) {
if (obj instanceof Foo) {
return id == ((Foo) obj).id;
}
return obj;
return false;
}

@Override
Expand Down Expand Up @@ -72,7 +72,7 @@ public boolean equals(Object obj) {
}
return id.equals(((Foo) obj).id);
}
return obj;
return false;
}

@Override
Expand Down

0 comments on commit 747227a

Please sign in to comment.