auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void processHardwareCapabilities ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . processOnCpuFlagsChange ( vds.getId ( ) ) ; }

Target:
protected void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , Guid.Empty , customLogValues ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VGListReturnForXmlRpc getVGList ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc prepareImage ( java.lang.String spID , java.lang.String sdID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
private void logUnregisterDiskFailure ( java.lang.String diskId , java.lang.String exception ) { java.lang.String addedInfoOnFailure = null ; if ( exception != null ) { addedInfoOnFailure = " reason: " + exception ; } log.infoFormat ( "Could not get populated disk id {0}. {1}" , diskId , addedInfoOnFailure ) ; }

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.AttachStorageDomainToPoolCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.STORAGE , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { glusterHostUUID = org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getBroker ( ) . glusterHostUUIDGet ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.proceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterHostUUID.mUuid ) ; } }

Target:
protected void executeVdsBrokerCommand ( ) { glusterHostUUID = org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getBroker ( ) . glusterHostUUIDGet ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.proceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterHostUUID.uuid ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return getAllForEntity ( id , userID , isFiltered , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , long engineSessionId , boolean isFiltered ) { return getAllForEntity ( id , engineSessionId , isFiltered , false ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateReportsAvailability ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getStopCommand ( ) ; }
Source:
public void internalNetworkProvidedByChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( network.getProvidedBy ( ) ) . thenReturn ( null ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void externalNetworkStpChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setStp ( true ) ; network.setStp ( false ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectRdpImplementation ( RdpConsoleModel.ClientConsoleMode.Native ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectVncImplementation ( VncConsoleModel.ClientConsoleMode.Native ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( "MultiTenantProviderProperties [tenantName=" ) . append ( getTenantName ( ) ) . append ( "]" ) ; return builder.toString ( ) ; }

Target:
public java.lang.String toString ( ) { return appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) ) . build ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup group ) { java.lang.String hostNames = join ( getHostNames ( group ) , ", " ) ; if ( hostNames.isEmpty ( ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.AbstractSubTabAffinityGroupsView.constants.noMembersAffinityGroup ( ) ; } return hostNames ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup group ) { java.lang.String hostNames = org.ovirt.engine.ui.uicompat.external.StringUtils.join ( getHostNames ( group ) , ", " ) ; if ( hostNames.isEmpty ( ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.AbstractSubTabAffinityGroupsView.constants.noMembersAffinityGroup ( ) ; } return hostNames ; }
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.core.compat.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:
protected void init ( T parameters ) { setStoragePoolId ( parameters.getStoragePoolId ( ) ) ; imageToDestinationDomainMap = parameters.getImageToDestinationDomainMap ( ) ; }

Target:
protected void postConstruct ( ) { T parameters = org.ovirt.engine.core.bll.ImportVmCommandBase.getParameters ( ) ; setStoragePoolId ( parameters.getStoragePoolId ( ) ) ; imageToDestinationDomainMap = parameters.getImageToDestinationDomainMap ( ) ; }
Source:
public void hostWasInstalled ( ) { host.setHostOs ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 20 ) ) ; org.junit.Assert.assertThat ( validator.hostWasInstalled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void hostWasInstalled ( ) { host.setHostOs ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 20 ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.hostWasInstalled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected javax.ws.rs.core.Response doAction ( final org.ovirt.engine.core.common.action.ActionType task , final org.ovirt.engine.core.common.action.VdcActionParametersBase params , final org.ovirt.engine.api.model.Action action ) { return doAction ( task , params , action , PollingType.VDSM_TASKS ) ; }

Target:
protected javax.ws.rs.core.Response doAction ( final org.ovirt.engine.core.common.action.ActionType task , final org.ovirt.engine.core.common.action.ActionParametersBase params , final org.ovirt.engine.api.model.Action action ) { return doAction ( task , params , action , PollingType.VDSM_TASKS ) ; }
Source:
public < T > T get ( java.lang.Class < T > clz ) { return clz.cast ( getMap ( ) . get ( clz ) ) ; }

Target:
public org.ovirt.engine.core.common.mode.ApplicationMode getApplicationMode ( ) { return applicationMode ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ActivateVdsCommand.getParameters ( ) . getVdsId ( ) . toString ( ) , LockingGroup.VDS.name ( ) ) ; }

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.ActivateVdsCommand.getParameters ( ) . getVdsId ( ) . toString ( ) , LockMessagesMatchUtil.VDS ) ; }
Source:
public boolean isUnlimitedVcpu ( ) { return ( vcpuLimit ) == ( QuotaVdsGroup.UNLIMITED_VCPU ) ; }

Target:
public boolean isUnlimitedVcpu ( ) { return ( vcpuLimit ) == ( QuotaCluster.UNLIMITED_VCPU ) ; }
Source:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; SearchStringPrefixChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }

Target:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; SearchStringPrefixChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }
Source:
protected java.lang.String removeModulName ( java.lang.String moduleName ) { return com.google.gwt.core.client.GWT.getModuleBaseURL ( ) . replaceAll ( ( ( com.google.gwt.core.client.GWT.getModuleName ( ) ) + "/" ) , "" ) ; }

Target:
public static java.lang.String getRootURL ( ) { java.lang.String moduleURL = com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ; java.lang.String separator = "://" ; int index = moduleURL.indexOf ( separator ) ; index = moduleURL.indexOf ( "/" , ( index + ( separator.length ( ) ) ) ) ; java.lang.String result = ( index != ( - 1 ) ) ? moduleURL.substring ( 0 , ( index + 1 ) ) : moduleURL ; if ( ! ( result.endsWith ( "/" ) ) ) { result += "/" ; } return result ; }
Source:
public void setdomain ( java.lang.String value ) { this . domain = value ; }

Target:
public void setNote ( java.lang.String value ) { note = value ; }
Source:
protected void addServerHookInDb ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverHook ) { org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getGlusterHooksDao ( ) . saveGlusterServerHook ( serverHook ) ; }

Target:
protected void addServerHookInDb ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverHook ) { glusterHooksDao.saveGlusterServerHook ( serverHook ) ; }
Source:
private void CancelConfirm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel ) ( getWindow ( ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel sanStorageModel = model.getSanStorageModel ( ) ; sanStorageModel.setForce ( false ) ; setConfirmWindow ( null ) ; }

Target:
private void cancelConfirm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel ) ( getWindow ( ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel sanStorageModel = model.getSanStorageModel ( ) ; sanStorageModel.setForce ( false ) ; setConfirmWindow ( null ) ; }
Source:
public boolean execute ( ) { if ( ( restApiSessionId ) != null ) { sendRequest ( createRequest ( ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; return true ; } else { return false ; } }

Target:
public boolean execute ( ) { boolean sessionInUse = ( restApiSessionId ) != null ; if ( sessionInUse && ( refreshRestApiSession ) ) { sendRequest ( createRequest ( ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; refreshRestApiSession = false ; } return sessionInUse ; }
Source:
public java.lang.String getQuotaName ( ) { return this . quotaName ; }

Target:
public void setSeverity ( org.ovirt.engine.core.common.AuditLogSeverity severity ) { this . severity = severity.getValue ( ) ; }
Source:
public void statusNotMatch ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Active ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusNotMatch ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Active ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
public void execute ( ) { popupPanel.hide ( ) ; buttonDef.onClick ( getSelectedItems ( ) ) ; }

Target:
public void execute ( ) { if ( hasActionButtons ( ) ) { updateContextMenu ( contextMenuBar , actionButtonList , contextPopupPanel ) ; contextPopupPanel.showAndFitToScreen ( eventX , eventY ) ; } }
Source:
public void setValue ( java.lang.String newValue ) { this . value = newValue ; }

Target:
public void setType ( org.ovirt.api.metamodel.concepts.Type newType ) { type = newType ; }
Source:
protected org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.VmDevice > createEntityRowMapper ( ) { return org.ovirt.engine.core.dao.VmDeviceDAODbFacadeImpl.vmDeviceRowMapper ; }

Target:
protected org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.VmDevice > createEntityRowMapper ( ) { return org.ovirt.engine.core.dao.VmDeviceDAODbFacadeImpl.VmDeviceRowMapper.instance ; }
Source:
public java.lang.String getstorage_pool_name ( ) { return storagePoolName ; }

Target:
public java.lang.String getStoragePoolName ( ) { return storagePoolName ; }
Source:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE_BRICKS_START ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( EngineMessage.VAR__ACTION__REMOVE_BRICKS_START ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; }
Source:
public void nameIsEmpty ( ) { org.mockito.Mockito.when ( host.getName ( ) ) . thenReturn ( "" ) ; org.junit.Assert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) ) ; }

Target:
public void nameIsNull ( ) { org.junit.Assert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) ) ; }
Source:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void EndWithFailure ( ) { RemoveNetwork ( ) ; RemoveImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDAO ( ) . remove ( getVmTemplateId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void EndWithFailure ( ) { RemoveNetwork ( ) ; RemoveImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDAO ( ) . remove ( getVmTemplateId ( ) ) ; rollbackQuota ( ) ; setSucceeded ( true ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( org.ovirt.engine.core.compat.StringFormat.format ( "Events: volume.name=%1$s" , getEntity ( ) . getName ( ) ) ) ; super . Search ( ) ; } }

Target:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Events: volume.name=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . Search ( ) ; } }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { onConfirmCommand.Execute ( ) ; parentModel.setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { onConfirmCommand.Execute ( ) ; parentModel.setWindow ( null ) ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; updateVirtioScsiAvailability ( ) ; updateOSValues ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; updateVirtioScsiAvailability ( ) ; updateOSValues ( ) ; updateTemplate ( ) ; }
Source:
private void BuildOvf ( org.ovirt.engine.core.utils.ovf.IOvfBuilder builder ) { builder.buildReference ( ) ; builder.buildNetwork ( ) ; builder.buildDisk ( ) ; builder.buildVirtualSystem ( ) ; }

Target:
private void buildOvf ( org.ovirt.engine.core.utils.ovf.IOvfBuilder builder ) { builder.buildReference ( ) ; builder.buildNetwork ( ) ; builder.buildDisk ( ) ; builder.buildVirtualSystem ( ) ; }
Source:
org.ovirt.engine.core.dao.VmNetworkInterfaceDAO getVmNetworkInterfaceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmNetworkInterfaceDao ( ) ; }

Target:
org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao getVmNetworkInterfaceDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmNetworkInterfaceDao ( ) ; }
Source:
private void mockSnapshotExists ( ) { org.mockito.Mockito.when ( snapshotDao.exists ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( true ) ; }

Target:
private void mockSnapshotExists ( ) { org.mockito.Mockito.when ( snapshotDao.exists ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( true ) ; }
Source:
public void testGetAllForUnPrivilegedUserAndActionGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForUserAndActionGroup ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , ActionGroup.CONNECT_TO_SERIAL_CONSOLE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUnPrivilegedUserAndActionGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForUserAndActionGroup ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , ActionGroup.CONNECT_TO_SERIAL_CONSOLE ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ; } return source ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Boolean Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }
Source:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > allVmImages , java.util.List < org.ovirt.engine.core.common.businessentities.storage.LunDisk > lunDisks ) { return ovfManager.exportVm ( vm , allVmImages , lunDisks , clusterUtils.getCompatibilityVersion ( vm ) ) ; }

Target:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.storage.FullEntityOvfData fullEntityOvfData ) { return ovfManager.exportVm ( vm , fullEntityOvfData , clusterUtils.getCompatibilityVersion ( vm ) ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalActionWithTasksContext ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return runInternalAction ( actionType , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContextForTasks ( getContext ( ) , lock ) ) ; }
Source:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockStaticClasses ( ) ; mockGlobalParameters ( ) ; mockVds ( ) ; mockVmHandler ( ) ; mockConfig ( ) ; mockDbDAO ( ) ; }

Target:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDAO ( ) ; }
Source:
private static void assertGetVMDeviceByIdTypeAndDeviceFullResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices ) { org.junit.Assert.assertEquals ( ( ( "there should only be " + ( org.ovirt.engine.core.dao.VmDeviceDaoTest.TOTAL_DISK_DEVICES_FOR_EXISTING_VM ) ) + " disks" ) , org.ovirt.engine.core.dao.VmDeviceDaoTest.TOTAL_DISK_DEVICES_FOR_EXISTING_VM , devices.size ( ) ) ; }

Target:
private static void assertGetVMDeviceByIdTypeAndDeviceFullResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.VmDeviceDaoTest.TOTAL_DISK_DEVICES_FOR_EXISTING_VM , devices.size ( ) , ( ( "there should only be " + ( org.ovirt.engine.core.dao.VmDeviceDaoTest.TOTAL_DISK_DEVICES_FOR_EXISTING_VM ) ) + " disks" ) ) ; }
Source:
public void testGetLunsThatBreakPassDiscardFunctionalityDiscardFunctionalityDoesntBreak ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , true ) ; assertGetLunsThatBreakPassDiscardFunctionalityContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , true ) ) , java.util.Collections.emptyList ( ) ) ; }

Target:
public void testGetLunsThatBreakPassDiscardFunctionalityDiscardFunctionalityDoesntBreak ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( false , true ) ; assertGetLunsThatBreakPassDiscardFunctionalityContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
public void vdsIdNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVdsId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }

Target:
public void vdsIdDefault ( ) { final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }
Source:
private void testExistenceOfDiskVmElementWithPassDiscard ( boolean expectedResult , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskVmElement > diskVmElements ) { org.mockito.Mockito.when ( diskVmElementDao.getAllDiskVmElementsByDiskId ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( diskVmElements ) ; org.junit.Assert.assertEquals ( expectedResult , postDeleteActionHandler.diskVmElementWithPassDiscardExists ( Guid.Empty ) ) ; }

Target:
private void testExistenceOfDiskVmElementWithPassDiscard ( boolean expectedResult , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskVmElement > diskVmElements ) { org.mockito.Mockito.when ( diskVmElementDao.getAllDiskVmElementsByDiskId ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( diskVmElements ) ; org.junit.jupiter.api.Assertions.assertEquals ( expectedResult , postDeleteActionHandler.diskVmElementWithPassDiscardExists ( Guid.Empty ) ) ; }
Source:
public org.ovirt.engine.core.utils.ISingleAsyncOperation CreateSingleAsyncOperation ( ) { org.ovirt.engine.core.utils.ISingleAsyncOperation tempVar = new org.ovirt.engine.core.bll.storage.RefreshPoolSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , _vdsIdsToSetNonOperational ) ; return tempVar ; }

Target:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { org.ovirt.engine.core.utils.ISingleAsyncOperation tempVar = new org.ovirt.engine.core.bll.storage.RefreshPoolSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , _vdsIdsToSetNonOperational ) ; return tempVar ; }
Source:
public void nullNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( ValidationResult.VALID , true , null ) ; }

Target:
public void validNetworkWhenNoPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , "net" , false ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByVms ( ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getVmStaticDAO ( ) . getAllByGroupAndNetworkName ( networkCluster.getClusterId ( ) , network.getName ( ) ) , VdcBllMessages.VAR__ENTITIES__VMS , VdcBllMessages.VAR__ENTITIES__VM ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByVms ( ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getVmStaticDao ( ) . getAllByGroupAndNetworkName ( networkCluster.getClusterId ( ) , network.getName ( ) ) , VdcBllMessages.VAR__ENTITIES__VMS , VdcBllMessages.VAR__ENTITIES__VM ) ; }
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.scheduling.AffinityGroup , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.ClusterAffinityGroupListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.affinityGroupSubTabLabel ( ) , 6 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.scheduling.AffinityGroup , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.ClusterAffinityGroupListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterAffinityGroupPresenter.constants.affinityGroupSubTabLabel ( ) , 6 , modelProvider ) ; }
Source:
public boolean isHypervEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.util.Set < java.lang.String > getUnsupportedCpus ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ) ; }
Source:
private void stubFailedCalls ( ) { org.mockito.Mockito.when ( resourceManager.runVdsCommand ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.VDSCommandType.class ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.VdsIdAndVdsVDSCommandParametersBase.class ) ) ) . thenReturn ( getFailedVdsReturnValue ( ) ) ; }

Target:
private void stubFailedCalls ( ) { org.mockito.Mockito.when ( resourceManager.runVdsCommand ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.vdscommands.VDSCommandType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.vdscommands.VdsIdAndVdsVDSCommandParametersBase.class ) ) ) . thenReturn ( getFailedVdsReturnValue ( ) ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/qpid_port" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getQpidConfiguration ( ) . getPort ( ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/qpid_port" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getMessagingConfiguration ( ) . getPort ( ) ) ; return true ; }
Source:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; vmStatic.setSingleQxlPci ( false ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; }

Target:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; vmStatic.setSingleQxlPci ( false ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; mockValidatePciAndIdeLimit ( ) ; }
Source:
protected void saveDiskImageDynamic ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.DiskImageDynamic diskDynamic = new org.ovirt.engine.core.common.businessentities.DiskImageDynamic ( ) ; diskDynamic.setId ( disk.getImageId ( ) ) ; diskDynamic.setactual_size ( disk.getActualSizeFromDiskImage ( ) ) ; getDiskImageDynamicDAO ( ) . save ( diskDynamic ) ; }

Target:
protected void saveDiskImageDynamic ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.DiskImageDynamic diskDynamic = new org.ovirt.engine.core.common.businessentities.DiskImageDynamic ( ) ; diskDynamic.setId ( disk.getImageId ( ) ) ; diskDynamic.setactual_size ( disk.getActualSizeInBytes ( ) ) ; getDiskImageDynamicDAO ( ) . save ( diskDynamic ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "storagePoolId = " ) . append ( getStoragePoolId ( ) ) ; sb.append ( ", storageId = " ) . append ( getStorageId ( ) ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "storagePoolId" , getStoragePoolId ( ) ) . append ( "storageId" , getStorageId ( ) ) . build ( ) ; }
Source:
public void validateVmMemoryCantStartOnVdsVmTooBig ( ) { vm.setMinAllocatedMem ( 8865 ) ; vm.setVmMemSizeMb ( 8865 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsVmTooBig ( ) { vm.setMinAllocatedMem ( 8865 ) ; vm.setVmMemSizeMb ( 8865 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public void setup ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( "test" , "" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , "test" , StorageType.UNKNOWN.getValue ( ) , StoragePoolStatus.Up.getValue ( ) ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( storagePool ) ) ; }

Target:
public void setup ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setstatus ( StoragePoolStatus.Up ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( storagePool ) ) ; }
Source:
public java.util.List < org.ovirt.engine.sdk.entities.LogicalUnit > getLogicalUnits ( ) { if ( ( logicalUnits ) == null ) { logicalUnits = new java.util.ArrayList < org.ovirt.engine.sdk.entities.LogicalUnit > ( ) ; } return this . logicalUnits ; }

Target:
public org.ovirt.engine.sdk.entities.LogicalUnits getLogicalUnits ( ) { return logicalUnits ; }
Source:
public java.lang.String GetTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ; }

Target:
public java.lang.String getTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagIdAndChildrenIds ( tagId ) ; }
Source:
public final void setEventBus ( com.google.gwt.event.shared.EventBus eventBus ) { this . eventBus = eventBus ; if ( eventBus == null ) { unregisterHandlers ( ) ; } else { registerHandlers ( ) ; } }

Target:
public final void setEventBus ( com.google.gwt.event.shared.EventBus eventBus ) { assert eventBus != null : "EventBus cannot be null" ; assert ( this . eventBus ) == null : "EventBus is already set" ; this . eventBus = eventBus ; registerHandlers ( ) ; }
Source:
public void onSuccess ( java.lang.String result ) { if ( result != null ) { restApiSessionId = result ; processSessionId ( result ) ; } else { processSessionIdException ( ) ; } }

Target:
public void onSuccess ( java.lang.String result ) { if ( result != null ) { setSessionId ( result , false ) ; processSessionId ( result ) ; } else { processSessionIdException ( ) ; } }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Label model , int index ) { assertEquals ( org.ovirt.engine.api.restapi.resource.BackendNetworkLabelsResourceTest.LABELS [ index ] , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.NetworkLabel model , int index ) { assertEquals ( org.ovirt.engine.api.restapi.resource.BackendNetworkLabelsResourceTest.LABELS [ index ] , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.logNullParameters ( task ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource parameterSource = getTaskParameterSource ( task ) ; parameterSource.addValue ( "storage_pool_id" , task.getStoragePoolId ( ) ) ; getCallsHandler ( ) . executeModification ( "Updateasync_tasks" , parameterSource ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.AsyncTask task ) { org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.logNullParameters ( task ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource parameterSource = getTaskParameterSource ( task ) ; parameterSource.addValue ( "storage_pool_id" , task.getStoragePoolId ( ) ) ; getCallsHandler ( ) . executeModification ( "Updateasync_tasks" , parameterSource ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.domain.PostZeroHandler.fixParametersWithPostZero ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , autoRecoverable , connection , name , storage , storageFormat , storagePoolType , storageType , description , sanState , wipeAfterDelete , firstMetadataDevice , vgMetadataDevice , warningLowSpaceIndicator , criticalSpaceActionBlocker ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , autoRecoverable , connection , name , storage , storageFormat , storagePoolType , storageType , description , sanState , wipeAfterDelete , discardAfterDelete , firstMetadataDevice , vgMetadataDevice , warningLowSpaceIndicator , criticalSpaceActionBlocker ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getSearchCommand ( ) . Execute ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
, @ CustomShadowVariable.Source ( variableName = "vm" ) } ) public boolean isStart ( ) { return start ; }

Target:
, @ CustomShadowVariable.Source ( variableName = "instance" ) } ) public java.util.Map < java.lang.Long , java.lang.String > getInstanceToHostAssignments ( ) { return instanceToHostAssignments ; }
Source:
public void setvds_name ( java.lang.String value ) { this . mVdsStatic.setvds_name ( value ) ; }

Target:
public boolean isServerSslEnabled ( ) { return this . mVdsStatic.isServerSslEnabled ( ) ; }
Source:
public void testGetForStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( existingDomain.getId ( ) , new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; assertGetResult ( result ) ; }

Target:
public void testGetForStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( existingDomain.getId ( ) , FixturesTool.DATA_CENTER ) ; assertGetResult ( result ) ; }
Source:
public static boolean isFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.mUpdateVdsStatic.IsFieldsUpdated ( source , destination , list ) ; }

Target:
public static boolean isFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.updateVdsStatic.IsFieldsUpdated ( source , destination , list ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Snapshot getSnapshot ( ) { if ( ( cachedSnapshot ) == null ) { cachedSnapshot = org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand.getSnapshotDAO ( ) . get ( org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand.getParameters ( ) . getSourceSnapshotId ( ) ) ; } return cachedSnapshot ; }

Target:
private org.ovirt.engine.core.common.businessentities.Snapshot getSnapshot ( ) { if ( ( cachedSnapshot ) == null ) { cachedSnapshot = org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand.getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand.getParameters ( ) . getSourceSnapshotId ( ) ) ; } return cachedSnapshot ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask concreteCreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.concreteCreateTask ( this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTaskInCurrentTransaction ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }
Source:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { return spice.getIsWanOptionsEnabled ( ) ; }

Target:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { return spice.isWanOptionsEnabled ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > getLunsByVgId ( java.lang.String vgId ) { return asCollection ( org.ovirt.engine.core.common.businessentities.LUNs.class , getEntity ( java.util.List.class , VdcQueryType.GetLunsByVgId , new org.ovirt.engine.core.common.queries.GetLunsByVgIdParameters ( vgId ) , ( "LUNs for volume group: id=" + vgId ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLunsByVgId ( java.lang.String vgId ) { return asCollection ( org.ovirt.engine.core.common.businessentities.storage.LUNs.class , getEntity ( java.util.List.class , VdcQueryType.GetLunsByVgId , new org.ovirt.engine.core.common.queries.GetLunsByVgIdParameters ( vgId ) , ( "LUNs for volume group: id=" + vgId ) ) ) ; }
Source:
public void onFailed ( ) { org.ovirt.engine.core.bll.RemoveSnapshotSingleDiskLiveCommand.endWithFailure ( ) ; }

Target:
public java.lang.Void runInTransaction ( ) { syncDbRecordsMergeFailure ( ) ; return null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , EngineMessage.VAR__ENTITIES__VMS , EngineMessage.VAR__ENTITIES__VM ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = getVms ( ) ; return networkNotUsedByVms ( getEntitiesNames ( vms ) ) ; }
Source:
private native com.google.gwt.core.client.JavaScriptObject initClassNames ( org.ovirt.engine.ui.common.widget.table.ColumnContextMenu.ContextMenuCss css ) ;

Target:
public void removeItem ( com.google.gwt.user.cellview.client.Column < T , ? > column ) { org.ovirt.engine.ui.common.widget.table.ColumnContextMenuItem < T > removedItem = items.remove ( column ) ; if ( removedItem != null ) { container.remove ( removedItem ) ; } }
Source:
private boolean isPartiallySubmittedCommand ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTasks > tasks ) { for ( org.ovirt.engine.core.common.businessentities.AsyncTasks task : tasks ) { if ( ! ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.hasEmptyVdsmId ( task ) ) ) { return true ; } } return false ; }

Target:
private boolean isPartiallyExecutedCommand ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks ) { return tasks.isEmpty ( ) ? false : ! ( tasks.get ( 0 ) . getRootCmdEntity ( ) . isExecuted ( ) ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . createPool ( getOldMacPool ( ) ) ; }

Target:
protected void executeCommand ( ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.RemoveMacPoolCommand.CustomTransactionCompletionListener ( ) ) ; getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; poolPerDc.removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
private void allVfsAreFree ( boolean isValid ) { org.mockito.Mockito.when ( validator.allVfsAreFree ( org.mockito.Matchers.any ( org.ovirt.engine.core.bll.network.host.NetworkDeviceHelper.class ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ) ) ; }

Target:
private void allVfsAreFree ( boolean isValid ) { org.mockito.Mockito.when ( validator.allVfsAreFree ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ) ) ; }
Source:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( getDiskImageInfo ( ) , getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.AddDiskCommand.getStoragePool ( ) . getcompatibility_version ( ) ) ) ; }

Target:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( getDiskImageInfo ( ) , getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.AddDiskCommand.getStoragePool ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.AddDiskCommand.getCurrentUser ( ) ) ) ; }