1 |
|
/* |
2 |
|
* %W% %E% |
3 |
|
* |
4 |
< |
* Copyright 2005 Sun Microsystems, Inc. All rights reserved. |
4 |
> |
* Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
5 |
|
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. |
6 |
|
*/ |
7 |
|
|
36 |
|
* |
37 |
|
* @author Josh Bloch |
38 |
|
* @author Neal Gafter |
39 |
< |
* @version 1.24, 01/18/03 |
39 |
> |
* @version %I%, %G% |
40 |
|
* @see Collection |
41 |
|
* @since 1.2 |
42 |
|
*/ |
170 |
|
} |
171 |
|
r = Arrays.copyOf(r, newCap); |
172 |
|
} |
173 |
< |
} |
173 |
> |
} |
174 |
|
// trim if overallocated |
175 |
|
return i == r.length ? r : Arrays.copyOf(r, i); |
176 |
|
} |