I'm initializing using public static ThreadLocal<AtomicLong> count = new ThreadLocal<>();
How do I use AtomicLong method for count
? The below throws a NPE:
count.get().addAndGet(records.size());
I'm initializing using public static ThreadLocal<AtomicLong> count = new ThreadLocal<>();
How do I use AtomicLong method for count
? The below throws a NPE:
count.get().addAndGet(records.size());
Copyright © 2021 Jogjafile Inc.