ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/ArrayList.java
(Generate patch)

Comparing jsr166/src/main/java/util/ArrayList.java (file contents):
Revision 1.28 by jsr166, Mon May 19 00:32:45 2008 UTC vs.
Revision 1.29 by jsr166, Tue Jul 21 23:56:46 2009 UTC

# Line 1 | Line 1
1   /*
2 < * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
2 > * Copyright 1997-2008 Sun Microsystems, Inc.  All Rights Reserved.
3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4   *
5   * This code is free software; you can redistribute it and/or modify it
# Line 179 | Line 179 | public class ArrayList<E> extends Abstra
179          modCount++;
180          int oldCapacity = elementData.length;
181          if (minCapacity > oldCapacity) {
182            Object oldData[] = elementData;
182              int newCapacity = (oldCapacity * 3)/2 + 1;
183              if (newCapacity < minCapacity)
184                  newCapacity = minCapacity;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines