Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?]

Jason Mehrens jason_mehrens at hotmail.com
Thu Oct 8 20:13:57 UTC 2009


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.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.

> -Joe

 		 	   		  
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20091008/6bd06255/attachment.html>


More information about the core-libs-dev mailing list