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

AbstractFilter should not implement equals() and hashCode()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.3
    • Filters
    • 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

              rpopma Remko Popma
              rpopma Remko Popma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: