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,509
  • 2
  • 20
  • 36

0 Answers0