给ThreadLoocal变量添加上final修饰

This commit is contained in:
dark 2021-03-21 20:53:50 +08:00
parent 27faa6153a
commit 92c04c0c15

View File

@ -18,7 +18,7 @@ public class TracerUtils {
/** /**
* 维护请求线程对应的TraceId * 维护请求线程对应的TraceId
*/ */
private static FastThreadLocal<String> traceIdMap = new FastThreadLocal<>(); private final static FastThreadLocal<String> traceIdMap = new FastThreadLocal<>();
/** /**
* 保存链路流水号 * 保存链路流水号