auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void assertThatExternalNetworkDetailsUnchangedFails ( org.ovirt.engine.core.common.businessentities.network.Network externalNetwork ) { org.junit.Assert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_DETAILS_CANNOT_BE_EDITED ) ) ; }

Target:
private void assertThatExternalNetworkDetailsUnchangedFails ( org.ovirt.engine.core.common.businessentities.network.Network externalNetwork ) { org.junit.Assert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_DETAILS_CANNOT_BE_EDITED ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . networkClusterSubTabLabel ( ) , 1 , ginjector.getSubTabNetworkClusterModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkClusterSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain getImageSourceDomain ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; org.ovirt.engine.core.compat.Guid domainId = diskImage.getStorageIds ( ) . get ( 0 ) ; return getStorageDomainById ( domainId , org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getStoragePoolId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getImageSourceDomain ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; org.ovirt.engine.core.compat.Guid domainId = diskImage.getStorageIds ( ) . get ( 0 ) ; return getStorageDomainById ( domainId , org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getStoragePoolId ( ) ) ; }
Source:
public void doTest ( ) throws java.io.IOException , java.net.URISyntaxException { java.util.List < java.lang.String > errors = org.ovirt.engine.ui.uicompat.GwtMessagesValidator.validateClass ( org.ovirt.engine.ui.webadmin.ApplicationMessages.class ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.ui.uicompat.GwtMessagesValidator.format ( errors ) , errors.isEmpty ( ) ) ; }

Target:
public void doTest ( ) throws java.io.IOException , java.net.URISyntaxException { java.util.List < java.lang.String > errors = org.ovirt.engine.ui.uicompat.GwtMessagesValidator.validateClass ( org.ovirt.engine.ui.webadmin.ApplicationMessages.class ) ; org.junit.jupiter.api.Assertions.assertTrue ( errors.isEmpty ( ) , org.ovirt.engine.ui.uicompat.GwtMessagesValidator.format ( errors ) ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void testGetByLargeIconId ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = prepareDao ( ) . getByLargeIconId ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.LARGE_ICON_ID ) ; org.junit.Assert.assertTrue ( result.contains ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT ) ) ; }

Target:
public void testGetByLargeIconId ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = prepareDao ( ) . getByLargeIconId ( FixturesTool.LARGE_ICON_ID ) ; org.junit.Assert.assertTrue ( result.contains ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT ) ) ; }
Source:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . mVmStatic.setIsQuotaDefault ( isQuotaDefault ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum getQuotaEnforcementType ( ) { return this . vmStatic.getQuotaEnforcementType ( ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , executionContext ) ; }

Target:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , null ) ; }
Source:
public void networkNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , null ) ; org.junit.Assert.assertThat ( validator.networkIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_NOT_EXISTS ) ) ; }

Target:
public void networkNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , null ) ; org.junit.Assert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc hotPlugNic ( java.util.Map info ) ;
Source:
protected void endWithFailure ( ) { setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { setSucceeded ( true ) ; rollbackQuota ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSnapshotMetadataDisk ( java.lang.String diskDescription ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( diskDescription ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_ALIAS ) ; return image ; }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSnapshotMetadataDisk ( java.lang.String diskDescription ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( diskDescription ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_ALIAS ) ; image.setImageStatus ( ImageStatus.OK ) ; return image ; }
Source:
protected void endImportCommand ( ) { endActionOnAllImageGroups ( ) ; endVmRelatedOps ( ) ; setSucceeded ( true ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) ) ; }
Source:
protected void OnPropertyChanged ( org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { }

Target:
public void setPmSecondaryPassword ( java.lang.String value ) { mVdsStatic.setPmSecondaryPassword ( value ) ; }
Source:
public void leaseFree ( ) { org.junit.Assert.assertTrue ( getLeaseStatus ( new java.lang.Object [ 0 ] ) . isFree ( ) ) ; }

Target:
public void leaseFree ( ) { org.junit.jupiter.api.Assertions.assertTrue ( getLeaseStatus ( new java.lang.Object [ 0 ] ) . isFree ( ) ) ; }
Source:
public void missingMessagingConfigurationForMessagingBrokerValidation ( ) throws java.lang.Exception { mockMessagingConfiguration ( ) ; org.junit.Assert.assertThat ( validator.messagingBrokerProvided ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MISSING_MESSAGING_BROKER_PROPERTIES ) ) ; }

Target:
public void missingMessagingConfigurationForMessagingBrokerValidation ( ) throws java.lang.Exception { mockMessagingConfiguration ( ) ; org.junit.Assert.assertThat ( validator.messagingBrokerProvided ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MISSING_MESSAGING_BROKER_PROPERTIES ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageTemplatePresenter.constants.storageTemplateSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageTemplatePresenter.constants.storageTemplateSubTabLabel ( ) , 6 , modelProvider ) ; }
Source:
public void testStartWithHostName ( ) throws java.lang.Exception { setUpGetHostIdExpectations ( 1 ) ; org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setName ( NAMES [ 1 ] ) ; testStartWithHost ( host , GUIDS [ 1 ] ) ; }

Target:
public void testStartWithHostName ( ) throws java.lang.Exception { setUpGetHostByNameExpectations ( 1 ) ; org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setName ( NAMES [ 1 ] ) ; testStartWithHost ( host , GUIDS [ 1 ] ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData object , java.lang.String value ) { object.selectClusterByName ( value ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData object , java.lang.String value ) { object.selectClusterByName ( value ) ; refreshEntityTable ( ) ; }
Source:
protected int getMaxClonedNameLength ( java.lang.Object object ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsWindowsOsType ( vm.getOs ( ) ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ; }

Target:
protected int getMaxClonedNameLength ( java.lang.Object object ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vm.getOs ( ) ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ; }
Source:
private void addInlineTags ( org.ovirt.engine.api.model.VM vm ) { org.ovirt.engine.api.restapi.resource.BackendVmTagsResource tagsResource = inject ( new org.ovirt.engine.api.restapi.resource.BackendVmTagsResource ( vm.getId ( ) ) ) ; org.ovirt.engine.api.model.Tags tags = tagsResource.list ( ) ; vm.setTags ( tags ) ; }

Target:
private void addInlineTags ( org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.api.restapi.resource.BackendVmTagsResource tagsResource = inject ( new org.ovirt.engine.api.restapi.resource.BackendVmTagsResource ( vm.getId ( ) ) ) ; org.ovirt.engine.api.model.Tags tags = tagsResource.list ( ) ; vm.setTags ( tags ) ; }
Source:
public void testGetAllDisksForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( null , FixturesTool.STORAGE_DOAMIN_NFS2_1 ) ; org.junit.Assert.assertTrue ( "Disk should exists in the UnregisteredDisks table" , ( ! ( unregisteredDisk.isEmpty ( ) ) ) ) ; }

Target:
public void testGetAllDisksForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( null , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; org.junit.Assert.assertTrue ( "Disk should exists in the UnregisteredDisks table" , ( ! ( unregisteredDisk.isEmpty ( ) ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "correlation_id" , correlationId ) ; return getCallsHandler ( ) . executeReadList ( "GetJobsByCorrelationId" , createEntityRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { return multipleResults ( entityManager.createNamedQuery ( "Job.getJobsByCorrelationId" , org.ovirt.engine.core.common.job.Job.class ) . setParameter ( "correlationId" , correlationId ) ) ; }
Source:
void setSessionId ( java.lang.String sessionId ) ;

Target:
void setSsoToken ( java.lang.String ssoToken ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domain_static getStorageDomainStatic ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.storage_domain_static dom = new org.ovirt.engine.core.common.businessentities.storage_domain_static ( ) ; dom.setId ( id ) ; return dom ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStatic ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic dom = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; dom.setId ( id ) ; return dom ; }
Source:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public void testGetAllInterfacesForVdsWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoTest.VDS_ID , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllInterfacesForVdsWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusSameManufacture ( group.getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getCpuFlagsManagerHandler ( ) . checkIfCpusSameManufacture ( group.getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.Cluster > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterPermissionPresenter.constants.clusterPermissionSubTabLabel ( ) , 9 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterPermissionPresenter.constants.clusterPermissionSubTabLabel ( ) , 9 ) ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionsAvailability ( ) ; }
Source:
private void initGraphicsAndDisplayListeners ( ) { getDisplayType ( ) . getSelectedItemChangedEvent ( ) . addListener ( this ) ; getGraphicsType ( ) . getSelectedItemChangedEvent ( ) . addListener ( this ) ; }

Target:
private void initGraphicsAndDisplayListeners ( ) { getIsHeadlessModeEnabled ( ) . getEntityChangedEvent ( ) . addListener ( this ) ; getDisplayType ( ) . getSelectedItemChangedEvent ( ) . addListener ( this ) ; getGraphicsType ( ) . getSelectedItemChangedEvent ( ) . addListener ( this ) ; }
Source:
private void readUsbItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { _vm.getStaticData ( ) . 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 ) { _vm.getStaticData ( ) . setUsbPolicy ( org.ovirt.engine.core.common.businessentities.UsbPolicy.forStringValue ( node.SelectSingleNode ( "rasd:UsbPolicy" , _xmlNS ) . innerText ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterClusterSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterClusterPresenter.constants.dataCenterClusterSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
protected void endVmCommand ( ) { endActionOnDisks ( ) ; endActionOnVmConfiguration ( ) ; org.ovirt.engine.core.bll.VmCommand.setSucceeded ( true ) ; }

Target:
protected void endVmCommand ( ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getId ( ) ) ; endActionOnDisks ( ) ; unlockVm ( ) ; org.ovirt.engine.core.bll.VmCommand.setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }
Source:
public void setManagementIp ( java.lang.String value ) { this . mVdsStatic.setManagementIp ( value ) ; }

Target:
public void setOnlineCpus ( java.lang.String value ) { this . mVdsDynamic.setOnlineCpus ( value ) ; }
Source:
protected boolean validateImageNotActive ( ) { return ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getDiskImageDAO ( ) . get ( getSourceImages ( ) . get ( 0 ) . getImageId ( ) ) ) == null ; }

Target:
private org.ovirt.engine.core.compat.Guid getRepresentativeSourceImageId ( ) { return getSourceImages ( ) . get ( 0 ) . getImageId ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( boolean supportGlusterService , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setGlusterService ( supportGlusterService ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( boolean supportGlusterService ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.CLUSTER_ID ) ; cluster.setGlusterService ( supportGlusterService ) ; return cluster ; }
Source:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) ) ; }

Target:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; }
Source:
private void writeCommon ( org.ovirt.api.metamodel.concepts.Concept concept ) { writeDoc ( concept ) ; writeName ( concept ) ; }

Target:
private void writeCommon ( org.ovirt.api.metamodel.concepts.Concept concept ) { writeDoc ( concept ) ; writeAnnotations ( concept ) ; writeName ( concept ) ; }
Source:
public static void updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDevice ( vmBase ) ; for ( org.ovirt.engine.core.common.businessentities.VmDevice device : devices ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.update ( device ) ; } }

Target:
public static void updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDevice ( vmBase ) ; for ( org.ovirt.engine.core.common.businessentities.VmDevice device : devices ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.updateBootOrder ( device ) ; } }
Source:
public void testAttachOnValidDomain ( ) { org.junit.Assert.assertTrue ( "Attaching a valid domain to attach was failed" , validator.validateDomainCanBeAttachedToPool ( ) . isValid ( ) ) ; }

Target:
public void testAttachOnValidDomain ( ) { org.junit.Assert.assertThat ( "Attaching a valid domain to attach was failed" , validator.validateDomainCanBeAttachedToPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel model ) { networks.asEditor ( ) . edit ( model ) ; initEntityModelCellTable ( constants , templates ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel clusterNetworkManageModel ) { networks.asEditor ( ) . edit ( clusterNetworkManageModel ) ; initEntityModelCellTable ( constants , templates ) ; }
Source:
protected abstract void updateVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) ;

Target:
protected abstract org.ovirt.engine.core.common.businessentities.storage.CinderDisk getCinderDisk ( ) ;
Source:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.getByName ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.getByName ( "farkle" ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
protected org.ovirt.engine.core.aaa.DirectoryUser getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.decode ( EXTERNAL_IDS [ index ] ) , NAMES [ index ] ) ; }

Target:
protected org.ovirt.engine.core.aaa.DirectoryUser getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , NAMESPACE , org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.decode ( EXTERNAL_IDS [ index ] ) , NAMES [ index ] ) ; }
Source:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case FOREMAN : default : return "http://localhost" ; } }

