commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Mickey (JIRA)" <>
Subject [jira] Updated: (LANG-411) HashCodeBuilder: expose typed hashing methods
Date Wed, 30 Jun 2010 00:33:50 GMT


Sean Mickey updated LANG-411:

    Attachment: ObjectUtils-Patch-Addresses-LANG-411-and-LANG-627.txt

I have created a patch to ObjectUtils that addresses LANG-411 and LANG-627. It is attached
for review.

I have also created a corresponding patch to ObjectUtilsTest that unit tests the functionality
added in the ObjectUtils patch. It is also attached for review.

I chose this simple set of changes because it lets me get my feet wet with something simple
and straightforward, but that is also a fair amount of work so that it alleviates the load
on some of the old hands.

I hope this is helpful and I look forward to all feedback. Thanks~

> HashCodeBuilder: expose typed hashing methods
> ---------------------------------------------
>                 Key: LANG-411
>                 URL:
>             Project: Commons Lang
>          Issue Type: Wish
>          Components: lang.builder.*
>    Affects Versions: 2.3
>            Reporter: Paul Benedict
>            Priority: Minor
>             Fix For: 3.1
>         Attachments: ObjectUtils-Patch-Addresses-LANG-411-and-LANG-627.txt, ObjectUtilsTest-Patch-Adds-Tests-For-Changes-To-Address-LANG-411-and-LANG-627.txt
> HashCodeBuilder encapsulates the good advice of Joshua Bloch. He details how each java.lang
type should be hashed. I want to use those too ... but without reflection. Please expose those
as static methods:
> hashInt, hashBoolean, etc.
> They should take two parameters: the field value, and the hash multiplier value.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message