Skip to content

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

Merged
garydgregory merged 1 commit intoapache:masterfrom
kommalapatiraviteja:boolean-fill-method
May 19, 2025
Merged

Add fill method for boolean arrays in ArrayFill utility class#1386
garydgregory merged 1 commit intoapache:masterfrom
kommalapatiraviteja:boolean-fill-method

Conversation

@kommalapatiraviteja
Copy link
Copy Markdown
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
Copy Markdown
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