auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getVdsWhiteList ( ) { org.ovirt.engine.core.compat.Guid predefinedDestinationVdsId = getPredefinedVdsIdToRunOn ( ) ; return predefinedDestinationVdsId != null ? java.util.Arrays.asList ( predefinedDestinationVdsId ) : super . getVdsWhiteList ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getVdsWhiteList ( ) { if ( ( getPredefinedVdsIdListToRunOn ( ) . size ( ) ) > 0 ) { return getPredefinedVdsIdListToRunOn ( ) ; } return super . getVdsWhiteList ( ) ; }
Source:
public void succeededToRunVm ( org.ovirt.engine.core.compat.Guid vmId ) { mUnrespondedAttempts.set ( 0 ) ; org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . succededToRunVm ( vmId , getVdsId ( ) ) ; }

Target:
public void succeededToRunVm ( org.ovirt.engine.core.compat.Guid vmId ) { mUnrespondedAttempts.set ( 0 ) ; resourceManager.succededToRunVm ( vmId , getVdsId ( ) ) ; }
Source:
public void testCanDoActionVmDown ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Down ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void testValidateVmDown ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Down ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
void setread_rate_kb_per_sec ( int value ) ;

Target:
void setReadRateKbPerSec ( int readRate ) ;
Source:
protected org.ovirt.engine.core.bll.utils.ClusterUtils getClusterUtils ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getNfsVolumes ( org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.getGlusterVolumeDao ( ) . getVolumesByOption ( clusterId , GlusterStatus.UP , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_KEY_NFS_DISABLE , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_VALUE_OFF ) ; }
Source:
public void macAddressEmptyForUpdate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( "" , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }

Target:
public void macAddressFormatValidForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , false ) ; }
Source:
public static org.ovirt.engine.core.utils.SerializationFactory getFactory ( ) { return org.ovirt.engine.core.utils.SerializationFactory.factory ; }

Target:
public static org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer getSerializer ( ) { return org.ovirt.engine.core.utils.SerializationFactory.serializer ; }
Source:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum quotaEnforcementType ) { this . mVmStatic.setQuotaEnforcementType ( quotaEnforcementType ) ; }

Target:
public java.lang.String getDescription ( ) { return this . getVmDescription ( ) ; }
Source:
public void dispose ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.info ( "vdsManager::disposing" ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( onTimerJobId ) ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.shutDownConnection ( ( ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsServerWrapper ) ( vdsProxy ) ) . getHttpClient ( ) ) ; }

Target:
public void dispose ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.info ( "vdsManager::disposing" ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( onTimerJobId ) ; vdsProxy.close ( ) ; }
Source:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { java.lang.String fingerprint = org.ovirt.engine.core.utils.crypt.OpenSSHUtils.getKeyFingerprintString ( getHostKey ( ) ) ; if ( fingerprint == null ) { throw new java.io.IOException ( "Unable to parse host key" ) ; } return fingerprint ; }

Target:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { return ( ( org.ovirt.engine.core.utils.ssh.EngineSSHClient ) ( _client ) ) . getHostFingerprint ( ) ; }
Source:
private void updateVmDevices ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] vms ) { for ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct vm : vms ) { processVmDevices ( vm ) ; } }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getNewVmDevices ( ) { return java.util.Collections.unmodifiableList ( newVmDevices ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity glusterVolumeEntity = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ; setItems ( glusterVolumeEntity.getBricks ( ) ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity glusterVolumeEntity = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ; setItems ( glusterVolumeEntity.getBricks ( ) ) ; }
Source:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( ! ( org.ovirt.engine.core.bll.VdsSelector.isVMSwapValueLegal ( vds ) ) ) { sb.append ( "swap value is illegal" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_SWAP ; } return null ; }

Target:
public org.ovirt.engine.core.common.errors.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( ! ( org.ovirt.engine.core.bll.VdsSelector.isVMSwapValueLegal ( vds ) ) ) { sb.append ( "swap value is illegal" ) ; return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_SWAP ; } return null ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;
Source:
public static void cancelAllTimers ( ) { for ( java.lang.String name : org.ovirt.engine.ui.common.uicommon.TimerFactory.timerList.keySet ( ) ) { org.ovirt.engine.ui.common.uicommon.TimerFactory.logger.info ( ( ( "Cancelling the timer '" + name ) + "'" ) ) ; org.ovirt.engine.ui.common.uicommon.TimerFactory.timerList.get ( name ) . cancel ( ) ; } }

Target:
public static void cancelAllTimers ( ) { for ( java.lang.String name : org.ovirt.engine.ui.common.uicommon.TimerFactory.timerList.keySet ( ) ) { org.ovirt.engine.ui.common.uicommon.TimerFactory.logger.fine ( ( ( "Cancelling the timer '" + name ) + "'" ) ) ; org.ovirt.engine.ui.common.uicommon.TimerFactory.timerList.get ( name ) . cancel ( ) ; } }
Source:
public void validateEnums ( org.ovirt.engine.api.model.CPU cpu ) { if ( cpu != null ) { if ( cpu.isSetArchitecture ( ) ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.Architecture.class , cpu.getArchitecture ( ) , true ) ; } } }

Target:
public void validateEnums ( org.ovirt.engine.api.model.Cpu cpu ) { if ( cpu != null ) { if ( cpu.isSetArchitecture ( ) ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.Architecture.class , cpu.getArchitecture ( ) , true ) ; } } }
Source:
public void addMenuItem ( org.ovirt.engine.ui.common.widget.action.ActionButton actionButton ) { kebabMenu.add ( actionButton ) ; }

Target:
public void addMenuItem ( org.ovirt.engine.ui.common.widget.action.ActionButton actionButton , int index ) { if ( index > ( kebabMenu.getWidgetCount ( ) ) ) { kebabMenu.add ( actionButton ) ; } else { kebabMenu.insert ( actionButton.asWidget ( ) , index ) ; } }
Source:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; addVmPermission ( ) ; addVmInit ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; addVmPermission ( ) ; addVmInit ( ) ; addVmRngDevice ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
private boolean isCopyCollapseDisabledWithSnapshots ( ) { return ( ( getParameters ( ) . getVm ( ) . getSnapshots ( ) . size ( ) ) > 1 ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ; }

Target:
private boolean isCopyCollapseDisabledWithSnapshots ( ) { return ( ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getVm ( ) . getSnapshots ( ) . size ( ) ) > 1 ) && ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getCopyCollapse ( ) ) ) ; }
Source:
public void setParentOverflow ( ) { if ( ( contentPanel.getParent ( ) ) != null ) { contentPanel.getParent ( ) . getElement ( ) . getStyle ( ) . setOverflowX ( Overflow.AUTO ) ; } }

Target:
public void collapseAll ( ) { hostInterfaceListView.collapseAll ( ) ; }
Source:
private void removeVM ( ) { removeVmDisks ( ) ; org.ovirt.engine.core.itests.BasicTestSetup.DB_FACADE.getVmDAO ( ) . remove ( vm.getId ( ) ) ; java.lang.System.out.println ( ( ( "-- removed VM " + ( vm.getvm_name ( ) ) ) + " and its images -- " ) ) ; }

Target:
private void removeVM ( ) { removeVmDisks ( ) ; org.ovirt.engine.core.itests.BasicTestSetup.DB_FACADE.getVmDao ( ) . remove ( vm.getId ( ) ) ; java.lang.System.out.println ( ( ( "-- removed VM " + ( vm.getvm_name ( ) ) ) + " and its images -- " ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , getSlaves ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , getSlaves ( ) , getActiveSlave ( ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( getAffinityGroup ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_INVALID_AFFINITY_GROUP_ID ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( getAffinityGroup ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_INVALID_AFFINITY_GROUP_ID ) ; } return true ; }
Source:
private void updatePredefinedIcons ( ) { org.ovirt.engine.core.bll.IconLoader.load ( ) ; }

Target:
private void updatePredefinedIcons ( ) { serviceLoader.load ( org.ovirt.engine.core.bll.IconLoader.class ) ; }
Source:
private void dataCenter_SelectedItemChanged ( ) { updateItemsAvailability ( ) ; updateDataCenterAlert ( ) ; }

Target:
private void dataCenter_SelectedItemChanged ( ) { updateItemsAvailability ( ) ; behavior.updateDataCenterAlert ( ) ; }
Source:
protected void addStoragePoolToDb ( ) { org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getStoragePool ( ) . setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getStoragePool ( ) . setStatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getStoragePoolDao ( ) . save ( org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getStoragePool ( ) ) ; }

Target:
protected void addStoragePoolToDb ( ) { org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getStoragePool ( ) . setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getStoragePool ( ) . setStatus ( StoragePoolStatus.Uninitialized ) ; storagePoolDao.save ( org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getStoragePool ( ) ) ; }
Source:
public boolean isVmConnectReady ( ) { if ( getForceVmStatusUp ( ) ) { return ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ; } return isVmUp ( ) ; }

Target:
public boolean canConnect ( ) { if ( ! ( canBeSelected ( ) ) ) { return false ; } return getForceVmStatusUp ( ) ? ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) : isVmRunning ( ) ; }
Source:
public java.util.List < org.ovirt.api.metamodel.concepts.Constraint > getConstraints ( ) { return constraints ; }

Target:
public java.util.List < org.ovirt.api.metamodel.concepts.Constraint > getConstraints ( ) { return new java.util.concurrent.CopyOnWriteArrayList ( constraints ) ; }
Source:
public void setRdpPluginImplEnabled ( boolean enabled , java.lang.String reason ) { rdpPluginImplRadioButton.setEnabled ( enabled ) ; if ( ! enabled ) { rdpPluginImplRadioButton.setTitle ( reason ) ; } }

Target:
public void setSpiceHtml5ImplEnabled ( boolean enabled , java.lang.String reason ) { spiceHtml5ImplRadioButton.setEnabled ( enabled ) ; if ( ! enabled ) { spiceHtml5ImplRadioButtonTooltip.setText ( reason ) ; } }
Source:
protected boolean canPerformNicHotPlug ( ) { return osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ; }

Target:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }
Source:
public void setLuns ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.LunModel > value ) { if ( ( luns ) != value ) { luns = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Luns" ) ) ; getLunsList ( ) . setItems ( luns ) ; } }

Target:
public void setLuns ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.LunModel > value ) { if ( ( luns ) != value ) { luns = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Luns" ) ) ; getLunsList ( ) . setItems ( luns ) ; } }
Source:
public void testCanDoActionStoragePoolFile ( ) { storagePool.setStorageType ( StorageType.NFS ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_ALIGNMENT_SCAN_STORAGE_TYPE ) ; }

Target:
public void testCanDoActionStorageDomainIsFileStorage ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_ALIGNMENT_SCAN_STORAGE_TYPE ) ; }
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { decreasePendingVms ( getVdsDestinationId ( ) ) ; org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
public void testEventLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Event event = new org.ovirt.engine.api.model.Event ( ) ; event.setId ( org.ovirt.engine.api.common.util.LinkHelperTest.EVENT_ID ) ; org.ovirt.engine.api.common.util.LinkHelper.addLinks ( setUpUriExpectations ( ) , event ) ; assertEquals ( org.ovirt.engine.api.common.util.LinkHelperTest.EVENT_HREF , event.getHref ( ) ) ; }

Target:
public void testEventLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Event event = new org.ovirt.engine.api.model.Event ( ) ; event.setId ( org.ovirt.engine.api.common.util.LinkHelperTest.EVENT_ID ) ; org.ovirt.engine.api.utils.LinkHelper.addLinks ( setUpUriExpectations ( ) , event ) ; assertEquals ( org.ovirt.engine.api.common.util.LinkHelperTest.EVENT_HREF , event.getHref ( ) ) ; }
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.VM > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( 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:
protected void logAutheticationFailure ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.setUserName ( org.ovirt.engine.core.bll.aaa.LoginBaseCommand.getParameters ( ) . getLoginName ( ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.USER_VDC_LOGIN_FAILED ) ; }

Target:
protected void logAutheticationFailure ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.setUserName ( org.ovirt.engine.core.bll.aaa.LoginBaseCommand.getUserName ( ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.USER_VDC_LOGIN_FAILED ) ; }
Source:
private void setType ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { privateType = value ; }

Target:
private void setType ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { privateType = value ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePool mockStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setstatus ( StoragePoolStatus.Up ) ; return storagePool ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool mockStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setStatus ( StoragePoolStatus.Up ) ; return storagePool ; }
Source:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( javax.ws.rs.core.UriInfo uriInfo , R model ) { return org.ovirt.engine.api.utils.LinkHelper.addLinks ( uriInfo , model , null ) ; }

Target:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( javax.ws.rs.core.UriInfo uriInfo , R model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( uriInfo , model , null ) ; }
Source:
protected void configure ( ) { bindModels ( ) ; bindIntegration ( ) ; }

Target:
protected void configure ( ) { bindModels ( ) ; bindIntegration ( ) ; install ( new org.ovirt.engine.ui.userportal.gin.UserPortalModule ( ) ) ; }
Source:
public void canDoActionFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , true ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DUPLICATE_BRICKS ) ; }

Target:
public void validateFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , true ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DUPLICATE_BRICKS ) ; }
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 ) { optimizationForDesktopFormatter ( object ) ; }

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 ) { resiliencePolicyTab.setVisible ( object.getisResiliencePolicyTabAvailable ( ) ) ; applyModeCustomizations ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( source ) ) : null ; }

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.Role > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ( ) ; }
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; }
Source:
org.ovirt.engine.ui.webadmin.widget.host.BondPanel createBondPanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.BondPanel panel = new org.ovirt.engine.ui.webadmin.widget.host.BondPanel ( lineModel ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; return panel ; }

Target:
org.ovirt.engine.ui.webadmin.widget.host.BondPanel createBondPanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.BondPanel panel = new org.ovirt.engine.ui.webadmin.widget.host.BondPanel ( lineModel , isSelectionAvailable ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; return panel ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_server_connections getConnection ( java.lang.String cnxId ) { return org.ovirt.engine.core.bll.GetLunsByVgIdQuery.getDbFacade ( ) . getStorageServerConnectionDAO ( ) . get ( cnxId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage_server_connections getConnection ( java.lang.String cnxId ) { return org.ovirt.engine.core.bll.GetLunsByVgIdQuery.getDbFacade ( ) . getStorageServerConnectionDao ( ) . get ( cnxId ) ; }
Source:
private void setXmlOvfData ( ) throws java.io.IOException { xmlOvfData = new java.lang.String ( java.nio.file.Files.readAllBytes ( java.nio.file.Paths.get ( org.ovirt.engine.core.bll.ImportVMFromConfigurationCommandTest.VM_OVF_XML_DATA ) ) ) ; }

Target:
private void setXmlOvfData ( ) throws java.io.IOException { xmlOvfData = new java.lang.String ( java.nio.file.Files.readAllBytes ( java.nio.file.Paths.get ( org.ovirt.engine.core.bll.ImportVMFromConfigurationCommandTest.VM_OVF_XML_DATA ) ) , java.nio.charset.Charset.forName ( "UTF-8" ) ) ; }
Source:
public void setElementId ( java.lang.String elementId ) { this . elementId = elementId ; }

Target:
public void setElementId ( java.lang.String elementId ) { this . elementId = elementId ; org.ovirt.engine.ui.common.widget.table.ElementIdCellTable.popuplateSwappedList ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runActionImpl ( actionType , parameters , false , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; updateConsoleAddressPartiallyOverridden ( getEntity ( ) ) ; updateProperties ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; updateConsoleAddressPartiallyOverridden ( getEntity ( ) ) ; updateProperties ( ) ; } }
Source:
public static boolean hasVmGraphicsDeviceOfType ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.GRAPHICS , type.name ( ) . toLowerCase ( ) ) . isEmpty ( ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getGraphicsDevices ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.GRAPHICS , type.name ( ) . toLowerCase ( ) ) ; }
Source:
private void setUpGetEntityExpectations ( boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetErratumByIdForEngine , org.ovirt.engine.core.common.queries.NameQueryParameters.class , new java.lang.String [ ] { "Name" } , new java.lang.Object [ ] { NAMES [ 1 ] } , ( notFound ? null : getEntity ( 0 ) ) ) ; }

Target:
private void setUpGetEntityExpectations ( boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetErratumByIdForEngine , org.ovirt.engine.core.common.queries.NameQueryParameters.class , new java.lang.String [ ] { "Name" } , new java.lang.Object [ ] { NAMES [ 1 ] } , ( notFound ? null : getEntity ( 0 ) ) ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) . toString ( ) , LockMessagesMatchUtil.DISK ) ; }

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.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.DISK , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void UpdateTag ( org.ovirt.engine.core.common.businessentities.tags from ) { setdescription ( from.getdescription ( ) ) ; settag_name ( from.gettag_name ( ) ) ; }

Target:
public void updateTag ( org.ovirt.engine.core.common.businessentities.tags from ) { setdescription ( from.getdescription ( ) ) ; settag_name ( from.gettag_name ( ) ) ; }
Source:
private void releaseLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) . releaseLock ( lock ) ; }

