findbugs: wrapper object comparison (fixed)

This commit is contained in:
Daan Hoogland 2015-03-25 17:12:51 +01:00
parent 8fe3c0b8ba
commit fa56045665
1 changed files with 1 additions and 1 deletions

View File

@ -1768,7 +1768,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)) {
final Long destClusterId = destPool.getClusterId();
if (srcClusterId != null && destClusterId != null && srcClusterId != destClusterId) {
if (srcClusterId != null && destClusterId != null && ! srcClusterId.equals(destClusterId)) {
final String srcDcName = _clusterDetailsDao.getVmwareDcName(srcClusterId);
final String destDcName = _clusterDetailsDao.getVmwareDcName(destClusterId);
if (srcDcName != null && destDcName != null && !srcDcName.equals(destDcName)) {