auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; adjustActionButtonsForNetworkReadOnlyProperty ( ) ; } }
Source:
private boolean networkUsedByAnInterface ( java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > interfaces ) { for ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface vmNetworkInterface : interfaces ) { if ( getNetworkName ( ) . equals ( vmNetworkInterface.getNetworkName ( ) ) ) { return true ; } } return false ; }

Target:
private boolean networkUsedByAnInterface ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaces ) { for ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmNetworkInterface : interfaces ) { if ( getNetworkName ( ) . equals ( vmNetworkInterface.getNetworkName ( ) ) ) { return true ; } } return false ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml treeItem ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , java.lang.String text , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml bookmarkItem ( java.lang.String id , java.lang.String text ) ;
Source:
public void setQuota ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { quota = value ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel getStorageDomain ( ) { return storageDomain ; }
Source:
public java.lang.String toString ( ) { if ( ( uuid ) == null ) return null ; else return uuid.toString ( ) ; }

Target:
public java.lang.String toString ( ) { if ( ( uuid ) == null ) return "[null]" ; else return uuid.toString ( ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , true ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , true ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , resource :: get ) ) ; }
Source:
public final boolean isFilterImplemeted ( ) { return policyUnit.isFilterImplemeted ( ) ; }

Target:
public org.ovirt.engine.core.common.scheduling.PolicyUnitType getPolicyUnitType ( ) { return policyUnit.getPolicyUnitType ( ) ; }
Source:
public java.lang.Integer getusage_mem_percent ( ) { return this . mVmStatistics.getusage_mem_percent ( ) ; }

Target:
public java.lang.Integer getUsageNetworkPercent ( ) { return this . vmStatistics.getusage_network_percent ( ) ; }
Source:
private void prepareInterfaceMocks ( ) { org.mockito.Mockito.doReturn ( getNetworks ( ) ) . when ( networkDao ) . getAllForCluster ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.mockito.Mockito.doReturn ( getNetworkInterfaces ( ) ) . when ( interfaceDao ) . getAllInterfacesForVds ( serverId ) ; }

Target:
private void prepareInterfaceMocks ( ) { org.mockito.Mockito.doReturn ( getNetworks ( ) ) . when ( networkDao ) . getAllForCluster ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.mockito.Mockito.doReturn ( getNetworkInterfaces ( ) ) . when ( interfaceDao ) . getAllInterfacesForVds ( serverId ) ; }
Source:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . AddStoragePoolExistingTasks ( storagePool ) ; }

Target:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . addStoragePoolExistingTasks ( storagePool ) ; }
Source:
public void checkMissingBootProtocol ( ) { initIpConfigurationWithPrimaryAddress ( ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_IP_CONFIGURATION_MISSING_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_NETWORK_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_INTERFACE_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.INTERFACE_NAME ) ) ) ; }

Target:
public void checkMissingV4BootProtocol ( ) { initIpv4ConfigurationWithPrimaryAddress ( ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_IP_CONFIGURATION_MISSING_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_NETWORK_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_INTERFACE_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.INTERFACE_NAME ) ) ) ; }
Source:
public void testValidateAndSetClusterQuotaForMemGlobalInGrace ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( quotaManager.validateAndSetClusterQuota ( storage_pool , org.ovirt.engine.core.bll.quota.QuotaManagerTest.DESTINATION_GUID , org.ovirt.engine.core.bll.quota.QuotaManagerTest.MEM_QUOTA_GLOBAL_IN_GRACE , 1 , 1 , canDoActionMessages ) ) ; assertEmptyCanDoActionMessage ( ) ; assertAuditLogWritten ( ) ; }

Target:
public void testValidateAndSetClusterQuotaForMemGlobalInGrace ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( consumeForVdsQuota ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.MEM_QUOTA_GLOBAL_IN_GRACE ) ) ; assertEmptyCanDoActionMessage ( ) ; assertAuditLogWritten ( ) ; }
Source:
public void setVM ( org.ovirt.engine.core.common.businessentities.VM vm ) { this . vm = vm ; }

