Skip to content

Commit

Permalink
BinaryType.equals() shortcut
Browse files Browse the repository at this point in the history
inspired by eclipse.jdt.ui/issues/1192, the shortcut is taken sometimes
  • Loading branch information
EcljpseB0T authored and jukzi committed Feb 14, 2024
1 parent d0c6a4d commit a9231ed
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ public IType createType(String contents, IJavaElement sibling, boolean force, IP
}
@Override
public boolean equals(Object o) {
if (!(o instanceof BinaryType)) return false;
if (o == this) {
return true;
}
if (!(o instanceof BinaryType)) {
return false;
}
return super.equals(o);
}

Expand Down

0 comments on commit a9231ed

Please sign in to comment.