Skip to content

Commit

Permalink
added minor fixes to remove test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
opetrychenko committed Dec 30, 2024
1 parent 1707c8e commit b9b07de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/core/basesyntax/ArrayList.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ArrayList<T> implements List<T> {
private int size;

public ArrayList() {
objects = new Objects[DEFAULT_CAPACITY];
objects = new Object[DEFAULT_CAPACITY];
}

@Override
Expand All @@ -27,6 +27,7 @@ public void add(T value, int index) {
}
if (index == size()) {
add(value);
return;
}
expandArray();
Object[] arrExpanded = new Object[objects.length];
Expand Down

0 comments on commit b9b07de

Please sign in to comment.