Skip to content

Core: Simplify first-iteration check in Partitioning.commonActiveFieldIds - #17798

Open
uros-b wants to merge 1 commit into
apache:mainfrom
uros-b:core-simplify-partitioning-common-fields
Open

Core: Simplify first-iteration check in Partitioning.commonActiveFieldIds#17798
uros-b wants to merge 1 commit into
apache:mainfrom
uros-b:core-simplify-partitioning-common-fields

Conversation

@uros-b

@uros-b uros-b commented Aug 24, 2026

Copy link
Copy Markdown
Member

In Partitioning.commonActiveFieldIds, the loop uses an int specIndex counter solely to detect the first spec (the first spec seeds the set with addAll, the rest intersect with retainAll). Replaces it with a boolean first flag, which expresses the intent directly and drops the unused running count. Behavior-preserving; no functional change.

…dIds

Replace the manual specIndex counter, used only to detect the first spec, with a boolean flag.
@github-actions github-actions Bot added the core label Aug 24, 2026

@uros-b uros-b left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Please review @aokolnychyi

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant