Joe,

 

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.

 

Jason

 

 

> Date: Thu, 8 Oct 2009 10:51:50 -0700
> From: joe.da...@sun.com
> Subject: Re: Objects.toString [Re: What methods should go into a 
> java.util.Objects class in JDK 7?]
> To: jason_mehr...@hotmail.com
> CC: core-libs-dev@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.

> -Joe

                                          
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/

Reply via email to