In a lot of of the Java source, (for example LinkedBlockingDeque) I see things like this;
LinkedBlockingDeque
final ReentrantLock lock = new ReentrantLock(); publi
When you assign to local variable in method, compiler can do some optimizations. see In ArrayBlockingQueue, why copy final member field into local final variable?