auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.common.businessentities.VmTemplate getByName ( java.lang.String name , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;

Target:
public org.ovirt.engine.core.common.businessentities.VmTemplate getByName ( java.lang.String name , org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;
Source:
public void testGetTaskByVdsmTaskId ( ) { org.ovirt.engine.core.common.businessentities.AsyncTask result = dao.getByVdsmTaskId ( FixturesTool.EXISTING_VDSM_TASK_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingAsyncTask , result ) ; }

Target:
public void testGetTaskByVdsmTaskId ( ) { org.ovirt.engine.core.common.businessentities.AsyncTask result = dao.getByVdsmTaskId ( FixturesTool.EXISTING_VDSM_TASK_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingAsyncTask , result ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { int numOfDisks = importVmData.getVm ( ) . getDiskMap ( ) . size ( ) ; return java.lang.String.valueOf ( numOfDisks ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.register.RegisterVmData registerVmData ) { int numOfDisks = registerVmData.getVm ( ) . getDiskMap ( ) . size ( ) ; return java.lang.String.valueOf ( numOfDisks ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network getNetwork ( ) { org.ovirt.engine.core.common.businessentities.network entity = new org.ovirt.engine.core.common.businessentities.network ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_GUID ) ; entity.setname ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_NAME ) ; return entity ; }

Target:
public static org.ovirt.engine.api.model.Network getNetwork ( ) { org.ovirt.engine.api.model.Network entity = new org.ovirt.engine.api.model.Network ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_GUID ) ; entity.setname ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_NAME ) ; return entity ; }
Source:
public void testCanDoActionOvfDiskNotIllegal ( ) { disk.setImageStatus ( ImageStatus.OK ) ; disk.setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_IN_APPLICABLE_STATUS ) ; }

Target:
public void testCanDoActionOvfDiskNotIllegal ( ) { 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:
public int hashCode ( ) { return vmId.hashCode ( ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( vmId ) ; }
Source:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , vdsDao , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , vdsDao , glusterBrickDao , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) ) ; }
Source:
public void testGetAllByVMTemplateNameUnprivilegedUserNoFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMTemplateName ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_NAME , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ) ; }

Target:
public void testGetAllByVMTemplateIdPrivilegedUser ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMTemplateId ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ) ; }
Source:
private com.google.gwt.user.client.ui.SplitLayoutPanel createRootPanel ( ) { com.google.gwt.user.client.ui.SplitLayoutPanel rootPanel = new com.google.gwt.user.client.ui.SplitLayoutPanel ( ) ; rootPanel.setHeight ( "495px" ) ; rootPanel.setWidth ( "100%" ) ; return rootPanel ; }

Target:
private com.google.gwt.user.client.ui.SplitLayoutPanel createRootPanel ( ) { com.google.gwt.user.client.ui.SplitLayoutPanel rootPanel = new com.google.gwt.user.client.ui.SplitLayoutPanel ( ) ; rootPanel.setHeight ( "470px" ) ; rootPanel.setWidth ( "100%" ) ; return rootPanel ; }
Source:
private void readCdItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { readManagedVmDevice ( node , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }

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:
public static org.ovirt.engine.api.model.VmPoolType map ( org.ovirt.engine.api.model.VmPoolType vmPoolType , org.ovirt.engine.api.model.VmPoolType incoming ) { switch ( vmPoolType ) { case AUTOMATIC : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.VmPoolType ; case MANUAL : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.VmPoolType ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.VmPoolType map ( org.ovirt.engine.api.model.VmPoolType vmPoolType , org.ovirt.engine.api.model.VmPoolType incoming ) { if ( vmPoolType == null ) { return null ; } switch ( vmPoolType ) { case AUTOMATIC : return org.ovirt.engine.api.model.VmPoolType.AUTOMATIC ; case MANUAL : return org.ovirt.engine.api.model.VmPoolType.MANUAL ; default : return null ; } }
Source:
private void failOnDowngradingWithStorageType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_1 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , storageType ) ; setAttachedDomains ( sd ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTED_IN_DOWNGRADED_VERSION ) ; }

Target:
private void failOnDowngradingWithStorageType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_1 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , storageType ) ; setAttachedDomains ( sd ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTED_IN_DOWNGRADED_VERSION ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDiskId ( ) { return getCommand ( ) . getParameters ( ) . getDiskId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDiskId ( ) { return getCommand ( ) . getParameters ( ) . getRemovedVolume ( ) . getImageId ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public void testDeleteByPoolvds_spm_id_map ( ) { dao.removeByVdsAndStoragePool ( existingVdsSpmIdMap.getId ( ) , existingVdsSpmIdMap.getstorage_pool_id ( ) ) ; org.ovirt.engine.core.common.businessentities.vds_spm_id_map result = dao.get ( existingVdsSpmIdMap.getId ( ) ) ; assertNull ( result ) ; }

Target:
public void testDeleteByPoolvds_spm_id_map ( ) { dao.removeByVdsAndStoragePool ( existingVdsSpmIdMap.getId ( ) , existingVdsSpmIdMap.getstorage_pool_id ( ) ) ; org.ovirt.engine.core.common.businessentities.vds_spm_id_map result = dao.get ( existingVdsSpmIdMap.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { this . vm = vm ; }

Target:
public void setEntityType ( org.ovirt.engine.core.common.businessentities.VmEntityType entityType ) { this . entityType = entityType ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancelConfirm ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }
Source:
protected org.ovirt.engine.api.model.VnicProfile getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendVnicProfilesResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.VnicProfile.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.VnicProfile getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendVnicProfilesResourceTest.setUpEntityExpectations ( org.ovirt.engine.api.restapi.resource.AbstractBackendVnicProfilesResourceTest.mock ( org.ovirt.engine.api.model.VnicProfile.class ) , index ) ; }
Source:
public void trace ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { log.trace ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; }

Target:
public void trace ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; } }
Source:
public void loadAttachableDisks ( ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) , new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) ) ; }

Target:
public void loadAttachableDisks ( ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) , new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) , new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.CINDER ) ) ; }
Source:
protected org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return super . getBackend ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( LockProperties.Scope.Command ) ; }
Source:
protected boolean virtIoRngSupportedInCluster ( ) { return org.ovirt.engine.core.common.FeatureSupported.virtIoRngSupported ( cluster.getcompatibility_version ( ) ) ; }

Target:
protected boolean virtIoRngSupportedInCluster ( ) { return org.ovirt.engine.core.common.FeatureSupported.virtIoRngSupported ( cluster.getCompatibilityVersion ( ) ) ; }
Source:
public void setAdditionalConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( additionalConsoleModel ) != value ) { additionalConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AdditionalConsoleModel" ) ) ; } }

Target:
public void setFireConsoleConnectEventCommand ( org.ovirt.engine.ui.uicommonweb.UICommand fireConsoleConnectEvent ) { this . fireConsoleConnectEventCommand = fireConsoleConnectEvent ; }
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.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.diskTemplateSubTabLabel ( ) , 2 , 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.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk.SubTabDiskTemplatePresenter.constants.diskTemplateSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.UserPortalRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeBrickAdd ( java.lang.String volumeName , java.lang.String [ ] bricks , int replicaCount , int stripeCount ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.HostJobsReturnForXmlRpc getHostJobs ( java.lang.String jobType , java.util.List < java.lang.String > jobIds ) ;
Source:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter param : getParameters ( ) . getClusterNetworksParameters ( ) ) { getNetworkClusterDAO ( ) . remove ( getParameters ( ) . getVdsGroupId ( ) , param.getNetworkCluster ( ) . getNetworkId ( ) ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter param : getParameters ( ) . getClusterNetworksParameters ( ) ) { org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelper helper = new org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelper ( param.getNetworkCluster ( ) ) ; helper.removeNetworkAndReassignRoles ( ) ; } return null ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig hostNicVfsConfig ) { return getCustomMapSqlParameterSource ( ) . addValue ( "id" , hostNicVfsConfig.getId ( ) ) . addValue ( "nic_id" , hostNicVfsConfig.getNicId ( ) ) . addValue ( "all_networks_allowed" , hostNicVfsConfig.isAllNetworksAllowed ( ) ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig hostNicVfsConfig ) { return createIdParameterMapper ( hostNicVfsConfig.getId ( ) ) . addValue ( "nic_id" , hostNicVfsConfig.getNicId ( ) ) . addValue ( "is_all_networks_allowed" , hostNicVfsConfig.isAllNetworksAllowed ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetEngineSessionIdTokenQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.aaa.filters.FiltersHelper.getTokenInstance ( org.ovirt.engine.core.bll.aaa.GetEngineSessionIdTokenQuery.getParameters ( ) . getSessionId ( ) ) ) ; org.ovirt.engine.core.bll.aaa.GetEngineSessionIdTokenQuery.getQueryReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetEngineSessionIdTokenQuery.getQueryReturnValue ( ) . setReturnValue ( sessionDataContainer.getSsoAccessToken ( org.ovirt.engine.core.bll.aaa.GetEngineSessionIdTokenQuery.getParameters ( ) . getSessionId ( ) ) ) ; org.ovirt.engine.core.bll.aaa.GetEngineSessionIdTokenQuery.getQueryReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public java.net.URL getExternalHttpsUrl ( java.lang.String path ) throws java.net.MalformedURLException { return new java.net.URL ( "https" , getHost ( ) , getExternalHttpsPort ( ) , path ) ; }

Target:
public java.lang.String [ ] getSensitiveKeys ( ) { return getProperty ( "SENSITIVE_KEYS" ) . split ( "," ) ; }
Source:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . addStoragePoolExistingTasks ( storagePool ) ; }

Target:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.addStoragePoolExistingTasks ( storagePool ) ; }
Source:
public void testGetAllEntitiesForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_1 , null ) ; org.junit.Assert.assertEquals ( "A Template and a VM should be fetched for the specified storage domain" , 2 , ovfEntityDataList.size ( ) ) ; }

