Skip to content

Commit f03f70f

Browse files
authored
fix: get(index) in array list
close #152
1 parent edffbb4 commit f03f70f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/JDK/collection/ArrayList.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ public void set(E e) {
159159
```java
160160
public E get(int index) {
161161
rangeCheck(index);
162-
checkForComodification();
163-
return ArrayList.this.elementData(offset + index);
162+
163+
return elementData(index);
164164
}
165165
```
166166

0 commit comments

Comments
 (0)