0

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());
NoName
  • 1,371
  • 2
  • 16
  • 31

0 Answers0