Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1082

Add option to disable the "objectsTriviallyEqual" test in DiffBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.3.2
    • 3.4
    • lang.builder.*
    • None

    Description

      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).

      Attachments

        Activity

          People

            britter Benedikt Ritter
            jbaker Jonathan Baker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified