Skip to content

Commit f61996f

Browse files
authored
Merge pull request Snailclimb#1780 from Raxcl/patch-3
Update arraylist-source-code.md
2 parents 9d937a7 + 577e6a7 commit f61996f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/java/collection/arraylist-source-code.md

-1
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,6 @@ public class EnsureCapacityTest {
922922
public static void main(String[] args) {
923923
ArrayList<Object> list = new ArrayList<Object>();
924924
final int N = 10000000;
925-
list = new ArrayList<Object>();
926925
long startTime1 = System.currentTimeMillis();
927926
list.ensureCapacity(N);
928927
for (int i = 0; i < N; i++) {

0 commit comments

Comments
 (0)