From 58ad75b2dfe230b6a2fa3f3acd6e7e2c56fd1af3 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Thu, 19 Oct 2023 13:03:05 -0700 Subject: [PATCH] Fix typos. (pointed out [by @Stephan202](https://github.com/google/error-prone/pull/4155#discussion_r1366040038)) PiperOrigin-RevId: 574976916 --- docs/bugpattern/SuperCallToObjectMethod.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/bugpattern/SuperCallToObjectMethod.md b/docs/bugpattern/SuperCallToObjectMethod.md index f5ac8a1560d4..4ac78c2bed28 100644 --- a/docs/bugpattern/SuperCallToObjectMethod.md +++ b/docs/bugpattern/SuperCallToObjectMethod.md @@ -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 @@ -44,7 +44,7 @@ public boolean equals(Object obj) { if (obj instanceof Foo) { return id == ((Foo) obj).id; } - return obj; + return false; } @Override @@ -72,7 +72,7 @@ public boolean equals(Object obj) { } return id.equals(((Foo) obj).id); } - return obj; + return false; } @Override