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

Some non null annotations #4486

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Some non null annotations #4486

wants to merge 2 commits into from

Conversation

clinique
Copy link
Contributor

@clinique clinique commented Dec 9, 2024

No description provided.

Signed-off-by: Gaël L'hopital <[email protected]>
@clinique clinique requested a review from a team as a code owner December 9, 2024 10:47
return getText(null, key, locale);
}

private String getTranslatedText(String resourceName, String key, Locale locale) {
private @Nullable String getTranslatedText(String resourceName, String key, Locale locale) {
Copy link
Member

Choose a reason for hiding this comment

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

The parameters may be Nullable as well. According to the docs, it would cause a NullpointerException in getBundle, which leads to returning null.

Not sure if this is the way to go, but at least it would be more consistent with the other methods above.

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.

3 participants