Skip to content

Add fill method for boolean arrays in ArrayFill utility class #1386

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

kommalapatiraviteja
Copy link
Contributor

  • Completes the fill methods for all primitive array types

Summary

This PR adds support for filling boolean[] arrays in the ArrayFill utility class, completing coverage for all primitive array types.

Changes

  • Introduced public static boolean[] fill(boolean[] a, boolean val) method
  • Consistent with existing fill methods for other primitive types like int, double, etc.
  • Ensures fluent API style by returning the input array

Motivation

This method complements the existing API by supporting boolean[], which was missing. It helps users initialize boolean arrays in a fluent and consistent way across all primitive types.

Checklist

  • Code compiles successfully
  • All existing and unit tests pass
  • Ran mvn command and verified build is successful.

- Completes the fill methods for all primitive array types
@garydgregory
Copy link
Member

Hello @kommalapatiraviteja

Thank you for the PR.

@garydgregory garydgregory merged commit 9d5ad94 into apache:master May 19, 2025
16 of 19 checks passed
garydgregory added a commit that referenced this pull request May 19, 2025
- Add missing Javadoc since tag
- Sort members
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