Here you can find the source of getIncrement()
private static LongAdder getIncrement()
//package com.java2s; //License from project: Apache License import java.util.concurrent.atomic.LongAdder; public class Main { private static final ThreadLocal<LongAdder> increment = new ThreadLocal<LongAdder>(); private static LongAdder getIncrement() { LongAdder adder = increment.get(); if (adder == null) { adder = new LongAdder(); increment.set(adder);//from www. j a va 2 s . com } return adder; } }