auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface FindInterfaceNetworkNameNotEmpty ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getNetworkName ( ) ) ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceNetworkNameNotEmpty ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getNetworkName ( ) ) ) ) { return i ; } } return null ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolDAO ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.VmPoolMap ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolDao ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.VmPoolMap ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }
Source:
protected void buildVmSoundDevices ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.SOUND , true ) ; }

Target:
protected void buildVmConsoleDevice ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.CONSOLE , false , null ) ; }
Source:
public void setUp ( ) { vfScheduler = new org.ovirt.engine.core.bll.network.host.VfSchedulerImpl ( networkDao , interfaceDao , hostDeviceDao , networkDeviceHelper ) ; expectedVnicToVfMap = new java.util.HashMap < > ( ) ; }

Target:
public void setUp ( ) { vfScheduler = new org.ovirt.engine.core.bll.network.host.VfSchedulerImpl ( networkDao , interfaceDao , hostDeviceDao , vmDeviceDao , networkDeviceHelper ) ; expectedVnicToVfMap = new java.util.HashMap < > ( ) ; }
Source:
protected void createOrUpdateVmPool ( ) { org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . save ( org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ) ; }

Target:
protected void createOrUpdateVmPool ( ) { vmPoolDao.save ( org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ) ; }
Source:
public final void Rerun ( ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { rerunInternal ( ) ; } } ) ; }

Target:
public final void rerun ( ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { rerunInternal ( ) ; } } ) ; }
Source:
private void RemoveTemplateFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.RemoveNetwork ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }

Target:
private void removeTemplateFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.removeNetwork ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.aaa.DbUser findPrincipal ( java.lang.String sessionId ) { org.ovirt.engine.core.common.queries.GetValueBySessionQueryParameters parameters = new org.ovirt.engine.core.common.queries.GetValueBySessionQueryParameters ( sessionId , "user" ) ; org.ovirt.engine.core.common.queries.VdcQueryReturnValue result = backend.runPublicQuery ( VdcQueryType.GetValueBySession , parameters ) ; return result.getReturnValue ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.aaa.DbUser findPrincipal ( java.lang.String sessionId ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue result = backend.runPublicQuery ( VdcQueryType.GetDbUserBySession , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( sessionId ) ) ; return result.getReturnValue ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.Network > getNetworks ( ) { return getBackendCollection ( VdcQueryType.GetNetworksByDataCenterId , getQueryParameters ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Network lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }
Source:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return org.ovirt.engine.core.bll.ImagesHandler.cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) ) ; }

Target:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return org.ovirt.engine.core.bll.ImagesHandler.cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { org.junit.Assert.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
public static void initCache ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CacheConfigValues ( new org.ovirt.engine.ui.frontend.AsyncQuery ( loginModel , new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( target ) ; } } ) ) ; }

Target:
public static void initCache ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cacheConfigValues ( new org.ovirt.engine.ui.frontend.AsyncQuery ( loginModel , new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( target ) ; } } ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getDeviceList ( int storageType ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getExternalVmFromOva ( java.lang.String ovaPath ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookEnable ( java.lang.String glusterCommand , java.lang.String level , java.lang.String hookName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookRead ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
public void focusInput ( ) { uuidEditor.setFocus ( true ) ; }

Target:
void localize ( ) { usageTypeEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderSecretPopupView.constants.usageTypeLibvirtSecret ( ) ) ; descriptionEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderSecretPopupView.constants.descriptionLabel ( ) ) ; uuidEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderSecretPopupView.constants.idLibvirtSecret ( ) ) ; valueEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderSecretPopupView.constants.valueLibvirtSecret ( ) ) ; }
Source:
public void checkEqualNetmaskRepresentation ( ) { org.junit.Assert.assertTrue ( underTest.equalSubnet ( "255.255.255.255" , "255.255.255.255" ) ) ; }

Target:
public void checkEqualNetmaskRepresentation ( ) { org.junit.jupiter.api.Assertions.assertTrue ( underTest.equalSubnet ( "255.255.255.255" , "255.255.255.255" ) ) ; }
Source:
public void Initialize ( java.util.ArrayList parameters ) { }

Target:
public void initialize ( java.util.ArrayList parameters ) { }
Source:
public void create ( ) { checkDBConnectivity ( ) ; initialize ( ) ; }

