auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testNullGuidListValues ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > stringList = org.ovirt.engine.core.compat.Guid.createGuidListFromString ( null ) ; java.util.List < org.ovirt.engine.core.compat.Guid > expectedList = new java.util.ArrayList < > ( ) ; org.junit.Assert.assertEquals ( expectedList , stringList ) ; }

Target:
public void testNullGuidListValues ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > stringList = org.ovirt.engine.core.compat.Guid.createGuidListFromString ( null ) ; java.util.List < org.ovirt.engine.core.compat.Guid > expectedList = new java.util.ArrayList < > ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( expectedList , stringList ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { updateDisksStorage ( storageDomain , disksList ) ; org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = getStorageDomainValidator ( storageDomain ) ; return ( storageDomainValidator.isDomainWithinThresholds ( ) . isValid ( ) ) && ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) . isValid ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { updateDisksStorage ( storageDomain , memoryDisks ) ; org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = getStorageDomainValidator ( storageDomain ) ; return ( storageDomainValidator.isDomainWithinThresholds ( ) . isValid ( ) ) && ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) . isValid ( ) ) ; }
Source:
public void validate_vmNameExists_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( org.mockito.Matchers.any ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }

Target:
public void validate_vmNameExists_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( org.mockito.ArgumentMatchers.any ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }
Source:
protected void EntityChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { super . EntityChanging ( newValue , oldValue ) ; entitiesChanged = calculateEntitiesChanged ( newValue , oldValue ) ; }

Target:
protected void entityChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { super . entityChanging ( newValue , oldValue ) ; entitiesChanged = calculateEntitiesChanged ( newValue , oldValue ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilder createBuilder ( ) { final org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderFactory vmInfoBuilderFactory = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderFactory.class ) ; return vmInfoBuilderFactory.createVmInfoBuilder ( vm , org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getParameters ( ) . getVdsId ( ) , createInfo ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilder createBuilder ( ) { final org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderFactory vmInfoBuilderFactory = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderFactory.class ) ; return vmInfoBuilderFactory.createVmInfoBuilder ( vm , org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.getParameters ( ) . getVdsId ( ) , createInfo ) ; }
Source:
public void testVeryLong ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm><memory>92233720368547758070</memory></vm>" ) ; org.junit.Assert.assertEquals ( java.math.BigInteger.TEN.multiply ( java.math.BigInteger.valueOf ( java.lang.Long.MAX_VALUE ) ) , object.getMemory ( ) ) ; }

Target:
public void testVeryLong ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm><memory>92233720368547758070</memory></vm>" ) ; org.junit.Assert.assertEquals ( java.math.BigInteger.TEN.multiply ( java.math.BigInteger.valueOf ( java.lang.Long.MAX_VALUE ) ) , object.memory ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepConfigListXmlRpc glusterVolumeGeoRepConfigList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public java.lang.String getVdcObjectName ( ) { org.ovirt.engine.core.common.businessentities.Permission perms = org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) ; return org.ovirt.engine.core.bll.PermissionsCommandBase.getDbFacade ( ) . getEntityNameByIdAndType ( perms.getObjectId ( ) , perms.getObjectType ( ) ) ; }

Target:
public java.lang.String getVdcObjectName ( ) { org.ovirt.engine.core.common.businessentities.Permission perms = org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) ; return entityDao.getEntityNameByIdAndType ( perms.getObjectId ( ) , perms.getObjectType ( ) ) ; }
Source:
public void testGetAllEntitiesForStorageDomainWithNoUnregisteredEntities ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_2 , null ) ; org.junit.Assert.assertTrue ( "No entities should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetAllEntitiesForStorageDomainWithNoUnregisteredEntities ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_2 , null ) ; org.junit.Assert.assertTrue ( "No entities should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }
Source:
public void updateVisibility ( ) { super . updateVisibility ( ) ; attachPanel.setVisible ( false ) ; clusterTab.setVisible ( false ) ; toggleSubnetVisibility ( false ) ; }

Target:
public void updateVisibility ( ) { super . updateVisibility ( ) ; attachContainer.setVisible ( false ) ; clusterTab.setVisible ( false ) ; toggleSubnetVisibility ( false ) ; }
Source:
private void initStyles ( ) { nameEditor.addContentWidgetStyleName ( style.name ( ) ) ; publicUseEditor.addContentWidgetStyleName ( style.publicUse ( ) ) ; networkQoSEditor.addContentWidgetStyleName ( style.qos ( ) ) ; }

Target:
private void initStyles ( ) { nameEditor.addContentWidgetContainerStyleName ( style.name ( ) ) ; publicUseEditor.addContentWidgetContainerStyleName ( style.publicUse ( ) ) ; networkQoSEditor.addContentWidgetContainerStyleName ( style.qos ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenIpv4BootProtocolEqual ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolEqual ( ) { initIpv4ConfigurationBootProtocol ( true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private void shutdown ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( entity.getId ( ) , true ) ) ; }

Target:
private void shutdown ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( entity.getId ( ) , true ) ) ; }
Source:
public int Integer ( ) { return java.lang.Integer.parseInt ( subject.getEntity ( ) . toString ( ) ) ; }

Target:
public int integer ( ) { return java.lang.Integer.parseInt ( subject.getEntity ( ) . toString ( ) ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getcompatibility_version ( ) ) , UsbPolicy.DISABLED ) ; }
Source:
public int getnum_of_cpus ( ) { return this . mVmStatic.getnum_of_cpus ( ) ; }

Target:
public int getNumOfSockets ( ) { return this . vmStatic.getnum_of_sockets ( ) ; }
Source:
protected void initializeVdsError ( org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus ) { org.ovirt.engine.core.common.errors.VDSError tempVar = new org.ovirt.engine.core.common.errors.VDSError ( ) ; tempVar.setCode ( returnStatus ) ; tempVar.setMessage ( getReturnStatus ( ) . mMessage ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getVDSReturnValue ( ) . setVdsError ( tempVar ) ; }

Target:
protected void initializeVdsError ( org.ovirt.engine.core.common.errors.EngineError returnStatus ) { org.ovirt.engine.core.common.errors.VDSError tempVar = new org.ovirt.engine.core.common.errors.VDSError ( ) ; tempVar.setCode ( returnStatus ) ; tempVar.setMessage ( getReturnStatus ( ) . mMessage ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getVDSReturnValue ( ) . setVdsError ( tempVar ) ; }
Source:
public void testUpdateStatus ( ) { dao.updateStatus ( org.ovirt.engine.core.dao.ImageDaoTest.EXISTING_IMAGE_ID , ImageStatus.LOCKED ) ; org.ovirt.engine.core.common.businessentities.storage.Image imageFromDb = dao.get ( org.ovirt.engine.core.dao.ImageDaoTest.EXISTING_IMAGE_ID ) ; org.junit.Assert.assertNotNull ( imageFromDb ) ; org.junit.Assert.assertEquals ( ImageStatus.LOCKED , imageFromDb.getStatus ( ) ) ; }

Target:
public void testUpdateStatus ( ) { dao.updateStatus ( org.ovirt.engine.core.dao.ImageDaoTest.EXISTING_IMAGE_ID , ImageStatus.LOCKED ) ; org.ovirt.engine.core.common.businessentities.storage.Image imageFromDb = dao.get ( org.ovirt.engine.core.dao.ImageDaoTest.EXISTING_IMAGE_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( imageFromDb ) ; org.junit.jupiter.api.Assertions.assertEquals ( ImageStatus.LOCKED , imageFromDb.getStatus ( ) ) ; }
Source:
protected void AlertIfPowerManagementOperationSkipped ( java.lang.String operation ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_SKIPPED , operation ) ; }

Target:
protected void AlertIfPowerManagementOperationSkipped ( java.lang.String operation , java.lang.Throwable throwable ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_SKIPPED , operation , throwable ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup mockVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setvds_group_id ( vdsGroupId ) ; vdsGroup.setcompatibility_version ( new org.ovirt.engine.core.compat.Version ( ) ) ; vdsGroup.setstorage_pool_id ( storagePoolId ) ; return vdsGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate mockVmTemplate ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; template.setId ( vmTemplateId ) ; template.setstorage_pool_id ( storagePoolId ) ; org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommandTestAbstract.setDiskList ( template ) ; return template ; }
Source:
public void updateVolumeStatus ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus newStatus ) { getGlusterVolumeDao ( ) . updateVolumeStatus ( volumeId , newStatus ) ; updateBricksStatuses ( volumeId , newStatus ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterServer getServerByUuid ( org.ovirt.engine.core.compat.Guid uuid ) { return glusterServerDao.getByGlusterServerUuid ( uuid ) ; }
Source:
public void testMarkHostDevicesUsedByVmId ( ) { dao.markHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_HOST_ID ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_HOST_ID , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , hostDevice.getVmId ( ) ) ; }

Target:
public void testMarkHostDevicesUsedByVmId ( ) { dao.markHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( FixturesTool.VDS_RHEL6_NFS_SPM , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , hostDevice.getVmId ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getPoolWithoutLocking ( org.ovirt.engine.core.compat.Guid macPoolId ) { final org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy result = macPools.get ( macPoolId ) ; if ( result == null ) { throw new java.lang.IllegalStateException ( org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc.INEXISTENT_POOL_EXCEPTION_MESSAGE ) ; } return result ; }

Target:
private org.ovirt.engine.core.bll.network.macpool.MacPool getPoolWithoutLocking ( org.ovirt.engine.core.compat.Guid macPoolId ) { final org.ovirt.engine.core.bll.network.macpool.MacPool result = macPools.get ( macPoolId ) ; if ( result == null ) { throw new java.lang.IllegalStateException ( org.ovirt.engine.core.bll.network.macpool.MacPoolPerDc.INEXISTENT_POOL_EXCEPTION_MESSAGE ) ; } return result ; }
Source:
public void setOsType ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { setOs ( value ) ; }

Target:
public void setTimeZone ( java.lang.String value ) { timeZone = value ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromLUNs" , org.ovirt.engine.core.dao.LunDAODbFacadeImpl.MAPPER , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromLUNs" , org.ovirt.engine.core.dao.LunDAODbFacadeImpl.MAPPER , parameterSource ) ; }
Source:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NEEDS_PASSTHROUGH ) ) ; }

Target:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_SUSPENDED ) ) ; }
Source:
private boolean findDefaultManagementNetwork ( ) { managementNetwork = defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ; if ( ( managementNetwork ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }

Target:
private boolean findDefaultManagementNetwork ( ) { managementNetwork = defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ; if ( ( managementNetwork ) == null ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }
Source:
protected void onAdd ( T value , V widget ) { modelItems.add ( value ) ; }

Target:
protected void onAdd ( T value , V widget ) { modelItems.add ( value ) ; if ( widget instanceof com.google.gwt.user.client.ui.Focusable ) { ( ( com.google.gwt.user.client.ui.Focusable ) ( widget ) ) . setFocus ( true ) ; } }
Source:
public void testCanDoActionTemplateWithNoDomain ( ) { disk.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANT_DELETE_TEMPLATE_DISK_WITHOUT_SPECIFYING_DOMAIN ) ; }

Target:
public void testCanDoActionOvfDiskNotIllegal ( ) { ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( disk ) ) . setImageStatus ( ImageStatus.OK ) ; disk.setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_IN_APPLICABLE_STATUS ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ForceRemoveStorageDomainCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) , LockMessagesMatchUtil.STORAGE ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ForceRemoveStorageDomainCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.STORAGE , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void macAddressTooLongForUpdate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS ) + ":00" ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }

Target:
public void macAddressTooShortForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createShortMacAddress ( ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }
Source:
public void handleVdsMaintenanceTimeout ( final org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( java.util.Arrays.asList ( vds.getId ( ) ) , true ) ) ; }

Target:
public void handleVdsMaintenanceTimeout ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( java.util.Arrays.asList ( vdsId ) , true ) ) ; }
Source:
protected boolean canDoAction ( ) { return canPauseVm ( org.ovirt.engine.core.bll.PauseVmCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.PauseVmCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean validate ( ) { return canPauseVm ( org.ovirt.engine.core.bll.PauseVmCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.PauseVmCommand.getReturnValue ( ) . getValidationMessages ( ) ) ; }
Source:
protected abstract void onExportChanged ( ) ;

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { dcLabels = ( ( java.lang.Iterable < java.lang.String > ) ( returnValue ) ) ; stopProgress ( ) ; onExportChanged ( ) ; }
Source:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) , getDisksBasedOnImage ( ) ) ; }

Target:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) , getDisksBasedOnImage ( ) ) ; copyAllMemoryImages ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) ) ; }
Source:
private boolean shouldProcessVdsDomainReport ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( StoragePoolDomainHelper.reportingVdsStatus.contains ( vds.getStatus ( ) ) ) && ( vds.getVdsGroupSupportsVirtService ( ) ) ; }

Target:
private static boolean shouldProcessVdsDomainReport ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getVdsGroupSupportsVirtService ( ) ) && ( ( StoragePoolDomainHelper.vdsDomainsActiveMonitoringStatus.contains ( vds.getStatus ( ) ) ) || ( StoragePoolDomainHelper.vdsDomainsMaintenanceMonitoringStatus.contains ( vds.getStatus ( ) ) ) ) ; }
Source:
private void readUsbItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { vmBase.setUsbPolicy ( org.ovirt.engine.core.common.businessentities.UsbPolicy.forStringValue ( node.SelectSingleNode ( "rasd:UsbPolicy" , _xmlNS ) . innerText ) ) ; }

Target:
private void readUsbItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { vmBase.setUsbPolicy ( org.ovirt.engine.core.common.businessentities.UsbPolicy.forStringValue ( node.SelectSingleNode ( "rasd:UsbPolicy" , _xmlNS ) . innerText ) ) ; }
Source:
private void UpdateActionAvailability ( ) { getRemoveCommand ( ) . setIsExecutionAllowed ( ( ( ( getSelectedItems ( ) ) != null ) && ( ( getSelectedItems ( ) . size ( ) ) > 0 ) ) ) ; }

Target:
private void updateActionAvailability ( ) { getRemoveCommand ( ) . setIsExecutionAllowed ( ( ( ( getSelectedItems ( ) ) != null ) && ( ( getSelectedItems ( ) . size ( ) ) > 0 ) ) ) ; }
Source:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getMarkedAsSpecial ( ) { return filter ( new org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap.Predicate ( ) { @ java.lang.Override public boolean apply ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig config ) { return config.isMarkedAsSpecial ( ) ; } } ) ; }

Target:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getDetachables ( ) { return filter ( new org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap.Predicate ( ) { @ java.lang.Override public boolean apply ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig config ) { return config.isDetachable ( ) ; } } ) ; }
Source:
public void networkDoesntExist ( ) { org.mockito.Mockito.when ( networkDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }

Target:
public void networkDoesntExist ( ) { org.mockito.Mockito.when ( networkDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }
Source:
private javax.ws.rs.core.Response removeRestrictedInfoFromResponse ( javax.ws.rs.core.Response response ) { if ( isFiltered ( ) ) { org.ovirt.engine.api.model.VM vm = ( ( org.ovirt.engine.api.model.VM ) ( response.getEntity ( ) ) ) ; removeRestrictedInfoFromVM ( vm ) ; } return response ; }

Target:
private org.ovirt.engine.api.model.VM removeRestrictedInfo ( org.ovirt.engine.api.model.VM vm ) { if ( isFiltered ( ) ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } return vm ; }
Source:
public void Iterate ( org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorFunc < T > func , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorPredicate < T > action ) { Iterate ( func , action , null ) ; }

Target:
public void iterate ( org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorFunc < T > func , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorPredicate < T > action ) { iterate ( func , action , null ) ; }
Source:
public void setIsEmpty ( boolean value ) { if ( ( isEmpty ) != value ) { isEmpty = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsEmpty" ) ) ; } }

Target:
public void setIsEmpty ( boolean value ) { if ( ( isEmpty ) != value ) { isEmpty = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsEmpty" ) ) ; } }
Source:
public void shouldDetectSameOs ( ) { org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) . isSameOs ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) ) , org.hamcrest.core.Is.is ( true ) ) ; }

Target:
public void shouldDetectSameOs ( ) { org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) . isSameOsFamily ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) ) , org.hamcrest.core.Is.is ( true ) ) ; }
Source:
public org.ovirt.engine.ui.common.widget.table.OrderedMultiSelectionModel < ? > getTableSelectionModel ( ) { return null ; }

Target:
public org.ovirt.engine.ui.common.widget.table.ActionTable < T > getTable ( ) { return null ; }
Source:
protected void revertTask ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( getEnclosingCommand ( ) . getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }

Target:
protected void revertTask ( ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatus ( getEnclosingCommand ( ) . getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getVideoDeviceSpecParams ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( ( vmBase.getDefaultDisplayType ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.qxl ) ) { return getQxlVideoDeviceSpecParams ( vmBase ) ; } else { return getVgaVideoDeviceSpecParams ( ) ; } }

Target:
public java.util.Map < java.lang.String , java.lang.Integer > getVideoDeviceSettings ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( ( vmBase.getDefaultDisplayType ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.qxl ) ) { return getQxlVideoDeviceSettings ( vmBase ) ; } else { return getVgaVideoDeviceSettings ( ) ; } }
Source:
public void testValidateNetworkExclusiveOnNicsTwoVmNetworksAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , vmNetwork2 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsTwoVmNetworksAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , vmNetwork2 ) ; }
Source:
public void setColumn ( int column ) { this . column = column ; }

Target:
public java.lang.String getIsAvailablePropertyName ( ) { return isAvailablePropertyName ; }
Source:
public void testStorageDomainForMemoryIsValidOnlyForDataTypes ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType ) { storageDomain.setStorageDomainType ( storageDomainType ) ; org.junit.Assert.assertEquals ( filter.getPredicate ( disksList ) . eval ( storageDomain ) , storageDomainType.isDataDomain ( ) ) ; }

Target:
public void testStorageDomainForMemoryIsValidOnlyForDataTypes ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType ) { storageDomain.setStorageDomainType ( storageDomainType ) ; org.junit.Assert.assertEquals ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) , storageDomainType.isDataDomain ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.StorageDomain ? super . getEntity ( ) : null ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getParentEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.StorageDomain ? super . getEntity ( ) : null ) ) ; }
Source:
protected org.ovirt.engine.api.model.Bookmark lookupBookmarkByName ( final java.lang.String name ) { return getEntity ( org.ovirt.engine.api.model.Bookmark.class , VdcQueryType.GetBookmarkByBookmarkName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , name ) ; }

Target:
protected org.ovirt.engine.api.model.Bookmark lookupBookmarkByName ( final java.lang.String name ) { return getEntity ( org.ovirt.engine.api.model.Bookmark.class , QueryType.GetBookmarkByBookmarkName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , name ) ; }
Source:
private boolean isConcreteClass ( java.lang.Class < ? extends org.ovirt.engine.core.dao.DAO > clazz ) { return ! ( ( clazz.isInterface ( ) ) || ( java.lang.reflect.Modifier.isAbstract ( clazz.getModifiers ( ) ) ) ) ; }

Target:
private boolean isAbstractClass ( java.lang.Class clazz ) { return ( clazz.isInterface ( ) ) || ( java.lang.reflect.Modifier.isAbstract ( clazz.getModifiers ( ) ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getVmName ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getName ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.vm_pool_map ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.vm_pool_map ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }
Source:
protected org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.bll.utils.Injector.get ( org.ovirt.engine.core.bll.interfaces.BackendInternal.class ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Disk loadDiskById ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.AttachDiskToVmCommand.getDiskDao ( ) . get ( id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot getSnapshot ( ) { return org.ovirt.engine.core.bll.AttachDiskToVmCommand.getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.AttachDiskToVmCommand.getParameters ( ) . getSnapshotId ( ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.HostsService hostsService = connection.systemService ( ) . hostsService ( ) ; org.ovirt.engine.sdk4.types.Host host = hostsService.add ( ) . host ( org.ovirt.engine.sdk4.builders.Builders.host ( ) . name ( "myhost" ) . description ( "My host" ) . address ( "node40.example.com" ) . rootPassword ( "readhat123" ) . cluster ( org.ovirt.engine.sdk4.builders.Builders.cluster ( ) . name ( "mycluster" ) ) ) . send ( ) . host ( ) ; org.ovirt.engine.sdk4.services.HostService hostService = hostsService.hostService ( host.id ( ) ) ; for ( ; ; ) { java.lang.Thread.sleep ( ( 5 * 1000 ) ) ; host = hostService.get ( ) . send ( ) . host ( ) ; java.lang.String state = host.status ( ) . state ( ) ; if ( "up" . equals ( state ) ) { break ; } } connection.close ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.HostsService hostsService = connection.systemService ( ) . hostsService ( ) ; org.ovirt.engine.sdk4.types.Host host = hostsService.add ( ) . host ( org.ovirt.engine.sdk4.builders.Builders.host ( ) . name ( "myhost" ) . description ( "My host" ) . address ( "node40.example.com" ) . rootPassword ( "redhat123" ) . cluster ( org.ovirt.engine.sdk4.builders.Builders.cluster ( ) . name ( "mycluster" ) ) ) . send ( ) . host ( ) ; org.ovirt.engine.sdk4.services.HostService hostService = hostsService.hostService ( host.id ( ) ) ; for ( ; ; ) { java.lang.Thread.sleep ( ( 5 * 1000 ) ) ; host = hostService.get ( ) . send ( ) . host ( ) ; if ( ( host.status ( ) ) == ( org.ovirt.engine.sdk4.types.HostStatus.UP ) ) { break ; } } connection.close ( ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { setVdsmId ( ( ( java.lang.String ) ( _parser.cliEnvironmentGet ( VdsmEnv.VDSM_ID ) ) ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _setVdsmId ( ( ( java.lang.String ) ( _parser.cliEnvironmentGet ( VdsmEnv.VDSM_ID ) ) ) ) ; return null ; }
Source:
public static java.util.Collection < java.lang.Object [ ] > data ( ) { return java.util.Arrays.asList ( new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.class , org.ovirt.engine.core.common.businessentities.ImageFileType.ISO } , new java.lang.Object [ ] { org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.class , org.ovirt.engine.core.common.businessentities.ImageFileType.Floppy } } ) ; }

Target:
public static java.util.Collection < java.lang.Object [ ] > data ( ) { return java.util.Arrays.asList ( new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.class , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.ISO } , new java.lang.Object [ ] { org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.class , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.Floppy } } ) ; }
Source:
public void macAddressIsNullForUpdate ( ) throws java.lang.Exception { assertNicValidation ( createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , false , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }

Target:
public void macAddressIsNullForDefault ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertNicValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , javax.validation.groups.Default.class , false , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }
Source:
public void testDisk ( ) { testValidSql ( "disk: " , "SELECT * FROM ((SELECT all_disks.* FROM all_disks ) ORDER BY disk_alias ASC, disk_id ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "disk: alias=vm1" , "SELECT * FROM ((SELECT all_disks.* FROM all_disks WHERE all_disks.disk_alias LIKE vm1 ) ORDER BY disk_alias ASC, disk_id ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testStorage ( ) { testValidSql ( "Storage: " , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter = Default" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search WHERE storage_domains_for_search.storage_pool_name::text LIKE Default ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: host.name = fake1" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search LEFT OUTER JOIN vds_with_tags ON storage_domains_for_search.id=vds_with_tags.storage_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ExternalVm vm ) { return vm.getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.VM > externalVmModel ) { return externalVmModel.getEntity ( ) . getName ( ) ; }
Source:
public void setIsVolumeFormatChangable ( boolean isVolumeFormatChangable ) { if ( ( this . isVolumeFormatChangable ) != isVolumeFormatChangable ) { this . isVolumeFormatChangable = isVolumeFormatChangable ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VolumeFormat" ) ) ; } }

Target:
public boolean getIsVolumeFormatAvailable ( ) { return volumeFormatAvailable ; }
Source:
public void testCommonX86 ( ) { java.lang.Integer maxVCpu = org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( ArchitectureType.x86 , new java.lang.Integer ( 16 ) , new java.lang.Integer ( 288 ) , 2 , 12 ) ; org.junit.Assert.assertEquals ( new java.lang.Integer ( 192 ) , maxVCpu ) ; }

Target:
public void testCommonX86 ( ) { java.lang.Integer maxVCpu = org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( ArchitectureType.x86 , new java.lang.Integer ( 16 ) , new java.lang.Integer ( 288 ) , 2 , 12 ) ; org.junit.jupiter.api.Assertions.assertEquals ( new java.lang.Integer ( 192 ) , maxVCpu ) ; }
Source:
public void validateFailsOnNoBrick ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand2 ( volumeId4 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { setVolumeId ( null ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testSubResourceLocatorBadGuid ( ) { try { resource.getApplicationResource ( "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) { verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> resource.getApplicationResource ( "foo" ) ) ) ; }
Source:
public void setSelectedItem ( java.lang.Object value ) { super . setSelectedItem ( value ) ; OnEntityChanged ( ) ; }

Target:
public void setSelectedItem ( java.lang.Object value ) { super . setSelectedItem ( value ) ; onEntityChanged ( ) ; }
Source:
public void setVmToHostAssignments ( java.util.Map < java.lang.String , java.lang.String > vmToHostAssignments ) { this . vmToHostAssignments = vmToHostAssignments ; }

Target:
public void setInstanceToHostAssignments ( java.util.Map < java.lang.Long , java.lang.String > instanceToHostAssignments ) { this . instanceToHostAssignments = instanceToHostAssignments ; }
Source:
private java.lang.String createTemplateSharedLockMessage ( ) { return new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_IS_USED_FOR_CREATE_VM.name ( ) ) . append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.AddVmFromTemplateCommand.getVmName ( ) ) ) . toString ( ) ; }

Target:
private java.lang.String getTemplateSharedLockMessage ( ) { return new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_IS_USED_FOR_CREATE_VM.name ( ) ) . append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.AddVmFromTemplateCommand.getVmName ( ) ) ) . toString ( ) ; }
Source:
protected boolean isHotPlugDiskSnapshotSupported ( ) { if ( ! ( org.ovirt.engine.core.common.FeatureSupported.hotPlugDiskSnapshot ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) ) ) ) { return failValidation ( EngineMessage.HOT_PLUG_DISK_SNAPSHOT_IS_NOT_SUPPORTED ) ; } return true ; }

Target:
protected boolean isHotPlugDiskSnapshotSupported ( ) { if ( ! ( org.ovirt.engine.core.common.FeatureSupported.hotPlugDiskSnapshot ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVds ( ) . getClusterCompatibilityVersion ( ) ) ) ) { return failValidation ( EngineMessage.HOT_PLUG_DISK_SNAPSHOT_IS_NOT_SUPPORTED ) ; } return true ; }
Source:
public void testRemoveVmPool ( ) { dao.remove ( deletableVmPool.getVmPoolId ( ) ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( deletableVmPool.getVmPoolId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemoveVmPool ( ) { dao.remove ( deletableVmPool.getVmPoolId ( ) ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( deletableVmPool.getVmPoolId ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getProblematicVdsId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS_FENCE , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.FenceVdsBaseCommand.createFenceExclusiveLocksMap ( getProblematicVdsId ( ) ) ; }
Source:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return org.ovirt.engine.core.common.businessentities.VM.vmProperties ; }

Target:
public long getDbGeneration ( ) { return vmStatic.getDbGeneration ( ) ; }
Source:
private static boolean topLevel ( java.lang.String name ) { return ( name.indexOf ( "." ) ) == ( - 1 ) ; }

Target:
private static boolean topLevel ( java.lang.String name ) { return ! ( name.contains ( "." ) ) ; }
Source:
public org.ovirt.engine.api.model.OpenStackImage get ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackStorageProviderHelper.getStorageDomainId ( this , providerId ) ; return performGet ( VdcQueryType.GetImageById , new org.ovirt.engine.core.common.queries.GetImageByIdParameters ( storageDomainId , id ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenStackImage get ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackStorageProviderHelper.getStorageDomainId ( this , providerId ) ; return performGet ( QueryType.GetImageById , new org.ovirt.engine.core.common.queries.GetImageByIdParameters ( storageDomainId , id ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForVdsGroup ( clusterId ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForCluster ( clusterId ) ; }
Source:
public boolean isAction ( ) { switch ( getName ( ) . toString ( ) . toLowerCase ( ) ) { case "add" : case "get" : case "list" : case "update" : case "remove" : return false ; default : return true ; } }

Target:
public boolean isAction ( ) { return ! ( ( NON_ACTION_METHOD_NAMES.contains ( getName ( ) ) ) || ( ( ( base ) != null ) && ( NON_ACTION_METHOD_NAMES.contains ( base.getName ( ) ) ) ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { performLogin ( loginModel ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateReportsAvailability ( ) ; }
Source:
private boolean importSupported ( org.ovirt.engine.core.compat.Version spVersion , org.ovirt.engine.core.compat.Version vdsGroupVersion ) { return ( ( spVersion.greaterOrEquals ( Version.v3_5 ) ) && ( vdsGroupVersion.greaterOrEquals ( Version.v3_6 ) ) ) && ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.AutoImportHostedEngine ) ) ; }

Target:
private boolean importSupported ( org.ovirt.engine.core.compat.Version spVersion , org.ovirt.engine.core.compat.Version clusterVersion ) { return ( ( spVersion.greaterOrEquals ( Version.v3_5 ) ) && ( clusterVersion.greaterOrEquals ( Version.v3_6 ) ) ) && ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.AutoImportHostedEngine ) ) ; }