What methods should go into a java.util.Objects class in JDK 7?

Andrew John Hughes gnu_andrew at member.fsf.org
Thu Sep 10 13:11:16 UTC 2009

2009/9/10 Ulf Zibis <Ulf.Zibis at gmx.de>:
> Am 10.09.2009 02:04, Rémi Forax schrieb:
>> Le 10/09/2009 01:43, Andrew John Hughes a écrit :  I agree about the
>> debugging purpose, that why I don't agree
>> with Kevin when he said that java.util.Objects should not use
>> reflection.
>> Perhaps the method can be renamed to: toDebugString.
>> Rémi
>> PS: the code above also forget inherited fields.
> Maybe another class: java.util.Debug / DebugHelpers / DebugUtils
> I guess, there are many ideas around to fill such a class with useful
> things.
> -Ulf

Yeah you are probably right, my suggestion seems to come from a
different avenue than the others here.
It's probably because personally I've never used library method to do
such simple null checks; it might have fixed a few bugs for me along
the road, but I just prefer to check such things locally than add in
the overhead of a method call.
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8

More information about the core-libs-dev mailing list