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

Define org.apache.logging.log4j.Marker.equals(Object) and org.apache.logging.log4j.Marker.hashCode()

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: API
    • Labels:
      None

      Description

      Define org.apache.logging.log4j.Marker.equals(Object) and org.apache.logging.log4j.Marker.hashCode().

      This does not change compatibility since equals and hashCode are defined in java.lang.Object.

      Note that the Log4j class org.apache.logging.log4j.MarkerManager.Log4jMarker already implements these methods, so there is no change in behavior.

      Benefits are:

      • Clearly defined these methods.
      • Code generation tools like Eclipse can avoid issuing warnings when generating code that use equals and hashCode but the only version of these methods it sees are from java.lang.Object.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              garydgregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: