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 17:10:09 UTC 2009


+1, return empty string for the one arg and add the two arg variant.  The j.u.Properties.getProperty(String, String) could use it first.  Just curious, what does project jigsaw think of j.u.Objects?

 

Jason


 
> Date: Thu, 8 Oct 2009 11:47:49 +0100
> Subject: Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?]
> From: scolebourne at joda.org
> To: core-libs-dev at openjdk.java.net
> 
> A number of us are proposing that Objects.toString(obj) should return
> "" when the object is null. I'm strongly in favour of this, and it
> removes any discussion of duplicated API (as it does something
> different and more useful).
> 
> In favour/against +1/-1 ?
> 
> Stephen
 

 		 	   		  
_________________________________________________________________
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/bde8ae07/attachment.html>


More information about the core-libs-dev mailing list