Target:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case OPENSTACK_VOLUME : return "http://localhost:8776" ; case FOREMAN : default : return "http://localhost" ; } }
Source:
public org.ovirt.engine.core.common.businessentities.Erratum getErratumForHost ( java.lang.String hostName , java.lang.String erratumId ) { return new org.ovirt.engine.core.bll.host.provider.foreman.KatelloV21Provider ( this ) . getErratumForHost ( hostName , erratumId ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Erratum getErratumForHost ( java.lang.String hostName , java.lang.String erratumId ) { return getContentHostProvider ( ) . getErratumForHost ( hostName , erratumId ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getvds_name ( ) , ex ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getVdsName ( ) , ex ) ; }
Source:
private static java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > getDevicesCollection ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid vmId ) { return resource.getBackendCollection ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface.class , VdcQueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ; }

Target:
private static java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > getDevicesCollection ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid vmId ) { return resource.getBackendCollection ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface.class , QueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ; }
Source:
public void testGetTagVdsMap ( ) { org.ovirt.engine.core.common.businessentities.TagsVdsMap result = dao.getTagVdsByTagIdAndByVdsId ( existingVdsTag.gettag_id ( ) , existingVdsTag.getvds_id ( ) ) ; assertNotNull ( result ) ; assertEqualsTagsVdsMap ( existingVdsTag , result ) ; }

Target:
public void testGetTagVdsMap ( ) { org.ovirt.engine.core.common.businessentities.TagsVdsMap result = dao.getTagVdsByTagIdAndByVdsId ( existingVdsTag.gettag_id ( ) , existingVdsTag.getvds_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertEqualsTagsVdsMap ( existingVdsTag , result ) ; }
Source:
public int getvds_strength ( ) { return this . vdsStrength ; }

Target:
public int getVdsStrength ( ) { return this . vdsStrength ; }
Source:
private void canDoActionFailed ( final java.lang.String reason ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( reason ) ) ; }

Target:
private void canDoActionFailed ( final org.ovirt.engine.core.common.errors.VdcBllMessages reason ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( reason.toString ( ) ) ) ; }
Source:
protected boolean validate ( ) { org.ovirt.engine.core.bll.validator.HostValidator hostValidator = new org.ovirt.engine.core.bll.validator.HostValidator ( getVds ( ) ) ; return ( validate ( hostValidator.hostExists ( ) ) ) && ( validate ( hostValidator.isUp ( ) ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.validator.HostValidator hostValidator = org.ovirt.engine.core.bll.validator.HostValidator.createInstance ( getVds ( ) ) ; return ( validate ( hostValidator.hostExists ( ) ) ) && ( validate ( hostValidator.isUp ( ) ) ) ; }
Source:
public static java.lang.String renderNameId ( java.lang.String name , java.lang.String id ) { if ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( name ) ) { return id ; } return org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.HostDeviceColumnHelper.messages.nameId ( name , id ) ; }

Target:
public static java.lang.String renderNameId ( java.lang.String name , java.lang.String id ) { if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( name ) ) { return id ; } return org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.HostDeviceColumnHelper.messages.nameId ( name , id ) ; }
Source:
protected void removeTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget ) { tabContainer.getElement ( ) . removeChild ( tabWidget.getElement ( ) ) ; }

Target:
public void setTabBar ( com.google.gwt.user.client.ui.IsWidget widget ) { tabContainer.clear ( ) ; if ( widget != null ) { tabContainer.add ( widget ) ; } }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setstorage_pool_type ( StorageType.LOCALFS ) ; org.junit.Assert.assertTrue ( validator.isPosixDcAndMatchingCompatiblityVersion ( ) . isValid ( ) ) ; }

Target:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setStorageType ( StorageType.LOCALFS ) ; org.junit.Assert.assertTrue ( validator.isPosixDcAndMatchingCompatiblityVersion ( ) . isValid ( ) ) ; }
Source:
protected org.springframework.jdbc.core.RowMapper < java.lang.Integer > getIntegerMapper ( ) { return org.ovirt.engine.core.dao.BaseDaoDbFacade.integerRowMapper ; }

Target:
protected org.springframework.jdbc.core.RowMapper < java.lang.Integer > getIntegerMapper ( ) { return org.ovirt.engine.core.dao.BaseDao.integerRowMapper ; }
Source:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks , org.ovirt.engine.core.common.action.HostSetupNetworksParameters params ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . setHost ( host ) . setParams ( params ) . setNetworkBusinessEntityMap ( new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) ) . build ( ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks , org.ovirt.engine.core.common.action.HostSetupNetworksParameters params ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . setHost ( host ) . setParams ( params ) . addNetworks ( networks ) . build ( ) ; }
Source:
public void validNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( ValidationResult.VALID , true , "net" ) ; }

Target:
public void validNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , "net" ) ; }
Source:
protected com.google.gwt.user.client.ui.TreeItem getNodeItem ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return getDiskOrSnapshotNode ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( java.util.Arrays.asList ( disk ) ) , true ) ; }

Target:
protected com.google.gwt.user.client.ui.TreeItem getNodeItem ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return getDiskNode ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( java.util.Arrays.asList ( disk ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator createDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator createDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk , org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getVmDeviceUtils ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( returnValue ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { assignVnicProfiles ( behavior , nics , ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ) ; }
Source:
public static void updateNetworkInterfacesFromDb ( org.ovirt.engine.core.common.businessentities.VM vm ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > interfaces = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmNetworkInterfaceDAO ( ) . getAllForVm ( vm.getId ( ) ) ; vm.setInterfaces ( interfaces ) ; }

Target:
public static void updateNetworkInterfacesFromDb ( org.ovirt.engine.core.common.businessentities.VM vm ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > interfaces = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmNetworkInterfaceDao ( ) . getAllForVm ( vm.getId ( ) ) ; vm.setInterfaces ( interfaces ) ; }
Source:
public java.lang.Object call ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap storagePoolIsoMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( storageDomainId , storagePoolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ; getStoragePoolIsoMapDAO ( ) . save ( storagePoolIsoMap ) ; return null ; }

Target:
public java.lang.Object call ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap storagePoolIsoMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( storageDomainId , storagePoolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ; getStoragePoolIsoMapDao ( ) . save ( storagePoolIsoMap ) ; return null ; }
Source:
public java.lang.Boolean getnet_config_dirty ( ) { return this . net_config_dirty ; }

Target:
public java.lang.Boolean getNetConfigDirty ( ) { return netConfigDirty ; }
Source:
public static boolean isLinuxOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getLinuxOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public static boolean isLinuxOsType ( java.lang.Integer osId ) { if ( osId == null ) { return false ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.linuxOsIds.contains ( osId ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.StorageFormatType getPreferredForVersion ( org.ovirt.engine.core.compat.Version v , org.ovirt.engine.core.common.businessentities.storage.StorageType type ) { return org.ovirt.engine.core.common.utils.VersionStorageFormatUtil.versionToFormat.get ( v ) . getPreferred ( type ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageFormatType getForVersion ( org.ovirt.engine.core.compat.Version v ) { return org.ovirt.engine.core.common.utils.VersionStorageFormatUtil.versionToFormat.get ( v ) ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; initNetworkInterfaces ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; initNetworkInterfaces ( ) ; updateMemoryBalloon ( ) ; }
Source:
public void descriptorError ( java.lang.String message ) { org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager.logger.warn ( ( ( ( "Validation error in [" + ( df.getAbsolutePath ( ) ) ) + "]: " ) + message ) ) ; }

Target:
public void configurationError ( java.lang.String message ) { org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager.log.warn ( "Validation error in '{}': {}" , cf.getAbsolutePath ( ) , message ) ; }
Source:
protected void executeCommand ( ) { removeQuotaFromCache ( ) ; setQuotaParameter ( ) ; org.ovirt.engine.core.dao.QuotaDAO dao = getQuotaDAO ( ) ; dao.update ( getParameters ( ) . getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; afterUpdate ( ) ; }

Target:
protected void executeCommand ( ) { removeQuotaFromCache ( ) ; setQuotaParameter ( ) ; org.ovirt.engine.core.dao.QuotaDao dao = getQuotaDao ( ) ; dao.update ( getParameters ( ) . getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; afterUpdate ( ) ; }
Source:
protected void SelectedItemsChanged ( ) { super . SelectedItemsChanged ( ) ; UpdateActionAvailability ( ) ; UpdateConsoleModels ( ) ; }

Target:
public void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol , org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) { consoleModelsCache.setSelectedProtocol ( protocol , item ) ; }
Source:
public static int GetMaxVmPriority ( ) { return ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigValuePreConverted ( ConfigurationValues.VmPriorityMaxValue , Config.DefaultConfigurationVersion ) ) ) ; }

Target:
public static int GetMaxVmPriority ( ) { return ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigValuePreConverted ( ConfigurationValues.VmPriorityMaxValue , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ) ) ; }
Source:
public static void execute ( java.lang.Runnable command ) { try { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.es.submit ( new org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.InternalWrapperRunnable ( command , org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getCorrelationId ( ) ) ) ; } catch ( java.util.concurrent.RejectedExecutionException e ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.log.warn ( "The thread pool is out of limit. A submitted task was rejected" ) ; throw e ; } }

Target:
public static void execute ( java.lang.Runnable command ) { try { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.es.submit ( new org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.InternalWrapperRunnable ( command , org.ovirt.engine.core.utils.CorrelationIdTracker.getCorrelationId ( ) ) ) ; } catch ( java.util.concurrent.RejectedExecutionException e ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.log.warn ( "The thread pool is out of limit. A submitted task was rejected" ) ; throw e ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getDbUser ( ) { if ( ( dbUser ) == null ) { dbUser = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . get ( getAdUserId ( ) ) ; } return dbUser ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getDbUser ( ) { if ( ( dbUser ) == null ) { dbUser = org.ovirt.engine.core.bll.VmPoolSimpleUserCommandBase.getDbUserDao ( ) . get ( getAdUserId ( ) ) ; } return dbUser ; }
Source:
protected boolean CanCreateSnapshot ( ) { if ( org.ovirt.engine.core.bll.ImagesHandler.isVmInPreview ( org.ovirt.engine.core.bll.BaseImagesCommand.getVmId ( ) ) ) { log.error ( "Cannot create snapshot. Vm is in preview status" ) ; return false ; } return true ; }

Target:
protected boolean canCreateSnapshot ( ) { if ( org.ovirt.engine.core.bll.ImagesHandler.isVmInPreview ( org.ovirt.engine.core.bll.BaseImagesCommand.getVmId ( ) ) ) { log.error ( "Cannot create snapshot. Vm is in preview status" ) ; return false ; } return true ; }
Source:
protected void selectedItemsChanging ( java.util.List newValue , java.util.List oldValue ) { if ( getNotifyPropertyChangeForAnyItem ( ) ) { return ; } UnsubscribeList ( oldValue ) ; SubscribeList ( newValue ) ; }

Target:
protected void selectedItemsChanging ( java.util.List newValue , java.util.List oldValue ) { if ( getNotifyPropertyChangeForAnyItem ( ) ) { return ; } unsubscribeList ( oldValue ) ; subscribeList ( newValue ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc getStorageDeviceList ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterStorageDevicesList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc glusterStorageDeviceList ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterStorageDevicesList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagByName ( org.ovirt.engine.core.bll.GetTagByTagNameQuery.getParameters ( ) . getName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( tagsDirector.getTagByTagName ( org.ovirt.engine.core.bll.GetTagByTagNameQuery.getParameters ( ) . getName ( ) ) ) ; }
Source:
public void error ( java.lang.Object arg0 ) { log.error ( addPrefixToLogMessage ( arg0 ) ) ; }

Target:
public void error ( java.lang.Object msg ) { log.error ( addPrefixToLogMessage ( msg ) ) ; }
Source:
public java.lang.String getProductKey ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
int getMaxPciDevices ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public void setseverity ( org.ovirt.engine.core.common.AuditLogSeverity value ) { severity = value.getValue ( ) ; }

Target:
public void setSeverity ( org.ovirt.engine.core.common.AuditLogSeverity severity ) { this . severity = severity.getValue ( ) ; }
Source:
public void testGetByUsername ( ) { org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( existingUser.getLoginName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingUser , result ) ; }

Target:
public void testGetByUsername ( ) { org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsernameAndDomain ( existingUser.getLoginName ( ) , existingUser.getDomain ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingUser , result ) ; }