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

[Enhancement] Unify all null == object usage to standard object == null #4808

Closed
3 tasks done
Pil0tXia opened this issue Apr 3, 2024 · 0 comments · Fixed by #4809
Closed
3 tasks done

[Enhancement] Unify all null == object usage to standard object == null #4808

Pil0tXia opened this issue Apr 3, 2024 · 0 comments · Fixed by #4809
Labels
enhancement New feature or request

Comments

@Pil0tXia
Copy link
Member

Pil0tXia commented Apr 3, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Enhancement Request

The usage of null == object is a legacy convention from the C language era. In Java, this syntax is not supported by any specifications (see the discussion below). Therefore, it is better to standardize it as object == null.

Describe the solution you'd like

Replace all null == object to object == null.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant