From f03f70f310fa66664eaf19c15601c0c027eea5d3 Mon Sep 17 00:00:00 2001 From: Libin YANG Date: Fri, 3 Nov 2023 07:46:02 +0800 Subject: [PATCH] fix: get(index) in array list close #152 --- docs/JDK/collection/ArrayList.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/JDK/collection/ArrayList.md b/docs/JDK/collection/ArrayList.md index 833f660..21663ed 100644 --- a/docs/JDK/collection/ArrayList.md +++ b/docs/JDK/collection/ArrayList.md @@ -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); } ```