Skip to content

Commit

Permalink
fix: get(index) in array list
Browse files Browse the repository at this point in the history
close #152
  • Loading branch information
yanglbme authored Nov 2, 2023
1 parent edffbb4 commit f03f70f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/JDK/collection/ArrayList.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ public void set(E e) {
```java
public E get(int index) {
rangeCheck(index);
checkForComodification();
return ArrayList.this.elementData(offset + index);

return elementData(index);
}
```

Expand Down

0 comments on commit f03f70f

Please sign in to comment.