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

Add containsKey() method to class org.apache.logging.log4j.message.MapMessage

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0
    • None
    • None

    Description

      Add the method containsKey() method to class org.apache.logging.log4j.message.MapMessage which delegates to the underlying data:

          /**
           * Returns {@code true} if this data structure contains the specified key, {@code false} otherwise.
           *
           * @param key the key whose presence to check. May be {@code null}.
           * @return {@code true} if this data structure contains the specified key, {@code false} otherwise
           * @since 2.9
           */
          public boolean containsKey(final String key) {
              return data.containsKey(key);
          }
      

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: