[PATCH] Inefficient ArrayList.subList().toArray()

Сергей Цыпанов sergei.tsypanov at yandex.ru
Fri Jan 26 09:12:11 UTC 2018


Thanks for quick review!

Indeed, there must be checkForComodification() at the beginning of each method, my bad.

Btw, ArrayList produced by java.util.Arrays.asList() is also RandomAccess and array-based
but has no custom implementation of subList().

Could we apply the same approach for java.util.Arrays.ArrayList?

Regards,
Sergey


More information about the core-libs-dev mailing list