8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
object == this
equals
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 the object == this optimization, when implementing the equals methods. Modern JVMs no longer appreciate this kind of "optimizations".
Old
public boolean equals(final Object obj) { return obj == this || obj instanceof DoubleRange other && Double.compare(_min, other._min) == 0 && Double.compare(_max, other._max) == 0; }
New
public boolean equals(final Object obj) { return obj instanceof DoubleRange other && Double.compare(_min, other._min) == 0 && Double.compare(_max, other._max) == 0; }
The text was updated successfully, but these errors were encountered:
#921: Remove Object::equals "optimizations".
Object::equals
f4e6085
Signed-off-by: Franz Wilhelmstötter <franz.wilhelmstoetter@gmail.com>
Merge pull request #922 from jenetics/issues/JENETICS-921-remove_equa…
530ff08
…ls_optimization #921: Remove `Object::equals` "optimizations".
Merged into r8.2.0.
Sorry, something went wrong.
jenetics
No branches or pull requests
Remove the
object == this
optimization, when implementing theequals
methods. Modern JVMs no longer appreciate this kind of "optimizations".Old
New
The text was updated successfully, but these errors were encountered: