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

Joe Darcy Joe.Darcy at Sun.COM
Thu Sep 10 23:48:00 UTC 2009


Martin Buchholz wrote:
> On Thu, Sep 10, 2009 at 15:48, Joe Darcy<Joe.Darcy at sun.com> wrote:
>   
>> On 09/09/09 08:01 PM, Joe Darcy wrote:
>> I noticed that the Character class should be similarly tightened:
>>     
>
> Right you are.  Webrev regenerated.
>
> Martin
>   

One typo inherited from my earlier suggestion (mea culpa!): as the 
Character class is not a java.lang.Number, it does not have an intValue 
method.  Character does have a charValue method and referring to that 
method in the specification of hashCode should suffice.

I approve this change going back with the correction to the Character class.

Thanks,

-Joe



More information about the core-libs-dev mailing list