auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.Object Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( returnValue != null ) { cachedConfigValuesPreConvert.putAll ( ( ( java.util.HashMap < org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > , java.lang.Object > ) ( returnValue ) ) ) ; } return cachedConfigValuesPreConvert ; }

Target:
public java.lang.Object convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( returnValue != null ) { cachedConfigValuesPreConvert.putAll ( ( ( java.util.HashMap < org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > , java.lang.Object > ) ( returnValue ) ) ) ; } return cachedConfigValuesPreConvert ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( entity , index , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { org.ovirt.engine.api.model.StorageDomain entity = org.mockito.Mockito.mock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( entity , index , StorageType.NFS ) ; }
Source:
private void networkPrefixValidTest ( org.ovirt.engine.core.bll.ValidationResult expected , java.lang.String networkName ) { org.mockito.Mockito.when ( network.getName ( ) ) . thenReturn ( networkName ) ; org.junit.Assert.assertEquals ( expected , validator.networkPrefixValid ( ) ) ; }

Target:
private void networkPrefixValidTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher , java.lang.String networkName ) { org.mockito.Mockito.when ( network.getName ( ) ) . thenReturn ( networkName ) ; org.junit.Assert.assertThat ( validator.networkPrefixValid ( ) , matcher ) ; }
Source:
public void testConnection ( ) { org.apache.commons.httpclient.HttpMethod httpMethod = new org.apache.commons.httpclient.methods.GetMethod ( hostProvider.getUrl ( ) ) ; runHttpMethod ( httpClient , httpMethod ) ; }

Target:
public void testConnection ( ) { org.apache.commons.httpclient.HttpMethod httpMethod = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.API_ENTRY_POINT ) ; runHttpMethod ( httpClient , httpMethod ) ; }
Source:
private void initIpConfigurationDetails ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , boolean initAddress , boolean initNetmask ) { initIpConfigurationWithBootProtocol ( ipv4BootProtocol ) ; if ( initAddress ) { initIpConfigurationAddress ( ) ; } if ( initNetmask ) { initIpConfigurationNetmask ( ) ; } }

Target:
public void checkValidIpv4ConfigurationNoneBootProtocol ( ) { initIpv4ConfigurationDetails ( Ipv4BootProtocol.NONE , false , false ) ; initIpv6Address ( ) ; setIpv6BootProtocol ( Ipv6BootProtocol.AUTOCONF ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductRPMVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" , "ConfigValue" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID , org.ovirt.engine.core.common.queries.ConfigurationValues.ProductRPMVersion } ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductRPMVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" , "ConfigValue" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID , org.ovirt.engine.core.common.config.ConfigValues.ProductRPMVersion } ) ; }
Source:
public java.lang.String getName ( ) { return getEntity ( ) . getname ( ) ; }

Target:
public int getVlanId ( ) { java.lang.Integer vlanId = getEntity ( ) . getvlan_id ( ) ; return vlanId == null ? 0 : vlanId ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.AllServerCpuList ( org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getParameters ( ) . getVersion ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.allServerCpuList ( org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getParameters ( ) . getVersion ( ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.Event getDisconnectedEvent ( ) { return null ; }

Target:
public org.ovirt.engine.core.compat.Event getDisconnectedEvent ( ) { return disconnectedEvent ; }
Source:
protected boolean updateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.updateVmInSpm ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getstorage_pool_id ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) ) ) ; }

Target:
protected void incrementDbGeneration ( ) { org.ovirt.engine.core.bll.MoveVmCommand.getVmStaticDAO ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getId ( ) ) ; }
Source:
public void testDomainWithNotEnoughSpaceForRequestWithoutThreshold ( ) { validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.StorageDomainValidatorTest.mockStorageDomain ( 12 , 748 , StorageType.NFS ) ) ; org.junit.Assert.assertEquals ( "Wrong failure for not enough space for request" , VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_TARGET_STORAGE_DOMAIN , validator.isDomainHasSpaceForRequest ( 13 , false ) . getMessage ( ) ) ; }

Target:
public void testDomainWithNotEnoughSpaceForRequestWithoutThreshold ( ) { validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.StorageDomainValidatorTest.mockStorageDomain ( 12 , 748 , StorageType.NFS ) ) ; org.junit.Assert.assertEquals ( "Wrong failure for not enough space for request" , VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN , validator.isDomainHasSpaceForRequest ( 13 , false ) . getMessage ( ) ) ; }
Source:
public void testUpdateVmCpuProfileIdForClusterId ( ) { updateCpuProfile ( FixturesTool.VDS_GROUP_RHEL6_ISCSI , FixturesTool.CPU_PROFILE_2 ) ; }

Target:
public void testUpdateVmCpuProfileIdForClusterId ( ) { updateCpuProfile ( FixturesTool.CLUSTER_RHEL6_ISCSI , FixturesTool.CPU_PROFILE_2 ) ; }
Source:
private static org.ovirt.engine.core.compat.Guid ensureSmallIconInDatabase ( org.ovirt.engine.core.compat.Guid largeIconId ) { final java.lang.String largeIconDataUrl = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmIconDao ( ) . get ( largeIconId ) . getDataUrl ( ) ; return org.ovirt.engine.core.bll.utils.IconUtils.ensureIconPairInDatabase ( largeIconDataUrl ) . getSmall ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid ensureSmallIconInDatabase ( org.ovirt.engine.core.compat.Guid largeIconId ) { final java.lang.String largeIconDataUrl = vmIconDao.get ( largeIconId ) . getDataUrl ( ) ; return ensureIconPairInDatabase ( largeIconDataUrl ) . getSmall ( ) ; }
Source:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetDiskLunMapByDiskId ( ) { org.junit.Assert.assertEquals ( dao.getDiskLunMapByDiskId ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getDiskId ( ) ) , new org.ovirt.engine.core.common.businessentities.storage.DiskLunMap ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getDiskId ( ) , org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) ) ; }

Target:
public void testGetDiskLunMapByDiskId ( ) { org.junit.jupiter.api.Assertions.assertEquals ( dao.getDiskLunMapByDiskId ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getDiskId ( ) ) , new org.ovirt.engine.core.common.businessentities.storage.DiskLunMap ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getDiskId ( ) , org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) ) ; }
Source:
protected void enableDisableBySync ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceModel model ) { boolean bootProtocolsAvailable = model.getBootProtocolsAvailable ( ) ; bootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; bootProtocol.setEnabled ( bootProtocolsAvailable ) ; bootProtocol.setEnabled ( NetworkBootProtocol.NONE , model.getNoneBootProtocolAvailable ( ) ) ; }

Target:
protected void enableDisableByBootProtocol ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceModel model ) { boolean bootProtocolsAvailable = model.getBootProtocolsAvailable ( ) ; bootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; bootProtocol.setEnabled ( bootProtocolsAvailable ) ; bootProtocol.setEnabled ( NetworkBootProtocol.NONE , model.getNoneBootProtocolAvailable ( ) ) ; }
Source:
public void setDisplaySecurePort ( java.lang.Integer value ) { this . displaySecurePort = value ; }

Target:
public void setGuestOsArch ( java.lang.Integer arch ) { this . guestOsArch = org.ovirt.engine.core.common.businessentities.ArchitectureType.forValue ( arch ) ; }
Source:
public void qosBondAndSlaveSpeedsMissing ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosBondSpeedSetup ( null , null ) ; validateAndExpectViolation ( helper , VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INVALID_INTERFACE_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }

Target:
public void qosBondAndSlaveSpeedsMissing ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosBondSpeedSetup ( null , null ) ; validateAndExpectViolation ( helper , EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INVALID_INTERFACE_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }
Source:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
public static boolean isUpdateValidForVmDevice ( java.lang.String fieldName , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.IsFieldUpdatable ( status , fieldName , null ) ; }

Target:
public static boolean isUpdateValidForVmDevice ( java.lang.String fieldName , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.IsFieldUpdatable ( status , fieldName , null ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceModel flush ( ) { qosWidget.flush ( ) ; return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.hosts.NetworkAttachmentModel flush ( ) { qosWidget.flush ( ) ; return driver.flush ( ) ; }
Source:
public void writeStartElement ( java.lang.String name ) { try { writer.writeStartElement ( name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }

Target:
public void writeStartDocument ( java.lang.String encoding , java.lang.String version ) { try { writer.writeStartDocument ( encoding , version ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( "Can't write start of document" , exception ) ; } }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, storagePoolId=%s" , super . toString ( ) , getStoragePoolId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "storagePoolId" , getStoragePoolId ( ) ) ; }
Source:
public void create ( ) { org.ovirt.engine.core.bll.Backend.checkDBConnectivity ( ) ; initialize ( ) ; }

Target:
public void create ( ) { checkDBConnectivity ( ) ; try { initialize ( ) ; } catch ( java.lang.Exception ex ) { org.ovirt.engine.core.bll.Backend.log.error ( "Error during initialization" , ex ) ; throw ex ; } }
Source:
public void canDoAction_changeClusterIds_Test ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . when ( command ) . getClusterId ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_CLUSTER_ID ) ; }

Target:
public void canDoAction_changeClusterIds_Test ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . when ( command ) . getClusterId ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_CLUSTER_ID ) ; }
Source:
public void setImagesParameters ( java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > value ) { imagesParameters = value ; }

Target:
public void setImagesParameters ( java.util.List < org.ovirt.engine.core.common.action.ActionParametersBase > value ) { imagesParameters = value ; }
Source:
public void testGetAllByVMTemplateName ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMTemplateName ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_NAME ) ) ; }

Target:
public void testGetAllByVMNameUnprivilegedUserFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameInvalidResults ( dao.getAllByVMId ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ) ; }
Source:
public java.security.Principal getUserPrincipal ( ) { return null ; }

Target:
protected abstract org.ovirt.engine.sdk4.HttpClient createHttpClient ( ) throws org.apache.http.ProtocolException ;
Source:
protected boolean cpuExists ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( cluster.getCpuName ( ) , cluster.getCompatibilityVersion ( ) ) ; }

