auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.getByName ( existingDomain.getstorage_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingDomain.getId ( ) , result.getId ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.getByName ( existingDomain.getStorageName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingDomain.getId ( ) , result.getId ( ) ) ; }
Source:
public java.lang.String getVdsDestination ( ) { if ( ( getDestinationVds ( ) ) != null ) { return getDestinationVds ( ) . getvds_name ( ) ; } else { return null ; } }

Target:
public java.lang.String getVdsDestination ( ) { if ( ( getDestinationVds ( ) ) != null ) { return getDestinationVds ( ) . getVdsName ( ) ; } else { return null ; } }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , diskImages , lunDisks , interfaces , vmBase , clusterName , affinityGroups ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , diskImages , lunDisks , interfaces , vmBase , clusterName , affinityGroups , dbUsers , userToRoles ) ; }
Source:
public static java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > getCustomPropertiesList ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.customPropertiesList ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > getCustomPropertiesList ( ) { return customPropertiesList ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return disk.isWipeAfterDelete ( ) ; }

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 . createTaskInCurrentTransaction ( taskId , asyncTaskCreationInfo , parentCommand , entityType , entityIds ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return createClient ( this , this . selector , hostname , port ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( java.lang.String hostname , int port , org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient.CertCallback certCallback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return createClient ( this , this . selector , hostname , port , certCallback ) ; }
Source:
void setSendCtrlAltDelete ( boolean value ) ;

Target:
void setRemapCtrlAltDel ( boolean value ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public void saveGlusterServerHook ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , java.lang.String checksum , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;

Target:
public void updateGlusterHookContent ( org.ovirt.engine.core.compat.Guid id , java.lang.String checksum , java.lang.String content ) ;
Source:
protected org.ovirt.engine.core.compat.Guid getDataCenterId ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return cluster.getStoragePoolId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDataCenterId ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return cluster.getStoragePoolId ( ) ; }
Source:
public static boolean isMemorySizeLegal ( org.ovirt.engine.core.common.businessentities.VmOsType osType , int memSizeInMB , java.lang.String clusterVersion ) { return ( memSizeInMB >= ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getMinMemorySizeInMb ( ) ) ) && ( memSizeInMB <= ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getMaxMemorySizeInMb ( osType , clusterVersion ) ) ) ; }

Target:
public static boolean isMemorySizeLegal ( int osId , int memSizeInMB , org.ovirt.engine.core.compat.Version clusterVersion ) { return ( memSizeInMB >= ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getMinMemorySizeInMb ( osId , clusterVersion ) ) ) && ( memSizeInMB <= ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getMaxMemorySizeInMb ( osId , clusterVersion ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getParameters ( ) { return new org.ovirt.engine.core.common.action.CpuProfileParameters ( getProfile ( ) , getProfile ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getParameters ( ) { org.ovirt.engine.core.common.action.CpuProfileParameters cpuProfileParameters = new org.ovirt.engine.core.common.action.CpuProfileParameters ( getProfile ( ) ) ; cpuProfileParameters.setAddPermissions ( true ) ; return cpuProfileParameters ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface3 ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , vlanNetwork ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment createNetworkAttachment ( java.lang.String nicName , org.ovirt.engine.core.common.businessentities.network.Network network ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment result = createNetworkAttachment ( network ) ; result.setNicName ( nicName ) ; return result ; }
Source:
public void testExtractIpv6Prefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( "::/128" ) , org.hamcrest.Matchers.is ( 128 ) ) ; }

Target:
public void testExtractIpv6Prefix ( ) { org.hamcrest.MatcherAssert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( "::/128" ) , org.hamcrest.Matchers.is ( 128 ) ) ; }
Source:
public void setmem_shared ( java.lang.Long value ) { this . mVdsStatistics.setmem_shared ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_shared" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_shared_percent" ) ) ; }

