92 |
|
* should be used only to detect bugs.</i> |
93 |
|
* |
94 |
|
* <p>This class is a member of the |
95 |
< |
* <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> |
95 |
> |
* <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> |
96 |
|
* Java Collections Framework</a>. |
97 |
|
* |
98 |
|
* @param <E> the type of elements in this list |
571 |
|
if (to > es.length) { |
572 |
|
throw new ConcurrentModificationException(); |
573 |
|
} |
574 |
< |
var oit = other.iterator(); |
574 |
> |
Iterator<?> oit = other.iterator(); |
575 |
|
for (; from < to; from++) { |
576 |
|
if (!oit.hasNext() || !Objects.equals(es[from], oit.next())) { |
577 |
|
return false; |