Target:
public void updateOriginalTemplateName ( org.ovirt.engine.core.compat.Guid originalTemplateId , java.lang.String originalTemplateName ) { getCallsHandler ( ) . executeModification ( "UpdateOriginalTemplateName" , getCustomMapSqlParameterSource ( ) . addValue ( "original_template_id" , originalTemplateId ) . addValue ( "original_template_name" , originalTemplateName ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateKeyTitle ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , object ) ; updateKeyTitle ( object ) ; }
Source:
public void testGetClustersHavingHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters = ( ( org.ovirt.engine.core.dao.VdsGroupDaoImpl ) ( dao ) ) . getClustersHavingHosts ( ) ; org.junit.Assert.assertNotNull ( clusters ) ; org.junit.Assert.assertThat ( clusters , org.hamcrest.Matchers.hasSize ( 4 ) ) ; }

Target:
public void testGetClustersHavingHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters = ( ( org.ovirt.engine.core.dao.ClusterDaoImpl ) ( dao ) ) . getClustersHavingHosts ( ) ; org.junit.Assert.assertNotNull ( clusters ) ; org.junit.Assert.assertThat ( clusters , org.hamcrest.Matchers.hasSize ( 4 ) ) ; }
Source:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return true ; }

Target:
protected org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.VdcFault > runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type , org.ovirt.engine.core.common.businessentities.storage.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return new org.ovirt.engine.core.common.utils.Pair ( true , null ) ; }
Source:
protected void performOvfUpdateForDomain ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid domainId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessOvfUpdateForStorageDomain , new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters ( storagePoolId , domainId ) ) ; }

Target:
protected void performOvfUpdateForDomain ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid domainId ) { backend.runInternalAction ( VdcActionType.ProcessOvfUpdateForStorageDomain , new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters ( storagePoolId , domainId ) ) ; }
Source:
private void domainsInMaintenanceCheck ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StoragePool pool ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain domainInDb : storageDomains ) { if ( ( domainInDb.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.PreparingForMaintenance ) ) { queueDomainMaintenanceCheck ( domainInDb , pool ) ; } } }

Target:
private boolean isStoragePoolMemoryBackend ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return org.ovirt.engine.core.common.FeatureSupported.storagePoolMemoryBackend ( pool.getCompatibilityVersion ( ) ) ; }
Source:
protected void createUnitVmModelNetworkSucceeded ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { }

Target:
protected void executeDiskModifications ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { }
Source:
public void logServerMessage ( final org.ovirt.engine.core.common.businessentities.VDS server , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( ( server == null ? org.ovirt.engine.core.compat.Guid.Empty : server.getClusterId ( ) ) , null , server , logType , java.util.Collections.emptyMap ( ) ) ; }

Target:
public void logServerMessage ( final org.ovirt.engine.core.common.businessentities.VDS server , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( server.getClusterId ( ) , server.getClusterName ( ) , null , server , logType , java.util.Collections.emptyMap ( ) ) ; }
Source:
public long getTotalMemorySizeInBytes ( ) { return ( ( ( long ) ( ( ( getVmMemSizeMb ( ) ) + 200 ) + ( 64 * ( getNumOfMonitors ( ) ) ) ) ) * 1024 ) * 1024 ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.GuestContainer > getGuestContainers ( ) { return vmDynamic.getGuestContainers ( ) ; }
Source:
protected void unregisterLibvirtSecrets ( ) { registerLibvirtSecrets ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret > emptyList ( ) , true ) ; }

Target:
protected boolean unregisterLibvirtSecrets ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.cinderProviderSupported ( org.ovirt.engine.core.bll.storage.ConnectHostToStoragePoolServerCommandBase.getStoragePool ( ) . getCompatibilityVersion ( ) ) ) { return registerLibvirtSecrets ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret > emptyList ( ) , true ) ; } return true ; }
Source:
public org.ovirt.engine.core.compat.Version getGroupCompatibilityVersion ( ) { return cachedVds.getVdsGroupCompatibilityVersion ( ) ; }