Target:
public void setPmSecondaryPassword ( java.lang.String value ) { mVdsStatic.setPmSecondaryPassword ( value ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isOsSupportedForVirtIoScsi ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ! ( org.ovirt.engine.core.bll.validator.VmValidationUtils.isDiskInterfaceSupportedByOs ( vm.getOs ( ) , vm.getVdsGroupCompatibilityVersion ( ) , DiskInterface.VirtIO_SCSI ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isOsSupportedForVirtIoScsi ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ! ( org.ovirt.engine.core.bll.validator.VmValidationUtils.isDiskInterfaceSupportedByOs ( vm.getOs ( ) , vm.getVdsGroupCompatibilityVersion ( ) , DiskInterface.VirtIO_SCSI ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.AddVdsSpmIdCommand.getVds ( ) . getStoragePoolId ( ) . toString ( ) , LockingGroup.REGISTER_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.AddVdsSpmIdCommand.getVds ( ) . getStoragePoolId ( ) . toString ( ) , LockMessagesMatchUtil.REGISTER_VDS ) ; }
Source:
public void unlinkedWhenUnlinkingSupported ( ) throws java.lang.Exception { unlinkingTest ( ValidationResult.VALID , true , false ) ; }

Target:
public void unlinkedWhenUnlinkingSupported ( ) throws java.lang.Exception { unlinkingTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , false ) ; }
Source:
private boolean getAllowDuplicate ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.AllowDuplicateMacAddresses ) ; }

Target:
private boolean allowDuplicate ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.AllowDuplicateMacAddresses ) ; }
Source:
private void setVmIdOnVfsDevices ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.compat.Guid vmId , final java.util.Set < org.ovirt.engine.core.common.businessentities.HostDevice > vfs ) { for ( org.ovirt.engine.core.common.businessentities.HostDevice vf : vfs ) { vf.setVmId ( vmId ) ; } hostDeviceDao.updateAllInBatch ( vfs ) ; }

Target:
private void setVmIdOnVfsDevices ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.compat.Guid vmId , java.util.Set < org.ovirt.engine.core.common.businessentities.HostDevice > vfs ) { for ( org.ovirt.engine.core.common.businessentities.HostDevice vf : vfs ) { hostDeviceDao.setVmIdOnHostDevice ( vf.getId ( ) , vmId ) ; } }
Source:
public java.lang.String cannotConnectReason ( ) { return canConnectToConsole ( ) ? "" : org.ovirt.engine.ui.uicommonweb.models.VmConsolesImpl.messages.cannotConnectToTheConsole ( getVm ( ) . getName ( ) ) ; }

Target:
public java.lang.String cannotConnectReason ( ) { return canConnectToConsole ( ) ? "" : messages.cannotConnectToTheConsole ( getVm ( ) . getName ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel getVmGeneralModel ( ) { if ( ( vmImportGeneralModel ) == null ) { vmImportGeneralModel = new org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel ( ) ; } return vmImportGeneralModel ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel getVmGeneralModel ( ) { if ( ( vmImportGeneralModel ) == null ) { vmImportGeneralModel = new org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel ( ) ; vmImportGeneralModel.setSource ( ImportSource.EXPORT_DOMAIN ) ; } return vmImportGeneralModel ; }
Source:
protected java.lang.String getDescription ( ) { return getAdGroupName ( ) ; }

Target:
protected java.lang.String getDescription ( ) { return getGroupName ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { if ( object.isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( constants.bootableDisk ( ) ) ; } return null ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.bootableDisk ( ) ) ; } return null ; }
Source:
private void endUnlockOps ( ) { org.ovirt.engine.core.bll.VmHandler.UnLockVm ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateId ( ) ) ; }

Target:
private void endUnlockOps ( ) { if ( isVmInDb ) { org.ovirt.engine.core.bll.VmHandler.unLockVm ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; } org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateId ( ) ) ; }
Source:
protected boolean isDiskExist ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { if ( ( disk == null ) || ( ! ( isDiskExistInVm ( disk ) ) ) ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; return false ; } return true ; }

Target:
protected boolean isDiskExist ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { if ( ( disk == null ) || ( ! ( isDiskExistInVm ( disk ) ) ) ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; return false ; } return true ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomainDR storageDomainDR ) { return storageDomainDR.getScheduleCronExpression ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomainDR storageDomainDR ) { org.ovirt.engine.core.common.businessentities.gluster.StorageSyncSchedule schedule = new org.ovirt.engine.core.common.businessentities.gluster.StorageSyncSchedule ( storageDomainDR.getScheduleCronExpression ( ) ) ; return schedule.toString ( ) ; }
Source:
private void mockDbFacades ( ) { mockVdsGroupDao ( ) ; mockVmDao ( ) ; mockAuditLogDao ( ) ; mockVdsDao ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacadeLocator.setDbFacade ( dbFacade ) ; }

Target:
public void setup ( ) { dbFacade = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; initAgents ( ) ; mockDbFacades ( ) ; initCommand ( ) ; mockBackend ( ) ; }
Source:
protected boolean isStorageDomainSpaceBelowThresholds ( ) { return org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isBelowThresholds ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) ; }

Target:
protected boolean isStorageDomainSpaceWithinThresholds ( ) { return org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isWithinThresholds ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) ; }
Source:
public void fatalFormat ( java.lang.String formatString , java.lang.Object ... args ) { java.lang.Throwable throwable = extractException ( args ) ; if ( throwable != null ) error ( transform ( formatString , args ) , throwable ) ; else error ( transform ( formatString , args ) ) ; }

Target:
public void fatal ( java.lang.Object msg , java.lang.Throwable t ) { error ( msg , t ) ; }
Source:
public boolean isSetBlockStatistic ( ) { return ( ( this . blockStatistic ) != null ) && ( ! ( this . blockStatistic.isEmpty ( ) ) ) ; }

Target:
public void setFopStatistics ( org.ovirt.engine.sdk.entities.FopStatistics value ) { this . fopStatistics = value ; }
Source:
private void failOnDowngradingWithStorageType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_1 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , storageType ) ; setAttachedDomains ( sd ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTED_IN_DOWNGRADED_VERSION ) ; }

Target:
private void failOnDowngradingWithStorageType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_1 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , storageType ) ; setAttachedDomains ( sd ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTED_IN_DOWNGRADED_VERSION ) ; }
Source:
public void entityPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { updateProperties ( ) ; if ( e.PropertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }

Target:
public void entityPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { updateProperties ( ) ; if ( e.propertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }
Source:
private boolean volumeNameExists ( java.lang.String volumeName ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getGlusterVolumeDao ( ) . getByName ( getVdsGroupId ( ) , volumeName ) ; return volumeEntity == null ? false : true ; }

Target:
private boolean volumeNameExists ( java.lang.String volumeName ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getGlusterVolumeDao ( ) . getByName ( getClusterId ( ) , volumeName ) ; return volumeEntity == null ? false : true ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.UnmanagedNetworksResource getUnmanagedNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendUnmanagedNetworksResource ( guid ) ) ; }
Source:
public void SetAsDisplay ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( getSelectedItem ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.UpdateDisplayToVdsGroup , new org.ovirt.engine.core.common.action.DisplayNetworkToVdsGroupParameters ( getEntity ( ) , network , true ) ) ; }

Target:
public void setAsDisplay ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( getSelectedItem ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.UpdateDisplayToVdsGroup , new org.ovirt.engine.core.common.action.DisplayNetworkToVdsGroupParameters ( getEntity ( ) , network , true ) ) ; }
Source:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters , engineContext ) ; }

Target:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters , engineContext ) ; }
Source:
public void interfaceBasedOnSameName ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOnSameName ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createNic ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
public void setLabel ( java.lang.String label ) { getButtonWidget ( ) . setText ( label ) ; }

Target:
public java.lang.String getLabel ( ) { com.google.gwt.user.client.ui.Widget widget = getButtonWidget ( ) ; java.lang.String result = null ; if ( widget instanceof com.google.gwt.user.client.ui.HasText ) { result = ( ( com.google.gwt.user.client.ui.HasText ) ( widget ) ) . getText ( ) ; } return result ; }
Source:
public boolean isVMWithMemoryCompatible ( ) { return isVMWithMemoryCompatible ( getVm ( ) ) ; }

Target:
public void setOldClusterVersionOfSnapshotWithMemory ( ) { setOldClusterVersionOfSnapshotWithMemory ( getVm ( ) ) ; }
Source:
public void testIsStoragePoolMasterUpWhenUp ( ) { org.junit.Assert.assertTrue ( dbFacade.IsStoragePoolMasterUp ( org.ovirt.engine.core.dao.DbFacadeDAOTest.STORAGE_POOL_WITH_MASTER_UP ) ) ; }

