diff --git a/bugpattern/SuperCallToObjectMethod.md b/bugpattern/SuperCallToObjectMethod.md index 27e85326d28..4ce502ae08e 100644 --- a/bugpattern/SuperCallToObjectMethod.md +++ b/bugpattern/SuperCallToObjectMethod.md @@ -35,7 +35,7 @@ public boolean equals(Object obj) { if (obj instanceof Foo) { return super.equals(obj) && id == ((Foo) obj).id; } - return obj; + return false; } @Override @@ -61,7 +61,7 @@ public boolean equals(Object obj) { if (obj instanceof Foo) { return id == ((Foo) obj).id; } - return obj; + return false; } @Override @@ -89,7 +89,7 @@ public boolean equals(Object obj) { } return id.equals(((Foo) obj).id); } - return obj; + return false; } @Override