You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/10/23 17:57:58 UTC
[jira] [Commented] (LANG-1034) Recursive and reflective equals
builder
[ https://issues.apache.org/jira/browse/LANG-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15600056#comment-15600056 ]
ASF GitHub Bot commented on LANG-1034:
--------------------------------------
GitHub user PascalSchumacher opened a pull request:
https://github.com/apache/commons-lang/pull/202
LANG-1034: Recursive and reflective EqualsBuilder
patch by yathos UG
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/PascalSchumacher/commons-lang recursiveAndReflectiveEqualsBuilder
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-lang/pull/202.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #202
----
commit b6eee76036d4e44f89f029aa3d45b6842598e69b
Author: pascalschumacher <pa...@gmx.net>
Date: 2016-10-23T17:56:28Z
LANG-1034: Recursive and reflective EqualsBuilder
patch by yathos UG
----
> Recursive and reflective equals builder
> ---------------------------------------
>
> 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: Duncan Jones
> Fix For: Review Patch
>
> 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)