Skip to content

Commit d81affb

Browse files
committed
comment about ThreadLocal key or value types
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
1 parent bcbbe40 commit d81affb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

slf4j-api/src/main/java/org/slf4j/helpers/ThreadLocalMapOfStacks.java

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
*/
1616
public class ThreadLocalMapOfStacks {
1717

18+
// BEWARE: Keys or values placed in a ThreadLocal should not be of a type/class
19+
// not included in the JDK. See also https://jira.qos.ch/browse/LOGBACK-450
20+
1821
final ThreadLocal<Map<String, Deque<String>>> tlMapOfStacks = new ThreadLocal<>();
1922

2023
public void pushByKey(String key, String value) {

0 commit comments

Comments
 (0)