findbugs: equals() call on Long instead of =-comparison

This commit is contained in:
Daan Hoogland 2015-02-19 10:23:10 +01:00 committed by Daan Hoogland
parent 6c05d9f572
commit 0f8a055dff
1 changed files with 1 additions and 1 deletions

View File

@ -1761,7 +1761,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
// unregister the VM from the source host and cleanup the associated VM files.
if (vm.getHypervisorType().equals(HypervisorType.VMware)) {
Long destClusterId = destPool.getClusterId();
if (srcClusterId != null && destClusterId != null && srcClusterId != destClusterId) {
if (srcClusterId != null && destClusterId != null && !srcClusterId.equals(destClusterId)) {
String srcDcName = _clusterDetailsDao.getVmwareDcName(srcClusterId);
String destDcName = _clusterDetailsDao.getVmwareDcName(destClusterId);
if (srcDcName != null && destDcName != null && !srcDcName.equals(destDcName)) {