Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?]
jason_mehrens at hotmail.com
Thu Oct 8 20:13:57 UTC 2009
I'll volunteer some "find usage" stats from the code base I work on for a living:
565 ObjectUtils.toString(Object) calls.
487 String.valueOf(Object) calls.
Hopefully others can contribute their "find usage" stats. It seems to me that both behaviors are useful.
> Date: Thu, 8 Oct 2009 10:51:50 -0700
> From: Joe.Darcy at Sun.COM
> Subject: Re: Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?]
> To: jason_mehrens at hotmail.com
> CC: core-libs-dev at openjdk.java.net
> I'm preparing the first round of java.util.Objects with the
> single-argument static toString method return "null" for null for final
> review. I'll send out a few follow-up emails, including one for
> additional toStrings methods. I'm sympathetic to the two-argument
> toString method with a default.
Hotmail: Powerful Free email with security by Microsoft.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the core-libs-dev