fix: get(index) in array list

close #152
This commit is contained in:
Libin YANG 2023-11-03 07:46:02 +08:00 committed by GitHub
parent edffbb4070
commit f03f70f310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
```