auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean hasModel ( ) { return ( ( getCommonModel ( ) ) != null ) && ( ( org.ovirt.engine.ui.common.uicommon.model.TabModelProvider.getModel ( ) ) != null ) ; }

Target:
public M getModel ( ) { M model = modelProvider.get ( ) ; if ( ! ( model.isInitialized ( ) ) ) { model.initialize ( ) ; initializeModelHandlers ( model ) ; } return model ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model getWindowModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > source , java.lang.String propertyName ) { if ( VmListModel.DISK_WINDOW.equals ( propertyName ) ) { return source.getDiskWindow ( ) ; } return super . getWindowModel ( source , propertyName ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model getWindowModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > source , java.lang.String propertyName ) { if ( VmBaseListModel.DISK_WINDOW.equals ( propertyName ) ) { return source.getDiskWindow ( ) ; } return super . getWindowModel ( source , propertyName ) ; }
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 ) { if ( getSpecificCpu ( ) . getEntity ( ) ) { getUnlimitedCpu ( ) . setEntity ( false ) ; getSpecificCpuValue ( ) . setIsChangable ( true ) ; } }

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 ) { if ( getSpecificCpu ( ) . getEntity ( ) ) { getUnlimitedCpu ( ) . setEntity ( false ) ; getSpecificCpuValue ( ) . setIsChangeable ( true ) ; } }
Source:
public void validVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.VNIC_PROFILE_ID ) ; }

Target:
public void validVnicProfileWhenUnlinkingSupported ( ) throws java.lang.Exception { vnicProfileLinkingTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.VNIC_PROFILE_ID ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = getVdsByVdsId ( ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getDbFacade ( ) . getNetworkProviderDao ( ) . remove ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.provider.RemoveProviderCommand.setSucceeded ( true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider getDeletedProvider ( ) { if ( ( deletedProvider ) == null ) { deletedProvider = getProviderDao ( ) . get ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; } return deletedProvider ; }
Source:
public javax.ws.rs.core.Response setupNetworks ( org.ovirt.engine.api.model.Action action ) { getVdsByVdsId ( ) ; org.ovirt.engine.core.common.action.HostSetupNetworksParameters parameters = toParameters ( action ) ; return performAction ( VdcActionType.HostSetupNetworks , parameters , action ) ; }

Target:
public javax.ws.rs.core.Response setupNetworks ( org.ovirt.engine.api.model.Action action ) { getVdsByVdsId ( ) ; org.ovirt.engine.core.common.action.HostSetupNetworksParameters parameters = toParameters ( action ) ; return performAction ( ActionType.HostSetupNetworks , parameters , action ) ; }
Source:
public org.ovirt.engine.core.bll.provider.ProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) ) ; } return providerProxy ; }

Target:
public org.ovirt.engine.core.bll.provider.ProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = providerProxyFactory.create ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) ) ; } return providerProxy ; }
Source:
public void testGetAllVfsConfigByHostId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( FixturesTool.HOST_ID ) ; org.junit.Assert.assertEquals ( 2 , vfsConfigs.size ( ) ) ; }

Target:
public void testGetAllVfsConfigByHostId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( FixturesTool.HOST_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , vfsConfigs.size ( ) ) ; }
Source:
public void setSerialNumberPolicy ( org.ovirt.engine.core.common.businessentities.SerialNumberPolicy serialNumberPolicy ) { vmStatic.setSerialNumberPolicy ( serialNumberPolicy ) ; }

Target:
public void setMigreatingToPort ( int value ) { migreatingToPort = value ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getSoundDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.SOUND ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.Boolean isPlugged , java.lang.Boolean isReadOnly , boolean isUsingScsiReservation ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , isPlugged , isReadOnly , "" , isUsingScsiReservation ) ; }
Source:
public void setvm_os ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . mVmStatic.setos ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_os" ) ) ; }

