Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
1.8.0-beta4
-
None
-
The put(key, value) method in MDC and MDCAdapter could easily return the previously stored value, or null if not found, since this value is returned by the underlying map.
Plus, the change is fully backward compatible.
This addition eases the implementation of stackable contexts by client applications, without the need of an additional map lookup to fetch the current MDC key value for latter restoration when the client context is popped up.
The put(key, value) method in MDC and MDCAdapter could easily return the previously stored value, or null if not found, since this value is returned by the underlying map. Plus, the change is fully backward compatible. This addition eases the implementation of stackable contexts by client applications, without the need of an additional map lookup to fetch the current MDC key value for latter restoration when the client context is popped up.