Target:
public void create ( ) { checkDBConnectivity ( ) ; try { initialize ( ) ; } catch ( java.lang.Exception ex ) { org.ovirt.engine.core.bll.Backend.log.error ( "Error during initialization" , ex.getMessage ( ) ) ; org.ovirt.engine.core.bll.Backend.log.debug ( "" , ex ) ; throw ex ; } }
Source:
org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getNic ( ) { if ( ( nic ) == null ) { nic = getDbFacade ( ) . getInterfaceDao ( ) . get ( nicId ) ; } return nic ; }

Target:
org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getNic ( ) { if ( ( nic ) == null ) { nic = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.InterfaceDao.class ) . get ( nicId ) ; } return nic ; }
Source:
public void qosCommitmentMissingBondSpeedMode3 ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosCommitmendMissingBondSpeed ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_MODE_3 ) ; validateAndExpectViolation ( helper , VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_OVERCOMMITMENT , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }

Target:
public void qosCommitmentMissingBondSpeedMode3 ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosCommitmendMissingBondSpeed ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_MODE_3 ) ; validateAndExpectViolation ( helper , EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_OVERCOMMITMENT , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }
Source:
protected void populateProfiles ( java.util.List < org.ovirt.engine.core.aaa.ProfileEntry > profiles ) { getProfile ( ) . setItems ( profiles ) ; getProfile ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( getProfile ( ) . getItems ( ) ) ) ; }

Target:
protected void populateProfiles ( java.util.List < org.ovirt.engine.core.aaa.ProfileEntry > profiles ) { getProfile ( ) . setItems ( profiles ) ; getProfile ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( getProfile ( ) . getItems ( ) ) ) ; }
Source:
private static boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return ( user != null ) && ( ! ( user.isGroup ( ) ) ) ; }

Target:
private static boolean isUser ( org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { return ( user != null ) && ( ! ( user.isGroup ( ) ) ) ; }
Source:
, @ CustomShadowVariable.Source ( variableName = "vm" ) } ) public boolean isValid ( ) { return valid ; }

Target:
, @ CustomShadowVariable.Source ( variableName = "instance" ) } ) public java.util.Map < java.lang.String , java.util.Set < java.lang.Long > > getHostToInstanceAssignments ( ) { return hostToInstanceAssignments ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml textAndTitle ( java.lang.String text , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml textWithTooltip ( java.lang.String text , java.lang.String tooltip ) ;
Source:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return cluster.getName ( ) ; }

Target:
void initEditors ( ) { selectHostAutomaticallyEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "1" ) ; selectDestinationHostEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "1" ) ; hostsListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) ) ; clustersEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.windowsOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { uniqueOsNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( uniqueOsNames ) ) ; }
Source:
public void canDoActionNoDomain ( ) { org.mockito.Mockito.doReturn ( null ) . when ( cmd ) . getStorageDomain ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }

Target:
public void canDoActionNoDomain ( ) { org.mockito.Mockito.doReturn ( null ) . when ( cmd ) . getStorageDomain ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }
Source:
public void setnum_of_sockets ( int value ) { this . mVmStatic.setnum_of_sockets ( value ) ; }

Target:
public void setNumOfSockets ( int value ) { this . vmStatic.setnum_of_sockets ( value ) ; }
Source:
public org.ovirt.engine.api.restapi.rsdl.LinkBuilder requestParameter ( final java.lang.String requestParameter ) { detailedLink.setRequest ( new org.ovirt.engine.api.model.Request ( ) ) ; detailedLink.getRequest ( ) . setBody ( new org.ovirt.engine.api.model.Body ( ) { { setType ( requestParameter ) ; } } ) ; return this ; }

Target:
public org.ovirt.engine.api.restapi.rsdl.LinkBuilder responseType ( final java.lang.String responseType ) { org.ovirt.engine.api.model.Response response = new org.ovirt.engine.api.model.Response ( ) ; response.setType ( responseType ) ; detailedLink.setResponse ( response ) ; return this ; }
Source:
public void testPoolForDataCenterMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; new org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc ( ) . poolForDataCenter ( null ) ; }

Target:
public void testPoolForDataCenterMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; new org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc ( ) . poolForDataCenter ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public void testValidNetworkFilterIdNoDefaultNoFilterId ( ) { org.junit.Assert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidNetworkFilterIdNoDefaultWithFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setVolumeEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { this . volumeEntity = volumeEntity ; updateActionAvailability ( volumeEntity ) ; }

Target:
public void setResumeSessionCommand ( org.ovirt.engine.ui.uicommonweb.UICommand resumeSessionCommand ) { this . resumeSessionCommand = resumeSessionCommand ; }
Source:
private void cleanUpCompensationData ( ) { if ( ! ( ( getCompensationContext ( ) ) instanceof org.ovirt.engine.core.bll.context.NoOpCompensationContext ) ) { getBusinessEntitySnapshotDAO ( ) . removeAllForCommandId ( commandId ) ; } }

Target:
private void cleanUpCompensationData ( ) { if ( ! ( ( getCompensationContext ( ) ) instanceof org.ovirt.engine.core.bll.context.NoOpCompensationContext ) ) { getBusinessEntitySnapshotDao ( ) . removeAllForCommandId ( commandId ) ; } }
Source:
private void setVisibilities ( ) { criticalIntervalLabel.setVisible ( false ) ; disableCliScheduleMessageLabel.setVisible ( false ) ; }

Target:
public void handleValidationErrors ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel object ) { java.lang.String generalTabErrors = collectGeneralTabErrors ( object ) ; setMessage ( generalTabErrors , generalTabErrorMsg ) ; java.lang.String scheduleTabErrors = collectScheduleTabErrors ( object ) ; setMessage ( scheduleTabErrors , scheduleTabErrorMessage ) ; }
Source:
protected java.util.List < java.lang.String > getEntityNames ( org.ovirt.engine.core.common.scheduling.AffinityGroup object ) { return object.getVmEntityNames ( ) ; }

Target:
protected java.util.List < java.lang.String > getVmNames ( org.ovirt.engine.core.common.scheduling.AffinityGroup group ) { return group.getVmEntityNames ( ) ; }
Source:
protected boolean CanAddDomain ( ) { return CheckStorageConnection ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getstorage ( ) ) ; }

Target:
protected boolean CanAddDomain ( ) { return checkStorageConnection ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getstorage ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VnicProfile getOldVnicProfile ( ) { if ( ( oldVnicProfile ) == null ) { oldVnicProfile = getDbFacade ( ) . getVnicProfileDao ( ) . get ( vnicProfile.getId ( ) ) ; } return oldVnicProfile ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { if ( ( vms ) == null ) { vms = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.VmDao.class ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) ; } return vms ; }
Source:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum value ) { this . quotaEnforcementType = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaEnforcmentType" ) ) ; }

Target:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum value ) { this . quotaEnforcementType = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaEnforcmentType" ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapUser getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.LdapUser entity = new org.ovirt.engine.core.common.businessentities.LdapUser ( ) ; entity.setUserId ( EXTERNAL_IDS [ index ] ) ; entity.setName ( NAMES [ index ] ) ; entity.setDepartment ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; return entity ; }

Target:
protected org.ovirt.engine.core.authentication.DirectoryUser getEntity ( int index ) { return new org.ovirt.engine.core.authentication.DirectoryUser ( new org.ovirt.engine.core.authentication.DirectoryStub ( DOMAIN ) , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }
Source:
org.ovirt.engine.ui.common.widget.HasUiCommandClickHandlers addFooterButton ( java.lang.String label , java.lang.String uniqueId ) ;

Target:
org.ovirt.engine.ui.common.widget.HasUiCommandClickHandlers addFooterButton ( java.lang.String label , java.lang.String uniqueId , boolean isPrimary ) ;
Source:
public static boolean isPendingOvirt ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.isOvirtNode ( ) ) && ( ( vds.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.PendingApproval ) ) ; }