Target:
private boolean acquireLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { return lockManager.acquireLock ( lock ) . getFirst ( ) ; }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.bll.AsyncTaskManager.logAndFailTaskWithoutVdsmId ( task ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { boolean isPartiallySubmittedCommand = isPartiallySubmittedCommand ( tasks ) ; for ( org.ovirt.engine.core.common.businessentities.AsyncTasks task : tasks ) { handleTaskOfCommandWithEmptyVdsmId ( isPartiallySubmittedCommand , task ) ; } return null ; }
Source:
public void setVMConsole ( boolean doVMConsole ) { if ( doVMConsole ) { addCustomizationCondition ( "VMCONSOLE_ENABLE" ) ; } }

Target:
public void setVMConsole ( boolean doVMConsole ) { if ( doVMConsole ) { addCustomizationCondition ( org.ovirt.engine.core.bll.hostdeploy.VdsDeploy.COND_VMCONSOLE_SETUP ) ; } }
Source:
protected boolean checkStorageDomainInDb ( ) { return ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomainStaticDAO ( ) . get ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getId ( ) ) ) != null ; }

Target:
protected boolean isCinderStorageDomain ( ) { return org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getStorageType ( ) . isCinderDomain ( ) ; }
Source:
public void setup ( ) { counter = new java.util.concurrent.atomic.AtomicInteger ( ) ; }

Target:
public void setup ( ) { counter = new java.util.concurrent.atomic.AtomicInteger ( ) ; threadPool = java.util.concurrent.Executors.newFixedThreadPool ( org.ovirt.engine.core.utils.thread.LatchedRunnableWrapperTest.THREADS_NUMBER ) ; runnableCreator = new org.ovirt.engine.core.utils.thread.LatchedRunnableWrapperTest.RunnableCreator ( ) { @ java.lang.Override public java.lang.Runnable createRunnable ( ) { return new org.ovirt.engine.core.utils.thread.LatchedRunnableWrapperTest.DummyRunnable ( ) ; } } ; }
Source:
public java.util.List < T > getAll ( ) { return org.ovirt.engine.core.dao.DefaultReadDaoDbFacade.getCallsHandler ( ) . executeReadList ( getProcedureNameForGetAll ( ) , createEntityRowMapper ( ) , org.ovirt.engine.core.dao.DefaultReadDaoDbFacade.getCustomMapSqlParameterSource ( ) ) ; }

Target:
public java.util.List < T > getAll ( ) { return org.ovirt.engine.core.dao.DefaultReadDao.getCallsHandler ( ) . executeReadList ( getProcedureNameForGetAll ( ) , createEntityRowMapper ( ) , org.ovirt.engine.core.dao.DefaultReadDao.getCustomMapSqlParameterSource ( ) ) ; }
Source:
protected void updateHostPinning ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { getModel ( ) . getMigrationMode ( ) . setSelectedItem ( migrationSupport ) ; }

Target:
protected boolean basedOnCustomInstanceType ( ) { org.ovirt.engine.core.common.businessentities.InstanceType selectedInstanceType = getModel ( ) . getInstanceTypes ( ) . getSelectedItem ( ) ; return ( selectedInstanceType == null ) || ( selectedInstanceType instanceof org.ovirt.engine.ui.uicommonweb.models.vms.CustomInstanceType ) ; }
Source:
public void testParseStrayColons ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; assertNotNull ( ret ) ; assertEquals ( 0 , ret.size ( ) ) ; }

Target:
public void testParseStrayColons ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; org.junit.Assert.assertNotNull ( ret ) ; org.junit.Assert.assertEquals ( 0 , ret.size ( ) ) ; }
Source:
public void testGetAllForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateServiceList ( ) ; updateHostList ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateServiceList ( ) ; updateHostList ( ) ; } }
Source:
public void testFreeHostDevicesUsedByVmId ( ) { dao.freeHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID_2 ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( FixturesTool.VDS_RHEL6_NFS_SPM , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME_2 ) ; org.junit.Assert.assertNull ( hostDevice.getVmId ( ) ) ; }

Target:
public void testFreeHostDevicesUsedByVmId ( ) { dao.freeHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID_2 ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( FixturesTool.VDS_RHEL6_NFS_SPM , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME_2 ) ; org.junit.jupiter.api.Assertions.assertNull ( hostDevice.getVmId ( ) ) ; }
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.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.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 ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.MenuBar createMenu ( ) { org.ovirt.engine.ui.common.widget.MenuBar menuBar = new org.ovirt.engine.ui.common.widget.MenuBar ( true ) ; menuBar.addItem ( "Action Items" , ( ( com.google.gwt.user.client.Command ) ( null ) ) ) ; menuBar.addSeparator ( ) ; return menuBar ; }

Target:
protected org.ovirt.engine.ui.common.widget.MenuBar createMenu ( ) { org.ovirt.engine.ui.common.widget.MenuBar menuBar = new org.ovirt.engine.ui.common.widget.MenuBar ( true ) ; menuBar.addItem ( org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitPanel.constants.actionItems ( ) , ( ( com.google.gwt.user.client.Command ) ( null ) ) ) ; menuBar.addSeparator ( ) ; return menuBar ; }
Source:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterServicesManage ( java.lang.String [ ] serviceNames , java.lang.String action , boolean failOnError ) ;
Source:
protected void onAction ( ) { }

Target:
protected void onAction ( ) { item.edit ( ) ; }
Source:
protected void ExecuteIrsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getIrsProxy ( ) . setStoragePoolDescription ( org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getParameters ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getParameters ( ) . getDescription ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteIrsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getIrsProxy ( ) . setStoragePoolDescription ( org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getParameters ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getParameters ( ) . getDescription ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc hotPlugNic ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct info ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesList ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceNames ) ;
Source:
private static void assertIncorrectGetResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
private static void assertIncorrectGetResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private boolean isDisksContainBootableDisk ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks ) { for ( org.ovirt.engine.core.common.businessentities.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.isBoot ( ) ) { return true ; } } return false ; }
Source:
public void portMirroringChangeNotSupported ( ) { mockVnicProfilePortMirroringChange ( false ) ; mockVmsUsingVnicProfile ( java.util.Collections.singletonList ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) ; org.junit.Assert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.failsWithVnicProfileInUse ( ) ) ; }

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 void updateUsbFilter ( ) { fetchFile ( "/ovirt-engine-files/usbfilter.txt" , usbFilterFileFetchedEvent ) ; }

Target:
public void updateUsbFilter ( ) { fetchFile ( ( ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getInstance ( ) . getPath ( ) ) + "services/files/usbfilter.txt" ) , usbFilterFileFetchedEvent ) ; }
Source:
public static java.util.List < java.lang.Integer > getOsIds ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osIds ; }

Target:
public static int getOptimizeSchedulerForSpeedPendingRequests ( ) { return ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.SpeedOptimizationSchedulingThreshold , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ) ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.NIC device ) { validateEnums ( org.ovirt.engine.api.model.NIC.class , device ) ; return super . add ( device ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Nic device ) { validateEnums ( org.ovirt.engine.api.model.Nic.class , device ) ; return super . add ( device ) ; }
Source:
public void setNumaNodeVdsList ( java.util.List < org.ovirt.engine.core.common.businessentities.NumaNodeVmVds > numaNodeVdsList ) { this . numaNodeVdsList = numaNodeVdsList ; }

Target:
public void setVdsNumaNodeList ( java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , java.lang.Integer > > > vdsNumaNodeList ) { this . vdsNumaNodeList = vdsNumaNodeList ; }
Source:
private void attachVmDisksToStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.common.businessentities.storage.DiskImage ... vmDisks ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : vmDisks ) { diskImage.setStorageIds ( new java.util.ArrayList ( java.util.Arrays.asList ( storageDomain.getId ( ) ) ) ) ; } }

Target:
private void attachVmDisksToStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.common.businessentities.storage.DiskImage ... vmDisks ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : vmDisks ) { diskImage.setStorageIds ( new java.util.ArrayList ( java.util.Collections.singletonList ( storageDomain.getId ( ) ) ) ) ; } }
Source:
public void diskSnapshotsDontExist ( ) { org.junit.Assert.assertThat ( validator.diskSnapshotsNotExist ( java.util.Collections.singletonList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_NOT_EXIST ) ) ; }

Target:
public void diskSnapshotsDontExist ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.diskSnapshotsNotExist ( java.util.Collections.singletonList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_NOT_EXIST ) ) ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.EngineMessage message , java.lang.String ... variableReplacements ) { addCanDoActionMessage ( message ) ; for ( java.lang.String variableReplacement : variableReplacements ) { addCanDoActionMessage ( variableReplacement ) ; } return false ; }

