Proposal: Sameness operators
forax at univ-mlv.fr
Fri Apr 3 00:34:20 PDT 2009
Joseph D. Darcy a écrit :
> Peter Levart wrote:
>> On Fri, Apr 3, 2009 at 1:02 AM, Joe Darcy <Joe.Darcy at sun.com
>> <mailto:Joe.Darcy at sun.com>> wrote:
>> Yes, in JDK 7 I'd like to see
>> 6797535 Add shared two argument static equals method to the
>> addressed in the platform. I was thinking putting it in a place
>> like a
>> new utility class java.util.Object.
>> Maybe not java.util.Object but java.util.Objects. Using the same name
>> as a java.lang class prevents IDEs to suggest the imports since
>> java.lang classes are already in scope.
> Yes, I meant to type "java.util.Objects" -- having a class other than
> java.lang.Object named "Object" is just wrong!
or fun, all programs that use import java.util.* will break.
More information about the coin-dev