Target:
public void testIsStoragePoolMasterUpWhenUp ( ) { org.junit.Assert.assertTrue ( dbFacade.isStoragePoolMasterUp ( org.ovirt.engine.core.dao.DbFacadeDAOTest.STORAGE_POOL_WITH_MASTER_UP ) ) ; }
Source:
protected boolean isFiltered ( ) { return org.ovirt.engine.api.common.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BaseBackendResource.FILTER , true , false ) ; }

Target:
protected boolean isFiltered ( ) { return org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BaseBackendResource.FILTER , true , false ) ; }
Source:
public static void setVdcUser ( org.ovirt.engine.core.common.interfaces.IVdcUser vdcUser ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.vdcUserKeeper.set ( vdcUser ) ; }

Target:
public static void setVdcUser ( org.ovirt.engine.core.common.users.VdcUser vdcUser ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.vdcUserKeeper.set ( vdcUser ) ; }
Source:
protected org.ovirt.engine.core.dao.BaseDiskDao getBaseDiskDao ( ) { return org.ovirt.engine.core.bll.ImportVmCommandBase.getDbFacade ( ) . getBaseDiskDao ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Version getEffectiveCompatibilityVersion ( ) { return effectiveCompatibilityVersion ; }
Source:
public static void GetAttachedTagsToVm ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.SetAttachedTagsConverter ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetTagsByVmId , new org.ovirt.engine.core.common.queries.GetTagsByVmIdParameters ( id.toString ( ) ) , aQuery ) ; }

Target:
public static void getAttachedTagsToVm ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.setAttachedTagsConverter ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetTagsByVmId , new org.ovirt.engine.core.common.queries.GetTagsByVmIdParameters ( id.toString ( ) ) , aQuery ) ; }
Source:
public void onSubmitComplete ( com.google.gwt.user.client.ui.FormPanel.SubmitCompleteEvent event ) { com.google.gwt.user.client.ui.RootPanel.getBodyElement ( ) . removeChild ( form ) ; }

Target:
public void onSubmitComplete ( com.google.gwt.user.client.ui.FormPanel.SubmitCompleteEvent event ) { com.google.gwt.user.client.ui.RootPanel.get ( ) . remove ( formPanel ) ; }
Source:
protected boolean shouldExecuteEndMethod ( org.ovirt.engine.core.bll.CommandBase < ? > commandBase ) { return ( ( commandBase.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ) || ( shouldCommandEndOnAsyncOpEnd ( commandBase ) ) ; }

Target:
protected boolean shouldExecuteEndMethod ( org.ovirt.engine.core.bll.CommandBase < ? > commandBase ) { return ( ! ( commandBase.isExecutedAsChildCommand ( ) ) ) || ( shouldCommandEndOnAsyncOpEnd ( commandBase ) ) ; }
Source:
public void isCpuPinningValidWithMultiplePinnedHosts ( ) { vmStatic.setDedicatedVmForVdsList ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.validator.CpuPinningValidator.isCpuPinningValid ( "0#0" , vmStatic ) . isValid ( ) ) ; }

Target:
public void isCpuPinningValidWithMultiplePinnedHosts ( ) { vmStatic.setDedicatedVmForVdsList ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.bll.validator.CpuPinningValidator.isCpuPinningValid ( "0#0" , vmStatic ) . isValid ( ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.dom.client.NativeEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) == ( event.getKeyCode ( ) ) ) { commandInvoker.invokeDefaultCommand ( ) ; } }

Target:
protected void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( loginModel.getLoginCommand ( ) ) ) { beforeLoginCommandExecuted ( loginModel ) ; } super . executeCommand ( command ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams ) { return org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams.getCustomProperties ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams.getCustomProperties ( ) ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; updateConsoleAddressPartiallyOverridden ( getEntity ( ) ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; updateConsoleAddressPartiallyOverridden ( getEntity ( ) ) ; updateProperties ( ) ; } UpdateActionAvailability ( ) ; }
Source:
private void mockValidators ( ) { mockStorageDomainValidator ( ) ; mockDiskValidator ( ) ; }