Target:
protected final void addValidationMessages ( org.ovirt.engine.core.common.errors.EngineMessage ... messages ) { for ( org.ovirt.engine.core.common.errors.EngineMessage msg : messages ) { addValidationMessage ( msg ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVdsDAO ( ) ) . thenReturn ( vdsDAO ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVdsDao ( ) ) . thenReturn ( vdsDAO ) ; }
Source:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters params = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.PLUG ) ; org.ovirt.engine.api.restapi.resource.BackendNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) ; params.setVmId ( parent.parentId ) ; return doAction ( VdcActionType.ActivateDeactivateVmNic , params , action ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.NIC nic = get ( ) ; nic.setPlugged ( true ) ; update ( nic ) ; return actionSuccess ( action ) ; }
Source:
public void setAndValidateSingleProfileTest ( ) { diskImage.setDiskProfileId ( diskProfile_a.getId ( ) ) ; map.put ( diskImage , org.ovirt.engine.core.bll.profiles.DiskProfileHelperTest.STORAGE_DOMAIN_1 ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , diskProfileHelper.setAndValidateDiskProfiles ( map , dbUser ) ) ; }

Target:
public void setAndValidateSingleProfileTest ( ) { diskImage.setDiskProfileId ( diskProfile_a.getId ( ) ) ; map.put ( diskImage , org.ovirt.engine.core.bll.profiles.DiskProfileHelperTest.STORAGE_DOMAIN_1 ) ; org.junit.jupiter.api.Assertions.assertEquals ( ValidationResult.VALID , diskProfileHelper.setAndValidateDiskProfiles ( map , dbUser ) ) ; }
Source:
protected org.ovirt.engine.api.model.LogicalUnit map ( org.ovirt.engine.core.common.businessentities.storage_server_connections cnx , org.ovirt.engine.api.model.LogicalUnit template ) { return getMapper ( org.ovirt.engine.core.common.businessentities.storage_server_connections.class , org.ovirt.engine.api.model.LogicalUnit.class ) . map ( cnx , template ) ; }

Target:
protected org.ovirt.engine.api.model.LogicalUnit map ( org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx , org.ovirt.engine.api.model.LogicalUnit template ) { return getMapper ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class , org.ovirt.engine.api.model.LogicalUnit.class ) . map ( cnx , template ) ; }
Source:
private void bootProtocolChanged ( ) { updateCanSpecify ( ) ; getIpv4Address ( ) . setIsValid ( true ) ; getIpv4Subnet ( ) . setIsValid ( true ) ; getIpv4Gateway ( ) . setIsValid ( true ) ; }

Target:
public void setStaticIpv6ChangeAllowed ( boolean value ) { this . staticIpv6ChangeAllowed = value ; updateCanSpecifyIpv6 ( ) ; }
Source:
public static java.lang.Double percent2bytes ( java.lang.Integer speedValueInMegaBits , java.lang.Double rxTxValueInPrecent ) { if ( ( speedValueInMegaBits == null ) || ( rxTxValueInPrecent == null ) ) { return null ; } return org.ovirt.engine.api.restapi.util.RxTxCalculator.megaBitToByte ( ( ( speedValueInMegaBits * rxTxValueInPrecent ) / 100 ) ) ; }

Target:
public static java.lang.Double percent2bytes ( java.lang.Integer speedValueInMegaBits , java.lang.Double rxTxValueInPrecent ) { if ( ( speedValueInMegaBits == null ) || ( rxTxValueInPrecent == null ) ) { return 0.0 ; } return org.ovirt.engine.api.restapi.util.RxTxCalculator.megaBitToByte ( ( ( speedValueInMegaBits * rxTxValueInPrecent ) / 100 ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; storageDomainId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; storageDomainId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
public void testCanDoActionDuplicateTemplateName ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isVmTemlateWithSameNameExist ( "templateName" , spId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testValidateDuplicateTemplateName ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isVmTemlateWithSameNameExist ( "templateName" , spId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public void removeGlusterServerHook ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterHookByGuid" , createGlusterHookIdParams ( id ) ) ; }

Target:
public void removeGlusterServerHook ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterHookById" , createIdParameterMapper ( id ) ) ; }
Source:
protected boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.isVirtioScsiControllerAttached ( vmId ) ; }

Target:
protected boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasVirtioScsiController ( vmId ) ; }