Target:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setOs ( value ) ; }
Source:
private void updateAuditLogFailedToUpdateVM ( java.lang.String vmName ) { org.ovirt.engine.core.bll.ExtendImageSizeCommand.addCustomValue ( "VmName" , vmName ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , AuditLogType.USER_EXTEND_DISK_SIZE_UPDATE_VM_FAILURE ) ; }

Target:
private void updateAuditLog ( org.ovirt.engine.core.common.AuditLogType auditLogType , java.lang.Long imageSizeInGigabytes ) { addCustomValue ( "DiskAlias" , org.ovirt.engine.core.bll.ExtendImageSizeCommand.getImage ( ) . getDiskAlias ( ) ) ; org.ovirt.engine.core.bll.ExtendImageSizeCommand.addCustomValue ( "NewSize" , java.lang.String.valueOf ( imageSizeInGigabytes ) ) ; auditLogDirector.log ( this , auditLogType ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { logSsoOnDesktopFailedAgentNonResp ( spiceConsoleModel.getLogger ( ) , ( logonCommandReturnValue != null ? logonCommandReturnValue.getDescription ( ) : "" ) ) ; spiceConsoleModel.executeQuery ( getEntity ( ) ) ; parentModel.setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { logSsoOnDesktopFailedAgentNonResp ( spiceConsoleModel.getLogger ( ) , ( logonCommandReturnValue != null ? logonCommandReturnValue.getDescription ( ) : "" ) ) ; spiceConsoleModel.executeQuery ( getEntity ( ) ) ; getParentModel ( ) . setWindow ( null ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > getUserRequestForStorageDomainRepoFileList ( ) { return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getInstance ( ) . getUserRequestForStorageDomainRepoFileList ( getStorageDomainIdForQuery ( ) , org.ovirt.engine.core.bll.GetImagesListQueryBase.getParameters ( ) . getImageType ( ) , org.ovirt.engine.core.bll.GetImagesListQueryBase.getParameters ( ) . getForceRefresh ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > getUserRequestForStorageDomainRepoFileList ( ) { return org.ovirt.engine.core.bll.storage.domain.IsoDomainListSyncronizer.getInstance ( ) . getUserRequestForStorageDomainRepoFileList ( getStorageDomainIdForQuery ( ) , org.ovirt.engine.core.bll.GetImagesListQueryBase.getParameters ( ) . getImageType ( ) , org.ovirt.engine.core.bll.GetImagesListQueryBase.getParameters ( ) . getForceRefresh ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > object ) { return object.getFirst ( ) . getcompatibility_version ( ) . getValue ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > object ) { return object.getFirst ( ) . getCompatibilityVersion ( ) . getValue ( ) ; }
Source:
private static < T extends org.ovirt.engine.core.common.businessentities.VmBase > java.lang.String getAddress ( T entity , final org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.VmDevice device = entity.getManagedDeviceMap ( ) . get ( id ) ; if ( device != null ) return device.getAddress ( ) ; else return org.apache.commons.lang.StringUtils.EMPTY ; }

Target:
public static java.lang.String getVmDeviceAddress ( org.ovirt.engine.core.common.businessentities.VmBase vmBase , final org.ovirt.engine.core.compat.Guid deviceId ) { org.ovirt.engine.core.common.businessentities.VmDevice device = vmBase.getManagedDeviceMap ( ) . get ( deviceId ) ; if ( device != null ) return device.getAddress ( ) ; else return org.apache.commons.lang.StringUtils.EMPTY ; }
Source:
public org.ovirt.engine.api.resource.NetworksResource getNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworksResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.DataCenterNetworksResource getNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworksResource ( guid ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.vm_pools > getPrivilegedQueryReturnValue ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.vm_pools > returnValue = org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getDbFacade ( ) . getVmPoolDAO ( ) . getAllForUser ( org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getParameters ( ) . getUserId ( ) ) ; return returnValue ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.vm_pools > getPrivilegedQueryReturnValue ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.vm_pools > returnValue = org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getDbFacade ( ) . getVmPoolDao ( ) . getAllForUser ( org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getParameters ( ) . getUserId ( ) ) ; return returnValue ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VMStatus forValue ( int value ) { return org.ovirt.engine.core.common.businessentities.VMStatus.mappings.get ( value ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VMStatus forValue ( int value ) { return org.ovirt.engine.core.common.businessentities.VMStatus.valueToStatus.get ( value ) ; }
Source:
public void testValidationFailsDiskConnectedToRunningVm ( ) { org.mockito.Mockito.when ( diskValidator.isDiskPluggedToVmsThatAreNotDown ( org.mockito.ArgumentMatchers.anyBoolean ( ) , org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; }

Target:
public void testValidationFailsDiskConnectedToRunningVm ( ) { org.mockito.Mockito.when ( diskValidator.isDiskPluggedToAnyNonDownVm ( false ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; }
Source:
protected static org.ovirt.engine.core.compat.Guid getGuidDefaultEmpty ( java.sql.ResultSet resultSet , java.lang.String columnName ) throws java.sql.SQLException { return org.ovirt.engine.core.dao.BaseDaoDbFacade.getGuid ( resultSet , columnName , Guid.Empty ) ; }

Target:
protected static org.ovirt.engine.core.compat.Guid getGuidDefaultEmpty ( java.sql.ResultSet resultSet , java.lang.String columnName ) throws java.sql.SQLException { return org.ovirt.engine.core.dao.BaseDao.getGuid ( resultSet , columnName , Guid.Empty ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( host.getConsoleAddress ( ) ) != null ? constants.yes ( ) : constants.no ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( host.getConsoleAddress ( ) ) != null ? org.ovirt.engine.ui.webadmin.section.main.view.tab.cluster.SubTabClusterHostView.constants.yes ( ) : org.ovirt.engine.ui.webadmin.section.main.view.tab.cluster.SubTabClusterHostView.constants.no ( ) ; }
Source:
private boolean isManagementOriginally ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( ( clusterNetworkModel.getOriginalNetworkCluster ( ) ) != null ) && ( clusterNetworkModel.getOriginalNetworkCluster ( ) . isManagement ( ) ) ; }

Target:
private void updateDefaultRouteNetwork ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel , boolean value ) { networks.asEditor ( ) . flush ( ) . setDefaultRouteNetwork ( clusterNetworkModel , value ) ; }
Source:
public void removeLabel ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { getCallsHandler ( ) . executeModification ( "DeletevfsConfigLabel" , createLabelParametersMapper ( vfsConfigId , label ) ) ; }

Target:
private void removeAllLabelsByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createVfsConfigIdParameter ( vfsConfigId ) ; getCallsHandler ( ) . executeModification ( "DeleteAllVfsConfigLabels" , parameterSource ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . update ( hostTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . update ( hostTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) . update ( foremanTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) ; }
Source:
private void initIpConfigurationStaticBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol ) { initIpConfiguration ( ) ; org.mockito.Mockito.when ( mockedIPv4Address.getBootProtocol ( ) ) . thenReturn ( networkBootProtocol ) ; iface.setBootProtocol ( networkBootProtocol ) ; }

Target:
private void initIpConfigurationStaticBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol ) { initIpConfiguration ( ) ; org.mockito.Mockito.when ( mockedIPv4Address.getBootProtocol ( ) ) . thenReturn ( networkBootProtocol ) ; iface.setIpv4BootProtocol ( networkBootProtocol ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( getVDSGroup ( ) , entity ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( getVDSGroup ( ) , entity ) ; }
Source:
protected void postConnect ( org.ovirt.vdsm.jsonrpc.client.utils.OneTimeCallback callback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { super . postConnect ( this . callback ) ; }

Target:
protected org.ovirt.vdsm.jsonrpc.client.utils.OneTimeCallback getPostConnectCallback ( ) { this . callback.resetExecution ( ) ; setWaitForConnect ( ) ; return this . callback ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getAdUserId ( ) . toString ( ) , getClass ( ) . getName ( ) ) ; }

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 ( getAdUserId ( ) . toString ( ) , LockMessagesMatchUtil.USER_VM_POOL ) ; }
Source:
public static org.ovirt.engine.ui.uicommonweb.models.userportal.ConsoleProtocol getProtocolByModel ( java.lang.Class < ? extends org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > model ) { for ( org.ovirt.engine.ui.uicommonweb.models.userportal.ConsoleProtocol value : org.ovirt.engine.ui.uicommonweb.models.userportal.ConsoleProtocol.values ( ) ) { if ( value.isBackedBy ( model ) ) { return value ; } } return null ; }

Target:
public static org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol getProtocolByModel ( java.lang.Class < ? extends org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > model ) { for ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol value : org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol.values ( ) ) { if ( value.isBackedBy ( model ) ) { return value ; } } return null ; }
Source:
public void setDisplay ( java.lang.Integer value ) { this . vmDynamic.setDisplay ( value ) ; }

Target:
public void setEmulatedMachine ( java.lang.String value ) { this . vmDynamic.setEmulatedMachine ( value ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.DiskProfile > getDiskProfilesCollection ( ) { return getBackendCollection ( VdcQueryType.GetDiskProfilesByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuidOr404 ( storageDomainId ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.DiskProfile > getDiskProfilesCollection ( ) { return getBackendCollection ( QueryType.GetDiskProfilesByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuidOr404 ( storageDomainId ) ) ) ; }
Source:
public void addToHistoryNullBefore ( ) { org.junit.Assert.assertEquals ( java.util.Collections.singletonList ( 12 ) , statistics.addToHistory ( null , 12 , 100 ) ) ; }

Target:
public void addToHistoryNullBefore ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Collections.singletonList ( 12 ) , statistics.addToHistory ( null , 12 , 100 ) ) ; }
Source:
public void setMessage ( java.lang.String msg , com.google.gwt.user.client.ui.Label errorLabel ) { errorLabel.setText ( msg ) ; errorLabel.setVisible ( ( ! ( msg.isEmpty ( ) ) ) ) ; }

Target:
public void setMessage ( java.lang.String msg , org.gwtbootstrap3.client.ui.Alert alert ) { alert.setText ( msg ) ; alert.setVisible ( ( ! ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( msg ) ) ) ) ; }
Source:
public void nullTest ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( null ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }

Target:
public void nullTest ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( null ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByBricks ( ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getGlusterBrickDao ( ) . getAllByClusterAndNetworkId ( networkCluster.getClusterId ( ) , network.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__GLUSTER_BRICKS , VdcBllMessages.VAR__ENTITIES__GLUSTER_BRICK ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByBricks ( ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getGlusterBrickDao ( ) . getAllByClusterAndNetworkId ( networkCluster.getClusterId ( ) , network.getId ( ) ) , EngineMessage.VAR__ENTITIES__GLUSTER_BRICKS , EngineMessage.VAR__ENTITIES__GLUSTER_BRICK ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { StopProgress ( ) ; commandTarget.executeCommand ( runOnceCommand ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { StopProgress ( ) ; commandTarget.executeCommand ( runOnceCommand ) ; }
Source:
public void testExtractIpv6PrefixNoPrefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Prefix ( "::" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractProperIpv6AddressWithNoPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( "::/" ) , org.hamcrest.Matchers.is ( "::/" ) ) ; }
Source:
java.lang.String getSoundDevice ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.lang.String getSoundDevice ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.ChipsetType chipsetType ) ;
Source:
private java.lang.String generateVlanName ( java.lang.String iface ) { return ( iface + "." ) + ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( 100 ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String ifaceName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.Nic ( ) ; iface.setName ( ifaceName ) ; return iface ; }
Source:
public org.ovirt.engine.core.common.businessentities.LdapRefStatus getAdStatus ( ) { if ( ( getstatus ( ) ) == 0 ) { return LdapRefStatus.Inactive ; } return LdapRefStatus.Active ; }

Target:
public org.ovirt.engine.core.common.businessentities.LdapRefStatus getLdapStatus ( ) { return ( status ) == 0 ? LdapRefStatus.Inactive : LdapRefStatus.Active ; }
Source:
public void testSaveUserDuplicatedDomainAndExternalId ( ) { newUser.setDomain ( existingUser.getDomain ( ) ) ; newUser.setExternalId ( existingUser.getExternalId ( ) ) ; dao.save ( newUser ) ; }

Target:
public void testSaveUserDuplicatedDomainAndExternalId ( ) { newUser.setDomain ( existingUser.getDomain ( ) ) ; newUser.setExternalId ( existingUser.getExternalId ( ) ) ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.RuntimeException.class , ( ) -> org.ovirt.engine.core.dao.dao.save ( newUser ) ) ; }
Source:
public void saveAll ( java.util.Collection < T > entities ) { for ( T entity : entities ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.save ( entity ) ; } }

Target:
public void saveAll ( java.util.Collection < T > entities ) { for ( T entity : entities ) { org.ovirt.engine.core.dao.MassOperationsGenericDao.save ( entity ) ; } }
Source:
public void UpdateIsDisksAvailable ( ) { getModel ( ) . setIsDisksAvailable ( ( ( ( getModel ( ) . getDisks ( ) ) != null ) && ( getModel ( ) . getProvisioning ( ) . getIsChangable ( ) ) ) ) ; }

Target:
public void updateIsDisksAvailable ( ) { getModel ( ) . setIsDisksAvailable ( ( ( ( getModel ( ) . getDisks ( ) ) != null ) && ( getModel ( ) . getProvisioning ( ) . getIsChangable ( ) ) ) ) ; }
Source:
public < P extends org.ovirt.engine.core.common.action.VdcActionParametersBase > org.ovirt.engine.core.bll.CommandBase < P > createCommand ( org.ovirt.engine.core.common.action.ActionType action , P parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( action , parameters ) ; }

Target:
public < P extends org.ovirt.engine.core.common.action.ActionParametersBase > org.ovirt.engine.core.bll.CommandBase < P > createCommand ( org.ovirt.engine.core.common.action.ActionType action , P parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( action , parameters ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections createConnection ( org.ovirt.engine.core.common.businessentities.StorageType storageType , java.lang.String mountOptions ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; conn.setstorage_type ( storageType ) ; conn.setMountOptions ( mountOptions ) ; return conn ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections createConnection ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType , java.lang.String mountOptions ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; conn.setstorage_type ( storageType ) ; conn.setMountOptions ( mountOptions ) ; return conn ; }
Source:
public void setguest_cur_user_name ( java.lang.String value ) { this . mVmDynamic.setguest_cur_user_name ( value ) ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String value ) { this . vmDynamic.setConsole_current_user_name ( value ) ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.users.VdcUser result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Sucessfully executed sync getIsUserLoggedIn!" ) ; callback.onSuccess ( result ) ; }

Target:
public static void LoginAsync ( final java.lang.String userName , final java.lang.String password , final java.lang.String domain , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync service = GenericApiGWTServiceAsync.Util.getInstance ( ) ; org.ovirt.engine.ui.frontend.Frontend.LoginAsync ( userName , password , domain , callback , service ) ; }
Source:
public final java.lang.String TranslateErrorTextSingle ( java.lang.String errorMsg ) { return TranslateErrorTextSingle ( errorMsg , true ) ; }

Target:
public final java.lang.String translateErrorTextSingle ( java.lang.String errorMsg ) { return translateErrorTextSingle ( errorMsg , true ) ; }
Source:
private void initIpConfigurationBootProtocolGateway ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol , boolean syncGateway ) { initIpConfigurationStaticBootProtocol ( networkBootProtocol ) ; org.mockito.Mockito.when ( mockedIPv4Address.getGateway ( ) ) . thenReturn ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.GATEWAY ) ; iface.setGateway ( ( syncGateway ? org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.GATEWAY : null ) ) ; }

Target:
private void initIpConfigurationBootProtocolGateway ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol , boolean syncGateway ) { initIpConfigurationStaticBootProtocol ( networkBootProtocol ) ; org.mockito.Mockito.when ( mockedIPv4Address.getGateway ( ) ) . thenReturn ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.GATEWAY ) ; iface.setIpv4Gateway ( ( syncGateway ? org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.GATEWAY : null ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { final javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.Bookmark > query = getEntityManager ( ) . createNamedQuery ( "Bookmark.byName" , org.ovirt.engine.core.common.businessentities.Bookmark.class ) ; query.setParameter ( "name" , name ) ; return singleResult ( query ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Bookmark get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDaoImpl.BookmarkSqlParameterSource ( id ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_id" , org.ovirt.engine.core.dao.BookmarkDaoImpl.BookmarkRowMapper.instance , parameterSource ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > searchProviders ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getProviderDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > searchProviders ( ) { return genericSearch ( providerDao , true ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionStatusReturnForXmlRpc validateStorageServerConnection ( int serverType , java.lang.String spUUID , java.util.Map < java.lang.String , java.lang.String > [ ] args ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory ) ;
Source:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol value ) { if ( ( bootProtocol ) != value ) { bootProtocol = value ; BootProtocolChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocol" ) ) ; } }

Target:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol value ) { if ( ( bootProtocol ) != value ) { bootProtocol = value ; bootProtocolChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocol" ) ) ; } }
Source:
protected void endSuccessfully ( ) { endActionOnDisks ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.freeLock ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.ConvertVm , buildConvertVmParameters ( ) , org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.cloneContextAndDetachFromParent ( ) ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.setSucceeded ( true ) ; }

Target:
protected void convert ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.ConvertVm , buildConvertVmParameters ( ) , org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.cloneContextAndDetachFromParent ( ) ) ; }
Source:
public static boolean isUpdateValidForVmDevices ( org.ovirt.engine.core.compat.Guid vmId , java.lang.Object objectWithEditableDeviceFields ) { if ( objectWithEditableDeviceFields == null ) { return true ; } return org.ovirt.engine.core.bll.VmHandler.getVmDevicesFieldsToUpdateOnNextRun ( vmId , objectWithEditableDeviceFields ) . isEmpty ( ) ; }

Target:
public static boolean isUpdateValidForVmDevices ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VMStatus vmStatus , java.lang.Object objectWithEditableDeviceFields ) { if ( objectWithEditableDeviceFields == null ) { return true ; } return org.ovirt.engine.core.bll.VmHandler.getVmDevicesFieldsToUpdateOnNextRun ( vmId , vmStatus , objectWithEditableDeviceFields ) . isEmpty ( ) ; }
Source:
protected void setUpGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendExportDomainDisksResourceTest.STORAGE_DOMAIN_ID } , org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplatesResourceTest.setUpStorageDomain ( domainType ) , failure ) ; }

Target:
protected void setUpGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendExportDomainDisksResourceTest.STORAGE_DOMAIN_ID } , org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplatesResourceTest.setUpStorageDomain ( domainType ) , failure ) ; }
Source:
public org.ovirt.engine.sdk.services.SystemService systemService ( ) { return new org.ovirt.engine.sdk.services.internal.SystemServiceImpl ( this , "" ) ; }

Target:
public org.ovirt.engine.sdk.services.SystemService systemService ( ) { return new org.ovirt.engine.sdk.internal.services.SystemServiceImpl ( this , "" ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult getManagementNetworkValidationResult ( final boolean isManagementNetwork ) { return isManagementNetwork ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , getNetworkNameReplacement ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult getManagementNetworkValidationResult ( final boolean isManagementNetwork ) { return isManagementNetwork ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , getNetworkNameReplacement ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void init ( org.ovirt.engine.ui.uicommonweb.models.AbstractErrataListModel errataListModel ) { this . errataListModel = errataListModel ; }

Target:
public void init ( org.ovirt.engine.ui.uicommonweb.models.AbstractErrataListModel errataListModel ) { this . errataListModel = errataListModel ; errataTable.setLoadingState ( LoadingState.LOADING ) ; updateFilterPanel ( ) ; }
Source:
protected org.ovirt.engine.api.model.Network getEntity ( int index , boolean isDisplay , boolean isMigration , boolean isRequired ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , isDisplay , isMigration , isRequired , index ) ; }

Target:
protected org.ovirt.engine.api.model.Network getEntity ( int index , boolean isDisplay , boolean isMigration , boolean isRequired ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( org.ovirt.engine.api.restapi.resource.AbstractBackendNetworkResourceTest.mock ( org.ovirt.engine.api.model.Network.class ) , isDisplay , isMigration , isRequired , index ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.verifyModelSpecific ( cdrom , 1 ) ; verifyLinks ( cdrom ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; }
Source:
public void vnicProfileNameTakenCaseSensitivelyByDifferentVnicProfile ( ) throws java.lang.Exception { vnicProfileAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , getSingletonNamedVnicProfileList ( DEFAULT_VNIC_PROFILE_NAME.toUpperCase ( ) , OTHER_GUID ) ) ; }

Target:
public void vnicProfileNameTakenBySameVnicProfile ( ) throws java.lang.Exception { vnicProfileAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.getSingletonNamedVnicProfileList ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_VNIC_PROFILE_NAME , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ) ; }
Source:
public void getPrefixedKey ( ) { java.lang.String prefixedKey = tested.getPrefixedKey ( "Key" ) ; org.junit.Assert.assertThat ( prefixedKey , org.hamcrest.CoreMatchers.equalTo ( ( ( ClientStorageImpl.CLIENT_STORAGE_KEY_PREFIX ) + "Key" ) ) ) ; }

Target:
public void getPrefixedKey ( ) { java.lang.String prefixedKey = tested.getPrefixedKey ( "Key" ) ; org.hamcrest.MatcherAssert.assertThat ( prefixedKey , org.hamcrest.CoreMatchers.equalTo ( ( ( ClientStorageImpl.CLIENT_STORAGE_KEY_PREFIX ) + "Key" ) ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( vmDynamic , vmGuestAgentInterfaces , vmStatistics , lunsMap , interfaceStatistics ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( vmDynamic , vmGuestAgentInterfaces , vmStatistics , lunsMap , interfaceStatistics , vNumaNodeStatisticsList ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public void updateGlusterHookStatus ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;

Target:
public void updateGlusterHookConflictStatus ( org.ovirt.engine.core.compat.Guid hookId , java.lang.Integer conflictStatus ) ;
Source:
public void releaseVolumeLock ( org.ovirt.engine.core.compat.Guid taskId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = getVolumeDao ( ) . getVolumeByGlusterTask ( taskId ) ; if ( vol != null ) { releaseLock ( vol.getId ( ) ) ; } else { org.ovirt.engine.core.bll.gluster.tasks.GlusterTaskUtils.log.debugFormat ( "Did not find a volume associated with task {0}" , taskId ) ; } }

Target:
public void releaseVolumeLock ( org.ovirt.engine.core.compat.Guid taskId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = getVolumeDao ( ) . getVolumeByGlusterTask ( taskId ) ; if ( vol != null ) { releaseLock ( vol.getId ( ) ) ; } else { org.ovirt.engine.core.bll.gluster.tasks.GlusterTaskUtils.log.debug ( "Did not find a volume associated with task '{}'" , taskId ) ; } }
Source:
public boolean isSetVMs ( ) { return ( this . vMs ) != null ; }

Target:
public boolean isSetVms ( ) { return ( this . vms ) != null ; }
Source:
private static org.ovirt.engine.api.restapi.util.LinkHelper.Collection getCollection ( org.ovirt.engine.api.model.BaseResource model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getCollection ( model , null ) ; }

Target:
private static org.ovirt.engine.api.restapi.util.LinkHelper.ApiLocationMetadata getCollection ( org.ovirt.engine.api.model.BaseResource model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getLocationMetadata ( model , null ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createAddNetworkParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsForAdd ) { org.ovirt.engine.core.bll.network.AddNetworkParametersBuilder builder = new org.ovirt.engine.core.bll.network.AddNetworkParametersBuilder ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.SyncNetworkParametersBuilder.getNetwork ( ) , org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.SyncNetworkParametersBuilder.getContext ( ) ) ; return builder.buildParameters ( nicsForAdd ) ; }

Target:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createAddNetworkParameters ( org.ovirt.engine.core.common.businessentities.network.Network network , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsForAdd ) { return addNetworkParametersBuilder.buildParameters ( network , nicsForAdd ) ; }
Source:
public void setstatus ( boolean value ) { this . status = value ; }

Target:
public void setStatus ( boolean value ) { this . status = value ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
public < T > void mockConfigValue ( org.ovirt.engine.core.common.config.ConfigValues value , T returnValue ) { mockConfigValue ( value , Config.DefaultConfigurationVersion , returnValue ) ; }

Target:
public < T > void mockConfigValue ( org.ovirt.engine.core.common.config.ConfigValues value , T returnValue ) { mockConfigValue ( value , ConfigCommon.defaultConfigurationVersion , returnValue ) ; }
Source:
public void testGetVdsSpmIdMapForStoragePoolAndVdsId ( ) { org.ovirt.engine.core.common.businessentities.VdsSpmIdMap result = dao.get ( existingEntity.getStoragePoolId ( ) , existingEntity.getVdsSpmId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingEntity , result ) ; }

Target:
public void testGetVdsSpmIdMapForStoragePoolAndVdsId ( ) { org.ovirt.engine.core.common.businessentities.VdsSpmIdMap result = dao.get ( existingEntity.getStoragePoolId ( ) , existingEntity.getVdsSpmId ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingEntity , result ) ; }
Source:
public void subscribe ( org.ovirt.vdsm.jsonrpc.client.events.EventSubscriber subscriber ) { org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getWorker ( ) . getPublisher ( ) . subscribe ( subscriber ) ; }

Target:
public void subscribe ( org.ovirt.vdsm.jsonrpc.client.events.EventSubscriber subscriber ) { org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getWorker ( this . parallelism ) . getPublisher ( ) . subscribe ( subscriber ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getDisableGlobalHaMaintenanceCommand ( ) ; }

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 ) { updateReportsAvailability ( constants ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getNewVmCommand ( ) ; }

Target:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { getModel ( ) . getEditConsoleCommand ( ) . execute ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkAttachmentIsSet ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , null ) ) . when ( ( ( attachment ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkAttachmentIsSet ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NULL_PASSED_AS_NETWORK_ATTACHMENT ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , null ) ) . when ( ( ( attachment ) == null ) ) ; }
Source:
public void testGetDataAndSetDataWithFullSession ( ) { container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testGetDataAndSetDataWithFullSession ( ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE , container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
private void onRemove ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.RemoveDiskModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.RemoveDiskModel ) ( getWindow ( ) ) ) ; if ( ! ( model.validate ( ) ) ) { return ; } model.onRemove ( this ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.ClientConsoleMode getClientConsoleMode ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigValuePreConverted ( ConfigurationValues.ClientConsoleModeDefault ) ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.ClientConsoleMode getClientConsoleMode ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.ClientConsoleModeDefault ) ) ) ) ; }