Target:
private void mockValidators ( ) { mockStorageDomainValidator ( ) ; mockDiskVmElementValidator ( ) ; }
Source:
public void testValidNetworkFilterIdUseDefaultNoFilterId ( ) { org.junit.Assert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidNetworkFilterIdUseDefaultNoFilterId ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testValid ( ) throws java.lang.Exception { assertEquals ( java.lang.Thread.State.NEW , org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( java.lang.Thread.State.class , "NEW" ) ) ; }

Target:
public void testValid ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( java.lang.Thread.State.NEW , org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( java.lang.Thread.State.class , "NEW" ) ) ; }
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 testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( target ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { migrationSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
private static void assertNotEmptyCanDoActionMessage ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_CAN_DO_MESSAGE , ( ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.canDoActionMessages.size ( ) ) > 0 ) ) ; org.ovirt.engine.core.bll.quota.QuotaManagerTest.canDoActionMessages.clear ( ) ; }

Target:
private void assertNotEmptyCanDoActionMessage ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_CAN_DO_MESSAGE , ( ! ( canDoActionMessages.isEmpty ( ) ) ) ) ; canDoActionMessages.clear ( ) ; }
Source:
public void setUp ( ) { disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; }

Target:
public void setUp ( ) { disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; metadataDiskDescriptionHandler = org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface result = dao.get ( org.ovirt.engine.core.dao.VmNetworkInterfaceDAOTest.INTERFACE_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmNetworkInterfaceDAOTest.INTERFACE_ID , result.getId ( ) ) ; }

Target:
public void testGetAllForTemplatesByNetwork ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > result = dao.getAllForTemplatesByNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertEquals ( existingVmInterface , result.get ( 0 ) ) ; }
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 passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public void testGetThemeStyleSheet ( ) { org.junit.Assert.assertEquals ( "Wedadmin style sheet: 'web_admin.css'" , "web_admin.css" , testTheme.getThemeStylesheets ( "webadmin" ) . get ( 0 ) ) ; org.junit.Assert.assertEquals ( "Wedadmin style sheet: '123.css'" , "123.css" , testTheme.getThemeStylesheets ( "webadmin" ) . get ( 1 ) ) ; }

Target:
public void testGetThemeStyleSheet ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "web_admin.css" , testTheme.getThemeStylesheets ( "webadmin" ) . get ( 0 ) , "Wedadmin style sheet: 'web_admin.css'" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "123.css" , testTheme.getThemeStylesheets ( "webadmin" ) . get ( 1 ) , "Wedadmin style sheet: '123.css'" ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getParameters ( ) . setCommandStep ( RemoveSnapshotSingleDiskStep.PREPARE_MERGE ) ; org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getParameters ( ) . setChildCommands ( new java.util.HashMap < > ( ) ) ; org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.setSucceeded ( true ) ; }
Source:
public void setExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { super . setExecutionContext ( executionContext ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getSourceDomainId ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { return getParameters ( ) . getSourceDomainId ( ) ; }
Source:
public void removeByName ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String glusterCommand , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStage stage , java.lang.String hookName ) ;

Target:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid glusterHookId ) ;
Source:
java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType action ) ;

Target:
java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType action , org.ovirt.engine.core.common.errors.VdcFault fault ) ;
Source:
public void testExecuteQueryCommnad ( ) { getQuery ( ) . executeQueryCommand ( ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity actual = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.Assert.assertEquals ( "wrong Gluster Brick" , expected.getId ( ) , actual.getId ( ) ) ; }

Target:
public void testExecuteQueryCommnad ( ) { getQuery ( ) . executeQueryCommand ( ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity actual = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( expected.getId ( ) , actual.getId ( ) , "wrong Gluster Brick" ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setReportBaseUrl ( ( ( java.lang.String ) ( returnValue ) ) ) ; }

Target:
public void onResponseReceived ( com.google.gwt.http.client.Request request , com.google.gwt.http.client.Response response ) { if ( ( response.getStatusCode ( ) ) == ( com.google.gwt.http.client.Response.SC_OK ) ) { reportsWebappDeployed = true ; parseReportsXML ( ) ; } }
Source:
public void onUserLoginChange ( org.ovirt.engine.ui.common.auth.UserLoginChangeEvent event ) { if ( ( autoLoginRequest ) != null ) { revealPlace ( autoLoginRequest ) ; autoLoginRequest = null ; } else { revealDefaultPlace ( ) ; } }

Target:
public void onUserLoginChange ( org.ovirt.engine.ui.common.auth.UserLoginChangeEvent event ) { user.setAutoLogin ( false ) ; if ( ( autoLoginRequest ) != null ) { revealPlace ( autoLoginRequest ) ; autoLoginRequest = null ; } else { revealDefaultPlace ( ) ; } }
Source:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getTreeForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetTreeForEntityWithRoleTypeFilteredWithPermissions ( ) { org.junit.Assert.assertNotNull ( privilegedUserSession ) ; baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , privilegedUserSession.getId ( ) , true ) ; }
Source:
java.lang.String mtuOverrideNotSupported ( java.lang.String version ) ;

Target:
java.lang.String youAreAboutChangeDcCompatibilityVersionWithUpgradeMsg ( java.lang.String version ) ;
Source:
public void testEmptyKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( EMPTY_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 2 ) ; }

Target:
public void testEmptyKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.EMPTY_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 2 ) ; }
Source:
public boolean isCifsEnabled ( ) { return accessProtocols.contains ( AccessProtocol.CIFS ) ; }

Target:
public boolean isCifsEnabled ( ) { java.lang.String cifsEnabled = getOptionValue ( GlusterConstants.OPTION_CIFS_DISABLE ) ; return ( cifsEnabled == null ) || ( cifsEnabled.equalsIgnoreCase ( GlusterConstants.OFF ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getActiveIsoDomainId ( ) { if ( ( cachedActiveIsoDomainId ) == null ) { cachedActiveIsoDomainId = getIsoDomainListSyncronizer ( ) . findActiveISODomain ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) ) ; } return cachedActiveIsoDomainId ; }

Target:
protected org.ovirt.engine.core.compat.Guid getActiveIsoDomainId ( ) { if ( ( cachedActiveIsoDomainId ) == null ) { cachedActiveIsoDomainId = getIsoDomainListSynchronizer ( ) . findActiveISODomain ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) ) ; } return cachedActiveIsoDomainId ; }
Source:
protected org.ovirt.engine.api.model.Snapshot doPopulate ( org.ovirt.engine.api.model.Snapshot model , org.ovirt.engine.api.model.Snapshot entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.Snapshot doPopulate ( org.ovirt.engine.api.model.Snapshot model , org.ovirt.engine.api.model.Snapshot entity ) { return collection.doPopulate ( model , entity ) ; }
Source:
protected abstract org.ovirt.engine.core.compat.Guid GetPoolId ( ) ;

Target:
protected abstract org.ovirt.engine.core.compat.Guid getPoolId ( ) ;
Source:
protected boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid vmId ) { return getVmDeviceUtils ( ) . hasWatchdog ( vmId ) ; }

Target:
protected boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) . hasVirtioScsiController ( vmId ) ; }
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds ) ; }

Target:
private boolean _doConnect ( java.lang.String server , org.ovirt.engine.core.utils.hostinstall.Credentials creds ) { return _doConnect ( server , creds , ( ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.SSHInactivityTimoutSeconds ) ) * 1000 ) ) ; }
Source:
public void setnice_level ( int value ) { this . mVmStatic.setnice_level ( value ) ; }

Target:
public void setDefaultBootSequence ( org.ovirt.engine.core.common.businessentities.BootSequence value ) { this . vmStatic.setdefault_boot_sequence ( value ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap runInTransaction ( ) { context.snapshotEntityStatus ( map ) ; map.setStatus ( status ) ; getStoragePoolIsoMapDAO ( ) . updateStatus ( map.getId ( ) , map.getStatus ( ) ) ; context.stateChanged ( ) ; return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap runInTransaction ( ) { context.snapshotEntityStatus ( map ) ; map.setStatus ( status ) ; getStoragePoolIsoMapDao ( ) . updateStatus ( map.getId ( ) , map.getStatus ( ) ) ; context.stateChanged ( ) ; return null ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { setChangeProhibitionReason ( null ) ; } } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { setChangeProhibitionReason ( null ) ; } } return this ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( result.getState ( ) ) ) ; dataCenterGuideModel.CleanConnection ( dataCenterGuideModel.connection , dataCenterGuideModel.hostId ) ; dataCenterGuideModel.OnFinish ( dataCenterGuideModel.context , false , dataCenterGuideModel.storageModel ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( result.getState ( ) ) ) ; dataCenterGuideModel.cleanConnection ( dataCenterGuideModel.connection , dataCenterGuideModel.hostId ) ; dataCenterGuideModel.onFinish ( dataCenterGuideModel.context , false , dataCenterGuideModel.storageModel ) ; }
Source:
public void testValidBondWhenSufficientNumberOfSlaves ( ) throws java.lang.Exception { assertCorrectSlaveCountInValidBonds ( 2 , "bonded interface with two or more slaves should be valid bond" , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidBondWhenSufficientNumberOfSlaves ( ) throws java.lang.Exception { assertCorrectSlaveCountInValidBonds ( 2 , "bonded interface with two or more slaves should be valid bond" , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , "bondName" ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageServerConnectionDAO getStorageConnDao ( ) { return org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) ; }

Target:
protected void restoreStateAfterUpdate ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap map , boolean setSucceeded ) { updateStatus ( map , StorageDomainStatus.Maintenance ) ; disconnectFromStorage ( ) ; org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.setSucceeded ( setSucceeded ) ; }
Source:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( storageDomainValidator.hasSpaceForNewDisks ( disksList ) ) ; }

Target:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( storageDomainValidator.hasSpaceForNewDisks ( disksList ) ) ; }
Source:
public java.util.List < java.math.BigInteger > readIntegers ( ) { return readStrings ( ) . stream ( ) . map ( this :: parseInteger ) . 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:
private void syncWithServers ( ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RefreshGlusterHooks , new org.ovirt.engine.core.common.action.gluster.GlusterClusterParameters ( getEntity ( ) . getId ( ) ) ) ; }

Target:
private void syncWithServers ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.RefreshGlusterHooks , new org.ovirt.engine.core.common.action.gluster.GlusterClusterParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { testProviderConnectivity ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase res = result.getReturnValue ( ) ; stopProgress ( ) ; setTestResultValue ( res ) ; }
Source:
protected void doEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel model ) { driver.edit ( model ) ; monitorCount.setText ( java.lang.Integer.toString ( getModel ( ) . getMonitorCount ( ) ) ) ; }

Target:
protected void doEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel model ) { driver.edit ( model ) ; monitorCount.setText ( java.lang.Integer.toString ( getModel ( ) . getMonitorCount ( ) ) ) ; defaultHost.setTitle ( getModel ( ) . getDefaultHost ( ) ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = org.ovirt.engine.ui.genericapi.GenericApiService.backend.RunQuery ( actionType , parameters ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = backend.RunQuery ( actionType , parameters ) ; return returnValue ; }
Source:
public void portMirroringEnableSupported ( ) { mockVnicProfilePortMirroringChange ( false ) ; mockVmsUsingVnicProfile ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkChanged ( ) { mockVnicProfileNetworkChange ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean isSplitted ( ) { return ( ( getVmNumaNode ( ) . getVdsNumaNodeList ( ) ) != null ) && ( ( getVmNumaNode ( ) . getVdsNumaNodeList ( ) . size ( ) ) > 1 ) ; }

Target:
public void pinTo ( java.lang.Integer hostNodeIndex ) { java.util.Objects.requireNonNull ( hostNodeIndex ) ; pinned = true ; this . hostNodeIndex = hostNodeIndex ; }
Source:
public void testGetVolumesSupportedAsStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > vols = dao.getVolumesSupportedAsStorageDomain ( ) ; org.junit.Assert.assertEquals ( 2 , vols.size ( ) ) ; }

Target:
public void testGetVolumesSupportedAsStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > vols = dao.getVolumesSupportedAsStorageDomain ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , vols.size ( ) ) ; }
Source:
protected void onTooltipSourceMouseOver ( ) { this . setWidget ( infoImageHover ) ; infoPanel.showRelativeTo ( this ) ; }

Target:
public void onMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { setWidget ( infoImageHover ) ; infoPanel.showRelativeTo ( this ) ; }