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

2009-11-15 Thread Paul Benedict
David, I think your question is mostly rhetorical. Most of the code in this class are one-liners. If you can answer it for this method, you have answered it for all. I also think it's a common idiom... and so are the other small stuff in here. Paul On Sat, Nov 14, 2009 at 10:46 PM, David

Re: Request for sponsor: 4421494 infinite loop while parsing double literal

2009-11-15 Thread Dmitry Nadezhin
I put a combined changeset fixing bugs 4421494 and 4396272 as comment #2 and comment #3 to OpenJDK bugzilla report: https://bugs.openjdk.java.net/show_bug.cgi?id=100119 -Dima Joseph D. Darcy wrote: Dmitry Nadezhin wrote: Hello Joe, Thank you for the sponsorship of the bug 4421494. I can

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

2009-11-15 Thread David Holmes - Sun Microsystems
Paul, No it is not rhetorical. Most of the one-liners (and I don't necessarily agree with them either) at least have some perceived convenience value. In this case I see no value add at all. In fact unless you count on inlining then this adds pure overhead with the method call. David Paul

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

2009-11-15 Thread Martin Buchholz
On Sat, Nov 14, 2009 at 20:46, David Holmes - Sun Microsystems david.hol...@sun.com wrote: Paul, Paul Benedict said the following on 11/15/09 11:28: I would like to propose adding this method: /** * Selects the object if not {...@code null}; otherwise fallsback to the * specified

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

2009-11-15 Thread Rémi Forax
Le 16/11/2009 00:48, Martin Buchholz a écrit : On Sat, Nov 14, 2009 at 20:46, David Holmes - Sun Microsystems david.hol...@sun.com mailto:david.hol...@sun.com wrote: Paul, Paul Benedict said the following on 11/15/09 11:28: I would like to propose adding this method: