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

Refactor: Update build.gradle and fix import order in SelJodaDateTimePropertyTest to pass Spotless check #57

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

HankGuo93
Copy link
Contributor

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew build --write-locks to refresh dependencies)
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

chore: Update build.gradle

  • If the developer's computer environment is not set to English, running Unit Tests may result in errors.

fix: Correct import order to pass Spotless check in SelJodaDateTimePropertyTest

  • Adjusted the order of imports to comply with Spotless formatting rules.
  • Ran ./gradlew :netflix-sel:spotlessApply to automatically fix format violations.

- If the developer's computer environment is not set to English, running Unit Tests may result in errors.
…opertyTest

- Adjusted the order of imports to comply with Spotless formatting rules.
- Ran `./gradlew :netflix-sel:spotlessApply` to automatically fix format violations.
build.gradle Outdated
@@ -39,7 +39,7 @@ allprojects {
}

test {
jvmArgs += ["-Djava.security.manager=allow"]
jvmArgs += ["-Djava.security.manager=allow", "-Duser.language=en", "-Duser.country=US"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering if country is required?

@jun-he jun-he mentioned this pull request Jul 26, 2024
5 tasks
@HankGuo93
Copy link
Contributor Author

If your application works correctly without -Duser.country=US, then specifying the country is not mandatory. However, if your application relies on specific locale settings (such as date and currency formats), it is better to explicitly specify the country.

To ensure consistent behavior, it is advisable to set both the language and the country.

@jun-he
Copy link
Contributor

jun-he commented Jul 30, 2024

@HankGuo93 can you remove the change in test jvmArgs from this PR and I can merge the other change about the import? Thanks.

- Removed "-Duser.language=en" and "-Duser.country=US"
@HankGuo93
Copy link
Contributor Author

I've removed the changes to the test JVM arguments. The PR now only includes the import changes. Thanks!

Copy link
Contributor

@jun-he jun-he left a comment

Choose a reason for hiding this comment

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

LGTM. thanks.

@jun-he jun-he merged commit ba72c05 into Netflix:main Jul 30, 2024
1 check 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