-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix NotNull locales #10216
Fix NotNull locales #10216
Conversation
Is there a reason why the default fallback is the US locale? I'd say if player's locale cannot be parsed, it'd better be something like |
Personally, I would say it is very standard to default to English. I am biased, but defaulting to the server's root Locale seems like it could cause issues |
Well, there's also |
Locale.US is the fallback locale used elsewhere: Paper/patches/server/0010-Adventure.patch Line 2763 in c5d168c
Paper/patches/server/0010-Adventure.patch Line 1476 in c5d168c
I don't mind Locale.ROOT, but consistency with the existing code is more important |
Two methods returning locales are annotated @NotNull, despite being able to return null
86fde17
to
66b4f14
Compare
Two methods returning locales are annotated @NotNull, despite being able to return null
Two methods returning locales are annotated @NotNull, despite being able to return null