[ https://issues.apache.org/jira/browse/LANG-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14288942#comment-14288942 ]
Benedikt Ritter commented on LANG-1082: --------------------------------------- {code} $ svn ci -m "LANG-1082: Add option to disable the "objectsTriviallyEqual" test in DiffBuilder. This fixes #44 from github. Thanks to Jonathan Baker." Sending src/changes/changes.xml Sending src/main/java/org/apache/commons/lang3/builder/DiffBuilder.java Sending src/test/java/org/apache/commons/lang3/builder/DiffBuilderTest.java Transmitting file data ... Committed revision 1654131. {code} Thanks! > Add option to disable the "objectsTriviallyEqual" test in DiffBuilder > --------------------------------------------------------------------- > > Key: LANG-1082 > URL: https://issues.apache.org/jira/browse/LANG-1082 > Project: Commons Lang > Issue Type: Improvement > Components: lang.builder.* > Affects Versions: 3.3.2 > Reporter: Jonathan Baker > Assignee: Benedikt Ritter > Priority: Trivial > Fix For: 3.4 > > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > For example, a bean (e.g. a JPA record) has equals() overridden with a > implementation that tests its "id" property. If two beans have the same ID, > they correspond to the same record in the database. However, without > tricking the objectsTriviallyEqual check in the DiffBuilder constructor, > there is no way to build a DiffResult using "before" and "after" instances > with changes to other properties (name, modification time, etc). -- This message was sent by Atlassian JIRA (v6.3.4#6332)