提交 8c0acbf2 编写于 作者: S sherman

6812879: Excess code line in ArrayList method

Summary: Removed the line of "oldData" which is no longer used.
Reviewed-by: martin
上级 01451a1f
......@@ -179,7 +179,6 @@ public class ArrayList<E> extends AbstractList<E>
modCount++;
int oldCapacity = elementData.length;
if (minCapacity > oldCapacity) {
Object oldData[] = elementData;
int newCapacity = (oldCapacity * 3)/2 + 1;
if (newCapacity < minCapacity)
newCapacity = minCapacity;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册