Replace use of deprecated Core API
org.apache.logging.log4j.core.impl.Log4jLogEvent.Builder.setContextMap(Map<String,
String>). Remove StringMap ctor (was recently added.)
@@ -117,25 +117,6 @@ public class StructuredDataMessage extends MapMessage<StructuredDataMessage, Str
this.maxLength = maxLength;
}
- /**
- * 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.
@@ -207,19 +188,6 @@ public class StructuredDataMessage extends MapMessage<StructuredDataMessage, Str
this.maxLength = MAX_LENGTH;
}
- /**
- * 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.
*/
