Repository: commons-math Updated Branches: refs/heads/master 803e1a6f4 -> ffc1caada
Revert "no need for Double allocation just to get hashCode" a java 8 method This reverts commit 803e1a6f4bfcc0ce77cd9b63cf70d264aa8a90ad. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/ffc1caad Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/ffc1caad Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/ffc1caad Branch: refs/heads/master Commit: ffc1caada54272e273ca26c17e54f2f91245884f Parents: 803e1a6 Author: Dave Brosius <dbros...@mebigfatguy.com> Authored: Mon May 30 13:25:18 2016 -0400 Committer: Dave Brosius <dbros...@mebigfatguy.com> Committed: Mon May 30 13:25:18 2016 -0400 ---------------------------------------------------------------------- src/main/java/org/apache/commons/math4/util/MathUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/ffc1caad/src/main/java/org/apache/commons/math4/util/MathUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/util/MathUtils.java b/src/main/java/org/apache/commons/math4/util/MathUtils.java index fc3e3fe..7f10455 100644 --- a/src/main/java/org/apache/commons/math4/util/MathUtils.java +++ b/src/main/java/org/apache/commons/math4/util/MathUtils.java @@ -61,7 +61,7 @@ public final class MathUtils { * @return the hash code */ public static int hash(double value) { - return Double.hashCode(value); + return new Double(value).hashCode(); } /**