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

[LANG-1682] Javadoc and test: Use Strings.CI.startsWithAny method instead #1299

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

ParanoidUser
Copy link
Contributor

https://issues.apache.org/jira/browse/LANG-1682

There have been several attempts (PR #848, PR #1040) to introduce the startsWithAnyIgnoreCase method to the already overcrowded StringUtils class. This discussion led to the creation of the Strings class (which supersedes StringUtils), providing similar functionality but managing case-sensitivity through:

  • Case-sensitive (Strings.CS) instance
  • Case-insensitive (Strings.CI) instance

In the recent commit, the Strings class now supports the requested startsWithAny functionality. This PR adds a test group to cover case-insensitive scenarios and adjusts the javadoc to accurately describe its behavior.

@garydgregory garydgregory changed the title [LANG-1682] Use Strings.CI.startsWithAny method instead [LANG-1682] Javadoc and test: Use Strings.CI.startsWithAny method instead Oct 16, 2024
@garydgregory garydgregory merged commit f51f015 into apache:master Oct 16, 2024
16 of 18 checks passed
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