标签:ThreadLocal
ThreadLocal引起内存泄露
代码如下: public class DateUtil { private static ThreadLocal<DateFormat> sdf = new ThreadLocal<DateFormat>() { protected DateFormat initialValue() { return new SimpleDateF……
05-22 立刻查看
代码如下: public class DateUtil { private static ThreadLocal<DateFormat> sdf = new ThreadLocal<DateFormat>() { protected DateFormat initialValue() { return new SimpleDateF……