Clone
Pepper Lebeck-Jobe <pepper@gradle.com>
committed
on 18 Jul 17
Change to getClass() from instanceof (#2117)
* Change to getClass() from instanceof

This prevents our breaking the symmetrical property of … Show more
Change to getClass() from instanceof (#2117)

* Change to getClass() from instanceof

This prevents our breaking the symmetrical property of euqals through

extension.

EqualsVerifier also noticed some minor problems with some of the

equals() implementations especially around their handling of null values.

I fixed the implementations to deal more gracefully with nulls, but

without changing the core concepts of what equals() meant for each

type.

Show less

master + 450 more