auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3GlusterBricks bricks ) { return adaptAdd ( delegate :: add , bricks ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3GlusterBricks bricks ) { return adaptAdd ( getDelegate ( ) :: add , bricks ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult allVfsAreFree ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper hostNicVfsConfigHelper ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED , getNicNameReplacement ( ) ) . unless ( hostNicVfsConfigHelper.areAllVfsFree ( getNic ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult allVfsAreFree ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper hostNicVfsConfigHelper ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED , getNicNameReplacement ( ) ) . unless ( hostNicVfsConfigHelper.areAllVfsFree ( getNic ( ) ) ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "ResourceManager::refreshVdsRunTimeInfo::Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getvds_name ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "VdsManager::refreshVdsRunTimeInfo::Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getvds_name ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }
Source:
public void setPmSecondaryPort ( java.lang.String value ) { mVdsStatic.setPmSecondaryOptions ( value ) ; }

Target:
public boolean isFenceAgentsExist ( ) { return ! ( this . getFenceAgents ( ) . isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedAffinityLabelsResource getAffinityLabelsResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.resource.AssignedAffinityLabelsResource getAffinityLabelsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedAffinityLabelsResource ( id , VM :: new ) ) ; }
Source:
private static double getLast5MinutesStorageAverage ( javax.sql.DataSource dwhDataSource ) throws java.sql.SQLException , org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.dao.StorageDomainDwhDAO dao = new org.ovirt.engine.ui.frontend.server.dashboard.dao.StorageDomainDwhDAO ( dwhDataSource ) ; return ( dao.getLast5MinutesStorageAverage ( ) ) / 1024 ; }

Target:
private static double getLast5MinutesStorageAverage ( javax.sql.DataSource dwhDataSource ) throws org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.dao.StorageDomainDwhDao dao = new org.ovirt.engine.ui.frontend.server.dashboard.dao.StorageDomainDwhDao ( dwhDataSource ) ; return ( dao.getLast5MinutesStorageAverage ( ) ) / 1024 ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > answer ( org.mockito.invocation.InvocationOnMock invocationOnMock ) throws java.lang.Throwable { return createHostList ( hosts ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > answer ( org.mockito.invocation.InvocationOnMock invocationOnMock ) throws java.lang.Throwable { return java.util.Arrays.asList ( hosts ) ; }
Source:
private void editCheckBoxes ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel consoleModel , org.ovirt.engine.ui.userportal.widget.popup.console.EntityModelValueCheckBoxEditor < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > ... checkBoxes ) { for ( org.ovirt.engine.ui.userportal.widget.popup.console.EntityModelValueCheckBoxEditor < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > checkBox : checkBoxes ) { checkBox.asEditor ( ) . getSubEditor ( ) . setValue ( consoleModel ) ; } }

Target:
private void editCheckBoxes ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel consoleModel , org.ovirt.engine.ui.common.widget.uicommon.popup.console.EntityModelValueCheckBoxEditor < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > ... checkBoxes ) { for ( org.ovirt.engine.ui.common.widget.uicommon.popup.console.EntityModelValueCheckBoxEditor < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > checkBox : checkBoxes ) { checkBox.asEditor ( ) . getSubEditor ( ) . setValue ( consoleModel ) ; } }
Source:
public void existsWithSnapshotReturnsFalseForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( new org.ovirt.engine.core.compat.Guid ( ) , getExistingEntityId ( ) ) ) ; }

Target:
public void existsWithSnapshotReturnsFalseForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( Guid.Empty , getExistingEntityId ( ) ) ) ; }
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 ( ) . dataCenterEventSubTabLabel ( ) , 5 , ginjector.getSubTabDataCenterEventModelProvider ( ) , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
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 ( ) . dataCenterEventSubTabLabel ( ) , 6 , ginjector.getSubTabDataCenterEventModelProvider ( ) , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { tooltipPanel.hide ( true ) ; }

Target:
public void setTitle ( java.lang.String text ) { tooltipPanel.setText ( text ) ; }
Source:
private org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) { return org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK , org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( NetworkAttachmentsValidator.VAR_NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK_LIST , java.util.Collections.singletonList ( nic.getName ( ) ) ) ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmAndNonVmAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM , NetworkType.NON_VM ) , vmNetwork1 , nonVmNetwork1 ) ; }
Source:
public java.lang.Object runInTransaction ( ) { try { boolean isPartiallySubmittedCommand = isPartiallySubmittedCommand ( tasks ) ; for ( org.ovirt.engine.core.common.businessentities.AsyncTasks task : tasks ) { handleTaskOfCommandWithEmptyVdsmId ( isPartiallySubmittedCommand , task ) ; } return null ; } finally { irsBrokerLatch.countDown ( ) ; } }

Target:
public java.lang.Object runInTransaction ( ) { try { for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { handlePartiallyExecutedTaskOfCommand ( task ) ; } return null ; } finally { irsBrokerLatch.countDown ( ) ; } }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendVmPoolsResource ( ) ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendVmPoolsResource ( ) ) ) ) ; }
Source:
private void addNoUpServerMessage ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { addCanDoActionMessageVariable ( "clusterName" , cluster.getName ( ) ) ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NO_UP_SERVER_FOUND ) ; }

Target:
private void addNoUpServerMessage ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { addCanDoActionMessageVariable ( "clusterName" , cluster.getName ( ) ) ; addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NO_UP_SERVER_FOUND ) ; }
Source:
public void clusterAlreadyInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }

Target:
public void clusterAlreadyInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc heartBeat ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.heartBeat ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( 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.vdsbroker.StatusOnlyReturnForXmlRpc hotplugMemory ( java.util.Map info ) { try { return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( vdsServer.hotplugMemory ( info ) ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
public void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.cell.Cell.Context context , com.google.gwt.dom.client.Element parent , java.lang.Boolean value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < java.lang.Boolean > valueUpdater ) { onBrowserEvent ( context , parent , value , null , event , valueUpdater ) ; }

Target:
public void setTooltipFallback ( com.google.gwt.safehtml.shared.SafeHtml tooltipFallback ) { }
Source:
private void initConditions ( ) { org.mockito.Mockito.when ( dbFacade.getInterfaceDao ( ) ) . thenReturn ( interfaceDao ) ; org.mockito.Mockito.when ( interfaceDao.getAllInterfacesForVds ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; }

Target:
private void initConditions ( ) { org.mockito.Mockito.when ( dbFacade.getInterfaceDao ( ) ) . thenReturn ( interfaceDao ) ; org.mockito.Mockito.when ( interfaceDao.getAllInterfacesForVds ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; }
Source:
public java.lang.Integer getusage_mem_percent ( ) { return this . mVmStatistics.getusage_mem_percent ( ) ; }

Target:
public void setRoundedElapsedTime ( java.lang.Double value ) { this . vmStatistics.setRoundedElapsedTime ( value ) ; }
Source:
public void testGetVmMapsInVmPoolByVmPoolIdAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmPoolMap > result = dao.getVmMapsInVmPoolByVmPoolIdAndStatus ( existingVmPool.getvm_pool_id ( ) , VMStatus.MigratingFrom ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetVmMapsInVmPoolByVmPoolIdAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmPoolMap > result = dao.getVmMapsInVmPoolByVmPoolIdAndStatus ( existingVmPool.getVmPoolId ( ) , VMStatus.MigratingFrom ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapGroup getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.LdapGroup entity = new org.ovirt.engine.core.common.businessentities.LdapGroup ( ) ; entity.setid ( GUIDS [ index ] ) ; entity.setname ( NAMES [ index ] ) ; return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapGroup getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.LdapGroup entity = new org.ovirt.engine.core.common.businessentities.LdapGroup ( ) ; entity.setid ( EXTERNAL_IDS [ index ] ) ; entity.setname ( NAMES [ index ] ) ; return entity ; }
Source:
private void setupExpectedVolume ( ) { expected = new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ( ) ; expected.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; }

Target:
private void setupExpectedVolume ( ) { expected = new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ( ) ; expected.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public void testFetchExistingRepoFileListById ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > listOfRepoFiles = getActiveIsoDomain ( ) ; org.junit.Assert.assertNotNull ( listOfRepoFiles ) ; }

Target:
public void testFetchExistingRepoFileListById ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > listOfRepoFiles = getActiveIsoDomain ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( listOfRepoFiles ) ; }
Source:
private void handleSaslException ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapSearchExceptionHandlingResponse response , java.lang.Throwable cause ) { response.setOrderingAlgorithm ( OrderingAlgorithmType.PUT_LAST ) . setTranslatedException ( new org.ovirt.engine.extensions.aaa.builtin.kerberosldap.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_ERROR , ( "General connection problem due to " + cause ) ) ) . setTryNextServer ( true ) ; }

Target:
private void handleSaslException ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapSearchExceptionHandlingResponse response , java.lang.Throwable cause ) { response.setOrderingAlgorithm ( OrderingAlgorithmType.PUT_LAST ) . setTranslatedException ( new org.ovirt.engine.extensions.aaa.builtin.kerberosldap.AuthenticationResultException ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.kerberos.AuthenticationResult.CONNECTION_ERROR , ( "General connection problem due to " + cause ) ) ) . setTryNextServer ( true ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ( ) ; }

Target:
public java.util.Set < T > convert ( java.lang.Object source ) { return source != null ? ( ( java.util.Set < T > ) ( source ) ) : new java.util.HashSet < T > ( ) ; }
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 ( ) . storageDataCenterSubTabLabel ( ) , 1 , ginjector.getSubTabStorageDataCenterModelProvider ( ) ) ; }

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.businessentities.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageDataCenterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storageDataCenterSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
java.lang.String templateVersionName ( java.lang.String name ) ;

