Shahar Havivi has uploaded a new change for review.

Change subject: Remove double.doubleToLongBits from VM.hashCode
......................................................................

Remove double.doubleToLongBits from VM.hashCode

patch http://gerrit.ovirt.org/#/c/14965 added hashCode to VM,
but GWT doesn't support doubleToLongBits() method.

Change-Id: I4b5f9afabb645ece870df409e5959d151d1952e1
Signed-off-by: Shahar Havivi <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/25/15025/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
index 18ccf59..2eb6c88 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
@@ -1220,13 +1220,13 @@
         final int prime = 31;
         int result = 1;
         long temp;
-        temp = Double.doubleToLongBits(_actualDiskWithSnapthotsSize);
+        temp = (long)_actualDiskWithSnapthotsSize;
         result = prime * result + (int) (temp ^ (temp >>> 32));
         result = prime * result + (balloonEnabled ? 1231 : 1237);
         result = prime * result + ((cdPath == null) ? 0 : cdPath.hashCode());
         result = prime * result + ((configured == null) ? 0 : 
configured.hashCode());
         result = prime * result + ((diskMap == null) ? 0 : diskMap.hashCode());
-        temp = Double.doubleToLongBits(diskSize);
+        temp = (long)diskSize;
         result = prime * result + (int) (temp ^ (temp >>> 32));
         result = prime * result + ((floppyPath == null) ? 0 : 
floppyPath.hashCode());
         result = prime * result + migreatingFromPort;


--
To view, visit http://gerrit.ovirt.org/15025
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b5f9afabb645ece870df409e5959d151d1952e1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to