-
Notifications
You must be signed in to change notification settings - Fork 39
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
Specify Locale
when calling String#to{Lower,Upper}Case
#336
Comments
Certainly!
I'd rather see this implemented using a |
That makes sense, let's create a BugChecker for this then. I updated the description 👍🏻. |
I'm looking to pick this one up, any pointers before I begin? |
Yes @mlrprananta for sure. I would say this will be quite similar to the On a first glance, it sounds like the Are these pointers helpful? If not, or if you have any questions, feel free to reach out 😉. |
Opened a PR (#376), PTAL 🙂 |
Resolved in #376. |
Problem
When calling
String#to{Lower,Upper}Case
without arguments, the system'sLocale
is used by default.To prevent this we want our code to specify
Locale.ROOT
.Therefore, we want to rewrite occurrences that invoke the aforementioned methods without
Locale
and introduceLocale.ROOT
.Description of the proposed new feature
I would like to rewrite the following code:
to:
Considerations
Just a consideration; instead of
Locale.ROOT
one can also use otherLocale
s. I assume we want to leave those as is, right?Participation
This is a nice opportunity for contributing an Error Prone check 😄.
The text was updated successfully, but these errors were encountered: