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

Use String.toLowerCase()/toUpperCase() with Locale.ROOT consistently #5711

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Nov 27, 2024

This PR changes to use String.toLowerCase() and String.toUpperCase() with the Locale.ROOT consistently as it seems to be a good practice aside from security.

This PR also adds Checkstyle rules for it.

See spring-projects/spring-framework#33708 and https://errorprone.info/bugpattern/StringCaseLocaleUsage

This commit also adds Checkstyle rules for it.
@shakuzen shakuzen added the enhancement A general enhancement label Nov 28, 2024
@shakuzen shakuzen added this to the 1.15.0-M1 milestone Nov 28, 2024
@shakuzen shakuzen merged commit 0e65756 into micrometer-metrics:main Nov 28, 2024
8 checks passed
@izeye izeye deleted the locale branch November 28, 2024 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants