You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/11/13 17:49:58 UTC

[jira] [Resolved] (LANG-1034) Add support for recursive comparison to EqualsBuilder#reflectionEquals

     [ https://issues.apache.org/jira/browse/LANG-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pascal Schumacher resolved LANG-1034.
-------------------------------------
       Resolution: Fixed
         Assignee: Pascal Schumacher  (was: Duncan Jones)
    Fix Version/s:     (was: Review Patch)
                   3.6

Thanks for the patch!

> Add support for recursive comparison to EqualsBuilder#reflectionEquals
> ----------------------------------------------------------------------
>
>                 Key: LANG-1034
>                 URL: https://issues.apache.org/jira/browse/LANG-1034
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.builder.*
>            Reporter: Duncan Jones
>            Assignee: Pascal Schumacher
>             Fix For: 3.6
>
>         Attachments: LANG-1034.1.patch
>
>
> The current implementation of {{EqualsBuilder.reflectionEquals()}} uses object equality to test reference fields found in the class. It may be helpful to offer a method that recursively builds {{.equals()}} methods for each field and uses that to perform the comparison.
> This functionality could be further extended by accepting a list of classes to include/exclude. Classes that are excluded would use the normal object equality.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)