Skip to content

Commit

Permalink
comment about ThreadLocal key or value types
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <[email protected]>
  • Loading branch information
ceki committed Sep 26, 2022
1 parent bcbbe40 commit d81affb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
public class ThreadLocalMapOfStacks {

// BEWARE: Keys or values placed in a ThreadLocal should not be of a type/class
// not included in the JDK. See also https://jira.qos.ch/browse/LOGBACK-450

final ThreadLocal<Map<String, Deque<String>>> tlMapOfStacks = new ThreadLocal<>();

public void pushByKey(String key, String value) {
Expand Down

0 comments on commit d81affb

Please sign in to comment.