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

=act Locale unaware method in Helpers. #20412

Merged
merged 1 commit into from Apr 28, 2016
Merged

=act Locale unaware method in Helpers. #20412

merged 1 commit into from Apr 28, 2016

Conversation

andreaTP
Copy link
Contributor

This is split from #20406

@akka-ci
Copy link

akka-ci commented Apr 28, 2016

Can one of the repo owners verify this patch?

@@ -14,7 +14,11 @@ import java.util.Locale

object Helpers {

val isWindows: Boolean = System.getProperty("os.name", "").toLowerCase(Locale.ROOT).indexOf("win") >= 0
implicit class LocaleUnawareString(s: String) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is costly and magic, please don't add conversions to add methods :-)
just Helpers.toRootLowerCase would be good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good

@ktoso
Copy link
Member

ktoso commented Apr 28, 2016

Could you grep the project for the .toLowerCase(Locale.ROOT) and replace those calls with this one?
It's easier to understand a codebase if it's consistent in calling things

@andreaTP
Copy link
Contributor Author

done, except on the http module as discussed.

@ktoso
Copy link
Member

ktoso commented Apr 28, 2016

OK TO TEST

@ktoso
Copy link
Member

ktoso commented Apr 28, 2016

LGTM

@akka-ci akka-ci added validating PR is currently being validated by Jenkins needs-attention Indicates a PR validation failure (set by CI infrastructure) and removed validating PR is currently being validated by Jenkins labels Apr 28, 2016
@akka-ci
Copy link

akka-ci commented Apr 28, 2016

Test FAILed.

@andreaTP
Copy link
Contributor Author

fixed

@akka-ci akka-ci added validating PR is currently being validated by Jenkins and removed needs-attention Indicates a PR validation failure (set by CI infrastructure) labels Apr 28, 2016
@patriknw
Copy link
Member

LGTM

@akka-ci akka-ci added tested PR that was successfully built and tested by Jenkins and removed validating PR is currently being validated by Jenkins labels Apr 28, 2016
@akka-ci
Copy link

akka-ci commented Apr 28, 2016

Test PASSed.

@ktoso
Copy link
Member

ktoso commented Apr 28, 2016

LGTM, thanks

@ktoso ktoso merged commit 088bf1b into akka:master Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tested PR that was successfully built and tested by Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants