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

remove Boolean constructor usages #90

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

NicolaIsotta
Copy link
Contributor

@NicolaIsotta NicolaIsotta commented Jun 9, 2023

Quoting JDK 8 javadoc:

Note: It is rarely appropriate to use this constructor. Unless a new instance is required, the static factory valueOf(boolean) is generally a better choice. It is likely to yield significantly better space and time performance.

Also, the constructor is deprecated from Java 9 onwards.

NB: I do not know opinions regarding the autoboxing feature, so I used the valueOf method.

Signed-off-by: NicolaIsotta <nicola.isotta@gmail.com>
@NicolaIsotta NicolaIsotta force-pushed the boolean-constructor branch from 3b58e36 to 5e4e665 Compare June 9, 2023 13:00
@ThePrez ThePrez merged commit 295cc3c into IBM:main Jun 9, 2023
@NicolaIsotta NicolaIsotta deleted the boolean-constructor branch June 26, 2023 06:02
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