Target:
protected boolean cpuExists ( ) { return cpuFlagsManagerHandler.checkIfCpusExist ( cluster.getCpuName ( ) , cluster.getCompatibilityVersion ( ) ) ; }
Source:
public void testDeleteByPoolvds_spm_id_map ( ) { dao.removeByVdsAndStoragePool ( existingVdsSpmIdMap.getId ( ) , existingVdsSpmIdMap.getStoragePoolId ( ) ) ; org.ovirt.engine.core.common.businessentities.VdsSpmIdMap result = dao.get ( existingVdsSpmIdMap.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testDeleteByPoolVdsSpmIdMap ( ) { dao.removeByVdsAndStoragePool ( existingVdsSpmIdMap.getId ( ) , existingVdsSpmIdMap.getStoragePoolId ( ) ) ; org.ovirt.engine.core.common.businessentities.VdsSpmIdMap result = dao.get ( existingVdsSpmIdMap.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private void updateStorageDomainStaticData ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . update ( storageDomainStatic ) ; }

Target:
private void updateStorageDomainStaticData ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic ) { org.ovirt.engine.core.bll.storage.DeactivateStorageDomainCommand.getStorageDomainStaticDao ( ) . update ( storageDomainStatic ) ; }
Source:
private void mockDynamicVmDao ( ) { mockDynamicVm = getVmDynamic ( ) ; org.mockito.Mockito.doReturn ( vmDynamicDAO ) . when ( spyCommand ) . getVmDynamicDAO ( ) ; org.mockito.Mockito.when ( vmDynamicDAO.get ( vmId ) ) . thenReturn ( mockDynamicVm ) ; }

Target:
private void mockDynamicVmDao ( ) { mockDynamicVm = getVmDynamic ( ) ; org.mockito.Mockito.doReturn ( vmDynamicDAO ) . when ( spyCommand ) . getVmDynamicDao ( ) ; org.mockito.Mockito.when ( vmDynamicDAO.get ( vmId ) ) . thenReturn ( mockDynamicVm ) ; }
Source:
public final void AddPermittedFields ( java.lang.String ... fieldNames ) { for ( java.lang.String fieldName : fieldNames ) { AddPermittedField ( fieldName ) ; } }

Target:
public final void AddPermittedFields ( java.lang.String ... fieldNames ) { for ( java.lang.String fieldName : fieldNames ) { permitted.add ( fieldName ) ; } }
Source:
public void setElementId ( java.lang.String elementId ) { this . elementId = elementId ; }

Target:
public void setElementId ( java.lang.String elementId ) { this . elementId = elementId ; for ( int i = 0 ; i < ( org.ovirt.engine.ui.common.widget.table.ElementIdCellTable.getColumnCount ( ) ) ; i ++ ) { configureElementId ( org.ovirt.engine.ui.common.widget.table.ElementIdCellTable.getColumn ( i ) ) ; } }
Source:
private void initEditors ( ) { forceEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; geoRepForceHelpIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( templates.italicText ( constants.notAvailableLabel ( ) ) , resources ) ; }

Target:
private void initEditors ( ) { forceEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; geoRepForceHelpIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GeoRepActionConfirmPopUpView.templates.italicText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GeoRepActionConfirmPopUpView.constants.notAvailableLabel ( ) ) ) ; }
Source:
public void setBondingOptionsOverrideNotification ( boolean value ) { setbondingOptionsOverrideNotification ( value ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BondingOptionsOverrideNotification" ) ) ; }

Target:
public void setBondingOptionsOverrideNotification ( boolean value ) { bondingOptionsOverrideNotification = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BondingOptionsOverrideNotification" ) ) ; }
Source:
public void initializeCommand ( ) { org.ovirt.engine.core.common.action.AdElementParametersBase parameters = createParameters ( ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAdGroupCommand < org.ovirt.engine.core.common.action.AdElementParametersBase > ( parameters ) ) ; }

Target:
public void initializeCommand ( ) { org.ovirt.engine.core.common.action.IdParameters parameters = createParameters ( ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveGroupCommand < org.ovirt.engine.core.common.action.IdParameters > ( parameters ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult nameAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) . when ( ( ( getProviderDao ( ) . getByName ( provider.getName ( ) ) ) != null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nameAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) . when ( ( ( org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.provider.ProviderDao.class ) . getByName ( provider.getName ( ) ) ) != null ) ) ; }
Source:
protected void setUpGetEntityExpectations ( int index ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.LdapGroup user = org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.LdapGroup.class ) , index ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , user ) ; }

Target:
private void setUpParentExpectations ( ) { org.ovirt.engine.api.restapi.resource.BackendDomainGroupsResource parent = control.createMock ( org.ovirt.engine.api.restapi.resource.BackendDomainGroupsResource.class ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.easymock.EasyMock.expect ( parent.getDirectory ( ) ) . andReturn ( domain ) . anyTimes ( ) ; resource.setParent ( parent ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VMs list ( ) { return adaptList ( getDelegate ( ) :: list ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VMs list ( ) { org.ovirt.engine.api.v3.types.V3VMs vms = adaptList ( getDelegate ( ) :: list ) ; vms.getVMs ( ) . stream ( ) . forEach ( V3VmHelper :: addDisksLink ) ; return vms ; }
Source:
public void SuccededToRunVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( _asyncRunningVms.contains ( vmId ) ) { getEventListener ( ) . runningSucceded ( vmId ) ; } RemoveAsyncRunningVm ( vmId ) ; }

Target:
public void SuccededToRunVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( _asyncRunningVms.containsKey ( vmId ) ) { getEventListener ( ) . runningSucceded ( vmId ) ; } RemoveAsyncRunningVm ( vmId ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml strongText ( java.lang.String text ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml horizontalLine ( ) ;
Source:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getstorage_pool_id ( ) . getValue ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }

Target:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( vmDisksSource , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( vmDisksSource.getStoragePoolId ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }
Source:
public void setServletURL ( java.lang.String servletURL ) { this . servletURL = servletURL ; }

Target:
public void setGetSessionUserServletURL ( java.lang.String getSessionUserGetSessionUserServletURL ) throws java.net.MalformedURLException { this . getSessionUserGetSessionUserServletURL = new java.net.URL ( getSessionUserGetSessionUserServletURL ) ; }
Source:
protected static boolean canAttachNonPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vm_guid ) { return org.ovirt.engine.core.bll.VmPoolCommandBase.isVmFree ( vm_guid , new java.util.ArrayList < java.lang.String > ( ) ) ; }

Target:
protected static boolean canAttachNonPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vm_guid , java.util.ArrayList < java.lang.String > messages ) { return org.ovirt.engine.core.bll.VmPoolCommandBase.isVmFree ( vm_guid , messages ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . hideRoleSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { model.populateNamespaces ( ) ; }
Source:
public void testGetSysprepPath ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.utils.OsRepositoryImplTest.PATH_TO_SYSPREP , OsRepositoryImpl.INSTANCE.getSysprepPath ( 777 , null ) ) ; }

Target:
public void testGetSysprepPath ( ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.utils.OsRepositoryImplTest.PATH_TO_SYSPREP , OsRepositoryImpl.INSTANCE.getSysprepPath ( 777 , null ) ) ; }
Source:
private void mockOvirtNode ( ) { org.mockito.Mockito.when ( host.isOvirtVintageNode ( ) ) . thenReturn ( true ) ; }

Target:
private void mockOvirtNode ( ) { host.setVdsType ( VDSType.oVirtVintageNode ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) . intValue ( ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Tags lookupTagByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , VdcQueryType.GetTagByTagName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , name ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Tags lookupTagByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , QueryType.GetTagByTagName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , name ) ; }
Source:
private void decrementVdsPendingVmsCount ( ) { synchronized ( _vds_pending_vm_count ) { int i = _vds_pending_vm_count.get ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; _vds_pending_vm_count.put ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , ( i - 1 ) ) ; } }

Target:
private org.ovirt.engine.core.common.action.CreateAllSnapshotsFromVmParameters buildCreateSnapshotParametersForEndAction ( ) { org.ovirt.engine.core.common.action.CreateAllSnapshotsFromVmParameters parameters = buildCreateSnapshotParameters ( ) ; parameters.setImagesParameters ( org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) . getImagesParameters ( ) ) ; return parameters ; }
Source:
public void setAcceptableValues ( java.util.Collection < java.lang.Object > values ) { java.util.Collection < java.lang.String > stringValues = org.ovirt.engine.ui.uicommonweb.Linq.Cast ( values ) ; suggestOracle.clear ( ) ; suggestOracle.addAll ( stringValues ) ; suggestOracle.setDefaultSuggestionsFromText ( stringValues ) ; }

Target:
public void setAcceptableValues ( java.util.Collection < java.lang.Object > values ) { java.util.Collection < java.lang.String > stringValues = org.ovirt.engine.ui.uicommonweb.Linq.cast ( values ) ; suggestOracle.clear ( ) ; suggestOracle.addAll ( stringValues ) ; suggestOracle.setDefaultSuggestionsFromText ( stringValues ) ; }
Source:
public static boolean osNameExists ( java.lang.Integer osId ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.keySet ( ) . contains ( osId ) ; }

Target:
public boolean osNameExists ( java.lang.Integer osId ) { return osNames.keySet ( ) . contains ( osId ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeChildCommand ( org.ovirt.engine.core.compat.Guid idInCommandsMap ) { org.ovirt.engine.core.bll.CommandBase < ? > command = childCommandsMap.get ( idInCommandsMap ) ; return getBackendCommandObjectsHandler ( ) . runAction ( command , getExecutionContext ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeChildCommand ( org.ovirt.engine.core.compat.Guid idInCommandsMap ) { org.ovirt.engine.core.bll.CommandBase < ? > command = childCommandsMap.get ( idInCommandsMap ) ; return org.ovirt.engine.core.bll.utils.BackendUtils.getBackendCommandObjectsHandler ( log ) . runAction ( command , getExecutionContext ( ) ) ; }
Source:
public static boolean isVmWithSameNameExistStatic ( java.lang.String vmName ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmStatic > vmStatic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStaticDAO ( ) . getAllByName ( vmName ) ; return ( vmStatic.size ( ) ) != 0 ; }

Target:
public static boolean isVmWithSameNameExistStatic ( java.lang.String vmName ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmStatic > vmStatic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStaticDao ( ) . getAllByName ( vmName ) ; return ( vmStatic.size ( ) ) != 0 ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return group ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel object ) { disksAllocationView.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel object ) { disksAllocationView.edit ( object ) ; disksAllocationModel = object ; }
Source:
private org.ovirt.engine.core.compat.Guid getStorageDomainIdForPoolByType ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.core.compat.Guid returnValue = org.ovirt.engine.core.compat.Guid.Empty ; org.ovirt.engine.core.common.businessentities.StorageDomain domain = getStorageDomain ( pool , type ) ; if ( domain != null ) { returnValue = domain.getId ( ) ; } return returnValue ; }

Target:
private org.ovirt.engine.core.compat.Guid getStorageDomainId ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.core.compat.Guid returnValue = org.ovirt.engine.core.compat.Guid.Empty ; org.ovirt.engine.core.common.businessentities.StorageDomain domain = getStorageDomain ( poolId , type ) ; if ( domain != null ) { returnValue = domain.getId ( ) ; } return returnValue ; }
Source:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getVdsWhiteList ( ) { return java.util.Arrays.asList ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getVdsDestinationId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getVdsWhiteList ( ) { return java.util.Arrays.asList ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getDestinationVdsId ( ) ) ; }
Source:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }

Target:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }
Source:
private boolean commandHasInvalidStatusMessage ( ) { return cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2.toString ( ) ) ; }

Target:
private boolean commandHasInvalidStatusMessage ( ) { return cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2.toString ( ) ) ; }
Source:
public void testGetByNameWithBadName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameWithBadName ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getByName ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.gin.ClientGinjector ginjector ) { return new com.gwtplatform.mvp.client.TabDataBasic ( ginjector.getApplicationConstants ( ) . extendedTemplateNetworkInterfacesSubTabLabel ( ) , 1 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants ) { return new com.gwtplatform.mvp.client.TabDataBasic ( applicationConstants.extendedTemplateNetworkInterfacesSubTabLabel ( ) , 1 ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( result ) ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; stopProgress ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { toggleProfilesAvailability ( ) ; }
Source:
public java.lang.Boolean isClone ( ) { return clone ; }

Target:
public java.lang.Boolean getClone ( ) { return clone ; }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( HostSetupNetworksValidator.VAR_NETWORK_BONDS_INVALID_SLAVE_COUNT_LIST , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }
Source:
void searchUsingTags ( java.lang.String searchText ) { org.ovirt.engine.core.searchbackend.SyntaxChecker sc = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( ) ; assertTrue ( sc.analyzeSyntaxState ( searchText , false ) . isSearchUsingTags ( ) ) ; }

Target:
void searchUsingTags ( java.lang.String searchText ) { org.ovirt.engine.core.searchbackend.SyntaxChecker sc = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( sc.analyzeSyntaxState ( searchText , false ) . isSearchUsingTags ( ) ) ; }
Source:
public void setData ( java.util.Map < java.lang.String , java.lang.Object > data ) { this . data = data ; }

Target:
public void setRootCommandId ( org.ovirt.engine.core.compat.Guid rootCommandId ) { this . rootCommandId = rootCommandId ; }
Source:
public void parseLunFromXmlRpcReturnsUnknownForNoField ( ) throws java.lang.Exception { java.util.Map < java.lang.String , java.lang.Object > xlun = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; org.ovirt.engine.core.common.businessentities.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.ParseLunFromXmlRpc ( xlun ) ; org.junit.Assert.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }

Target:
public void parseLunFromXmlRpcReturnsUnknownForNoField ( ) throws java.lang.Exception { java.util.Map < java.lang.String , java.lang.Object > xlun = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; org.ovirt.engine.core.common.businessentities.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.parseLunFromXmlRpc ( xlun ) ; org.junit.Assert.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.UpdateVmCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_UPDATE_VM ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.UpdateVmCommand.isInternalExecution ( ) ? org.ovirt.engine.core.bll.UpdateVmCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.SYSTEM_UPDATE_VM : org.ovirt.engine.core.common.AuditLogType.SYSTEM_FAILED_UPDATE_VM : org.ovirt.engine.core.bll.UpdateVmCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_UPDATE_VM ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . diskVmSubTabLabel ( ) , 1 , ginjector.getSubTabDiskVmModelProvider ( ) ) ; }

Target:
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.VM , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.diskVmSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public void setLdapGuidEncoder ( org.ovirt.engine.core.bll.adbroker.LdapGuidEncoder ldapGuidEncoder ) ;

Target:
public void setLdapIdEncoder ( org.ovirt.engine.core.bll.adbroker.LdapIdEncoder ldapIdEncoder ) ;
Source:
void sendRequest ( com.google.gwt.http.client.RequestBuilder requestBuilder , org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiCallback callback ) { try { requestBuilder.sendRequest ( null , callback ) ; } catch ( com.google.gwt.http.client.RequestException e ) { } }

Target:
void sendRequest ( com.google.gwt.http.client.RequestBuilder requestBuilder , org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback callback ) { try { requestBuilder.sendRequest ( null , callback ) ; } catch ( com.google.gwt.http.client.RequestException e ) { } }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vmModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; vmModel.set_MaxMemSize64 ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; }

Target:
public void setIsSystemTabValid ( boolean value ) { if ( ( isSystemTabValid ) != value ) { isSystemTabValid = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsSystemTabValid" ) ) ; } }
Source:
private java.lang.String getMemberSchemaTypeName ( org.ovirt.api.metamodel.concepts.Type declaringType , org.ovirt.api.metamodel.concepts.Type memberType , org.ovirt.api.metamodel.concepts.Name memberName ) { java.lang.String exception = org.ovirt.api.metamodel.tool.SchemaGenerator.getMemberSchemaTypeNameException ( declaringType.getName ( ) , memberName ) ; if ( exception != null ) { return exception ; } return getSchemaTypeName ( memberType ) ; }

Target:
private java.lang.String getMemberSchemaTypeName ( org.ovirt.api.metamodel.concepts.Type declaringType , org.ovirt.api.metamodel.concepts.Type memberType , org.ovirt.api.metamodel.concepts.Name memberName ) { java.lang.String exception = org.ovirt.api.metamodel.tool.SchemaGenerator.getMemberSchemaTypeNameException ( declaringType.getName ( ) , memberName ) ; if ( exception != null ) { return exception ; } return schemaNames.getSchemaTypeName ( memberType ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source == null ) || ( ( java.lang.Boolean ) ( source ) ) ; }

Target:
public void getSpiceUsbAutoShare ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Boolean > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( java.lang.Boolean.TRUE ) ; getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.SpiceUsbAutoShare , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { if ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.isDataOperationsByHSM ( ) ) { return new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) ; } return null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { if ( isUsingSPDMFlow ( ) ) { return new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) ; } return null ; }
Source:
private void mockDaos ( ) { mockVmDao ( ) ; mockDiskImageDao ( ) ; }

Target:
private void mockDaos ( ) { mockVmDao ( ) ; mockDiskImageDao ( ) ; mockDiskDao ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterHostPresenter.constants.clusterHostSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterHostPresenter.constants.clusterHostSubTabLabel ( ) , 2 ) ; }
Source:
public void diskImagesBelongToSameImageGroup ( ) { org.ovirt.engine.core.compat.Guid imageGroupId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; disk1.setId ( imageGroupId ) ; disk2.setId ( imageGroupId ) ; org.junit.Assert.assertThat ( validator.diskImagesBelongToSameImageGroup ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskImagesBelongToSameImageGroup ( ) { org.ovirt.engine.core.compat.Guid imageGroupId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; disk1.setId ( imageGroupId ) ; disk2.setId ( imageGroupId ) ; org.hamcrest.MatcherAssert.assertThat ( validator.diskImagesBelongToSameImageGroup ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }
Source:
public void setLastAlert ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { if ( ( lastAlert ) != value ) { lastAlert = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "LastAlert" ) ) ; } }

Target:
public void setHasSelectedTags ( boolean value ) { if ( ( hasSelectedTags ) != value ) { hasSelectedTags = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HasSelectedTags" ) ) ; } }
Source:
public void run ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setCorrelationId ( correlationId ) ; job.run ( ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.utils.CorrelationIdTracker.setCorrelationId ( correlationId ) ; job.run ( ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getOvaInfo ( java.lang.String ovaPath ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.getOvaInfo ( ovaPath ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmFromOva ( java.lang.String ovaPath ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.getExternalVmFromOva ( ovaPath ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand.getParameters ( ) . getStorageServerConnection ( ) . getconnection ( ) , LockMessagesMatchUtil.STORAGE_CONNECTION ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand.getParameters ( ) . getStorageServerConnection ( ) . getconnection ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.STORAGE_CONNECTION , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }