Skip to content

[444] - Replace ArrayList with custom implementation that overrides equals method#587

Open
iofit wants to merge 2 commits intoeclipsesource:masterfrom
iofit:444
Open

[444] - Replace ArrayList with custom implementation that overrides equals method#587
iofit wants to merge 2 commits intoeclipsesource:masterfrom
iofit:444

Conversation

@iofit
Copy link
Copy Markdown

@iofit iofit commented Oct 25, 2022

No description provided.

@iofit iofit changed the title 444 [444] - Replace ArrayList with custom implementation that overrides equals method Oct 25, 2022
* compare references and ranges.
* @param <E> – the type of elements in this list
*/
private static class SimpleArrayList<E> extends ArrayList<E> {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why override equals here when it just mirrors ArrayList.equals? What benefit does this custom impl add?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants