-
Notifications
You must be signed in to change notification settings - Fork 3.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
Deprecated since jdk9 replacing constructor instance of Double and Float #1660
Conversation
sync to latest
Can't we simply rely on autoboxing? |
caaab0f
to
31e461e
Compare
Right, good point. |
@marcphilipp @RahulNagekar I personally prefer not using autoboxing here. Having an explicit conversion here makes it clear to future readers that a conversion is happening. |
I'm also in favour for Double.valueOf so that the code is the same like in JUnit 4's |
I currently not sure if autoboxing would be more beneficial or valueOf (performance-wise). |
Replacing Deprecated datatype constructors
f640dce
to
4859dcb
Compare
No description provided.