You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2018/01/09 00:44:29 UTC

logging-log4j2 git commit: [LOG4J2-2177] Replace use of deprecated Core API org.apache.logging.log4j.core.impl.Log4jLogEvent.Builder.setContextMap(Map). Remove StringMap ctor (was recently added.)

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 8e6ea98fa -> 135ee357c


[LOG4J2-2177] Replace use of deprecated Core API
org.apache.logging.log4j.core.impl.Log4jLogEvent.Builder.setContextMap(Map<String,
String>). Remove StringMap ctor (was recently added.)

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/135ee357
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/135ee357
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/135ee357

Branch: refs/heads/master
Commit: 135ee357c7e9dd5ac5ad345d81721c75109aa7bc
Parents: 8e6ea98
Author: Gary Gregory <gg...@apache.org>
Authored: Mon Jan 8 17:44:27 2018 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Mon Jan 8 17:44:27 2018 -0700

----------------------------------------------------------------------
 .../log4j/message/StructuredDataMessage.java    | 32 --------------------
 1 file changed, 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/135ee357/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java b/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
index 275b9f5..2b60159 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
@@ -118,25 +118,6 @@ public class StructuredDataMessage extends MapMessage<StructuredDataMessage, Str
     }
 
     /**
-     * Creates a StructuredDataMessage using an (user specified max characters), message, and type (user specified
-     * maximum number of characters, and an initial map of structured data to include.
-     * @param id The String id.
-     * @param msg The message.
-     * @param type The message type.
-     * @param data The StructuredData map.
-     * @param maxLength The maximum length of keys;
-     * @since 2.10.1
-     */
-    public StructuredDataMessage(final String id, final String msg, final String type,
-                                 final StringMap data, final int maxLength) {
-        super(data);
-        this.id = new StructuredDataId(id, null, null, maxLength);
-        this.message = msg;
-        this.type = type;
-        this.maxLength = maxLength;
-    }
-
-    /**
      * Creates a StructuredDataMessage using a StructuredDataId, message, and type (max 32 characters).
      * @param id The StructuredDataId.
      * @param msg The message.
@@ -208,19 +189,6 @@ public class StructuredDataMessage extends MapMessage<StructuredDataMessage, Str
     }
 
     /**
-     * Creates a StructuredDataMessage using an ID (max 32 characters), message, type (max 32 characters), and an
-     * initial map of structured data to include.
-     * @param id The String id.
-     * @param msg The message.
-     * @param type The message type.
-     * @param data The StructuredData map.
-     * @since 2.10.1
-     */
-    public StructuredDataMessage(final String id, final String msg, final String type, final StringMap data) {
-        this(id, msg, type, data, MAX_LENGTH);
-    }
-
-    /**
      * Basic constructor.
      */
     protected StructuredDataMessage() {