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

Use Objects.hashCode instead of Objects.hash to avoid vararg array creation #849

Closed
wants to merge 1 commit into from

Conversation

turbanoff
Copy link
Contributor

Objects.hash accepts vararg array. We can use Objects.hashCode to avoid redundant array creation.

@gnodet gnodet added this to the 3.23.1 milestone Jul 31, 2023
gnodet pushed a commit to gnodet/jline3 that referenced this pull request Jul 31, 2023
@gnodet gnodet mentioned this pull request Aug 1, 2023
@gnodet gnodet closed this in #853 Aug 1, 2023
gnodet pushed a commit that referenced this pull request Aug 1, 2023
@gnodet gnodet mentioned this pull request Aug 2, 2023
@turbanoff turbanoff deleted the use_Objects.hashCode branch August 8, 2023 17:05
@gnodet gnodet modified the milestones: 3.23.1, 3.24.0 Oct 24, 2023
@gnodet gnodet mentioned this pull request Oct 25, 2023
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.

2 participants