Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override clear method in custom list views #555

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

li-ukumar
Copy link
Member

What

Overriding clear method in List views to run clear methods of provided list rather than defaulting on AbstractList implementation.

Why

Generic Array implementation in avro has custom implementation of clear, which is lost if AbstractList's method is used.

Test

build

Comment on lines 64 to 68
@Override
public void clear() {
utf8List.clear();
}
}
Copy link
Collaborator

@xiaoyu-yang-gh xiaoyu-yang-gh Apr 24, 2024

Choose a reason for hiding this comment

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

Can you add doc why these method need to be override, the thing you have the PR description.

@li-ukumar li-ukumar merged commit 9321e76 into master Apr 24, 2024
2 checks passed
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.

3 participants