Skip to content

Conversation

@btangmu
Copy link
Member

@btangmu btangmu commented Feb 5, 2025

-In resolveVotes, do not return INHERITANCE_MARKER if baileyValue is null

-Do not misinterpret the boolean baileySet as implying baileyValue is not null

-Always call getBaileyValue instead of reading baileyValue directly, to enforce the requirement that setBaileyValue must be called before getBaileyValue

-Make VoteResolver.getBaileyValue private; it was not called by other classes

-Comments; clarify that baileySet may be true even if baileyValue is false; it only indicates that setBaileyValue was called

CLDR-18240

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

-In resolveVotes, do not return INHERITANCE_MARKER if baileyValue is null

-Do not misinterpret the boolean baileySet as implying baileyValue is not null

-Always call getBaileyValue instead of reading baileyValue directly, to enforce the requirement that setBaileyValue must be called before getBaileyValue

-Make VoteResolver.getBaileyValue private; it was not called by other classes

-Comments; clarify that baileySet may be true even if baileyValue is false; it only indicates that setBaileyValue was called
winningValue, winningStatus);
// Declare the winner here, because we're about to return from the function
} else if (organizationToValueAndVote.baileySet) {
} else if (getBaileyValue() != null) {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the essential bug fix

@btangmu btangmu marked this pull request as ready for review February 5, 2025 23:01
@btangmu btangmu merged commit 70d9ae9 into unicode-org:main Feb 5, 2025
13 checks passed
@btangmu btangmu deleted the t18240_a branch February 5, 2025 23:02
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