auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void setUpGetCertificateInfo ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVdsCertificateSubjectByVdsId , org.ovirt.engine.core.common.queries.GetVdsByVdsIdParameters.class , new java.lang.String [ ] { "VdsId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , BackendHostsResourceTest.CERTIFICATE_SUBJECT ) ; }

Target:
protected void setUpGetCertificateInfo ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVdsCertificateSubjectByVdsId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , BackendHostsResourceTest.CERTIFICATE_SUBJECT ) ; }
Source:
protected void executeVmCommand ( ) { removeVmInSpm ( ) ; removeDiskImages ( ) ; org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.setSucceeded ( true ) ; }

Target:
protected void executeVmCommand ( ) { removeVmInSpm ( ) ; removeDiskImages ( ) ; removeMemoryImages ( ) ; org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.setSucceeded ( true ) ; }
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.setAdElementId ( GUIDS [ 1 ] ) ; permission.setRoleId ( GUIDS [ 2 ] ) ; return permission ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult nicSriovEnabled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NIC_IS_NOT_SRIOV_ENABLED , getNicNameReplacement ( ) ) . when ( ( ( oldVfsConfig ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nicSriovEnabled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NIC_IS_NOT_SRIOV_ENABLED , getNicNameReplacement ( ) ) . when ( ( ( oldVfsConfig ) == null ) ) ; }
Source:
public static java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > getVmDeviceUnitMapForVirtioScsiDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder.getVmDeviceUnitMapForScsiDisks ( vm , DiskInterface.VirtIO_SCSI , false ) ; }

Target:
public static java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > getVmDeviceUnitMapForSpaprScsiDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder.getVmDeviceUnitMapForScsiDisks ( vm , DiskInterface.SPAPR_VSCSI , true ) ; }
Source:
public org.ovirt.engine.api.model.QoSs list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllQosByStoragePoolIdAndType , new org.ovirt.engine.core.common.queries.QosQueryParameterBase ( dataCenterId ) ) ) ; }

Target:
public org.ovirt.engine.api.model.QoSs list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllQosByStoragePoolId , new org.ovirt.engine.core.common.queries.QosQueryParameterBase ( dataCenterId ) ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , autoRecoverable , connection , name , storage , storageFormat , storagePoolType , storageType , description , sanState , wipeAfterDelete , discardAfterDelete , firstMetadataDevice , vgMetadataDevice , warningLowSpaceIndicator , criticalSpaceActionBlocker ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , autoRecoverable , connection , name , storage , storageFormat , storagePoolType , storageType , description , sanState , wipeAfterDelete , discardAfterDelete , firstMetadataDevice , vgMetadataDevice , warningLowSpaceIndicator , criticalSpaceActionBlocker , backup ) ; }
Source:
private static java.util.Map < java.lang.String , java.lang.Object > getUsbSlotSpecParams ( ) { java.util.Map < java.lang.String , java.lang.Object > specParams = new java.util.HashMap < > ( ) ; return specParams ; }

Target:
private static java.util.Map < java.lang.String , java.lang.Object > getSmartcardDeviceSpecParams ( ) { java.util.Map < java.lang.String , java.lang.Object > specParams = new java.util.HashMap < > ( ) ; specParams.put ( "mode" , "passthrough" ) ; specParams.put ( "type" , "spicevmc" ) ; return specParams ; }
Source:
public void getVmNullId ( ) { final org.ovirt.engine.core.common.businessentities.VM v = null ; b.setVm ( v ) ; b.setVmId ( null ) ; final org.ovirt.engine.core.common.businessentities.VM vm = b.getVm ( ) ; org.junit.Assert.assertNull ( vm ) ; }

Target:
public void getVmNullId ( ) { final org.ovirt.engine.core.common.businessentities.VM v = null ; b.setVm ( v ) ; b.setVmId ( null ) ; final org.ovirt.engine.core.common.businessentities.VM vm = b.getVm ( ) ; org.junit.jupiter.api.Assertions.assertNull ( vm ) ; }
Source:
public void invalidVnicProfileNetworkFilterId ( ) { initVnicProfileNetworkFilterId ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_VNIC_PROFILE_NAME ) ; org.junit.Assert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_INVALID_VNIC_PROFILE_NETWORK_FILTER_ID , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( VnicProfileValidator.VAR_VNIC_PROFILE_NAME , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_VNIC_PROFILE_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( VnicProfileValidator.VAR_NETWORK_FILTER_ID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ) ) ; }

Target:
public void invalidVnicProfileNetworkFilterId ( ) { initVnicProfileNetworkFilterId ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_VNIC_PROFILE_NAME ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_INVALID_VNIC_PROFILE_NETWORK_FILTER_ID , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( VnicProfileValidator.VAR_VNIC_PROFILE_NAME , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_VNIC_PROFILE_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( VnicProfileValidator.VAR_NETWORK_FILTER_ID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.storage_domain_static result = dao.getByName ( existingDomain.getstorage_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingDomain.getId ( ) , result.getId ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.getByName ( existingDomain.getstorage_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingDomain.getId ( ) , result.getId ( ) ) ; }
Source:
public void zeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( ValidationResult.VALID , 0 , false ) ; }

Target:
public void zeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , 0 , false ) ; }
Source:
private void GoToEventsTab ( ) { setActiveDetailModel ( getHostEventListModel ( ) ) ; }

Target:
private void goToEventsTab ( ) { setActiveDetailModel ( getHostEventListModel ( ) ) ; }
Source:
public void testDBConnectionWithConnection ( ) { org.junit.Assert.assertTrue ( dbFacade.CheckDBConnection ( ) ) ; }

Target:
public void testDBConnectionWithConnection ( ) { org.junit.Assert.assertTrue ( dbFacade.checkDBConnection ( ) ) ; }
Source:
private org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters toParameters ( org.ovirt.engine.api.model.Action action ) { return toParameters ( action.getBricks ( ) ) ; }

Target:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action.getBricks ( ) ) ; return performAction ( VdcActionType.StartRemoveGlusterVolumeBricks , params , action , false ) ; }
Source:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.action.CreateOrUpdateBond createOrUpdateBond = createNewCreateOrUpdateBond ( null , "bond1" , "slaveA" , "slaveB" ) ; doTestValidModifiedBonds ( createOrUpdateBond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
public void portMirroringEnableSupported ( ) { mockVnicProfilePortMirroringChange ( false ) ; mockVmsUsingVnicProfile ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void portMirroringChangeNotSupported ( ) { mockVnicProfilePortMirroringChange ( false ) ; mockVmsUsingVnicProfile ( java.util.Collections.singletonList ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.failsWithVnicProfileInUse ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > getItems ( ) { return ( ( org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ) ( super . getItems ( ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.BootSequence > > getItems ( ) { return ( ( org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.BootSequence > > ) ( super . getItems ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.EngineBackupLog getLastSuccessfulEngineBackup ( java.lang.String scope ) { javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.EngineBackupLog > query = getEntityManager ( ) . createNamedQuery ( "EngineBackupLog.getLatest" , org.ovirt.engine.core.common.businessentities.EngineBackupLog.class ) . setParameter ( "scope" , scope ) . setMaxResults ( 1 ) ; return singleResult ( query ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.EngineBackupLog getLastSuccessfulEngineBackup ( java.lang.String scope ) { return getCallsHandler ( ) . executeRead ( "GetLastSuccessfulEngineBackup" , org.ovirt.engine.core.dao.EngineBackupLogDaoImpl.EngineBackupLogRowMapper.INSTANCE , getCustomMapSqlParameterSource ( ) . addValue ( "scope" , scope ) ) ; }
Source:
public void onUserLogout ( ) { setUserName ( null ) ; setLoggedIn ( false ) ; fireLoginChangeEvent ( ) ; }

Target:
public void onUserLogout ( ) { setUserName ( null ) ; setUserId ( null ) ; setLoggedIn ( false ) ; fireLoginChangeEvent ( ) ; }
Source:
public void hostNameIsValid ( ) { org.mockito.Mockito.when ( host.getHostName ( ) ) . thenReturn ( "validName" ) ; org.junit.Assert.assertThat ( validator.hostNameIsValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void hostNameIsValid ( ) { org.mockito.Mockito.when ( host.getHostName ( ) ) . thenReturn ( "validName" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.hostNameIsValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createLabeledNic ( java.lang.String string , java.lang.String networkName , java.lang.String ... labels ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = createNic ( "nic0" , networkName ) ; nic.setLabels ( new java.util.HashSet < > ( java.util.Arrays.asList ( labels ) ) ) ; return nic ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , null , networkName , true , null , false , null , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.MergeCommandCallback ( ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.MergeCommandCallback ( ) ) ; }
Source:
private boolean isDisksContainBootableDisk ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { for ( org.ovirt.engine.core.common.businessentities.storage.Disk disk : disks ) { if ( disk.isBoot ( ) ) { return true ; } } return false ; }

Target:
private boolean isDisksContainBootableDisk ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { for ( org.ovirt.engine.core.common.businessentities.storage.Disk disk : disks ) { if ( disk.getDiskVmElementForVm ( vm.getId ( ) ) . isBoot ( ) ) { return true ; } } return false ; }
Source:
protected void executeCommand ( ) { getSyncJobInstance ( ) . refreshGeoRepDataForVolume ( org.ovirt.engine.core.bll.gluster.RefreshGeoRepSessionsCommand.getGlusterVolume ( ) ) ; org.ovirt.engine.core.bll.gluster.RefreshGeoRepSessionsCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { glusterGeoRepSyncJob.refreshGeoRepDataForVolume ( org.ovirt.engine.core.bll.gluster.RefreshGeoRepSessionsCommand.getGlusterVolume ( ) ) ; org.ovirt.engine.core.bll.gluster.RefreshGeoRepSessionsCommand.setSucceeded ( true ) ; }
Source:
private void syncStorageDomainsLuns ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > deviceList ) { org.ovirt.engine.core.common.action.SyncLunsParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsParameters ( org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.getParameters ( ) . getStoragePoolId ( ) , deviceList ) ; runInternalAction ( VdcActionType.SyncStorageDomainsLuns , parameters ) ; }

Target:
private void syncStorageDomainsLuns ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > deviceList ) { org.ovirt.engine.core.common.action.SyncLunsParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsParameters ( org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.getParameters ( ) . getStoragePoolId ( ) , deviceList ) ; runInternalAction ( ActionType.SyncStorageDomainsLuns , parameters ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ( ) ; }
Source:
private java.lang.String getFullUserName ( org.ovirt.engine.core.common.businessentities.LdapUser ldapUser ) { java.lang.String userName = ldapUser.getUserName ( ) ; if ( ( userName.indexOf ( "@" ) ) == ( - 1 ) ) { userName = ( userName + "@" ) + ( ldapUser.getDomainControler ( ) ) ; } return userName ; }

Target:
private java.lang.String getFullLoginName ( org.ovirt.engine.core.common.businessentities.LdapUser ldapUser ) { java.lang.String fullName = ldapUser.getUserName ( ) ; if ( ( fullName.indexOf ( "@" ) ) == ( - 1 ) ) { fullName = ( fullName + "@" ) + ( ldapUser.getDomainControler ( ) ) ; } return fullName ; }
Source:
protected void ItemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { if ( ! ( getNotifyPropertyChangeForAnyItem ( ) ) ) { return ; } UnsubscribeList ( e.OldItems ) ; SubscribeList ( e.NewItems ) ; }

Target:
protected void itemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { if ( ! ( getNotifyPropertyChangeForAnyItem ( ) ) ) { return ; } unsubscribeList ( e.OldItems ) ; subscribeList ( e.NewItems ) ; }
Source:
public void testGetApplicationModeObject ( ) { org.codehaus.jackson.node.ObjectNode result = testServlet.getApplicationModeObject ( 255 ) ; org.junit.Assert.assertEquals ( "255" , result.get ( "value" ) . asText ( ) ) ; }

Target:
public void testGetApplicationModeObject ( ) { org.codehaus.jackson.node.ObjectNode result = testServlet.getApplicationModeObject ( 255 ) ; org.junit.jupiter.api.Assertions.assertEquals ( "255" , result.get ( "value" ) . asText ( ) ) ; }
Source:
public java.lang.Boolean getksm_state ( ) { return this . mVdsStatistics.getksm_state ( ) ; }

Target:
public java.lang.Boolean getKsmState ( ) { return this . mVdsStatistics.getksm_state ( ) ; }
Source:
private static void assertNotEmptyCanDoActionMessage ( java.util.List < ? > list ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_CAN_DO_MESSAGE , ( ( list != null ) && ( ( list.size ( ) ) > 0 ) ) ) ; }

Target:
private void assertNotEmptyCanDoActionMessage ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_CAN_DO_MESSAGE , ( ! ( canDoActionMessages.isEmpty ( ) ) ) ) ; canDoActionMessages.clear ( ) ; }
Source:
public java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.errors.VdcFault fault ) { return ( actionType != ( org.ovirt.engine.core.common.action.VdcActionType.LoginUser ) ) && ( ! ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.VmLogon ) ) && ( ( fault.getError ( ) ) == ( org.ovirt.engine.core.common.errors.VdcBllErrors.nonresp ) ) ) ) ; }

Target:
public java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.errors.EngineFault fault ) { return ! ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.VmLogon ) ) && ( ( fault.getError ( ) ) == ( org.ovirt.engine.core.common.errors.EngineError.nonresp ) ) ) ; }
Source:
public void setPassword ( java.lang.String password ) { SetData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , password ) ; }

Target:
public void setPassword ( java.lang.String password ) { setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , password ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm ) ; org.ovirt.engine.core.bll.VmHandler.lockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
private static void initCommonSeverities ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.severities.put ( AuditLogType.ENTITY_RENAMED , AuditLogSeverity.NORMAL ) ; }

Target:
private static void initCommonSeverities ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.severities.put ( AuditLogType.ENTITY_RENAMED , AuditLogSeverity.NORMAL ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.severities.put ( AuditLogType.USER_ADD_EXTERNAL_JOB , AuditLogSeverity.NORMAL ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.severities.put ( AuditLogType.USER_ADD_EXTERNAL_JOB_FAILED , AuditLogSeverity.ERROR ) ; }
Source:
public void testGetFileFromString_NullPath ( ) { java.io.File file = new java.io.File ( "/etc/hosts" ) ; java.io.File testFile = org.ovirt.engine.core.utils.servlet.ServletUtils.makeFileFromSanePath ( null , file ) ; org.junit.Assert.assertEquals ( "new file should be same as old file" , file , testFile ) ; }

Target:
public void testGetFileFromString_NullPath ( ) { java.io.File file = new java.io.File ( canReadFileName ) ; java.io.File testFile = org.ovirt.engine.core.utils.servlet.ServletUtils.makeFileFromSanePath ( null , file ) ; org.junit.Assert.assertEquals ( "new file should be same as old file" , file , testFile ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( EngineMessage.VAR__ACTION__THAW ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addValidationMessage ( EngineMessage.VAR__ACTION__THAW ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM ) ; }
Source:
public org.ovirt.engine.core.bll.CommandMultiAsyncTasks GetCommandMultiAsyncTasks ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = null ; synchronized ( org.ovirt.engine.core.bll.tasks.CommandAsyncTask._lockObject ) { entityInfo = org.ovirt.engine.core.bll.tasks.CommandAsyncTask._multiTasksByCommandIds.get ( getCommandId ( ) ) ; } return entityInfo ; }

Target:
public org.ovirt.engine.core.bll.CommandMultiAsyncTasks getCommandMultiAsyncTasks ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = null ; synchronized ( org.ovirt.engine.core.bll.tasks.CommandAsyncTask._lockObject ) { entityInfo = org.ovirt.engine.core.bll.tasks.CommandAsyncTask._multiTasksByCommandIds.get ( getCommandId ( ) ) ; } return entityInfo ; }
Source:
private void runQueryByIdParameter ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.AsIsAsyncConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( queryType , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , aQuery ) ; }

Target:
public void getVmNextRunConfiguration ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.VM > aQuery , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmNextRunConfiguration , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
private boolean isVmNeedsToBeAutoStarted ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = getVmDynamicDao ( ) . get ( vmId ) ; return ( ( vmDynamic.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) && ( ( vmDynamic.getExitStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmExitStatus.Error ) ) ; }

Target:
private void logFailureToRestartVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; event.setVmId ( vmId ) ; auditLogDirector.log ( event , getExceededMaxNumOfRestartsAuditLogType ( ) ) ; }
Source:
public static void executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.executeAsyncCommand ( actionType , parameters ) ; }

Target:
public static java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.executeAsyncCommand ( actionType , parameters ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileExists ( ) { return ( getOldVnicProfile ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileExists ( ) { return ( getOldVnicProfile ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void whenAllHostsAreOverriddenTheyAreNotMismatched ( org.ovirt.engine.core.bll.IsDisplayAddressConsistentInClusterQueryTest.OverriddenConsoleAddress overriddenAddress ) { org.junit.Assert.assertThat ( getQuery ( ) . isDisplayAddressPartiallyOverridden ( overriddenAddress.getAllVds ( ) ) , org.hamcrest.core.Is.is ( false ) ) ; }

Target:
public void whenAllHostsAreDefaultTheyAreNotMismatched ( org.ovirt.engine.core.bll.IsDisplayAddressConsistentInClusterQueryTest.ConsoleTestAddresses c ) { org.hamcrest.MatcherAssert.assertThat ( getQuery ( ) . isDisplayAddressPartiallyOverridden ( new org.ovirt.engine.core.bll.IsDisplayAddressConsistentInClusterQueryTest.DefaultConsoleAddress ( c.getNumConsoles ( ) ) . getAllVds ( ) ) , org.hamcrest.core.Is.is ( false ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VGListReturnForXmlRpc getVGList ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType , java.lang.String [ ] devicesList , boolean checkStatus ) ;
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getVmMemSizeMb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getVmMemSizeMb ( ) ) ) + " MB" ; }
Source:
public void postOnSave ( ) { super . postOnSave ( ) ; getSourceModel ( ) . PostAction ( ) ; }

Target:
public void postOnSave ( ) { super . postOnSave ( ) ; getSourceModel ( ) . postAction ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.CleanConnection ( storageListModel.connection , storageListModel.hostId ) ; storageListModel.OnFinish ( storageListModel.context , false , storageListModel.storageModel ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.cleanConnection ( storageListModel.connection , storageListModel.hostId ) ; storageListModel.OnFinish ( storageListModel.context , false , storageListModel.storageModel ) ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { graphicsAndDisplays = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public void validateFailsWithDuplicateBricks ( ) { initTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 , true ) , 2 , 0 , false ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithDuplicateBricks ( ) { initTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 , true ) , 2 , 0 , false ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public int compare ( java.lang.Integer o1 , java.lang.Integer o2 ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o1 ) . compareTo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o2 ) ) ; }

Target:
public int compare ( java.lang.Integer o1 , java.lang.Integer o2 ) { return osNames.get ( o1 ) . compareTo ( osNames.get ( o2 ) ) ; }
Source:
private static int findEndOfSequence ( java.lang.String seq , int startIndex , boolean digitSequence ) { return digitSequence ? org.ovirt.engine.core.common.utils.LexoNumericComparator.findEndOfDigitSequence ( seq , startIndex ) : org.ovirt.engine.core.common.utils.LexoNumericComparator.findEndOfNonDigitSequence ( seq , startIndex ) ; }

Target:
private static int findEndOfSequence ( java.lang.String seq , int startIndex , boolean digitSequence ) { return digitSequence ? org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.findEndOfDigitSequence ( seq , startIndex ) : org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.findEndOfNonDigitSequence ( seq , startIndex ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml vmCountWithMigrations ( java.lang.String title , com.google.gwt.safehtml.shared.SafeHtml incomingMigrations , java.lang.String vmCountStr , com.google.gwt.safehtml.shared.SafeHtml outgoingMigrations ) ;
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addPowerManagementListener ( model ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; }
Source:
protected void syncSearch ( ) { if ( ( getParentEntity ( ) ) != null ) { super . syncSearch ( queryType , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getParentEntity ( ) . getId ( ) ) ) ; } }

Target:
protected void syncSearch ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getEntity ( ) ) != null ) { super . syncSearch ( queryType , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getEntity ( ) . getId ( ) ) ) ; } }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.setGlusterVolumeId ( null ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnection ( int idx ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( org.ovirt.engine.core.bll.GetLunsByVgIdTest.ADDRESS , org.ovirt.engine.core.bll.GetLunsByVgIdTest.GUIDS [ idx ] . toString ( ) , org.ovirt.engine.core.bll.GetLunsByVgIdTest.IQNS [ idx ] , null , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , null , org.ovirt.engine.core.bll.GetLunsByVgIdTest.PORT , null ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnection ( int idx ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.ADDRESS , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.GUIDS [ idx ] . toString ( ) , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.IQNS [ idx ] , null , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , null , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.PORT , null ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryVdcVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" } , new java.lang.Object [ ] { getSessionId ( ) } ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductRPMVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" , "ConfigValue" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID , org.ovirt.engine.core.common.queries.ConfigurationValues.ProductRPMVersion } ) ; }
Source:
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 ) { user.logout ( ) ; }

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 ) { user.sessionExpired ( ) ; }
Source:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failCanDoAction ( VdcBllMessages.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }

Target:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failCanDoAction ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }
Source:
public void cancel ( ) { setWindow ( null ) ; setConfirmWindow ( null ) ; }

Target:
public void remove ( ) { if ( ( getConfirmWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = new org.ovirt.engine.ui.uicommonweb.models.datacenters.RemoveNetworksModel ( this ) ; setConfirmWindow ( model ) ; }
Source:
public void externalNetworkNoVlanWithLabel ( ) { org.mockito.Mockito.when ( network.getLabel ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertThat ( validator.externalNetworkVlanValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void externalNetworkNoVlanWithLabel ( ) { org.mockito.Mockito.when ( network.getLabel ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkVlanValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private boolean labelRemoved ( ) { return ( ( getOldNetwork ( ) . getLabel ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . getLabel ( ) ) == null ) ; }

Target:
private boolean labelRemoved ( ) { return ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( getOldNetwork ( ) ) ) && ( ! ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) ) ) ) ; }
Source:
public void setUnmanagedDeviceList ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list ) { this . vmUnManagedDeviceList = list ; }

Target:
public void setUnmanagedDeviceList ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list ) { this . unmanagedDeviceList = list ; }
Source:
public void validateVmMemoryCantStartOnVdsHighPendingSwapSmall ( ) { vds.setSwapFree ( 60L ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCantStartOnVdsHighPendingSwapSmall ( ) { vds.setSwapFree ( 60L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
public void updateAll ( java.lang.String procedureName , java.util.Collection < T > entities ) { if ( procedureName == null ) { procedureName = org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) ; } for ( T entity : entities ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.update ( entity , procedureName ) ; } }

Target:
public void updateAll ( java.lang.String procedureName , java.util.Collection < T > entities ) { if ( procedureName == null ) { procedureName = org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForUpdate ( ) ; } for ( T entity : entities ) { org.ovirt.engine.core.dao.MassOperationsGenericDao.update ( entity , procedureName ) ; } }
Source:
protected org.ovirt.engine.api.model.Disk populate ( org.ovirt.engine.api.model.Disk model , org.ovirt.engine.api.model.Disk entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.Disk deprecatedPopulate ( org.ovirt.engine.api.model.Disk model , org.ovirt.engine.api.model.Disk entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }
Source:
public javax.ws.rs.core.Response doExport ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "storageDomain.id|name" ) ; return doAction ( VdcActionType.ExportRepoImage , new org.ovirt.engine.core.common.action.ExportRepoImageParameters ( guid , getStorageDomainId ( action ) ) , action ) ; }

Target:
public javax.ws.rs.core.Response export ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "storageDomain.id|name" ) ; return doAction ( VdcActionType.ExportRepoImage , new org.ovirt.engine.core.common.action.ExportRepoImageParameters ( guid , getStorageDomainId ( action ) ) , action ) ; }
Source:
public void testInterfaceExistsNotOnVm ( ) { org.junit.Assert.assertThat ( validator.vmInterfaceHavingIdExistsOnVmHavingId ( usedId , unUsedId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_INVALID_NIC_FILTER_PARAMETER_INTERFACE_VM , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.validator.VmNicFilterParameterValidatorTest.VAR_INTERFACE_ID , usedId ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.validator.VmNicFilterParameterValidatorTest.VAR_VM_ID , unUsedId ) ) ) ; }

Target:
public void testInterfaceExistsNotOnVm ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.vmInterfaceHavingIdExistsOnVmHavingId ( usedId , unUsedId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_INVALID_NIC_FILTER_PARAMETER_INTERFACE_VM , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.validator.VmNicFilterParameterValidatorTest.VAR_INTERFACE_ID , usedId ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.validator.VmNicFilterParameterValidatorTest.VAR_VM_ID , unUsedId ) ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.refreshReloadableConfigsInVdcOptionCache ( ) ; org.ovirt.engine.core.bll.ReloadConfigurationsCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.config.Config.refresh ( ) ; org.ovirt.engine.core.bll.ReloadConfigurationsCommand.setSucceeded ( true ) ; }
Source:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , long totalImagesSize ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( totalImagesSize ) ) ; }