Target:
public static boolean isPendingOvirt ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.isOvirtVintageNode ( ) ) && ( ( vds.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.PendingApproval ) ) ; }
Source:
protected org.ovirt.engine.core.bll.quota.QuotaManager getQuotaManager ( ) { return org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.quota.QuotaManager getQuotaManager ( ) { return quotaManager ; }
Source:
public void setSelectedVMsCount ( int size ) { importDiskListModel.setSelectedVMsCount ( size ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { onDataLoad ( ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }

Target:
public void queryFailed ( ) { stopProgress ( this ) ; cancel ( ) ; }
Source:
public void externalNetworkNotSupported ( ) throws java.lang.Exception { externalNetworkSupportTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_NOT_SUPPORTED ) , false ) ; }

Target:
public void externalNetworkNotSupported ( ) throws java.lang.Exception { externalNetworkSupportTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_NOT_SUPPORTED ) , false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePool getStoragePoolForVds ( ) { if ( ( storagePoolForVds ) == null ) { storagePoolForVds = org.ovirt.engine.core.bll.ForceSelectSPMCommand.getStoragePoolDAO ( ) . getForVds ( org.ovirt.engine.core.bll.ForceSelectSPMCommand.getVds ( ) . getId ( ) ) ; } return storagePoolForVds ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool getStoragePoolForVds ( ) { if ( ( storagePoolForVds ) == null ) { storagePoolForVds = org.ovirt.engine.core.bll.ForceSelectSPMCommand.getStoragePoolDao ( ) . getForVds ( org.ovirt.engine.core.bll.ForceSelectSPMCommand.getVds ( ) . getId ( ) ) ; } return storagePoolForVds ; }
Source:
public void setParentId ( org.ovirt.engine.core.compat.Guid value ) { getImage ( ) . setParentId ( value ) ; }

Target:
public void setParentId ( org.ovirt.engine.core.compat.Guid parentId ) { getImage ( ) . setParentId ( parentId ) ; }
Source:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }

Target:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.class ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }
Source:
protected void executeVdsBrokerCommand ( ) { buildVmData ( ) ; logCommandInfo ( ) ; mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getBroker ( ) . create ( createInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , mVmReturn.mVm ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { buildVmData ( ) ; logCommandInfo ( ) ; vmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getBroker ( ) . create ( createInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , vmReturn.vm ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , null ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , executionContext ) ; }
Source:
private void UpdateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.debugFormat ( "domain {0} still in problem. vds: {1}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.IrsProxyData.getDomainIdTuple ( domainId ) , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; }

Target:
private void updateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.debugFormat ( "domain {0} still in problem. vds: {1}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.IrsProxyData.getDomainIdTuple ( domainId ) , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; }
Source:
private void initIpConfigurationWithPrimaryAddress ( ) { initIpConfiguration ( ) ; getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . setIPv4Addresses ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ) ) ; }

Target:
public void checkMissingPrimaryIpv6Address ( ) { initIpConfiguration ( ) ; initIpv4ConfigurationDetails ( Ipv4BootProtocol.DHCP , false , false ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetNetworkIdsByIscsiBondId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > networkIds = dao.getNetworkIdsByIscsiBondId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertTrue ( networkIds.isEmpty ( ) ) ; }

Target:
public void testGetNetworkIdsByIscsiBondId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > networkIds = dao.getNetworkIdsByIscsiBondId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( networkIds.isEmpty ( ) ) ; }
Source:
public void dismissAlert ( org.ovirt.engine.core.common.businessentities.AuditLog auditLog ) { org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters params = new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( auditLog.getAuditLogId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.RemoveAuditLogById , params ) ; }

Target:
public void dismissAlert ( org.ovirt.engine.core.common.businessentities.AuditLog auditLog ) { org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters params = new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( auditLog.getAuditLogId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( ActionType.RemoveAuditLogById , params ) ; }
Source:
public org.ovirt.engine.core.bll.interfaces.BackendInternal getBackendInstance ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) ; }
Source:
public org.ovirt.engine.api.resource.DeviceResource < org.ovirt.engine.api.model.Nic > getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateNicResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }

Target:
public org.ovirt.engine.api.resource.DeviceResource < org.ovirt.engine.api.model.Nic > getDeviceResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateNicResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }
Source:
public static org.ovirt.engine.ui.frontend.server.dashboard.InventoryStatus getHostInventoryStatus ( javax.sql.DataSource engineDataSource ) throws java.sql.SQLException , org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.dao.HostEngineDAO dao = new org.ovirt.engine.ui.frontend.server.dashboard.dao.HostEngineDAO ( engineDataSource ) ; return dao.getHostInventoryStatus ( ) ; }

Target:
public static org.ovirt.engine.ui.frontend.server.dashboard.InventoryStatus getHostInventoryStatus ( javax.sql.DataSource engineDataSource ) throws org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.dao.HostEngineDao dao = new org.ovirt.engine.ui.frontend.server.dashboard.dao.HostEngineDao ( engineDataSource ) ; return dao.getHostInventoryStatus ( ) ; }
Source:
public java.lang.String formatErrorMessage ( java.lang.String key ) { if ( ( errorMessage ) == null ) { return "" ; } else { return java.lang.String.format ( messageFormat , key ) ; } }

Target:
public java.lang.String formatErrorMessage ( java.lang.String key ) { if ( ( errorMessage ) == null ) { return "" ; } else { return org.ovirt.engine.core.compat.StringFormat.format ( messageFormat , key ) ; } }
Source:
public void validateOkSucceeds ( ) { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeExternalTestJob ( ) ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }

Target:
public void validateOkSucceeds ( ) { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeExternalTestJob ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( commandMock.validate ( ) ) ; }
Source:
public void setAsyncResult ( org.ovirt.engine.ui.frontend.RegistrationResult value ) { if ( ( asyncResult ) != value ) { AsyncResultChanging ( value , asyncResult ) ; asyncResult = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "AsyncResult" ) ) ; } }

Target:
public void setAsyncResult ( org.ovirt.engine.ui.frontend.RegistrationResult value ) { if ( ( asyncResult ) != value ) { AsyncResultChanging ( value , asyncResult ) ; asyncResult = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AsyncResult" ) ) ; } }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase Login ( java.lang.String user , java.lang.String password , java.lang.String domain , org.ovirt.engine.core.common.action.VdcActionType loginType ) ;

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase Login ( java.lang.String userName , java.lang.String password , java.lang.String profileName , org.ovirt.engine.core.common.action.VdcActionType loginType ) ;
Source:
public void testGetAllForQuotaIdWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > result = dao.getConsumedPermissionsForQuotaId ( FixturesTool.QUOTA_SPECIFIC_AND_GENERAL ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForQuotaIdWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > result = dao.getConsumedPermissionsForQuotaId ( FixturesTool.QUOTA_SPECIFIC_AND_GENERAL ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private void setSupportedFeatures ( ) { org.ovirt.engine.core.compat.Version clusterCompatibilityVersion = host.getVdsGroupCompatibilityVersion ( ) ; networkCustomPropertiesSupported = org.ovirt.engine.core.common.FeatureSupported.networkCustomProperties ( clusterCompatibilityVersion ) ; hostNetworkQosSupported = org.ovirt.engine.core.common.FeatureSupported.hostNetworkQos ( clusterCompatibilityVersion ) ; }

Target:
private void setSupportedFeatures ( ) { org.ovirt.engine.core.compat.Version clusterCompatibilityVersion = host.getClusterCompatibilityVersion ( ) ; networkCustomPropertiesSupported = org.ovirt.engine.core.common.FeatureSupported.networkCustomProperties ( clusterCompatibilityVersion ) ; hostNetworkQosSupported = org.ovirt.engine.core.common.FeatureSupported.hostNetworkQos ( clusterCompatibilityVersion ) ; }
Source:
public static void getGlusterVolumeOptionInfoList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeOptionsInfo , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( clusterId ) , aQuery ) ; }

Target:
public static void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getProfilesByParentEntity ( ) { return getDbFacade ( ) . getCpuProfileDao ( ) . getAllForCluster ( getCluster ( ) . getId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getProfilesByParentEntity ( ) { return cpuProfileDao.getAllForCluster ( getCluster ( ) . getId ( ) ) ; }
Source:
public final java.lang.String feedbackUrl ( ) { return getString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.FEEDBACK_URL ) ; }

Target:
public final java.lang.String feedbackUrl ( final java.lang.String version ) { return formatString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.FEEDBACK_URL , version ) ; }
Source:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VDS o1 ) { return ( ( o1.getusage_cpu_percent ( ) ) * ( o1.getcpu_cores ( ) ) ) / ( o1.getvds_strength ( ) ) ; }

Target:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VDS o1 ) { return ( ( o1.getusage_cpu_percent ( ) ) * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( o1 ) ) ) / ( o1.getvds_strength ( ) ) ; }
Source:
public static void GetAllNetworkProviders ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetAllProvidersByProvidedEntity ( query , VdcObjectType.Network ) ; }

