commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Malkusch (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1054) Support java.util.regex.Pattern in EqualsBuilder and HashCodeBuilder
Date Tue, 21 Oct 2014 21:11:35 GMT
Markus Malkusch created LANG-1054:
-------------------------------------

             Summary: 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)

Mime
View raw message