Affects Version/s: 2.0
Fix Version/s: 2.1
Several of the equals methods rely on catching ClassCastException rather than using an instanceof check.
This is likely to be significantly slower if the cast fails. It would be cheaper to do the following:
Note that the null check is no longer needed; it is replaced by the instanceof check.