j.u.Objects follow-up: deepEquals(Object, Object)?
jjb at google.com
Mon Oct 12 22:42:17 UTC 2009
I don't feel too strongly about this one. Do the right thing.
On Mon, Oct 12, 2009 at 10:40 AM, Joseph D. Darcy <Joe.Darcy at sun.com> wrote:
> Joshua Bloch wrote:
>> I don't think method really pays for itself. If it belongs anywhere, it
>> belongs in java.util.Arrays.
> I think there is room in the platform for this functionality. Even if this
> is mostly used in tests, code used in tests is code too :-)
> 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).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the core-libs-dev