j.u.Objects follow-up: deepEquals(Object, Object)?

Bob Lee crazybob at crazybob.org
Tue Oct 13 23:48:53 UTC 2009

On Mon, Oct 12, 2009 at 10:40 AM, Joseph D. Darcy <Joe.Darcy at sun.com> wrote:

> I think Objects is a better home for deepEquals(Object, Object) than Arrays
> since the arguments are not arrays and since it is a sibling method to
> equals(Object, Object).

While the argument types are Object, the behavior and usage is tightly
coupled to arrays. It took me awhile to grok what this method does, even
after looking at the impl. I think I would have caught on a little faster if
the method were in Arrays.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20091013/9f0c97eb/attachment.html>

More information about the core-libs-dev mailing list