Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-985

AbstractFilter should not implement equals() and hashCode()

    Details

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

      Description

      For the same reasons as LOG4J2-891 was raised, equals() and hashCode() should be removed from AbstractFilter.

      Similar to the approach for AbstractFilter I will keep the existing implementation of equals() and rename it equalsImpl() (with the call to super.equals(obj) replaced by super.equalsImpl(obj)).
      Similarly for hashCode() to hashCodeImpl(). The xxxImpl() methods will be protected, similar to the approach taken in AbstractFilter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                remkop@yahoo.com Remko Popma
                Reporter:
                remkop@yahoo.com Remko Popma
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: