auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected abstract void ReadHardwareSection ( org.ovirt.engine.core.compat.backendcompat.XmlNode section ) ;

Target:
protected abstract void readOsSection ( org.ovirt.engine.core.compat.backendcompat.XmlNode section ) ;
Source:
public void passthroughChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , false , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.failsWithVnicProfileInUse ( ) ) ; }

Target:
public void passthroughNotChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , true , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private < T extends org.ovirt.engine.core.common.businessentities.IVdcQueryable > java.util.List < T > genericSearch ( final org.ovirt.engine.core.dao.SearchDAO < T > dao , final boolean useCache ) { return genericSearch ( dao , useCache , null ) ; }

Target:
private < T extends org.ovirt.engine.core.common.businessentities.IVdcQueryable > java.util.List < T > genericSearch ( final org.ovirt.engine.core.dao.SearchDao < T > dao , final boolean useCache ) { return genericSearch ( dao , useCache , null ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > importCandidate ( java.lang.String sdUUID , java.lang.String vmGUID , java.lang.String templateGUID , java.lang.String templateVolGUID , java.lang.String path , java.lang.String type , java.lang.String force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > resizePV ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String device ) ;
Source:
public void setVmDomain ( java.lang.String value ) { this . vmStatic.setdomain ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmOs ( ) { return this . vmStatic.getOs ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getDbFacade ( ) . getVdsStaticDao ( ) . getByVdsName ( org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getParameters ( ) . getName ( ) ) ; org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getQueryReturnValue ( ) . setReturnValue ( vds ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = vdsStaticDao.getByVdsName ( org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getParameters ( ) . getName ( ) ) ; org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getQueryReturnValue ( ) . setReturnValue ( vds ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.defaultOSes = ( ( java.util.HashMap < org.ovirt.engine.core.common.businessentities.ArchitectureType , java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { migrationSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public java.lang.String getHibernationVolHandle ( ) { return this . vmDynamic.getHibernationVolHandle ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getProviderId ( ) { return vmStatic.getProviderId ( ) ; }
Source:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , vlanNetwork , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmAndVlanAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VM , NetworkType.VLAN ) , vmNetwork1 , vlanNetwork ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.frontend.FrontendFailureEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.frontend.FrontendFailureEventArgs args ) { errorPopupManager.show ( messages.uiCommonRunActionFailed ( org.ovirt.engine.ui.common.uicommon.ErrorMessageFormatter.formatMessages ( args.getMessages ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.frontend.FrontendFailureEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.frontend.FrontendFailureEventArgs args ) { errorPopupManager.show ( org.ovirt.engine.ui.common.uicommon.FrontendFailureEventListener.messages.uiCommonRunActionFailed ( org.ovirt.engine.ui.common.uicommon.ErrorMessageFormatter.formatMessages ( args.getMessages ( ) ) ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ( ) ; }

Target:
public void getGlusterHooks ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > > aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterHooks , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( clusterId ) , aQuery ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , compatibilityVersion , dataCenterName , networkName , networkQosName ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , compatibilityVersion , dataCenterName , networkName , networkQosName , networkFilterName ) ; }
Source:
public org.ovirt.engine.api.resource.BalanceResource getSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendBalanceResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.BalanceResource getSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendBalanceResource ( id , schedulingPolicyId ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . networkTemplateSubTabLabel ( ) , 4 , ginjector.getSubTabNetworkTemplateModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkTemplateSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
public void filterAllDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = memoryStorageHandler.filterStorageDomains ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , invalidStorageDomain3 ) , memoryDisks ) ; org.junit.Assert.assertTrue ( filteredStorageDomains.isEmpty ( ) ) ; }

Target:
public void filterAllDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = memoryStorageHandler.filterStorageDomains ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , invalidStorageDomain3 ) , memoryDisks ) ; org.junit.jupiter.api.Assertions.assertTrue ( filteredStorageDomains.isEmpty ( ) ) ; }
Source:
protected R performGet ( org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { return performGet ( query , params , null ) ; }

Target:
protected R performGet ( org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase params ) { return performGet ( query , params , null ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VmTemplateStatus value ) { if ( ( status ) != value ) { status = value ; } }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VmTemplateStatus value ) { status = value ; }
Source:
public static org.ovirt.engine.ui.uicommonweb.models.CommonModel newInstance ( ) { org.ovirt.engine.ui.uicommonweb.models.CommonModel.instance = new org.ovirt.engine.ui.uicommonweb.models.CommonModel ( ) ; return org.ovirt.engine.ui.uicommonweb.models.CommonModel.instance ; }

Target:
public static org.ovirt.engine.ui.uicommonweb.models.CommonModel newInstance ( com.google.gwt.event.shared.EventBus eventBus ) { org.ovirt.engine.ui.uicommonweb.models.CommonModel.instance = new org.ovirt.engine.ui.uicommonweb.models.CommonModel ( eventBus ) ; return org.ovirt.engine.ui.uicommonweb.models.CommonModel.instance ; }
Source:
public void writeBoolean ( java.lang.String name , boolean value ) { writeElement ( name , java.lang.Boolean.toString ( value ) ) ; }

Target:
public void writeBoolean ( java.lang.String name , boolean value ) { writeElement ( name , org.ovirt.api.metamodel.runtime.xml.XmlWriter.renderBoolean ( value ) ) ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value ) { try { return new org.ovirt.engineextensions.aaa.ldap.ASN1OctetString ( java.util.Base64.decode ( value ) ) ; } catch ( java.text.ParseException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { try { return new org.ovirt.engineextensions.aaa.ldap.ASN1OctetString ( java.util.Base64.decode ( value ) ) ; } catch ( java.text.ParseException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public org.ovirt.engine.core.compat.Guid createTask ( 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 super . createTask ( asyncTaskCreationInfo , parentCommand , entityType , entityIds ) ; }

Target:
public org.ovirt.engine.core.compat.Guid createTask ( 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 super . createTask ( taskId , asyncTaskCreationInfo , parentCommand , entityType , entityIds ) ; }
Source:
public void setOutAverageRealtime ( java.lang.Integer outAverageRealtime ) { this . outAverageRealtime = outAverageRealtime ; }

Target:
public void setOutAverageRealtime ( java.lang.Integer outAverageRealtime ) { hostNetworkQosProperties.setOutAverageRealtime ( outAverageRealtime ) ; }
Source:
public void shouldDetectInvalidHostOsOnNewlyAddedHost ( ) { newHost1.setHostOs ( "which OS am I?" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isUpgradeDone ( java.util.Arrays.asList ( newHost1 , newHost2 ) ) , org.hamcrest.Matchers.not ( org.hamcrest.CoreMatchers.equalTo ( ValidationResult.VALID ) ) ) ; }

Target:
public void shouldDetectUpgradeDone ( ) { org.assertj.core.api.Assertions.assertThat ( validator.isUpgradeDone ( java.util.Arrays.asList ( newHost1 , newHost2 ) ) ) . isEqualTo ( ValidationResult.VALID ) ; }
Source:
public void onInitialize ( com.google.gwt.event.logical.shared.InitializeEvent event ) { updateActionButton ( newActionButton , buttonDef ) ; }

Target:
public void onHeaderOffsetChange ( org.ovirt.engine.ui.common.system.HeaderOffsetChangeEvent event ) { initializeCascadeMenuPanel ( ) ; unregisterResizeHandler ( ) ; }
Source:
public java.util.List getSupportedENGINEsList ( ) { java.util.List resultList = lst ( ) ; resultList.add ( "3.0" ) ; resultList.add ( "3.1" ) ; resultList.add ( "3.2" ) ; return resultList ; }

Target:
public java.util.List getSupportedENGINEsList ( ) { java.util.List resultList = lst ( ) ; resultList.add ( "3.0" ) ; resultList.add ( "3.1" ) ; resultList.add ( "3.2" ) ; resultList.add ( "3.3" ) ; return resultList ; }
Source:
protected void OnExecute ( ) { if ( ( this . getProgress ( ) ) != null ) { return ; } if ( ! ( this . Validate ( ) ) ) { return ; } StartProgress ( null ) ; }

Target:
protected void onExecute ( ) { if ( ( this . getProgress ( ) ) != null ) { return ; } if ( ! ( this . validate ( ) ) ) { return ; } startProgress ( null ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getDiskImagesToBeCloned ( ) { return getDiskImagesFromConfiguration ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getSourceVmId ( ) { return getVmIdFromSnapshot ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return ( ( object.getvm_active ( ) ) + " " ) + ( constants.vmsClusterHost ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( host.getConsoleAddress ( ) ) != null ? constants.yes ( ) : constants.no ( ) ; }
Source:
public void testGetAllForUserGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUserGroups ( "b399944a-81ab-4ec5-8266-e19ba7c3c9d1" ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserWithInvalidUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsers ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void statusInList ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.InActive , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusInList ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.Inactive , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.MacPool getMacPool ( ) { return getParameters ( ) . getMacPool ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.MacPool getMacPoolEntity ( ) { return getParameters ( ) . getMacPool ( ) ; }
Source:
public void setacpi_enable ( java.lang.Boolean value ) { this . acpi_enable = value ; }

Target:
public void setacpi_enable ( java.lang.Boolean value ) { this . acpiEnabled = value ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Disk incoming , org.ovirt.engine.api.model.Disk entity ) { return new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( vmId , map ( incoming , entity ) ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Disk incoming , org.ovirt.engine.api.model.Disk entity ) { return new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( entity.getId ( ) , vmId ) , map ( incoming , entity ) ) ; }
Source:
public java.util.ArrayList < java.lang.String > getWatchDogModels ( int osId , org.ovirt.engine.core.compat.Version version ) { java.lang.String models = getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.watchdog.models" , version ) ; return trimElements ( models.split ( "," ) ) ; }

Target:
public java.util.List < java.lang.String > getWatchDogModels ( int osId , org.ovirt.engine.core.compat.Version version ) { java.lang.String models = getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.watchdog.models" , version ) ; return org.ovirt.engine.core.utils.OsRepositoryImpl.trimElements ( models.split ( "," ) ) ; }
Source:
public void testGetAllDisksForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( null , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; org.junit.Assert.assertTrue ( "Disk should exists in the UnregisteredDisks table" , ( ! ( unregisteredDisk.isEmpty ( ) ) ) ) ; }

Target:
public void testGetAllDisksForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( null , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( unregisteredDisk.isEmpty ( ) ) ) , "Disk should exists in the UnregisteredDisks table" ) ; }
Source:
protected void updateTemplateDisksFromDb ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { org.ovirt.engine.core.bll.VmTemplateHandler.UpdateDisksFromDb ( template ) ; }

Target:
protected void updateTemplateDisksFromDb ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { org.ovirt.engine.core.bll.VmTemplateHandler.updateDisksFromDb ( template ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM mockVm ( ) { vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( vmId ) ; vm.setVmName ( VM_NAME ) ; vm.setDiskMap ( new java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.Disk > ( ) ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM mockVm ( ) { vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( vmId ) ; vm.setName ( VM_NAME ) ; vm.setDiskMap ( new java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.Disk > ( ) ) ; return vm ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase successfulVdcReturnValue ( java.lang.Object value ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setSucceeded ( true ) ; returnValue.setActionReturnValue ( value ) ; return returnValue ; }

Target:
private org.ovirt.engine.core.common.action.ActionReturnValue successfulActionReturnValue ( java.lang.Object value ) { org.ovirt.engine.core.common.action.ActionReturnValue returnValue = new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ; returnValue.setSucceeded ( true ) ; returnValue.setActionReturnValue ( value ) ; return returnValue ; }
Source:
private void removeAlarm ( org.ovirt.engine.core.compat.Guid hostId , boolean isConcurrent , org.ovirt.engine.core.common.AuditLogType conAlert , org.ovirt.engine.core.common.AuditLogType seqAlert ) { if ( isConcurrent ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.RemoveVdsAlert ( hostId , conAlert ) ; } else { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.RemoveVdsAlert ( hostId , seqAlert ) ; } }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( host.getpm_enabled ( ) ) && ( ( host.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ) ) ; }
Source:
public void initCommand ( ) { cmd = new org.ovirt.engine.core.bll.storage.StorageHandlingCommandBaseTest.TestStorageHandlingCommandBase ( new org.ovirt.engine.core.common.action.StoragePoolManagementParameter ( storagePool ) ) ; }

Target:
public void initCommand ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StorageHandlingCommandBaseTest.TestStorageHandlingCommandBase ( new org.ovirt.engine.core.common.action.StoragePoolManagementParameter ( storagePool ) ) ) ; }
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.VmGuestAgentInterface > ( ) ; } 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.network.VnicProfileView > ( ) ; } return source ; }
Source:
public void setWANDisableEffects ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > disableEffects ) { this . wanDisableEffects = disableEffects ; getWANDisableEffectsChangeEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }

Target:
public void setWANDisableEffects ( java.util.List < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > disableEffects ) { this . consoleOptions.setWanDisableEffects ( disableEffects ) ; getWANDisableEffectsChangeEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . vmDynamic.setDisplayType ( value ) ; }

Target:
public void setGuestOsArch ( org.ovirt.engine.core.common.businessentities.ArchitectureType guestOsArch ) { vmDynamic.setGuestOsArch ( guestOsArch ) ; }
Source:
protected void RemoveVmNetwork ( ) { new org.ovirt.engine.core.bll.network.VmInterfaceManager ( ) . removeAll ( macAdded , getVmId ( ) ) ; }

Target:
protected void removeVmNetwork ( ) { new org.ovirt.engine.core.bll.network.VmInterfaceManager ( ) . removeAll ( macAdded , getVmId ( ) ) ; }
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 ( ) : 100 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source != null ) && ( ! ( ( java.lang.Boolean ) ( source ) ) ) ; }
Source:
public void setKsmState ( java.lang.Boolean value ) { this . mVdsStatistics.setKsmState ( value ) ; }

Target:
public void setKsmState ( java.lang.Boolean value ) { vdsStatistics.setKsmState ( value ) ; }
Source:
public void refresh ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { com.google.gwt.user.client.Timer refresh = new com.google.gwt.user.client.Timer ( ) { @ java.lang.Override public void run ( ) { refreshDetails ( volumeEntity ) ; } } ; refresh.schedule ( 10000 ) ; }

Target:
public void cancelRefresh ( ) { if ( ( refresh ) != null ) { refresh.cancel ( ) ; } }
Source:
private void cloudInitPasswordSetChanged ( ) { java.lang.Boolean passwordChangable = ! ( getCloudInitPasswordSet ( ) . getEntity ( ) ) ; getCloudInitRootPassword ( ) . setIsChangable ( passwordChangable ) ; getCloudInitRootPasswordVerification ( ) . setIsChangable ( passwordChangable ) ; }

Target:
private void cloudInitPasswordSetChanged ( ) { java.lang.Boolean passwordChangable = ! ( getCloudInitPasswordSet ( ) . getEntity ( ) ) ; getCloudInitRootPassword ( ) . setIsChangeable ( passwordChangable ) ; getCloudInitRootPasswordVerification ( ) . setIsChangeable ( passwordChangable ) ; }
Source:
protected java.util.List < java.lang.String > translateErrorMessages ( java.util.List < java.lang.String > messages ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getErrorsTranslator ( ) . TranslateErrorText ( messages ) ; }

Target:
protected java.util.List < java.lang.String > translateErrorMessages ( java.util.List < java.lang.String > messages ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getErrorsTranslator ( ) . translateErrorText ( messages ) ; }
Source:
public java.lang.String getPmSecondaryType ( ) { return mVdsStatic.getPmSecondaryType ( ) ; }

Target:
public boolean isNumaSupport ( ) { return mVdsDynamic.isNumaSupport ( ) ; }
Source:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }

Target:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }
Source:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.EntityModel object , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { super . render ( context , object , sb ) ; sb.append ( templates.textForCheckBox ( "" ) ) ; }

Target:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork object , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { super . render ( context , object , sb ) ; sb.append ( templates.textForCheckBox ( "" ) ) ; }
Source:
public void passDiscardNotSupportedForDestSd ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; mockPassDiscardSupportedForDestSd ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_PASS_DISCARD_NOT_SUPPORTED_BY_DISK_INTERFACE ) , ImageOperation.Move ) ; org.junit.Assert.assertFalse ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }

Target:
public void passDiscardNotSupportedForDestSd ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; mockPassDiscardSupportedForDestSd ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_PASS_DISCARD_NOT_SUPPORTED_BY_DISK_INTERFACE ) , ImageOperation.Move ) ; org.junit.Assert.assertFalse ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageDomainStaticDAO getStorageDomainStaticDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) ; }

Target:
protected boolean validateTemplateArchitecture ( ) { if ( ( getVmTemplate ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_WITH_NOT_SUPPORTED_ARCHITECTURE ) ; return false ; } return true ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineEventPresenter.constants.virtualMachineEventSubTabLabel ( ) , 10 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineEventPresenter.constants.virtualMachineEventSubTabLabel ( ) , 11 , modelProvider ) ; }
Source:
public void leaseNotFreeMultipleOwners ( ) { java.lang.Object [ ] owners = new java.lang.Object [ ] { 1 , 2 , 3 } ; org.junit.Assert.assertFalse ( getLeaseStatus ( owners ) . isFree ( ) ) ; }

Target:
public void leaseNotFreeMultipleOwners ( ) { java.lang.Object [ ] owners = new java.lang.Object [ ] { 1 , 2 , 3 } ; org.junit.jupiter.api.Assertions.assertFalse ( getLeaseStatus ( owners ) . isFree ( ) ) ; }
Source:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void networkExists ( ) { org.mockito.Mockito.when ( networkDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( network ) ; org.junit.Assert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkExists ( ) { org.mockito.Mockito.when ( networkDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( network ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void MarkAllWithAttemptingEndAction ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.tasks.CommandAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.tasks.CommandAsyncTask task : CurrentActionTypeTasks ) { task.setState ( AsyncTaskState.AttemptingEndAction ) ; } } }

Target:
public void markAllWithAttemptingEndAction ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.tasks.CommandAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.tasks.CommandAsyncTask task : CurrentActionTypeTasks ) { task.setState ( AsyncTaskState.AttemptingEndAction ) ; } } }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.DISABLED ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ( ) ; }

Target:
public void getRoleList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.Role > > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllRoles , new org.ovirt.engine.core.common.queries.MultilevelAdministrationsQueriesParameters ( ) , aQuery ) ; }
Source:
public static void ToStringBuilder ( java.util.Map [ ] xmlRpc , java.lang.StringBuilder builder ) { if ( xmlRpc == null ) return ; for ( java.util.Map entry : xmlRpc ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcObjectDescriptor.ToStringBuilder ( entry , builder ) ; } }

Target:
public static void toStringBuilder ( java.util.Map [ ] xmlRpc , java.lang.StringBuilder builder ) { if ( xmlRpc == null ) return ; for ( java.util.Map entry : xmlRpc ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcObjectDescriptor.toStringBuilder ( entry , builder ) ; } }
Source:
private void OnSystemTreeSelectedItemChanged ( ) { UpdateActionAvailability ( ) ; }

Target:
private void add ( ) { if ( ( getWindow ( ) ) != null ) { return ; } setWindow ( new org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel ( this ) ) ; }
Source:
public void testGetFetchAllQuotaInTheSetup ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( null ) ; org.junit.Assert.assertEquals ( 5 , quotaList.size ( ) ) ; }

Target:
public void testGetFetchAllQuotaInTheSetup ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( null ) ; org.junit.Assert.assertEquals ( 13 , quotaList.size ( ) ) ; }
Source:
protected java.lang.String getFormattedMessage ( java.lang.String itemName ) { return ( ( org.ovirt.engine.ui.webadmin.ApplicationMessages ) ( messages ) ) . detaCenterForceRemovePopupMessageLabel ( itemName ) ; }

Target:
protected java.lang.String getFormattedMessage ( java.lang.String itemName ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.datacenter.DataCenterForceRemovePopupView.messages.detaCenterForceRemovePopupMessageLabel ( itemName ) ; }
Source:
protected void ExecuteVdsIdCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . RemoveVds ( org.ovirt.engine.core.vdsbroker.RemoveVdsVDSCommand.getVdsId ( ) ) ; }

Target:
protected void executeVdsIdCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . RemoveVds ( org.ovirt.engine.core.vdsbroker.RemoveVdsVDSCommand.getVdsId ( ) ) ; }
Source:
public void makeSortable ( ) { makeSortable ( new java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.storage.LunModel > ( ) { @ java.lang.Override public int compare ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel o1 , org.ovirt.engine.ui.uicommonweb.models.storage.LunModel o2 ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( getRawValue ( o1 ) , getRawValue ( o2 ) ) ; } } ) ; }

Target:
public void makeSortable ( ) { makeSortable ( java.util.Comparator.comparing ( this :: getRawValue , new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator ( ) ) ) ; }
Source:
protected void initWidget ( T widget ) { super . initWidget ( widget ) ; widget.setModal ( true ) ; widget.setGlassEnabled ( true ) ; widget.addStyleName ( resources.dialogBoxStyle ( ) . getName ( ) ) ; }

Target:
protected void initWidget ( T widget ) { super . initWidget ( widget ) ; widget.setModal ( true ) ; widget.setGlassEnabled ( true ) ; widget.addStyleName ( org.ovirt.engine.ui.common.view.AbstractPopupView.resources.dialogBoxStyle ( ) . getName ( ) ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { storageDomain.setSupportsDiscard ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { storageDomain.setSupportsDiscard ( false ) ; org.junit.jupiter.api.Assertions.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getvm_mem_size_mb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getVmMemSizeMb ( ) ) ) + " MB" ; }
Source:
private static void assertPluggedGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { java.lang.Integer numberOfDisks = 5 ; org.junit.Assert.assertEquals ( ( ( "VM should have " + numberOfDisks ) + " plugged disk" ) , numberOfDisks.intValue ( ) , disks.size ( ) ) ; }

Target:
private static void assertPluggedGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { java.lang.Integer numberOfDisks = 5 ; org.junit.jupiter.api.Assertions.assertEquals ( numberOfDisks.intValue ( ) , disks.size ( ) , ( ( "VM should have " + numberOfDisks ) + " plugged disk" ) ) ; }
Source:
private void clearDomainFromCache ( org.ovirt.engine.core.compat.Guid domainId , java.util.List < org.ovirt.engine.core.compat.Guid > nonOpVdss ) { if ( domainId != null ) { _domainsInProblem.remove ( domainId ) ; } removeVdsAsProblematic ( nonOpVdss ) ; removeVdsFromDomainMaintenance ( nonOpVdss ) ; }

Target:
private void clearDomainFromCache ( org.ovirt.engine.core.compat.Guid domainId , java.util.List < org.ovirt.engine.core.compat.Guid > nonOpVdss ) { if ( domainId != null ) { _domainsInProblem.remove ( domainId ) ; } removeVdsAsProblematic ( nonOpVdss ) ; removeVdsFromDomainMaintenance ( nonOpVdss ) ; removeVdsFromUnseenDomainsReport ( nonOpVdss ) ; }
Source:
private org.ovirt.engine.core.bll.context.CommandContext getContext ( ) { if ( ( commandContext ) == null ) { commandContext = new org.ovirt.engine.core.bll.context.CommandContext ( org.ovirt.engine.core.bll.RestartVdsCommand.getExecutionContext ( ) , new org.ovirt.engine.core.utils.lock.EngineLock ( org.ovirt.engine.core.bll.RestartVdsCommand.getExclusiveLocks ( ) , null ) ) ; } return commandContext ; }

Target:
public org.ovirt.engine.core.bll.context.CommandContext getContext ( ) { if ( ( commandContext ) == null ) { commandContext = org.ovirt.engine.core.bll.RestartVdsCommand.cloneContext ( ) . withLock ( new org.ovirt.engine.core.utils.lock.EngineLock ( org.ovirt.engine.core.bll.RestartVdsCommand.getExclusiveLocks ( ) , null ) ) ; } return commandContext ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( getJdbcTemplate ( ) ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterServerServiceDaoImpl.serviceRowMapper ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate ( getJdbcTemplate ( ) ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterServerServiceDaoImpl.serviceRowMapper ) ; }
Source:
public org.ovirt.engine.core.dao.PermissionDAO getPermissionDAO ( ) { return getDbFacade ( ) . getPermissionDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.PermissionDao getPermissionDao ( ) { return getDbFacade ( ) . getPermissionDao ( ) ; }
Source:
public org.ovirt.engine.core.dao.DiskImageDAO getDiskImageDao ( ) { return getDAO ( org.ovirt.engine.core.dao.DiskImageDAO.class ) ; }

Target:
public org.ovirt.engine.core.dao.DiskImageDAO getDiskImageDao ( ) { return getDao ( org.ovirt.engine.core.dao.DiskImageDAO.class ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionResume ( java.lang.String volumeName , java.lang.String slaveHostName , java.lang.String slaveVolumeName , java.lang.String userName , boolean force ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc desktopLock ( java.lang.String vmId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) ;
Source:
public java.lang.Boolean mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return rs.getBoolean ( 1 ) ; }

Target:
public boolean exists ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "IsVmIconExist" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Boolean.class ) , getCustomMapSqlParameterSource ( ) . addValue ( org.ovirt.engine.core.dao.VmIconDaoImpl.ID_COLUMN , id ) ) ; }
Source:
public java.util.List < java.math.BigDecimal > readDecimals ( ) { return readStrings ( ) . stream ( ) . map ( this :: parseDecimal ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }

Target:
public java.util.List < java.math.BigInteger > readIntegers ( ) { java.util.List < java.math.BigInteger > integers = new java.util.ArrayList < > ( ) ; for ( java.lang.String string : readStrings ( ) ) { integers.add ( parseInteger ( string ) ) ; } return integers ; }
Source:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_USER_ID , ActionGroup.CONSUME_QUOTA , new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void setUpTestServlet ( ) throws java.security.NoSuchAlgorithmException { super . setUpTestServlet ( ) ; org.mockito.Mockito.doReturn ( new java.util.ArrayList < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > ( ) ) . when ( testServlet ) . getPluginData ( ) ; }

Target:
protected void setUpTestServlet ( ) throws java.security.NoSuchAlgorithmException { super . setUpTestServlet ( ) ; org.mockito.Mockito.doReturn ( new java.util.ArrayList < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > ( ) ) . when ( testServlet ) . getPluginData ( ) ; testServlet.reportBaseUrl = "" ; testServlet.reportRedirectUrl = "" ; testServlet.reportRightClickRedirectUrl = "" ; }
Source:
public java.lang.Boolean getKvmEnable ( ) { return this . vmDynamic.getkvm_enable ( ) ; }

Target:
public void setGuestLastLoginTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLoginTime ( value ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDedicatedHost ( ) { org.ovirt.engine.core.compat.Guid dedicatedHost = org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getParameters ( ) . getDedicatedHost ( ) ; if ( dedicatedHost != null ) { return dedicatedHost ; } return org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) . getDedicatedVmForVds ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getDedicatedHostList ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > dedicatedHost = org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getParameters ( ) . getDedicatedHostList ( ) ; if ( dedicatedHost != null ) { return dedicatedHost ; } return org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) . getDedicatedVmForVdsList ( ) ; }
Source:
public void setVdsmVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( vdsmVersion , value ) ) { vdsmVersion = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "VdsmVersion" ) ) ; } }

Target:
public void setVdsmVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( vdsmVersion , value ) ) { vdsmVersion = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "VdsmVersion" ) ) ; } }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . UpdateTag ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.UpdateTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . UpdateTag ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . update ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.UpdateTagCommand.setSucceeded ( true ) ; }
Source:
protected void executeVDSCommand ( ) { vmManager.lock ( ) ; try { executeVmCommand ( ) ; } finally { vmManager.unlock ( ) ; } }

Target:
protected void executeVDSCommand ( ) { vmManager.lock ( ) ; try { executeVmCommand ( ) ; updateVmDataChangedTime ( ) ; } finally { vmManager.unlock ( ) ; } }
Source:
public void setStorageManager ( org.ovirt.engine.sdk.entities.StorageManager value ) { this . storageManager = value ; }

Target:
public void setStorageConnectionExtensions ( org.ovirt.engine.sdk.entities.StorageConnectionExtensions value ) { this . storageConnectionExtensions = value ; }
Source:
public void testParseMissingType ( ) { try { org.ovirt.engine.api.restapi.util.FencingOptionsParser.parse ( "foo:one=1" , "two=int" ) ; fail ( "expected IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException iae ) { java.lang.System.out.println ( iae ) ; } }

Target:
public void testParseMissingType ( ) { try { org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:one=1" , "two=int" ) ; fail ( "expected IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException iae ) { java.lang.System.out.println ( iae ) ; } }
Source:
public void testIsNetworkInSyncWhenBootProtocolEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface createTestedInstance ( ) { return new org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface ( iface , network , networkQos , testedNetworkAttachment , cluster ) ; }
Source:
public void enablePluginInvocation ( ) { canInvokePlugins = true ; for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { if ( plugin.isInState ( PluginState.READY ) ) { initPlugin ( plugin.getMetaData ( ) . getName ( ) ) ; } } }

Target:
public void disablePluginInvocation ( ) { canInvokePlugins = false ; cancelScheduledFunctionCommands ( ) ; }