void () { doTest(""" final class Simple { public static void main(String[] args) { ThreadLocal<Integer> threadLocal = new ThreadLocal<>(); (getThreadLocal(threadLocal)).set((null)); threadLocal.set(null); } private static ThreadLocal<Integer> getThreadLocal(ThreadLocal<Integer> threadLocal) { return threadLocal; } } """); }