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

util/maven: replace BoolString with TruthyBool and FalsyBool #117

Merged
merged 13 commits into from
Dec 18, 2024

Conversation

cuixq
Copy link
Collaborator

@cuixq cuixq commented Dec 5, 2024

For a string field holding boolean value, the default value may be true, and may be false. Currently, we do not specify which type of boolean string, and the client needs to check Maven documentation to decide the actual boolean value.

This PR replaces the existing BoolString with TruthyBool (default value is true) and FalsyBool (default value is false), and implements Boolean() method for both types so that the clients no need to check the Maven documentation for the default value.

Removing BoolString is a breaking change, but considering that util packages are not versioned yet, I am not too worried about this.

@cuixq cuixq changed the title util/maven: replace BoolString with TrusyBool and FalsyBool util/maven: replace BoolString with TruthyBool and FalsyBool Dec 10, 2024
@cuixq cuixq merged commit 3890182 into google:main Dec 18, 2024
2 checks passed
@cuixq cuixq deleted the maven branch December 18, 2024 00:10
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