Target:
public static void getAllNetworkProviders ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getAllProvidersByProvidedEntity ( query , VdcObjectType.Network ) ; }
Source:
public void testMacToString ( ) throws java.lang.Exception { final java.lang.String macString = "00:1A:4A:01:00:00" ; final long macLong = 112910729216L ; org.junit.Assert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToString ( macLong ) , org.hamcrest.CoreMatchers.is ( macString ) ) ; }

Target:
public void testMacToString ( ) throws java.lang.Exception { final java.lang.String macString = "00:1a:4a:01:00:00" ; final long macLong = 112910729216L ; org.junit.Assert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToString ( macLong ) , org.hamcrest.CoreMatchers.is ( macString ) ) ; }
Source:
public void setPmPort ( java.lang.Integer value ) { mVdsStatic.setPmPort ( value ) ; }

Target:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsStatistics.setCpuOverCommitTimeStamp ( value ) ; }
Source:
protected boolean isUserAuthorizedToRunAction ( ) { if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "IsUserAutorizedToRunAction: Login - no permission check" ) ; } return true ; }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "IsUserAutorizedToRunAction: login - no permission check" ) ; } return true ; }
Source:
public static boolean isVdsWithSameNameExistStatic ( java.lang.String vdsName ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDAO ( ) . get ( vdsName ) ; return vds != null ; }

Target:
public static boolean isVdsWithSameNameExistStatic ( java.lang.String vdsName ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . get ( vdsName ) ; return vds != null ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.api.model.Disk entity , java.lang.String name ) { return false ; }

Target:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }
Source:
public void testGetOsNames ( ) { org.junit.Assert.assertEquals ( "RHEL 7" , OsRepositoryImpl.INSTANCE.getOsNames ( ) . get ( 777 ) ) ; }

Target:
public void testGetOsNames ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "RHEL 7" , OsRepositoryImpl.INSTANCE.getOsNames ( ) . get ( 777 ) ) ; }
Source:
public boolean ConnectStorageToDomainByStoragePoolId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid storagePoolId ) { return RunForSingleConnectionInHost ( storageDomain , storagePoolId , VdcActionType.ConnectStorageToVds.getValue ( ) ) ; }

Target:
public boolean connectStorageToDomainByStoragePoolId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid storagePoolId ) { return RunForSingleConnectionInHost ( storageDomain , storagePoolId , VdcActionType.ConnectStorageToVds.getValue ( ) ) ; }
Source:
protected abstract java.lang.String getUploadType ( ) ;

Target:
protected abstract java.lang.String getImageType ( ) ;
Source:
public void interfaceBasedOnNotAVlanOfIface ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createVlan ( ( ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) + "1" ) ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOnNotAVlanOfIface ( ) { org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createVlan ( ( ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) + "1" ) ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
public boolean isNetworkError ( ) { if ( getMessage ( ) . startsWith ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException.NETWORK_ERROR_MSG ) ) { return true ; } else { return false ; } }

Target:
public boolean isNetworkError ( ) { if ( getMessage ( ) . startsWith ( org.ovirt.engine.core.vdsbroker.TransportRunTimeException.NETWORK_ERROR_MSG ) ) { return true ; } else { return false ; } }
Source:
public static void RemoveAllVdsAlerts ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.Guid vdsId , boolean removeConfigAlerts ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.DbFacade.getInstance ( ) . getAuditLogDAO ( ) . removeAllForVds ( vdsId , removeConfigAlerts ) ; }

Target:
public static void RemoveAllVdsAlerts ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.Guid vdsId , boolean removeConfigAlerts ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllForVds ( vdsId , removeConfigAlerts ) ; }
Source:
public void networkPrefixBond ( ) throws java.lang.Exception { networkPrefixValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_CANNOT_CONTAIN_BOND_NAME ) , "bond0" ) ; }

