Skip to content

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
izeye added a commit to izeye/micrometer that referenced this pull request Apr 24, 2025
izeye added a commit to izeye/micrometer that referenced this pull request Apr 24, 2025
…check from Error Prone

See micrometer-metricsgh-5711

Signed-off-by: Johnny Lim <izeye@naver.com>
jonatan-ivanov pushed a commit that referenced this pull request Apr 24, 2025
…check from Error Prone (#6163)

See gh-5711

Signed-off-by: Johnny Lim <izeye@naver.com>
jonatan-ivanov pushed a commit that referenced this pull request Apr 24, 2025
See gh-5711

Signed-off-by: Johnny Lim <izeye@naver.com>
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