diff --git a/docs/bugpattern/SuperCallToObjectMethod.md b/docs/bugpattern/SuperCallToObjectMethod.md index f5ac8a1560d..4ac78c2bed2 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