3 ms·
The example in the linked ThreadLocal documentation appears to have a mistake. In getCurrentThreadId it should read return uniqueNum.get(); not return uniqu
by jahnu 15y ago
The example in the linked ThreadLocal documentation appears to have a mistake.
In getCurrentThreadId it should read
return uniqueNum.get();
not
return uniqueId.get();