Target:
protected boolean doesStorageDomainHaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = createStorageDomainValidator ( storageDomain ) ; return validate ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vmModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; vmModel.set_MinMemSize ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; }

Target:
public void setBootMenuEnabled ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > bootMenuEnabled ) { this . bootMenuEnabled = bootMenuEnabled ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePool getOldStoragePool ( ) { if ( ( oldStoragePool ) == null ) { oldStoragePool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePoolDAO ( ) . get ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) . getId ( ) ) ; } return oldStoragePool ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool getOldStoragePool ( ) { if ( ( oldStoragePool ) == null ) { oldStoragePool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePoolDao ( ) . get ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) . getId ( ) ) ; } return oldStoragePool ; }
Source:
public java.util.Date getguest_last_logout_time ( ) { return this . mVmDynamic.getguest_last_logout_time ( ) ; }

Target:
public void setConsoleUserId ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setConsoleUserId ( value ) ; }
Source:
public void setvm_ip ( java.lang.String value ) { this . mVmDynamic.setvm_ip ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_ip" ) ) ; }

Target:
public void setVmHost ( java.lang.String value ) { this . vmDynamic.setvm_host ( value ) ; }
Source:
protected void SelectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . SelectedItemPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "storage_domain_shared_status" ) ) { UpdateActionAvailability ( ) ; } }

Target:
protected void SelectedItemsChanged ( ) { super . SelectedItemsChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void testGetAllInterfacesForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; assertNotNull ( result ) ; assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllInterfacesForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationCommandTarget getTarget ( ) { return new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationCommandTarget ( ) { @ java.lang.Override protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { } } ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationCommandTarget getTarget ( ) { return new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationCommandTarget ( ) { @ java.lang.Override protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.DataFromHostSetupNetworksModel dataFromHostSetupNetworksModel , java.lang.Object ... params ) { } } ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; SyncSearch ( ) ; }

Target:
private void resetInternal ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModel root ) { root.setSelection ( false ) ; for ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModel item : root.getChildren ( ) ) { resetInternal ( item ) ; } }
Source:
public void runningSucceded ( ) { try { org.ovirt.engine.core.bll.MigrateVmCommand.getVmDynamicDao ( ) . clearMigratingToVds ( org.ovirt.engine.core.bll.MigrateVmCommand.getVmId ( ) ) ; updateVmAfterMigrationToDifferentCluster ( ) ; } finally { super . runningSucceded ( ) ; } }

Target:
public void runningSucceded ( ) { try { getDowntime ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.getVmDynamicDao ( ) . clearMigratingToVds ( org.ovirt.engine.core.bll.MigrateVmCommand.getVmId ( ) ) ; updateVmAfterMigrationToDifferentCluster ( ) ; } finally { super . runningSucceded ( ) ; } }