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

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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0
    • Component/s: None
    • Labels:
      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);
          }
      

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 864b7a83ecf2c7eb9ae0d7c7bdf98a14c5f277d6 in logging-log4j2's branch refs/heads/master from Gary Gregory
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=864b7a8 ]

        LOG4J2-1932 Add containsKey() methods to
        org.apache.logging.log4j.message.MapMessage.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 864b7a83ecf2c7eb9ae0d7c7bdf98a14c5f277d6 in logging-log4j2's branch refs/heads/master from Gary Gregory [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=864b7a8 ] LOG4J2-1932 Add containsKey() methods to org.apache.logging.log4j.message.MapMessage.
        Hide
        garydgregory Gary Gregory added a comment -

        commit 864b7a83ecf2c7eb9ae0d7c7bdf98a14c5f277d6.

        Show
        garydgregory Gary Gregory added a comment - commit 864b7a83ecf2c7eb9ae0d7c7bdf98a14c5f277d6.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development