Target:
public void networkPrefixBond ( ) throws java.lang.Exception { networkPrefixValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_CANNOT_CONTAIN_BOND_NAME ) , "bond0" ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml statusTemplateWithId ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;
Source:
protected void EndMoveOrCopyCommand ( ) { EndActionOnAllImageGroups ( ) ; endVmTemplateRelatedOps ( ) ; org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.setSucceeded ( true ) ; }

Target:
protected void endMoveOrCopyCommand ( ) { endActionOnAllImageGroups ( ) ; endVmTemplateRelatedOps ( ) ; org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.setSucceeded ( true ) ; }
Source:
public void testConfigurationEntries ( ) { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , null , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message0-->dbtest1@redhat.com" ) ) ; }

Target:
public void testConfigurationEntries ( ) { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , null , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( smtp.getEvents ( ) . contains ( "message0-->dbtest1@redhat.com" ) ) ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setId ( value ) ; this . mVmDynamic.setId ( value ) ; this . mVmStatistics.setId ( value ) ; }

Target:
public void setVmName ( java.lang.String value ) { this . vmStatic.setVmName ( value ) ; }
Source:
private org.ovirt.engine.core.bll.network.macpool.Range getRangeWithAvailableMac ( ) { for ( org.ovirt.engine.core.bll.network.macpool.Range range : ranges ) { if ( ( range.getAvailableCount ( ) ) > 0 ) { return range ; } } return null ; }

Target:
public int getTotalNumberOfMacs ( ) { int count = 0 ; for ( org.ovirt.engine.core.bll.network.macpool.Range range : ranges ) { count += range.getNumberOfMacsInRange ( ) ; } return count ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isBoot ( ) ? constants.bootableDisk ( ) : null ) ) ; return object.isBoot ( ) ? resources.bootableDiskIcon ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isShareable ( ) ? constants.shareable ( ) : null ) ) ; return object.isShareable ( ) ? resources.shareableDiskIcon ( ) : null ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.util.Collections.< org.ovirt.engine.core.common.businessentities.CertificateInfo > emptyList ( ) ; } return source ; }
Source:
public void setFencingAgentInstanceOptionsMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { org.ovirt.engine.core.utils.pm.VdsFencingOptions.fencingAgentInstanceOptions = ( value != null ) ? new java.util.HashMap < java.lang.String , java.lang.String > ( value.asMap ( ) ) : null ; }

Target:
public void setFencingAgentInstanceOptionsMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingAgentInstanceOptions = ( value != null ) ? new java.util.HashMap < java.lang.String , java.lang.String > ( value.asMap ( ) ) : null ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Nic nic ) { validateParameters ( nic , "name" ) ; return performCreate ( VdcActionType.AddVmInterface , new org.ovirt.engine.core.common.action.AddVmInterfaceParameters ( vmId , map ( nic ) ) , new org.ovirt.engine.api.restapi.resource.NicResolver ( nic.getName ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Nic nic ) { validateParameters ( nic , "name" ) ; return performCreate ( ActionType.AddVmInterface , new org.ovirt.engine.core.common.action.AddVmInterfaceParameters ( vmId , map ( nic ) ) , new org.ovirt.engine.api.restapi.resource.NicResolver ( nic.getName ( ) ) ) ; }
Source:
public void validateFailsOnNull ( ) { cmd.setGlusterVolumeId ( null ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.setGlusterVolumeId ( null ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 , result ) ; }

Target:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( FixturesTool.DATA_CENTER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 , result ) ; }
Source:
private void addActionPanel ( com.google.gwt.user.client.ui.FlowPanel container ) { actionPanel = new org.ovirt.engine.ui.common.widget.action.PatternflyActionPanel ( ) ; container.insert ( actionPanel , 1 ) ; }

Target:
private void addActionSearchPanel ( com.google.gwt.user.client.ui.FlowPanel container ) { container.insert ( actionSearchPanel , 1 ) ; }
Source:
public void setSslChanels ( java.lang.String sslChanels ) { this . sslChanels = org.ovirt.engine.ui.common.uicommon.AbstractSpice.adjustLegacySecureChannels ( sslChanels ) ; }

Target:
public void setSslChanels ( java.lang.String sslChanels ) { this . consoleOptions.setSslChanels ( org.ovirt.engine.ui.common.uicommon.AbstractSpice.adjustLegacySecureChannels ( sslChanels ) ) ; }