Target:
java.lang.String nextRunConfigurationMemoryValue ( ) ;
Source:
public static boolean IsClusterItemExistInList ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > items , org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup a : items ) { if ( id.equals ( a.getId ( ) ) ) { return true ; } } return false ; }

Target:
public static boolean isClusterItemExistInList ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > items , org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup a : items ) { if ( id.equals ( a.getId ( ) ) ) { return true ; } } return false ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__POLICY_UNIT ) ; }

Target:
protected void executeCommand ( ) { schedulingManager.removeExternalPolicyUnit ( getPolicyUnitId ( ) ) ; setSucceeded ( true ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
private boolean isCanDoActionSupportsTransaction ( ) { return getClass ( ) . isAnnotationPresent ( org.ovirt.engine.core.bll.CanDoActionSupportsTransaction.class ) ; }

Target:
private boolean isValidateSupportsTransaction ( ) { return getClass ( ) . isAnnotationPresent ( org.ovirt.engine.core.bll.ValidateSupportsTransaction.class ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterVolume.geoRepStatus" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) . withIgnoreResponseKey ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterVolume.geoRepSessionList" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) . withIgnoreResponseKey ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.OvfEntityData getByEntityIdAndStorageDomain ( org.ovirt.engine.core.compat.Guid entityId , org.ovirt.engine.core.compat.Guid storageDomainId ) { return getCallsHandler ( ) . executeRead ( "GetOVFDataByEntityIdAndStorageDomain" , org.ovirt.engine.core.dao.UnregisteredOVFDataDAODbFacadeImpl.OvfEntityDataRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "entity_guid" , entityId ) . addValue ( "storage_domain_id" , storageDomainId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > getByEntityIdAndStorageDomain ( org.ovirt.engine.core.compat.Guid entityId , org.ovirt.engine.core.compat.Guid storageDomainId ) { return getCallsHandler ( ) . executeReadList ( "GetOVFDataByEntityIdAndStorageDomain" , org.ovirt.engine.core.dao.UnregisteredOVFDataDAODbFacadeImpl.OvfEntityDataRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "entity_guid" , entityId ) . addValue ( "storage_domain_id" , storageDomainId ) ) ; }
Source:
public void validateFailsWithEmptyBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 0 , false ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ; }

Target:
private void setVolume ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { cmd.getParameters ( ) . setVolume ( volumeEntity ) ; cmd.setGlusterVolumeId ( volumeEntity.getId ( ) ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.VmsListFetcher getVmsListFetcher ( ) { return new org.ovirt.engine.core.vdsbroker.VmsStatisticsFetcher ( manager ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.VmsListFetcher getVmsFetcher ( ) { return new org.ovirt.engine.core.vdsbroker.VmsStatisticsFetcher ( vdsManager ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Permissions getPermissions ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Permissions.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( id ) ) , id ) ; }

Target:
protected org.ovirt.engine.api.model.Permission getPermissions ( java.lang.String id ) { return getEntity ( org.ovirt.engine.api.model.Permission.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( id ) ) , id ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { if ( ( vms ) == null ) { vms = getDbFacade ( ) . getVmDao ( ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) ; } return vms ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { if ( ( vms ) == null ) { vms = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.VmDao.class ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) ; } return vms ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel ) ( result.getState ( ) ) ) ; localModel.getWindow ( ) . StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public java.lang.String getInterfaceType ( ) { return org.ovirt.engine.core.common.businessentities.VmInterfaceType.forValue ( org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getParameters ( ) . getInterface ( ) . getType ( ) ) . getDescription ( ) ; }

Target:
public java.lang.String getInterfaceType ( ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.forValue ( org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getParameters ( ) . getInterface ( ) . getType ( ) ) . getDescription ( ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpGetGraphicsExpectations ( 3 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
private boolean nameKept ( org.ovirt.engine.core.common.businessentities.Provider oldProvider ) { return oldProvider.getName ( ) . equals ( getProvider ( ) . getName ( ) ) ; }

Target:
private boolean nameKept ( ) { return getOldProvider ( ) . getName ( ) . equals ( getProvider ( ) . getName ( ) ) ; }
Source:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { hostListEditor.setLabel ( constants.storageRemovePopupHostLabel ( ) ) ; formatEditor.setLabel ( constants.storageRemovePopupFormatLabel ( ) ) ; }

Target:
void localize ( ) { hostListEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.StorageRemovePopupView.constants.storageRemovePopupHostLabel ( ) ) ; formatEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.StorageRemovePopupView.constants.storageRemovePopupFormatLabel ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAllForUserAndGroups ( org.ovirt.engine.core.compat.Guid id , java.lang.String groupIds ) { java.lang.Integer appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getAllForUserAndGroups ( id , groupIds , appMode.intValue ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAnyAdminRoleForUserAndGroups ( org.ovirt.engine.core.compat.Guid id , java.lang.String groupIds ) { java.lang.Integer appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getAnyAdminRoleForUserAndGroups ( id , groupIds , appMode.intValue ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { onRadioButtonSelection ( true ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { onRadioButtonSelection ( true ) ; }
Source:
public void testIsNetworkInSyncWhenIpConfigurationIsEmpty ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockedIpConfiguration.hasPrimaryAddressSet ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpConfigurationIsEmpty ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockedIpConfiguration.hasIpv4PrimaryAddressSet ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPredefinedVdsIdToRunOn ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVds ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getPredefinedVdsIdListToRunOn ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVdsList ( ) ; }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . update ( getMacPool ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc.getInstance ( ) . modifyPool ( getMacPool ( ) ) ; setSucceeded ( true ) ; getReturnValue ( ) . setActionReturnValue ( getMacPoolId ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getMacPoolId ( ) { return getMacPoolEntity ( ) . getId ( ) ; }
Source:
protected void applyCommonValidationStyles ( ) { }

Target:
public void markAsValid ( ) { super . markAsValid ( ) ; getValidatedWidgetStyle ( ) . setBorderWidth ( 0 , Unit.PX ) ; }
Source:
private org.ovirt.engine.core.bll.storage.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( storageType ) ; }

Target:
private org.ovirt.engine.core.bll.storage.connection.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return org.ovirt.engine.core.bll.storage.connection.StorageHelperDirector.getInstance ( ) . getItem ( storageType ) ; }
Source:
public void SetDefaultNames ( org.ovirt.engine.core.common.businessentities.VDS host ) { context.host = host ; setCommonName ( ( ( host.getvds_name ( ) . replace ( '.' , '-' ) ) + "-Local" ) ) ; SetDefaultNames1 ( ) ; }

Target:
public void SetDefaultNames ( org.ovirt.engine.core.common.businessentities.VDS host ) { context.host = host ; setCommonName ( ( ( host.getVdsName ( ) . replace ( '.' , '-' ) ) + "-Local" ) ) ; SetDefaultNames1 ( ) ; }
Source:
protected void update ( T entity , java.lang.String procedureName ) { org.ovirt.engine.core.dao.DefaultGenericDaoDbFacade.getCallsHandler ( ) . executeModification ( procedureName , createFullParametersMapper ( entity ) ) ; }

Target:
protected void update ( T entity , java.lang.String procedureName ) { org.ovirt.engine.core.dao.DefaultGenericDao.getCallsHandler ( ) . executeModification ( procedureName , createFullParametersMapper ( entity ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return 262144 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }
Source:
public void hostIsNotPoweredOffWhenFenceStatusFailed ( ) { mockFenceAgent ( ) ; mockFenceResult ( agentExecutor1 , new org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult ( org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult.Status.ERROR , org.ovirt.engine.core.common.businessentities.pm.PowerStatus.UNKNOWN ) ) ; org.junit.Assert.assertFalse ( executor.isHostPoweredOff ( ) ) ; }

Target:
public void hostIsNotPoweredOffWhenFenceStatusFailed ( ) { mockFenceAgent ( ) ; mockFenceResult ( agentExecutor1 , new org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult ( org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult.Status.ERROR , org.ovirt.engine.core.common.businessentities.pm.PowerStatus.UNKNOWN ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( executor.isHostPoweredOff ( ) ) ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = selectNodes ( _document , "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.getImageGroupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new ConvertVmCallback ( org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getStoragePool ( ) . getCompatibilityVersion ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , getVmIsBeingImportedMessage ( ) ) ) ; }
Source:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) ;

Target:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass ) ;
Source:
public static org.ovirt.engine.api.model.VmType map ( org.ovirt.engine.api.model.VmType type , org.ovirt.engine.api.model.VmType incoming ) { switch ( type ) { case Desktop : return org.ovirt.engine.api.model.VmType.DESKTOP ; case Server : return org.ovirt.engine.api.model.VmType.SERVER ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.VmType map ( org.ovirt.engine.api.model.VmType type , org.ovirt.engine.api.model.VmType incoming ) { switch ( type ) { case Desktop : return org.ovirt.engine.api.model.VmType.DESKTOP ; case Server : return org.ovirt.engine.api.model.VmType.SERVER ; case HighPerformance : return org.ovirt.engine.api.model.VmType.HIGH_PERFORMANCE ; default : return null ; } }
Source:
public void testGetLunsThatBreakDiscardFunctionalityDiscardFunctionalityDoesntBreak ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , true ) ; assertGetLunsThatBreakDiscardFunctionalityContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , true ) ) , java.util.Collections.emptyList ( ) ) ; }

Target:
public void testGetLunsThatBreakPassDiscardFunctionalityDiscardFunctionalityDoesntBreak ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , true ) ; assertGetLunsThatBreakPassDiscardFunctionalityContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , true ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
public static boolean hasMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.isMemBalloonEnabled ( vmId ) ; }

Target:
public boolean hasMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return vmDeviceDao.isMemBalloonEnabled ( vmId ) ; }
Source:
private void markLoggedinTargets ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > targets ) { for ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel targetModel : targets ) { targetModel.setIsLoggedIn ( true ) ; targetModel.setIsChangable ( false ) ; } getTargets ( ) . setSelectedItems ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > ( ) ) ; }

Target:
private void markLoggedinTargets ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > targets ) { for ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel targetModel : targets ) { targetModel.setIsLoggedIn ( true ) ; targetModel.setIsChangeable ( false ) ; } getTargets ( ) . setSelectedItems ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > ( ) ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VdsGroupDAOTest.NUMBER_OF_GROUPS , result.size ( ) ) ; }

Target:
private void assertCorrectGetAllResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VdsGroupDAOTest.NUMBER_OF_GROUPS , result.size ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.permissions getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.permissions permission = new org.ovirt.engine.core.common.businessentities.permissions ( ) ; permission.setId ( GUIDS [ 0 ] ) ; permission.setad_element_id ( GUIDS [ 1 ] ) ; permission.setrole_id ( GUIDS [ 2 ] ) ; return permission ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Permissions getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.Permissions permission = new org.ovirt.engine.core.common.businessentities.Permissions ( ) ; permission.setId ( GUIDS [ 0 ] ) ; permission.setad_element_id ( GUIDS [ 1 ] ) ; permission.setrole_id ( GUIDS [ 2 ] ) ; return permission ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.CommandBase < ? > > buildChildCommands ( ) { return java.util.Collections.< org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.CommandBase < ? > > emptyMap ( ) ; }

Target:
public void deleteAsyncTaskPlaceHolder ( ) { deleteAsyncTaskPlaceHolder ( org.ovirt.engine.core.bll.CommandBase.DEFAULT_TASK_KEY ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean toShow = ( ( java.lang.Boolean ) ( isLinuxOptionsAvailable.getEntity ( ) ) ) ; linuxBootOptionsPanel.setVisible ( toShow ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isLinux = ( ( java.lang.Boolean ) ( isLinuxOptionsAvailable.getEntity ( ) ) ) ; linuxBootOptionsPanel.setVisible ( isLinux ) ; }
Source:
protected java.lang.Object resolveCreated ( org.ovirt.engine.core.common.action.VdcReturnValueBase result , org.ovirt.engine.api.restapi.resource.EntityResolver entityResolver , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { try { return entityResolver.resolve ( result.getActionReturnValue ( ) ) ; } catch ( java.lang.Exception e ) { return null ; } }

Target:
protected java.lang.Object resolveCreated ( org.ovirt.engine.core.common.action.ActionReturnValue result , org.ovirt.engine.api.restapi.resource.EntityResolver entityResolver , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { try { return entityResolver.resolve ( result.getActionReturnValue ( ) ) ; } catch ( java.lang.Exception e ) { return null ; } }
Source:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . rootCmdEntity.setCommandParameters ( value ) ; }

Target:
public void setActionParameters ( org.ovirt.engine.core.common.action.ActionParametersBase value ) { this . rootCmdEntity.setCommandParameters ( value ) ; }
Source:
public void clearBuff ( ) { outbox.clear ( ) ; }

Target:
public void postDisconnect ( ) { outbox.clear ( ) ; }
Source:
public void setValue ( java.lang.String value ) { this . value = value ; }

Target:
public void setAllowedValues ( java.util.List < java.lang.String > allowedValues ) { this . allowedValues = allowedValues ; }
Source:
private void assertFailsWith ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.EngineMessage engineMessage ) { org.assertj.core.api.Assertions.assertThat ( validationResult.isValid ( ) ) . isFalse ( ) ; org.assertj.core.api.Assertions.assertThat ( validationResult.getMessage ( ) ) . isEqualTo ( engineMessage ) ; }

Target:
private void assertFailsWith ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.EngineMessage engineMessage ) { org.junit.Assert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage ) ) ; }
Source:
public void updateInterface ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskInterfaceList ( ) ) ; getDiskInterface ( ) . setSelectedItem ( getDisk ( ) . getDiskInterface ( ) ) ; }

Target:
public void updateInterface ( org.ovirt.engine.core.compat.Version clusterVersion ) { super . updateInterface ( clusterVersion ) ; getDiskInterface ( ) . setSelectedItem ( getDisk ( ) . getDiskInterface ( ) ) ; }
Source:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getAsyncTaskType ( ) { if ( ( getTaskType ( ) ) == ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notsupported ) ) { throw new java.lang.UnsupportedOperationException ( ) ; } return getTaskType ( ) ; }

Target:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getAsyncTaskType ( ) { if ( ( getTaskType ( ) ) == ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported ) ) { throw new java.lang.UnsupportedOperationException ( ) ; } return getTaskType ( ) ; }
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.network.Network > ( ) ; } return source ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.HashMap < org.ovirt.engine.core.common.businessentities.network.Network , java.util.Set < org.ovirt.engine.core.compat.Guid > > ( ) ; } return source ; }
Source:
protected org.ovirt.engine.core.compat.Guid getStorageDomainIdForQuery ( ) { if ( doesUserHavePermissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.storage.repoimage.GetImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) , StorageDomainStatus.Active ) ; } return null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStorageDomainIdForQuery ( ) { if ( doesUserHavePermissionsOnStoragePool ( ) ) { return storageDomainDao.getIsoStorageDomainIdForPool ( getStoragePoolId ( ) , StorageDomainStatus.Active ) ; } return null ; }
Source:
private void applyStyles ( ) { eventIdLabel.addContentWidgetStyleName ( style.editorContent ( ) ) ; eventTimeLabel.addContentWidgetStyleName ( style.editorContent ( ) ) ; eventMessageTextArea.addContentWidgetStyleName ( style.editorContent ( ) ) ; }

Target:
private void applyStyles ( ) { eventIdLabel.addContentWidgetContainerStyleName ( style.editorContent ( ) ) ; eventTimeLabel.addContentWidgetContainerStyleName ( style.editorContent ( ) ) ; eventMessageTextArea.addContentWidgetContainerStyleName ( style.editorContent ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenIpv6GatewayBothNull ( ) { initIpv6ConfigurationStaticBootProtocol ( Ipv6BootProtocol.STATIC_IP ) ; ipv6Address.setGateway ( null ) ; iface.setIpv6Gateway ( null ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6GatewayEqual ( ) { initIpv6ConfigurationBootProtocolGateway ( Ipv6BootProtocol.STATIC_IP , true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
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 ; } }

Target:
public void setVmtTimeZone ( java.lang.String value ) { vmtTimeZone = value ; }
Source:
public void deleteAsyncTaskPlaceHolder ( java.lang.String taskKey ) { org.ovirt.engine.core.compat.Guid taskId = taskKeyToTaskIdMap.remove ( taskKey ) ; if ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( taskId ) ) ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.removeTaskFromDbByTaskId ( taskId ) ; } }

Target:
public void deleteAsyncTaskPlaceHolder ( java.lang.String taskKey ) { org.ovirt.engine.core.compat.Guid taskId = taskKeyToTaskIdMap.remove ( taskKey ) ; if ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( taskId ) ) ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeTaskFromDbByTaskId ( taskId ) ; } }
Source:
public void importNetworks ( ) { if ( ( getWindow ( ) ) != null ) { return ; } setWindow ( new org.ovirt.engine.ui.uicommonweb.models.networks.ImportNetworksModel ( this ) ) ; }

Target:
public void importNetworks ( ) { if ( ( getWindow ( ) ) != null ) { return ; } setWindow ( importNetworkModelProvider.get ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface get ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetVdsInterfaceById" , org.ovirt.engine.core.dao.network.InterfaceDaoDbFacadeImpl.vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "vds_interface_id" , id ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface get ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetVdsInterfaceById" , vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "vds_interface_id" , id ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getMasterStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid pool ) { return getStorageDomainIdForPoolByType ( pool , StorageDomainType.Master ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getMasterStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid poolId ) { return getStorageDomainId ( poolId , StorageDomainType.Master ) ; }
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.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }

Target:
public void networkNull ( ) { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }