auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void logToAudit ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogableBase = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; auditLogableBase.addCustomValue ( "message" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getReturnStatus ( ) . mMessage ) ; auditLogDirector.log ( auditLogableBase , AuditLogType.IRS_BROKER_COMMAND_FAILURE ) ; }

Target:
protected void logToAudit ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogableBase = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; auditLogableBase.addCustomValue ( "message" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getReturnStatus ( ) . message ) ; auditLogDirector.log ( auditLogableBase , AuditLogType.IRS_BROKER_COMMAND_FAILURE ) ; }
Source:
public void validateVmMemoryCanStartOnVdsHostTooSmallButLowOverhead ( ) { vds.setMemFree ( 8835L ) ; vds.setGuestOverhead ( 0 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCanStartOnVdsHostTooSmallButLowOverhead ( ) { vds.setMemFree ( 8835L ) ; vds.setGuestOverhead ( 0 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeParameterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.volumeParameterSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeParameterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.gluster.SubTabVolumeParameterPresenter.constants.volumeParameterSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
protected java.lang.String getTooltip ( java.lang.String value ) { return getEscapedValue ( value ) . asString ( ) ; }

Target:
protected java.lang.String getTooltip ( java.lang.String value ) { return getEscapedValue ( ( ( title ) != null ? title : value ) ) . asString ( ) ; }
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 ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }
Source:
public void setvm_domain ( java.lang.String value ) { this . mVmStatic.setdomain ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_domain" ) ) ; }

Target:
public java.util.Date getVmCreationDate ( ) { return this . vmStatic.getCreationDate ( ) ; }
Source:
public void testGetAllForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalTemplateListModel ) ( model ) ) . setItems ( ( ( java.util.Collection ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.VmTemplate > vmTemplates = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ; prefetchIcons ( vmTemplates ) ; }
Source:
public void setCommandStatus ( org.ovirt.engine.core.compat.CommandStatus status ) { this . commandStatus = status ; org.ovirt.engine.core.bll.tasks.TaskManagerUtil.updateCommandStatus ( getCommandId ( ) , getTaskType ( ) , commandStatus ) ; }

Target:
public void setCommandStatus ( org.ovirt.engine.core.compat.CommandStatus status , boolean updateDB ) { this . commandStatus = status ; if ( updateDB ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.updateCommandStatus ( getCommandId ( ) , getTaskType ( ) , commandStatus ) ; } }
Source:
public org.ovirt.engine.api.model.DataCenters list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllStoragePools , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.StoragePool ) ) ; } }

Target:
public org.ovirt.engine.api.model.DataCenters list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllStoragePools , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.StoragePool ) ) ; } }
Source:
public void onDragLeave ( com.google.gwt.event.dom.client.DragLeaveEvent event ) { table.getElement ( ) . removeClassName ( style.networkGroupDragOver ( ) ) ; }

Target:
public void onDragLeave ( com.google.gwt.event.dom.client.DragLeaveEvent event ) { ( dragCounter ) -- ; if ( ( dragCounter ) == 0 ) { eventBus.fireEvent ( new org.ovirt.engine.ui.webadmin.section.main.view.popup.host.AutoScrollDisableEvent ( this ) ) ; table.getElement ( ) . removeClassName ( style.networkGroupDragOver ( ) ) ; } }
Source:
public void validate_emptyAffinityGroup ( ) { affinityGroup.setEntityIds ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }

Target:
public void validate_emptyAffinityGroup ( ) { affinityGroup.setVmIds ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
protected java.lang.String getImageAlias ( ) { return ( org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) ) != null ? org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) . getDiskInfo ( ) . getDiskAlias ( ) : org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getDiskImage ( ) . getDiskAlias ( ) ; }

Target:
protected java.lang.String getImageAlias ( ) { return ( org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) ) != null ? org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) . getDiskInfo ( ) . getDiskAlias ( ) : org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand.getDiskImage ( ) . getDiskAlias ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.gethost_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getSecond ( ) . getvds_group_name ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ( ( storageDomain.getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.ISCSI ) ) || ( ( storageDomain.getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.FCP ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getStorageType ( ) . isBlockDomain ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
public void testFromBackendToRest ( ) { testStatusMapping ( GlusterVolumeStatus.UP , GlusterState.UP ) ; testStatusMapping ( GlusterVolumeStatus.DOWN , GlusterState.DOWN ) ; }

Target:
public void testFromBackendToRest ( ) { testStatusMapping ( GlusterStatus.UP , GlusterState.UP ) ; testStatusMapping ( GlusterStatus.DOWN , GlusterState.DOWN ) ; }
Source:
protected org.ovirt.engine.api.model.QoS doPopulate ( org.ovirt.engine.api.model.QoS model , org.ovirt.engine.core.common.businessentities.qos.QosBase entity ) { return model ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.QosParametersBase < ? > params = new org.ovirt.engine.core.common.action.QosParametersBase ( ) ; params.setQosId ( org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( id ) ) ; return performAction ( VdcActionType.RemoveStorageQos , params ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , boolean present , java.lang.String width ) { table.ensureColumnPresent ( column , header , present , width ) ; tableHeader.ensureColumnPresent ( column , header , present , width ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean visible , java.lang.String width ) { table.ensureColumnVisible ( column , headerText , visible , width ) ; tableHeader.ensureColumnVisible ( column , headerText , visible , width ) ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) , getClusterVersion ( ) ) ; }
Source:
public boolean getIsAvailable ( ) { java.lang.String fqdn = getModel ( ) . getFqdn ( ) ; return ! ( ( fqdn == null ) || ( fqdn.isEmpty ( ) ) ) ; }

Target:
public boolean getIsAvailable ( ) { return getModel ( ) . getHasDomain ( ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; alertManager.setCanShowAlerts ( true ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; removeHostPagePlaceholder ( ) ; alertManager.setCanShowAlerts ( true ) ; }
Source:
public java.lang.String getName ( ) { return getEntity ( ) . getName ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getIface ( ) { return iface ; }
Source:
private void verifyOptions ( org.ovirt.engine.api.model.GlusterVolume model , org.ovirt.engine.api.model.GlusterVolume transform ) { for ( org.ovirt.engine.api.model.Option modelOption : model.getOptions ( ) . getOptions ( ) ) { org.junit.Assert.assertTrue ( containsOption ( transform , modelOption ) ) ; } }

Target:
private void verifyOptions ( org.ovirt.engine.api.model.GlusterVolume model , org.ovirt.engine.api.model.GlusterVolume transform ) { for ( org.ovirt.engine.api.model.Option modelOption : model.getOptions ( ) . getOptions ( ) ) { org.junit.jupiter.api.Assertions.assertTrue ( containsOption ( transform , modelOption ) ) ; } }
Source:
native void readUploadedIconFile ( ) ;

Target:
native void readUploadedIconFile ( com.google.gwt.dom.client.Element inputFileElement ) ;
Source:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.ImageStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "image_id" , id ) . addValue ( "status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateImageStatus" , parameterSource ) ; }

Target:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.storage.ImageStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "image_id" , id ) . addValue ( "status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateImageStatus" , parameterSource ) ; }
Source:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( vmDisksSource , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( vmDisksSource.getStoragePoolId ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getPoolDomains ( ) { if ( ( poolDomains ) == null ) { poolDomains = org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( vmDisksSource.getStoragePoolId ( ) ) ; } return poolDomains ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileNotUsedByTemplates ( ) { return vnicProfileNotUsed ( getDbFacade ( ) . getVmTemplateDao ( ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__VM_TEMPLATES ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileNotUsedByTemplates ( ) { return vnicProfileNotUsed ( getDbFacade ( ) . getVmTemplateDao ( ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__VM_TEMPLATES , VdcBllMessages.VAR__ENTITIES__VM_TEMPLATE ) ; }
Source:
public void nicSriovNotEnabled ( ) { simulateNicExists ( ) ; validator.setOldVfsConfig ( null ) ; org.junit.Assert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NIC_IS_NOT_SRIOV_ENABLED , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }

Target:
public void nicSriovNotEnabled ( ) { simulateNicExists ( ) ; validator.setOldVfsConfig ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NIC_IS_NOT_SRIOV_ENABLED , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }
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 new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ( ) ; } return source ; }
Source:
private void validatePassword ( java.lang.String pass ) throws org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsResult { if ( org.apache.commons.lang.StringUtils.containsAny ( pass , ILLEGAL_PASSWORD_CHARACTERS ) ) { throw new org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsResult ( ManageDomainsResultEnum.ILLEGAL_PASSWORD ) ; } }

Target:
private void validatePassword ( java.lang.String pass ) throws org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsResult { if ( org.apache.commons.lang.StringUtils.isBlank ( pass ) ) { throw new org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsResult ( ManageDomainsResultEnum.EMPTY_PASSWORD ) ; } if ( org.apache.commons.lang.StringUtils.containsAny ( pass , ILLEGAL_PASSWORD_CHARACTERS ) ) { throw new org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsResult ( ManageDomainsResultEnum.ILLEGAL_PASSWORD ) ; } }
Source:
public java.lang.String getNetmask ( ) { return nic.getSubnet ( ) ; }

Target:
public java.lang.String getNetmask ( ) { return nic.getIpv4Subnet ( ) ; }
Source:
public void setSelectionNodeList ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel > value ) { if ( ( selectionNodeList ) != value ) { selectionNodeList = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SelectionNodeList" ) ) ; } }

Target:
public void setSelectionNodeList ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel > value ) { if ( ( selectionNodeList ) != value ) { selectionNodeList = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SelectionNodeList" ) ) ; } }
Source:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( status ) != value ) { status = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Status" ) ) ; } }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( status ) != value ) { status = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Status" ) ) ; } }
Source:
public void changeWorkingSolution ( org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector ) { org.optaplanner.core.api.score.Score score = scoreDirector.calculateScore ( ) ; scoreDirector.getWorkingSolution ( ) . setScore ( score ) ; org.ovirt.optimizer.util.ScoreOnlyPhase.logger.debug ( scoreDirector.getWorkingSolution ( ) . getScore ( ) . toString ( ) ) ; }

Target:
public void changeWorkingSolution ( org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector ) { org.optaplanner.core.api.score.Score score = scoreDirector.calculateScore ( ) ; scoreDirector.getWorkingSolution ( ) . setScore ( score ) ; org.ovirt.optimizer.optaplanner.ScoreOnlyPhase.logger.debug ( scoreDirector.getWorkingSolution ( ) . getScore ( ) . toString ( ) ) ; }
Source:
public java.lang.String getDefaultTitle ( ) { return org.ovirt.engine.ui.webadmin.widget.table.column.CONSTANTS.commentLabel ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( T value ) { if ( ( value == null ) || ( ( value.getComment ( ) ) == null ) ) { return null ; } return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( value.getComment ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VolumeType getRawValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( object ) ) . getVolumeType ( ) : null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.VolumeType getRawValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) . getVolumeType ( ) : null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isHostedEngineStorage ( ) { if ( org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.HostedEngineStorageDomainName ) . equals ( storageDomain.getName ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_HOSTED_ENGINE_STORAGE ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isHostedEngineStorage ( ) { if ( org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.HostedEngineStorageDomainName ) . equals ( storageDomain.getName ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_HOSTED_ENGINE_STORAGE ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createNewStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setstorage_pool_type ( StorageType.NFS ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createNewStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setStorageType ( StorageType.NFS ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }
Source:
protected void finished ( org.junit.runner.Description description ) { super . finished ( description ) ; }

Target:
protected void finished ( org.junit.runner.Description description ) { super . finished ( description ) ; org.ovirt.engine.core.di.InjectorRule.beansCache.clear ( ) ; }
Source:
protected void init ( ) { disk = diskHandler.loadDiskFromSnapshot ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getParameters ( ) . getEntityInfo ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getParameters ( ) . getSnapshotId ( ) ) ; }

Target:
protected void init ( ) { disk = diskHandler.loadDiskFromSnapshot ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getDiskVmElement ( ) . getDiskId ( ) , org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getParameters ( ) . getSnapshotId ( ) ) ; }
Source:
public void shouldSetNumaPinning ( ) { assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldDetectHostWihtoutNumaSupport ( ) { vdsNumaNodes = new java.util.ArrayList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVdsNumaNode ( 1 ) ) ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.validateNumaCompatibility ( vm , vm.getvNumaNodeList ( ) , vdsNumaNodes ) , EngineMessage.HOST_NUMA_NOT_SUPPORTED ) ; }
Source:
public int getVmsCountByClusterId ( org.ovirt.engine.core.compat.Guid vdsGroupId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , vdsGroupId ) ; return getCallsHandler ( ) . executeRead ( "GetNumberOfVmsInCluster" , getIntegerMapper ( ) , parameterSource ) ; }

Target:
public int getVmsCountByClusterId ( org.ovirt.engine.core.compat.Guid clusterId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ; return getCallsHandler ( ) . executeRead ( "GetNumberOfVmsInCluster" , getIntegerMapper ( ) , parameterSource ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.StorageType getType ( ) { return org.ovirt.engine.core.common.businessentities.storage.StorageType.GLUSTERFS ; }

Target:
public java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.StorageType > getTypes ( ) { return java.util.Collections.singleton ( StorageType.GLUSTERFS ) ; }
Source:
protected void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { latch.setLabel ( constants.latchApproveOperationLabel ( ) ) ; }

Target:
protected void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { latch.setLabel ( constants.latchApproveOperationLabel ( ) ) ; reasonEditor.setLabel ( constants.reasonLabel ( ) ) ; }
Source:
java.lang.String cpuInfoMessage ( int numOfCpus , int sockets , int coresPerSocket ) ;

Target:
java.lang.String cpuInfoMessage ( int numOfCpus , int sockets , int coresPerSocket , int threadsPerSocket ) ;
Source:
java.lang.String templateDiskDescription ( java.lang.String diskAlias , java.lang.String storageDomainName ) ;

Target:
java.lang.String lunAlreadyPartOfStorageDomainWarning ( java.lang.String storageDomainName ) ;
Source:
public static org.ovirt.engine.core.bll.job.JobRepository getJobRepository ( ) { return org.ovirt.engine.core.bll.job.JobRepositoryFactory.jobRepository ; }

Target:
public static org.ovirt.engine.core.bll.job.JobRepository getJobRepository ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.job.JobRepository.class ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.gluster.AddGlusterServerVDSCommand.getBroker ( ) . glusterHostAdd ( org.ovirt.engine.core.vdsbroker.gluster.AddGlusterServerVDSCommand.getParameters ( ) . getHostnameOrIp ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.AddGlusterServerVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.gluster.AddGlusterServerVDSCommand.getBroker ( ) . glusterHostAdd ( org.ovirt.engine.core.vdsbroker.gluster.AddGlusterServerVDSCommand.getParameters ( ) . getHostnameOrIp ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.AddGlusterServerVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void setUp ( ) { adUser = new org.ovirt.engine.core.common.businessentities.LdapUser ( "UserName" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , "DomainController" ) ; }

Target:
public void setUp ( ) { adUser = new org.ovirt.engine.core.common.businessentities.LdapUser ( ) ; adUser.setUserName ( "UserName" ) ; adUser.setUserId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; adUser.setDomainControler ( "DomainController" ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VdsStatistics result = dao.get ( existingVds.getId ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingVds.getId ( ) , result.getId ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VdsStatistics result = dao.get ( existingVds.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getId ( ) , result.getId ( ) ) ; }
Source:
public void hideLabel ( ) { labelElement.addClassName ( style.labelHidden ( ) ) ; }

Target:
public void hideLabel ( ) { getLabelElement ( ) . addClassName ( style.labelHidden ( ) ) ; }
Source:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) , clusterId ) ; }

Target:
public org.ovirt.engine.api.resource.ClusterNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( clusterId , id ) ) ; }
Source:
public boolean isManaged ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return details != null ? details.isManaged ( ) : true ; }

Target:
public boolean isInSync ( ) { org.ovirt.engine.core.common.businessentities.network.ReportedConfigurations reportedConfigurations = getReportedConfigurations ( ) ; return ( reportedConfigurations == null ) || ( reportedConfigurations.isNetworkInSync ( ) ) ; }
Source:
public void testValidModifiedBondsFailsWhenBondIsUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment createNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network networkA , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { return createNetworkAttachment ( networkA , nic , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public boolean isWebSocketProxyDefined ( ) { return configurator.isWebSocketProxyDefined ( ) ; }

Target:
public boolean webBasedClientsSupported ( ) { return ( configurator.isWebSocketProxyDefined ( ) ) && ( ! ( configurator.isClientWindowsExplorer ( ) ) ) ; }
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 ( org.ovirt.engine.api.restapi.resource.AbstractBackendNetworkResourceTest.mock ( 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 , boolean isDefaultRoute ) { 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 , isDefaultRoute , index ) ; }
Source:
public void testGetSoundDevice ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( org.ovirt.engine.core.utils.OsRepositoryImplTest.SOUND_DEVICE , OsRepositoryImpl.INSTANCE.getSoundDevice ( 777 , null ) ) ; }

Target:
public void testGetSoundDevice ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "ac97" , OsRepositoryImpl.INSTANCE.getSoundDevice ( 777 , null , ChipsetType.I440FX ) ) ; }
Source:
private org.ovirt.engine.ui.common.widget.label.EnableableFormLabel getLabel ( ) { return ( ( org.ovirt.engine.ui.common.widget.label.EnableableFormLabel ) ( tooltip.getWidget ( ) ) ) ; }

Target:
public java.lang.String getText ( ) { return label.getText ( ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.DiskImagesValidator createDiskImagesValidator ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > disks ) { return new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( disks ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.DiskValidator createDiskValidator ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return new org.ovirt.engine.core.bll.validator.DiskValidator ( disk ) ; }
Source:
public void onLogout ( ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . signOut ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; }

Target:
public void onLogout ( ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . signOut ( ) ; performLogout ( ) ; }
Source:
public static void addDisk ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk ) { if ( ! ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . exists ( disk.getId ( ) ) ) ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . save ( disk ) ; } }

Target:
public void addDiskToVmIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk , org.ovirt.engine.core.compat.Guid vmId ) { if ( ! ( baseDiskDao.exists ( disk.getId ( ) ) ) ) { addDiskToVm ( disk , vmId ) ; } }
Source:
protected void logEndTaskSuccess ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.infoFormat ( "BaseAsyncTask::onTaskEndSuccess: Task '{0}' (Parent Command {1}, Parameters Type {2}) ended successfully." , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getaction_type ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }

Target:
protected void logEndTaskSuccess ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.infoFormat ( "BaseAsyncTask::onTaskEndSuccess: Task '{0}' (Parent Command {1}, Parameters Type {2}) ended successfully." , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getActionType ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }
Source:
public void numOfVfsValidEqualsMax ( ) { numOfVfsInRangeTest ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS , org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS ) ; org.junit.Assert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void numOfVfsValidZero ( ) { numOfVfsInRangeTest ( 0 , org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS ) ; org.hamcrest.MatcherAssert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void typeMatchesProfileBothNotPassthrough ( ) { typeMatchesProfileCommon ( false , false ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void typeMatchesProfileBothNotPassthrough ( ) { typeMatchesProfileCommon ( false , false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void debug ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { log.debug ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; }

Target:
public void debug ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { if ( isDebugEnabled ( ) ) { log.debug ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getGlusterVolume ( ) { if ( ( ( glusterVolume ) == null ) && ( ( glusterVolumeId ) != null ) ) { glusterVolume = getGlusterVolumeDao ( ) . getById ( glusterVolumeId ) ; } return glusterVolume ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getGlusterVolume ( ) { if ( ( ( glusterVolume ) == null ) && ( ( glusterVolumeId ) != null ) ) { glusterVolume = glusterVolumeDao.getById ( glusterVolumeId ) ; } return glusterVolume ; }
Source:
public void resetCompensation ( ) { }

Target:
public boolean isCompensationEnabled ( ) { return false ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( null , "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( null , "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private static void generateRsdlFile ( org.ovirt.engine.api.rsdl.MetaData metadata , java.lang.String outputFileName , java.util.List < java.lang.String > rels ) throws java.io.IOException , java.lang.ClassNotFoundException { org.ovirt.engine.api.model.RSDL rsdl = org.ovirt.engine.api.rsdl.RsdlManager.buildRsdl ( metadata , rels ) ; org.ovirt.engine.api.rsdl.RsdlManager.serializeRsdl ( rsdl , outputFileName ) ; }

Target:
private static void generateRsdlFile ( org.ovirt.engine.api.rsdl.MetaData metadata , java.lang.String outputFileName , java.util.List < java.lang.String > rels ) throws java.io.IOException , java.lang.ClassNotFoundException { org.ovirt.engine.api.model.Rsdl rsdl = org.ovirt.engine.api.rsdl.RsdlManager.buildRsdl ( metadata , rels ) ; org.ovirt.engine.api.rsdl.RsdlManager.serializeRsdl ( rsdl , outputFileName ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return result.getXmlRpcStatus ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.Status getReturnStatus ( ) { return result.getStatus ( ) ; }
Source:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionHostsAndNetwork ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
public void testGetWithTrailingSlash ( ) { doTestGet ( ( ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) + "/" ) ) ; }

Target:
public void testGet ( ) { doTestGet ( ApplicationMode.AllModes , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) ; }
Source:
public void updateCallBackNotified ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
public void updateCallbackNotified ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , org.ovirt.engine.api.model.Nic nic ) { return new org.ovirt.engine.core.common.action.AddVmInterfaceParameters ( parentId , entity ) ; }

Target:
public org.ovirt.engine.api.resource.VmNicResource getNicResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicResource ( id , vmId ) ) ; }
Source:
public void discardAfterDeleteNotSupportedByDcVersion ( ) { domain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertThat ( validator.isDiscardAfterDeleteSupportedByDcVersion ( Version.v4_0 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISCARD_AFTER_DELETE_NOT_SUPPORTED_BY_DC_VERSION ) ) ; }

Target:
public void discardAfterDeleteNotSupportedByDcVersion ( ) { domain.setDiscardAfterDelete ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isDiscardAfterDeleteSupportedByDcVersion ( Version.v4_0 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISCARD_AFTER_DELETE_NOT_SUPPORTED_BY_DC_VERSION ) ) ; }
Source:
public void activated ( ) { if ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFields ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { numaSupport ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForStorageDomain ( org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.VolumeType getMemoryVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForStorageDomain ( org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; }
Source:
public void setValue ( com.google.gwt.user.client.ui.Widget value ) { this . value = value ; }

Target:
public void setFormPanel ( org.ovirt.engine.ui.common.widget.form.AbstractFormPanel formPanel ) { this . formPanel = formPanel ; }
Source:
public void Search ( ) { super . Search ( ) ; if ( ( getEntity ( ) ) != null ) { getRefreshCommand ( ) . Execute ( ) ; } }

Target:
public void Search ( ) { super . Search ( ) ; forceRefresh ( ) ; }
Source:
public java.lang.String getName ( ) { return getvds_name ( ) ; }

Target:
public java.lang.String getName ( ) { return getVdsName ( ) ; }
Source:
public int getRow ( ) { return row ; }

Target:
public int getRow ( ) { return ( autoPlacement ) && ( ( autoPlacementRow ) != ( org.ovirt.engine.ui.common.widget.form.FormItem.UNASSIGNED_ROW ) ) ? autoPlacementRow : row ; }
Source:
public void setpm_port ( java.lang.Integer value ) { mVdsStatic.setpm_port ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "pm_port" ) ) ; }

Target:
public java.lang.String getPmProxyPreferences ( ) { return mVdsStatic.getPmProxyPreferences ( ) ; }
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 ) { updateSysprepVisibility ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateCloudInitVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAdGroupByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAdGroupByIdQuery.getDbFacade ( ) . getAdGroupDAO ( ) . get ( org.ovirt.engine.core.bll.GetAdGroupByIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAdGroupByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAdGroupByIdQuery.getDbFacade ( ) . getAdGroupDao ( ) . get ( org.ovirt.engine.core.bll.GetAdGroupByIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public void setusage_mem_percent ( java.lang.Integer value ) { this . mVmStatistics.setusage_mem_percent ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "usage_mem_percent" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsSelectionAlgorithm getSelectionAlgorithm ( ) { return selectionAlgorithm ; }
Source:
private java.lang.String getIsoPrefixFromStoragePoolInfoReturnValue ( org.ovirt.engine.core.vdsbroker.irsbroker.StoragePoolInfoReturnForXmlRpc retVal ) { return retVal.mStoragePoolInfo.containsKey ( IrsProperties.isoPrefix ) ? retVal.mStoragePoolInfo.get ( IrsProperties.isoPrefix ) . toString ( ) : org.apache.commons.lang.StringUtils.EMPTY ; }

Target:
private java.lang.String getIsoPrefixFromStoragePoolInfoReturnValue ( org.ovirt.engine.core.vdsbroker.irsbroker.StoragePoolInfoReturnForXmlRpc retVal ) { return retVal.storagePoolInfo.containsKey ( IrsProperties.isoPrefix ) ? retVal.storagePoolInfo.get ( IrsProperties.isoPrefix ) . toString ( ) : org.apache.commons.lang.StringUtils.EMPTY ; }
Source:
public void validNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , "net" , true ) ; }

Target:
public void validVnicProfileWhenUnlinkingSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.VNIC_PROFILE_ID ) ; }
Source:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork object , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { super . render ( context , object , sb ) ; sb.append ( templates.textForCheckBox ( "" ) ) ; }

Target:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork object , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { super . render ( context , object , sb ) ; sb.append ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ImportNetworksPopupView.templates.textForCheckBox ( "" ) ) ; }
Source:
public void testGetAllForStoragePoolWithInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStoragePoolWithInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getstatus ( ) { return this . mVmDynamic.getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . vmDynamic.getstatus ( ) ; }