mirror of https://github.com/apache/cloudstack.git
findbugs: equals() call on Long instead of =-comparison
This commit is contained in:
parent
6c05d9f572
commit
0f8a055dff
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue