You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Duncan Jones (JIRA)" <ji...@apache.org> on 2014/10/22 14:33:34 UTC
[jira] [Closed] (LANG-1054) Support java.util.regex.Pattern in
EqualsBuilder and HashCodeBuilder
[ https://issues.apache.org/jira/browse/LANG-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duncan Jones closed LANG-1054.
------------------------------
Resolution: Won't Fix
> Support java.util.regex.Pattern in EqualsBuilder and HashCodeBuilder
> --------------------------------------------------------------------
>
> Key: LANG-1054
> URL: https://issues.apache.org/jira/browse/LANG-1054
> Project: Commons Lang
> Issue Type: Wish
> Components: lang.builder.*
> Reporter: Markus Malkusch
> Priority: Minor
>
> Hi
> Pattern is an annoyance because it doesn't implement equals() nor hashCode(). I.e. EqualsBuilder.append(Object, Object) will never set EqualsBuilder.isEquals to true for e.g.:
> {code}
> builder.append(Pattern.compile("foo"), Pattern.compile("foo"));
> {code}
> It would be nice to have an EqualsBuilder which compares Pattern.pattern and Pattern.flags instead of calling Pattern.equals().
> Same for HashCodeBuilder.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)