no need for Double allocation just to get hashCode
This commit is contained in:
parent
292b6ab081
commit
803e1a6f4b
|
@ -61,7 +61,7 @@ public final class MathUtils {
|
|||
* @return the hash code
|
||||
*/
|
||||
public static int hash(double value) {
|
||||
return new Double(value).hashCode();
|
||||
return Double.hashCode(value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue