private void linkFirst(E e) {
final Node<E> f = first;
final Node<E> newNode = new Node<>(null, e, f);
first = newNode;
if (f == null)
last = newNode;
else
f.prev = newNode;
size++;
modCount++;
}
LinkedList源码里面方法的局部变量为什么都会加上final?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…