generate double hashCode: simplify expr (IDEA-103687)

(cherry picked from commit 8796e6596a3e3e142b072d405bbf37071b810c5c)
This commit is contained in:
anna
2013-03-26 19:16:09 +01:00
parent b348f5f4ce
commit b3eb62d36e
3 changed files with 4 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ class Test {
result = i;
result = 31 * result + a.hashCode();
result = 31 * result + (b != null ? b.hashCode() : 0);
temp = c != +0.0d ? Double.doubleToLongBits(c) : 0L;
temp = Double.doubleToLongBits(c);
result = 31 * result + (int) (temp ^ (temp >>> 32));
return result;
}