Replace use of deprecated Core API
org.apache.logging.log4j.core.impl.Log4jLogEvent.Builder.setContextMap(Map<String,
String>). Remove StringMap ctors (were recently added.)
@@ -100,15 +100,6 @@ public class MapMessage<M extends MapMessage<M, V>, V> implements MultiFormatStr
this.data = new SortedArrayStringMap();
}
- /**
- * Constructs a new instance based on an existing {@link IndexedStringMap}.
- * @param map The IndexedStringMap.
- * @since 2.10.1
- */
- public MapMessage(final IndexedStringMap map) {
- this.data = map;
- }
-
/**
* Constructs a new instance.
*
@@ -126,15 +117,6 @@ public class MapMessage<M extends MapMessage<M, V>, V> implements MultiFormatStr
this.data = new SortedArrayStringMap(map);
}
- /**
- * Constructs a new instance based on an existing {@link StringMap}.
- * @param map The StringMap.
- * @since 2.10.1
- */
- public MapMessage(final StringMap map) {
- this.data = map instanceof IndexedStringMap ? (IndexedStringMap) map : new SortedArrayStringMap(map);
- }
-
@Override
public String[] getFormats() {
return MapFormat.names();
