Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?] (original) (raw)
Joseph D. Darcy Joe.Darcy at Sun.COM
Thu Oct 8 17:51:50 UTC 2009
- Previous message: Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?]
- Next message: Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jason Mehrens wrote:
+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?
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.
Project Jigsaw is about modularity so I don't see what connection there is between Jigsaw and j.u.Objects.
-Joe
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. Get it now. <http://clk.atdmt.com/GBL/go/171222986/direct/01/>
- Previous message: Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?]
- Next message: Objects.toString [Re: What methods should go into a java.util.Objects class in JDK 7?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]