Target:
public void testGetAllEntitiesForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_1 , null ) ; org.junit.Assert.assertEquals ( "A Template and a VM should be fetched for the specified storage domain" , 2 , ovfEntityDataList.size ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmDisksFromDB ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) , false , false , true ) ; return org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getVmDisksFromDB ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; return org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.InterfaceStatus getStatus ( ) { return getEntity ( ) . getStatistics ( ) . getStatus ( ) ; }

Target:
public java.lang.String getName ( ) { return getIface ( ) . getName ( ) ; }
Source:
private org.ovirt.engine.core.utils.lock.LockManager getLockManager ( ) { return org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessOvfUpdateForStoragePool , new org.ovirt.engine.core.common.action.StoragePoolParametersBase ( storagePoolId ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.QuotaCRUDParameters prms = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( ) ; prms.setQuotaId ( asGuid ( id ) ) ; return performAction ( VdcActionType.RemoveQuota , prms ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.IdParameters prms = new org.ovirt.engine.core.common.action.IdParameters ( asGuid ( id ) ) ; return performAction ( VdcActionType.RemoveQuota , prms ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.gluster.BrickAdvancedDetailsModel object ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.BrickAdvancedDetailsPopupView.Driver.driver.edit ( object ) ; clientsTable.edit ( object.getClients ( ) ) ; memoryPoolsTable.edit ( object.getMemoryPools ( ) ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.gluster.BrickAdvancedDetailsModel object ) { driver.edit ( object ) ; clientsTable.edit ( object.getClients ( ) ) ; memoryPoolsTable.edit ( object.getMemoryPools ( ) ) ; }
Source:
private void initTabAvailabilityListeners ( ) { highAvailabilityTab.setVisible ( false ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . putAll ( poolSpecificFields ( ) , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) . update ( highAvailabilityTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) ; }
Source:
private void assertThatAllPassthroughVnicsMigratable ( boolean valid ) { org.junit.Assert.assertThat ( validator.allPassthroughVnicsMigratable ( ) , ( valid ? org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) : org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_OF_NON_MIGRATABLE_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ) ; }

Target:
private void assertThatAllPassthroughVnicsMigratable ( boolean valid ) { org.hamcrest.MatcherAssert.assertThat ( validator.allPassthroughVnicsMigratable ( ) , ( valid ? org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) : org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_OF_NON_MIGRATABLE_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . StopProgress ( ) ; vmListModel1.cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . StopProgress ( ) ; vmListModel1.cancel ( ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, configParam=%s" , super . toString ( ) , configParam ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "configParam" , configParam ) ; }
Source:
java.util.Map < org.ovirt.engine.core.compat.Guid , java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > > getVmNumaNodeInfoByClusterIdAsMap ( org.ovirt.engine.core.compat.Guid vdsGroupId ) ;

Target:
void massSaveNumaNode ( java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > numaNodes , org.ovirt.engine.core.compat.Guid vmId ) ;
Source:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolId ( ) ) != null ) { org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolDAO ( ) . removeVmFromVmPool ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.setSucceeded ( true ) ; } }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolId ( ) ) != null ) { org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolDao ( ) . removeVmFromVmPool ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.setSucceeded ( true ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskInterface getRawValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return object.getDiskInterface ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskInterface getRawValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return object.getDiskInterface ( ) ; }
Source:
protected void setReportModelResourceId ( org.ovirt.engine.ui.uicommonweb.models.reports.ReportModel reportModel , java.lang.String idParamName , boolean isMultiple ) { }

Target:
public void onSuccess ( java.util.List < T > returnValue ) { setItems ( returnValue ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionCreate ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public void testSaveUserWithTooManyGroups ( ) { org.ovirt.engine.core.common.businessentities.DbUser tooManyGroupsUser = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; tooManyGroupsUser.setFirstName ( "I" ) ; tooManyGroupsUser.setLastName ( "Have" ) ; tooManyGroupsUser.setLoginName ( "too" ) ; tooManyGroupsUser.setEmail ( "many@redhat.com" ) ; tooManyGroupsUser.setDomain ( "domain" ) ; tooManyGroupsUser.setGroupNames ( "groups" ) ; tooManyGroupsUser.setGroupIds ( org.apache.commons.lang.StringUtils.leftPad ( "groups" , 2048 ) ) ; dao.save ( tooManyGroupsUser ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( tooManyGroupsUser.getLoginName ( ) ) ; org.junit.Assert.assertEquals ( tooManyGroupsUser , result ) ; }

Target:
public void testSaveUserWithTooManyGroups ( ) { org.ovirt.engine.core.common.businessentities.DbUser tooManyGroupsUser = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; tooManyGroupsUser.setExternalId ( new byte [ 0 ] ) ; tooManyGroupsUser.setFirstName ( "I" ) ; tooManyGroupsUser.setLastName ( "Have" ) ; tooManyGroupsUser.setLoginName ( "too" ) ; tooManyGroupsUser.setEmail ( "many@redhat.com" ) ; tooManyGroupsUser.setDomain ( "domain" ) ; tooManyGroupsUser.setGroupNames ( "groups" ) ; tooManyGroupsUser.setGroupIds ( org.apache.commons.lang.StringUtils.leftPad ( "groups" , 2048 ) ) ; dao.save ( tooManyGroupsUser ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( tooManyGroupsUser.getLoginName ( ) ) ; org.junit.Assert.assertEquals ( tooManyGroupsUser , result ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.AuditLog object ) { return java.lang.String.valueOf ( object.getlog_typeValue ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.AuditLog object ) { return java.lang.String.valueOf ( object.getLogTypeValue ( ) ) ; }
Source:
public void testValidateQosOverriddenInterfacesWhenNoAttachmentsPassed ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ; org.junit.Assert.assertThat ( validator.validateQosOverriddenInterfaces ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateQosOverriddenInterfacesWhenNoAttachmentsPassed ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateQosOverriddenInterfaces ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.Bond getIface ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Bond ) ( super . getIface ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.Bond getOriginalIface ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Bond ) ( super . getOriginalIface ( ) ) ) ; }
Source:
public void testHasPeersTrue ( ) { org.junit.Assert.assertNotNull ( glusterUtil.getPeers ( client ) ) ; org.junit.Assert.assertEquals ( 2 , glusterUtil.getPeers ( client ) . size ( ) ) ; }

Target:
public void testHasPeersTrue ( ) { org.junit.jupiter.api.Assertions.assertNotNull ( glusterUtil.getPeers ( client ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , glusterUtil.getPeers ( client ) . size ( ) ) ; }
Source:
private java.lang.String addStorageServerConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx , org.ovirt.engine.core.compat.Guid hostId ) { return performAction ( VdcActionType.AddStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( cnx , hostId , false ) , java.lang.String.class ) ; }

Target:
private java.lang.String addStorageServerConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx , org.ovirt.engine.core.compat.Guid hostId ) { return performAction ( ActionType.AddStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( cnx , hostId , false ) , java.lang.String.class ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskVmElement > getTemplateDiskVmElements ( ) { return org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getDiskVmElementDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getVmTemplateId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskVmElement > getTemplateDiskVmElements ( ) { return diskVmElementDao.getAllForVm ( org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getVmTemplateId ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.windowsOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { windowsOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.bll.storage.CommandBase x , org.ovirt.engine.core.bll.storage.CommandBase y ) { return ( x.getStorageDomain ( ) . getstorage_domain_type ( ) . getValue ( ) ) - ( y.getStorageDomain ( ) . getstorage_domain_type ( ) . getValue ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.bll.storage.CommandBase x , org.ovirt.engine.core.bll.storage.CommandBase y ) { return ( x.getStorageDomain ( ) . getStorageDomainType ( ) . getValue ( ) ) - ( y.getStorageDomain ( ) . getStorageDomainType ( ) . getValue ( ) ) ; }
Source:
public void setup ( ) { org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVdsStaticDao ( ) ) . thenReturn ( vdsStaticDao ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getProviderDao ( ) ) . thenReturn ( providerDao ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVdsStaticDao ( ) ) . thenReturn ( vdsStaticDao ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getProviderDao ( ) ) . thenReturn ( providerDao ) ; }
Source:
public void testAddWithCustomGlobalHeader ( ) { clustersService.add ( ) . cluster ( org.ovirt.engine.sdk4.builders.Builders.cluster ( ) ) . send ( ) ; org.junit.Assert.assertEquals ( getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) , "value" ) ; }

Target:
public void testLGetWithCustomGlobalHeader ( ) { clusterService.get ( ) . send ( ) ; org.junit.Assert.assertEquals ( "value" , getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) ) ; }
Source:
public void runningSucceded ( ) { try { super . runningSucceded ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected void setDestinationVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { destinationVds = ( vdsId != null ) ? org.ovirt.engine.core.bll.MigrateVmCommand.getVdsDAO ( ) . get ( vdsId ) : null ; }
Source:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( false ) . when ( validator ) . isDiskExists ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertEquals ( validator.diskImagesAlreadyExist ( ) , ValidationResult.VALID ) ; }

Target:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertEquals ( validator.diskImagesAlreadyExist ( ) , ValidationResult.VALID ) ; }
Source:
public void testFilterQueries ( ) { org.junit.Assert.assertTrue ( testServlet.filterQueries ( ) ) ; }

Target:
public void testFilterQueries ( ) { org.junit.Assert.assertTrue ( "Filter queries should be 'true'" , testServlet.filterQueries ( ) ) ; }
Source:
public void setEntity ( java.lang.Object value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.VM value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; updateVmActiveDisks ( ) ; }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressIsEmpty ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "" , "255.255.255.0" ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressIsEmpty ( ) throws java.lang.Exception { doTestIpConfiguredForStaticBootProtocol ( "" , "255.255.255.0" ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterVmPresenter.constants.clusterVmSubTabLabel ( ) , 3 , 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.SubTabClusterVmPresenter.constants.clusterVmSubTabLabel ( ) , 3 ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancelConfirm ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllStorageDomainsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllStorageDomainsQuery.getDbFacade ( ) . getStorageDomainDAO ( ) . getAll ( org.ovirt.engine.core.bll.GetAllStorageDomainsQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetAllStorageDomainsQuery.getParameters ( ) . isFiltered ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllStorageDomainsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllStorageDomainsQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getAll ( org.ovirt.engine.core.bll.GetAllStorageDomainsQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetAllStorageDomainsQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult labelNotInVfsConfig ( java.lang.String label ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_LABEL_ALREADY_IN_VFS_CONFIG , getNicNameReplacement ( ) , java.lang.String.format ( org.ovirt.engine.core.bll.validator.VfsConfigValidator.LABEL_REPLACEMENT , label ) ) . when ( oldVfsConfig.getNetworkLabels ( ) . contains ( label ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult labelNotInVfsConfig ( java.lang.String label ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_LABEL_ALREADY_IN_VFS_CONFIG , getNicNameReplacement ( ) , java.lang.String.format ( org.ovirt.engine.core.bll.validator.VfsConfigValidator.LABEL_REPLACEMENT , label ) ) . when ( oldVfsConfig.getNetworkLabels ( ) . contains ( label ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > ( ) ; } return source ; }

Target:
public T convert ( java.lang.Object source ) { return ( ( T ) ( source ) ) ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_compatibility_version" ) ) ; } }

Target:
public long getDbGeneration ( ) { return vmStatic.getDbGeneration ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc diskReplicateStart ( java.lang.String vmUUID , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct srcDisk , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct dstDisk ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc diskReplicateFinish ( java.lang.String vmUUID , java.util.Map srcDisk , java.util.Map dstDisk ) ;
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml , java.lang.String width ) { addColumnWithHtmlHeader ( column , headerHtml ) ; setColumnWidth ( column , width ) ; }

Target:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) { com.google.gwt.user.cellview.client.Header < ? > header = new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( headerHtml ) ; addColumn ( column , header ) ; }
Source:
protected boolean uniqueInterfaceName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > interfaces ) { return org.ovirt.engine.core.bll.VmHandler.IsNotDuplicateInterfaceName ( interfaces , getInterfaceName ( ) , org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean uniqueInterfaceName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > interfaces ) { return org.ovirt.engine.core.bll.VmHandler.isNotDuplicateInterfaceName ( interfaces , getInterfaceName ( ) , org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
private void mockConfigSizeRequirements ( int requiredSpaceBufferInGB , int requiredSpacePercent ) { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.common.config.Config.< java.lang.Object > GetValue ( ConfigValues.FreeSpaceCriticalLowInGB ) ) . thenReturn ( requiredSpaceBufferInGB ) ; org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.common.config.Config.< java.lang.Object > GetValue ( ConfigValues.FreeSpaceLow ) ) . thenReturn ( requiredSpacePercent ) ; }

Target:
private void mockConfigSizeRequirements ( int requiredSpaceBufferInGB , int requiredSpacePercent ) { mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , requiredSpaceBufferInGB ) ; mcr.mockConfigValue ( ConfigValues.FreeSpaceLow , requiredSpacePercent ) ; }
Source:
public void forbidEmptyProfileForHostedEngineVm ( ) { vm.setOrigin ( OriginType.HOSTED_ENGINE ) ; org.junit.Assert.assertThat ( validator.validateProfileNotEmptyForHostedEngineVm ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOSTED_ENGINE_VM_CANNOT_HAVE_NIC_WITH_EMPTY_PROFILE ) ) ; }

Target:
public void forbidEmptyProfileForHostedEngineVm ( ) { vm.setOrigin ( OriginType.HOSTED_ENGINE ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateProfileNotEmptyForHostedEngineVm ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOSTED_ENGINE_VM_CANNOT_HAVE_NIC_WITH_EMPTY_PROFILE ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Quota mockMemQuotaSpecificOverThreshold ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setQuotaVdsGroups ( getQuotaVdsGroups ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.UNLIMITED_VCPU , 0 , 2048 , 2000 ) ) ; return quota ; }

Target:
private org.ovirt.engine.core.common.businessentities.Quota mockMemQuotaSpecificOverThreshold ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.MEM_QUOTA_SPECIFIC_OVER_THRESHOLD ) ; quota.setQuotaVdsGroups ( getQuotaVdsGroups ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.UNLIMITED_VCPU , 0 , 2048 , 2000 ) ) ; return quota ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId , org.ovirt.engine.core.compat.Guid imageGroupId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskImage.setImageId ( diskImageId ) ; diskImage.setId ( imageGroupId ) ; return diskImage ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage createDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId , org.ovirt.engine.core.compat.Guid imageGroupId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; diskImage.setImageId ( diskImageId ) ; diskImage.setId ( imageGroupId ) ; return diskImage ; }
Source:
public void showStatus ( java.lang.String status ) { setTitle ( status ) ; }

Target:
public void showStatus ( java.lang.String status ) { statusTooltipPanel.setText ( status ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.matchesDefinition ( TagModel.SelectionChangedEventDefinition ) ) { onTagSelectionChanged ( sender , args ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.matchesDefinition ( TagModel.selectionChangedEventDefinition ) ) { onTagSelectionChanged ( sender , args ) ; } }
Source:
private static org.ovirt.engine.core.common.businessentities.Cluster createClusterWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; group.setName ( "BadName" ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.VERSION_1_1 ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.Cluster createClusterWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; group.setName ( "BadName" ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.VERSION_1_1 ) ; group.setClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return group ; }
Source:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . isQuotaDefault = isQuotaDefault ; }

Target:
public void setQuotaDefault ( boolean isQuotaDefault ) { this . isQuotaDefault = isQuotaDefault ; }
Source:
public static java.lang.String toTimestamp ( long time ) { return java.lang.String.format ( "to_timestamp(%d::double precision / 1000) AT TIME ZONE 'UTC'" , time ) ; }

Target:
public static java.lang.String toTimestamp ( long time ) { return java.lang.String.format ( "to_timestamp(%d::double precision / 1000)" , time ) ; }