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

java.util.Locale deprecation warnings #1591

Open
xuwei-k opened this issue Oct 21, 2023 · 0 comments
Open

java.util.Locale deprecation warnings #1591

xuwei-k opened this issue Oct 21, 2023 · 0 comments

Comments

@xuwei-k
Copy link
Contributor

xuwei-k commented Oct 21, 2023

https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Locale.html#%3Cinit%3E(java.lang.String,java.lang.String,java.lang.String)

[warn] -- Deprecation Warning: /home/runner/work/scalatra/scalatra/core/src/main/scala/org/scalatra/i18n/I18nSupport.scala:101:16 
[warn] 101 |            new Locale(langCountry.head, langCountry.last)
[warn]     |                ^^^^^^
[warn]     |constructor Locale in class Locale is deprecated since : see corresponding Javadoc for more information.
[warn] -- Deprecation Warning: /home/runner/work/scalatra/scalatra/core/src/main/scala/org/scalatra/i18n/I18nSupport.scala:103:16 
[warn] 103 |            new Locale(langCountry.head)
[warn]     |                ^^^^^^
[warn]     |constructor Locale in class Locale is deprecated since : see corresponding Javadoc for more information.
[warn] -- Deprecation Warning: /home/runner/work/scalatra/scalatra/core/src/main/scala/org/scalatra/i18n/I18nSupport.scala:128:8 
[warn] 128 |    new Locale(token.head, token.last)
[warn]     |        ^^^^^^
[warn]     |constructor Locale in class Locale is deprecated since : see corresponding Javadoc for more information.
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

No branches or pull requests

1 participant