Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      I have modified reflectionEquals. The new signature adds the ability to exclude
      a list of fields from testing.

      reflectionEquals(Object lhs, Object rhs, String[] excludeFields)

      This is useful when the occasional field is to be excluded when many fields need
      to be tested. The alternative is to hard-code each field in the equals method
      and hope that if an additional field is added, the equals method is updated.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Pete Gieser
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development