fix: get(index) in array list

close #152
pull/154/head
Libin YANG 2 years ago committed by GitHub
parent edffbb4070
commit f03f70f310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -159,8 +159,8 @@ public void set(E e) {
```java ```java
public E get(int index) { public E get(int index) {
rangeCheck(index); rangeCheck(index);
checkForComodification();
return ArrayList.this.elementData(offset + index); return elementData(index);
} }
``` ```

Loading…
Cancel
Save