Target:
public org.ovirt.engine.core.compat.Version getGroupCompatibilityVersion ( ) { return cachedVds.getClusterCompatibilityVersion ( ) ; }
Source:
protected void configure ( ) { bindModels ( ) ; bindModelProviders ( ) ; bindIntegration ( ) ; }

Target:
protected void configure ( ) { bindModels ( ) ; bindModelProviders ( ) ; bindIntegration ( ) ; bindMainTabEventHandlers ( ) ; }
Source:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringSetToFlase ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" , null , false ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }

Target:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringSetToFalse ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" , null , false ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }
Source:
protected org.ovirt.engine.core.common.AuditLogType getRawValue ( org.ovirt.engine.core.common.businessentities.event_subscriber object ) { return java.lang.Enum.valueOf ( org.ovirt.engine.core.common.AuditLogType.class , object.getevent_up_name ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.AuditLogType getRawValue ( org.ovirt.engine.core.common.businessentities.EventSubscriber object ) { return java.lang.Enum.valueOf ( org.ovirt.engine.core.common.AuditLogType.class , object.getEventUpName ( ) ) ; }
Source:
public boolean Match ( java.util.Map.Entry < java.lang.String , java.lang.String > source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getKey ( ) , timeZone ) ; }

Target:
public boolean match ( java.util.Map.Entry < java.lang.String , java.lang.String > source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getKey ( ) , timeZone ) ; }
Source:
public void RemoveVds ( org.ovirt.engine.core.compat.Guid vdsId ) { RemoveVds ( vdsId , false ) ; }

Target:
public void removeVds ( org.ovirt.engine.core.compat.Guid vdsId ) { removeVds ( vdsId , false ) ; }
Source:
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 ) ; }

Target:
public void shouldDetectHostWihtoutNumaSupport ( ) { vdsNumaNodes = new java.util.ArrayList ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVdsNumaNode ( 1 ) ) ) ; assertValidationFailure ( underTest.validateNumaCompatibility ( vm , vm.getvNumaNodeList ( ) , vdsNumaNodes ) , EngineMessage.HOST_NUMA_NOT_SUPPORTED ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { genVersionToBaseTemplate ( value ) ; super . setItems ( value ) ; }

Target:
public void setItems ( java.util.Collection value ) { genVersionToBaseTemplate ( value ) ; super . setItems ( value ) ; }
Source:
public void testDefaultRouteWhenOutOfSync ( ) { iface.setIpv4DefaultRoute ( false ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testDefaultRouteNonDefaultRouteNetwork ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public void sortDisks ( ) { org.ovirt.engine.ui.uicommonweb.Linq.Sort ( disks , new org.ovirt.engine.ui.uicommonweb.Linq.DiskModelByAliasComparer ( ) ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; }

Target:
public void sortDisks ( ) { org.ovirt.engine.ui.uicommonweb.Linq.Sort ( disks , new org.ovirt.engine.ui.uicommonweb.Linq.DiskModelByAliasComparer ( ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; }
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent resizeEvent ) { getView ( ) . recalculateSize ( ) ; getView ( ) . showScrollButtons ( ) ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent resizeEvent ) { redraw ( ) ; }
Source:
private void assertValidateFailure ( final java.lang.String messageToVerify ) { org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . contains ( messageToVerify ) ) ; }

Target:
public void notAllVfsAreFree ( ) { allVfsAreFree ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ; }
Source:
private void mockGetVmsListForDisk ( org.ovirt.engine.core.common.businessentities.VM vm ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; vms.add ( vm ) ; org.mockito.Mockito.when ( vmDAO.getVmsListForDisk ( diskImageGuid ) ) . thenReturn ( vms ) ; }

Target:
public org.ovirt.engine.core.dao.VmDAO getVmDAO ( ) { return vmDAO ; }
Source:
public void sendMessage ( byte [ ] message ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { waitForConnect ( ) ; send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.REQUEST_QUEUE ) . withContent ( message ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { waitForConnect ( ) ; send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , this . getRequestQueue ( ) ) . withContent ( message ) . build ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VolumeType getVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getstorage_pool_type ( ) . isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeTypeForPool ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return storageType.isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; }
Source:
protected void OnPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . OnPropertyChanged ( e ) ; getPropertyChangedEvent ( ) . raise ( this , e ) ; }

Target:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; getPropertyChangedEvent ( ) . raise ( this , e ) ; }
Source:
public static boolean isRoleNetwork ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { return ( ( networkCluster.isDisplay ( ) ) || ( networkCluster.isMigration ( ) ) ) || ( networkCluster.isGluster ( ) ) ; }

Target:
public static boolean isRoleNetwork ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { return ( ( ( networkCluster.isDisplay ( ) ) || ( networkCluster.isMigration ( ) ) ) || ( networkCluster.isGluster ( ) ) ) || ( networkCluster.isDefaultRoute ( ) ) ; }
Source:
public void onAcccept ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorListener listener , final org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient client ) { client.addEventListener ( new org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.EventListener ( ) { @ java.lang.Override public void onMessageReceived ( byte [ ] message ) { } } ) ; }

Target:
public void onAcccept ( final org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient client ) { client.addEventListener ( new org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.MessageListener ( ) { @ java.lang.Override public void onMessageReceived ( byte [ ] message ) { } } ) ; }
Source:
private static org.ovirt.engine.core.bll.snapshots.SnapshotsValidator mockSuccessfulSnapshotValidator ( ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidator snapshotsValidator = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.snapshots.SnapshotsValidator.class ) ; org.mockito.Mockito.when ( snapshotsValidator.vmNotDuringSnapshot ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( ) ) ; return snapshotsValidator ; }

Target:
private static org.ovirt.engine.core.bll.snapshots.SnapshotsValidator mockSuccessfulSnapshotValidator ( ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidator snapshotsValidator = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.snapshots.SnapshotsValidator.class ) ; org.mockito.Mockito.when ( snapshotsValidator.vmNotDuringSnapshot ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return snapshotsValidator ; }
Source:
public boolean CanRemoveVm ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( ( org.ovirt.engine.core.bll.RemoveVmCommand.IsVmRunning ( vmId ) ) || ( org.ovirt.engine.core.bll.RemoveVmCommand.IsVmInPool ( vmId ) ) ) ; }

Target:
private boolean isVmInPool ( org.ovirt.engine.core.compat.Guid vmId ) { return ( org.ovirt.engine.core.bll.RemoveVmCommand.getVm ( ) . getVmPoolId ( ) ) != null ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPasswordField ( false ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPasswordField ( true ) ; }
Source:
private org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand getCommand ( ) { return ( ( org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand ) ( uploadImageCommand ) ) ; }

Target:
private org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand getCommand ( ) { return ( ( org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand ) ( transferImageCommand ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByParentStepId ( org.ovirt.engine.core.compat.Guid parentStepId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "parent_step_id" , parentStepId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByParentStepId" , createEntityRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByParentStepId ( org.ovirt.engine.core.compat.Guid parentStepId ) { return get ( parentStepId ) . getSteps ( ) ; }
Source:
public void setQuotaName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( defaultHost , value ) ) ) { this . quotaName = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaName" ) ) ; } }

Target:
public void setQuotaName ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( defaultHost , value ) ) ) { this . quotaName = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaName" ) ) ; } }
Source:
private static boolean hasSpace ( final org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , final long requestedSize ) { return ( ( storageDomain.getavailable_disk_size ( ) ) != null ) && ( ( ( storageDomain.getavailable_disk_size ( ) ) - requestedSize ) >= ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.getLowDiskSpaceThreshold ( ) ) ) ; }

Target:
public static boolean hasSpaceForRequest ( final org.ovirt.engine.core.common.businessentities.storage_domains domain , final long requestedSize ) { return ( ( domain.getavailable_disk_size ( ) ) != null ) && ( ( ( domain.getavailable_disk_size ( ) ) - requestedSize ) >= ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.getLowDiskSpaceThreshold ( ) ) ) ; }
Source:
public final void AddFields ( java.lang.Iterable < java.lang.Enum < ? > > statuses , java.lang.Iterable < java.lang.String > fields ) { for ( java.lang.String field : fields ) { AddField ( statuses , field ) ; } }

Target:
public final < T extends java.lang.Enum < T > > void AddFields ( java.lang.Iterable < T > statuses , java.lang.String ... fields ) { for ( java.lang.String field : fields ) { AddField ( statuses , field ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , null , networkName , true , null , false , null ) ; }
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds ) ; }

Target:
private void _callbackFailed ( java.lang.String message ) { if ( ( this . callback ) != null ) { this . callback.failed ( message ) ; } }
Source:
protected void mockFenceAgents ( ) { fenceAgents = create2SequentialFenceAgents ( ) ; org.mockito.Mockito.doReturn ( fenceAgents ) . when ( fencedHost ) . getFenceAgents ( ) ; }

Target:
protected void mockFenceAgent ( ) { fenceAgents = createSingleAgentList ( 1 ) ; org.mockito.Mockito.when ( fenceAgentDao.getFenceAgentsForHost ( fencedHost.getId ( ) ) ) . thenReturn ( fenceAgents ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.VmNicValidator.networkLinkingSupported ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.FeatureSupported.networkLinking ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void checkExecuteCommandWithVdsId ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . disconnectStorage ( ) ; command.executeCommand ( ) ; }

Target:
public void checkExecuteCommandWithVdsId ( ) { parameters.setStorageServerConnection ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommandTest.NFSConnection ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . disconnectStorage ( ) ; command.executeCommand ( ) ; }
Source:
protected javax.ws.rs.core.Response performCreation ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.EntityIdResolver entityResolver , boolean block ) { return performCreation ( task , taskParams , entityResolver , block , null ) ; }

Target:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver , boolean block ) { return performCreate ( task , taskParams , entityResolver , block , null ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VolumeType getVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getstorage_pool_type ( ) . isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; }

Target:
private org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForPool ( org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getstorage_pool_type ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { final org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel clusterModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel ) ( model ) ) ; final org.ovirt.engine.core.common.businessentities.network.Network managementNetwork = ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( returnValue ) ) ; clusterModel.getManagementNetwork ( ) . setSelectedItem ( managementNetwork ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.network.Network managementNetwork1 ) { getManagementNetwork ( ) . setSelectedItem ( managementNetwork1 ) ; }
Source:
public void testIsNetworkInSyncWhenIpv6BootProtocolEqual ( ) { initIpv6ConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayEqual ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private static org.ovirt.engine.core.bll.context.CommandContext modifyContextForIntenralJob ( org.ovirt.engine.core.bll.context.CommandContext returnedContext , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return returnedContext.withExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionHandler.createMonitoredExecutionContext ( ) ) . withLock ( lock ) . withoutCompensationContext ( ) ; }

Target:
private static org.ovirt.engine.core.bll.context.CommandContext modifyContextForInternalJob ( org.ovirt.engine.core.bll.context.CommandContext returnedContext , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return returnedContext.withExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionHandler.createMonitoredExecutionContext ( ) ) . withLock ( lock ) . withoutCompensationContext ( ) ; }
Source:
private void verifyActionResponse ( javax.ws.rs.core.Response r ) throws java.lang.Exception { verifyActionResponse ( r , ( "bricks/" + ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBrickResourceTest.brickId ) ) , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntity ( int index ) { return helper.getBrickEntity ( index , false ) ; }
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 void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( vmDisksSource , getPoolDomains ( ) , diskInfoDestinationMap , destStorages , false ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionsAvailability ( ) ; }
Source:
public void linkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( ValidationResult.VALID , false , true ) ; }

Target:
public void linkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , true ) ; }
Source:
protected org.ovirt.engine.api.model.Snapshot doPopulate ( org.ovirt.engine.api.model.Snapshot model , org.ovirt.engine.api.model.Snapshot entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.Snapshot doPopulate ( org.ovirt.engine.api.model.Snapshot model , org.ovirt.engine.api.model.Snapshot entity ) { return populateSnapshotConfiguration ( model ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( vmId , null , false ) ; }

Target:
public void removeVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId ) { removeVmDevices ( getVirtioScsiControllers ( vmId ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.ArchitectureType getOsSection ( org.ovirt.engine.core.utils.ovf.xml.XmlDocument xmlDocument ) { org.ovirt.engine.core.common.businessentities.ArchitectureType archType = null ; org.ovirt.engine.core.utils.ovf.xml.XmlNode content = xmlDocument.selectSingleNode ( "//*/Content" ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNodeList nodeList = content.SelectNodes ( "Section" ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNode selectedSection = null ; org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; if ( nodeList != null ) { for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode section : nodeList ) { java.lang.String value = section.attributes.get ( "xsi:type" ) . getValue ( ) ; if ( value.equals ( "ovf:OperatingSystemSection_Type" ) ) { selectedSection = section ; break ; } } if ( selectedSection != null ) { int osId = osRepository.getOsIdByUniqueName ( selectedSection.innerText ) ; archType = osRepository.getArchitectureFromOS ( osId ) ; } } return archType ; }

Target:
private static org.ovirt.engine.core.common.businessentities.ArchitectureType getOsSection ( org.ovirt.engine.core.utils.ovf.xml.XmlDocument xmlDocument ) { org.ovirt.engine.core.common.businessentities.ArchitectureType archType = null ; org.ovirt.engine.core.utils.ovf.xml.XmlNode content = xmlDocument.selectSingleNode ( "//*/Content" ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNodeList nodeList = content.selectNodes ( "Section" ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNode selectedSection = null ; org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; if ( nodeList != null ) { for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode section : nodeList ) { java.lang.String value = section.attributes.get ( "xsi:type" ) . getValue ( ) ; if ( value.equals ( "ovf:OperatingSystemSection_Type" ) ) { selectedSection = section ; break ; } } if ( selectedSection != null ) { int osId = osRepository.getOsIdByUniqueName ( selectedSection.innerText ) ; archType = osRepository.getArchitectureFromOS ( osId ) ; } } return archType ; }
Source:
public javax.ws.rs.core.Response testConnectivity ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.getProvider ( this , id ) ; org.ovirt.engine.core.common.action.ProviderParameters parameters = new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ; return performAction ( VdcActionType.TestProviderConnectivity , parameters ) ; }

Target:
public javax.ws.rs.core.Response testConnectivity ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.getProvider ( this , id ) ; org.ovirt.engine.core.common.action.ProviderParameters parameters = new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ; return performAction ( ActionType.TestProviderConnectivity , parameters ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; isAnyHostUpInCluster = ( ( java.lang.Boolean ) ( returnValue ) ) ; clusterGuideModel.UpdateOptionsNonLocalFS ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; isAnyHostUpInCluster = ( ( java.lang.Boolean ) ( returnValue ) ) ; clusterGuideModel.updateOptionsNonLocalFS ( ) ; }
Source:
public void setTimeZone ( java.lang.String value ) { vmStatic.settime_zone ( value ) ; }

Target:
public boolean isStateless ( ) { return vmStatic.isStateless ( ) ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_compatibility_version" ) ) ; } }

Target:
public void setDbGeneration ( long value ) { this . vmStatic.setDbGeneration ( value ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > bonds = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; allBonds = bonds ; queryLabels ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { dcLabels = ( ( java.util.SortedSet < java.lang.String > ) ( returnValue ) ) ; initLabelModels ( ) ; queryNetworks ( ) ; }
Source:
public void setSessionItem ( java.lang.String key , java.lang.String value ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorage.sessionStorage ) != null ) { org.ovirt.engine.ui.common.system.ClientStorage.sessionStorage.setItem ( key , value ) ; } else { com.google.gwt.user.client.Cookies.setCookie ( key , value ) ; } }

Target:
void setLocalItem ( java.lang.String key , java.lang.String value ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult passthroughIsLinked ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_UNLINKING_OF_PASSTHROUGH_VNIC_IS_NOT_SUPPORTED ) . when ( ( ( nic.isPassthrough ( ) ) && ( ! ( nic.isLinked ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult passthroughIsLinked ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_UNLINKING_OF_PASSTHROUGH_VNIC_IS_NOT_SUPPORTED ) . when ( ( ( nic.isPassthrough ( ) ) && ( ! ( nic.isLinked ( ) ) ) ) ) ; }
Source:
private boolean IsAnyRoleReadOnly ( java.util.List roles ) { for ( java.lang.Object item : roles ) { org.ovirt.engine.core.common.businessentities.roles r = ( ( org.ovirt.engine.core.common.businessentities.roles ) ( item ) ) ; if ( r.getis_readonly ( ) ) { return true ; } } return false ; }

Target:
private boolean IsAnyRoleReadOnly ( java.util.List roles ) { for ( java.lang.Object item : roles ) { org.ovirt.engine.core.common.businessentities.Role r = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( item ) ) ; if ( r.getis_readonly ( ) ) { return true ; } } return false ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainList ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomainList = new java.util.ArrayList < > ( ) ; storageDomainList.add ( mockFirstStorageDomain ( ) ) ; storageDomainList.add ( mockSecondStorageDomain ( ) ) ; return storageDomainList ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainList ( ) { return java.util.stream.Stream.of ( firstStorageDomainId , secondStorageDomainId ) . map ( this :: mockDomain ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . getSearchButton ( ) . getCommand ( ) . execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . setLoadingState ( LoadingState.LOADING ) ; getView ( ) . getSearchButton ( ) . getCommand ( ) . execute ( ) ; }
Source:
public boolean wasTruncated ( ) { return this . truncated ; }

Target:
public boolean wasTruncated ( ) { return _truncated ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByName ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , result.getName ( ) ) ; }

Target:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , result.getName ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( java.lang.String volumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.VDS source ) { return source.getId ( ) . equals ( id ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.VDS source ) { return source.getId ( ) . equals ( id ) ; }
Source:
protected void updateDataProvider ( java.util.List < org.ovirt.engine.core.common.job.Job > items ) { java.util.List < org.ovirt.engine.core.common.job.Job > firstRowData = ( items.isEmpty ( ) ) ? items : java.util.Arrays.asList ( items.get ( 0 ) ) ; super . updateDataProvider ( firstRowData ) ; }

Target:
protected void updateDataProvider ( java.util.List < org.ovirt.engine.core.common.job.Job > items ) { java.util.List < org.ovirt.engine.core.common.job.Job > firstRowData = ( items.isEmpty ( ) ) ? org.ovirt.engine.ui.webadmin.uicommon.model.TaskFirstRowModelProvider.emptyJobList : java.util.Arrays.asList ( items.get ( 0 ) ) ; super . updateDataProvider ( firstRowData ) ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , org.ovirt.engine.core.compat.Guid id ) { return id.equals ( entity.getId ( ) ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , T id ) { return id.equals ( entity.getId ( ) ) ; }
Source:
public void freeMacs ( java.util.List < java.lang.String > macs ) { for ( java.lang.String mac : macs ) { macsStorage.freeMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; } }

Target:
public void freeMacs ( java.util.List < java.lang.String > macs ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Releasing mac addresses back to {}" , macs , this ) ; for ( java.lang.String mac : macs ) { macsStorage.freeMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; } }
Source:
private void onClone ( ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.CloneVmModel ) ( getWindow ( ) ) ) . onClone ( this , false ) ; }

Target:
protected void executeDiskModifications ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) . setId ( vmId ) ; model.getInstanceImages ( ) . executeDiskModifications ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) ) ; }