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 |
|
|
31 |
|
* the collection being implemented admits a more efficient implementation.<p> |
32 |
|
* |
33 |
|
* This class is a member of the |
34 |
< |
* <a href="{@docRoot}/../guide/collections/index.html"> |
34 |
> |
* <a href="{@docRoot}/../technotes/guides/collections/index.html"> |
35 |
|
* Java Collections Framework</a>. |
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 |
|
} |