auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.bll.ValidationResult providerTypeValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_TYPE_MISMATCH ) . when ( ( ( provider.getType ( ) ) != ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult providerTypeIsOpenstack ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_TYPE_MISMATCH ) . when ( ( ( provider.getType ( ) ) != ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) ) ; }
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.StoragePool > ( ) ; } 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.StoragePool > ( ) ; } return source ; }
Source:
public void setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { this . mVmStatic.setMigrationSupport ( migrationSupport ) ; }

Target:
public void setNiceLevel ( int value ) { this . vmStatic.setnice_level ( value ) ; }
Source:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.api.model.Network entity = getNetwork ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Network incoming , org.ovirt.engine.api.model.Network entity ) { org.ovirt.engine.api.model.Network updated = this . map ( incoming , entity ) ; return new org.ovirt.engine.core.common.action.AddNetworkStoragePoolParameters ( entity.getDataCenterId ( ) , updated ) ; }
Source:
public void canDoActionFailsNameExists ( ) { org.mockito.Mockito.when ( sdsDao.getByName ( sd.getName ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NAME_ALREADY_EXIST ) ; }

Target:
public void canDoActionFailsNameExists ( ) { org.mockito.Mockito.when ( sdsDao.getByName ( sd.getName ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NAME_ALREADY_EXIST ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VM > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > remove_image_ticket ( java.lang.String ticketId ) ;
Source:
private void initIpConfigurationNetmask ( ) { getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setNetmask ( org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETMASK ) ; }

Target:
private void initIpv4ConfigurationNetmask ( ) { getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setNetmask ( org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETMASK ) ; }
Source:
public int extractOsType ( org.ovirt.engine.core.common.businessentities.VmTemplate item ) { return item.getOsId ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { final org.ovirt.engine.core.compat.Guid smallIconId = template.getSmallIconId ( ) ; return org.ovirt.engine.ui.uicommonweb.models.vms.IconCache.getInstance ( ) . getIcon ( smallIconId ) ; }
Source:
protected boolean validateVmPoolProperties ( ) { if ( ( ( updateReadOnlyRequested ( ) ) || ( updateWipeAfterDeleteRequested ( ) ) ) && ( ( org.ovirt.engine.core.bll.storage.disk.UpdateVmDiskCommand.getVm ( ) . getVmPoolId ( ) ) != null ) ) return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_ATTACHED_TO_POOL ) ; return true ; }

Target:
protected boolean validateVmPoolProperties ( ) { if ( ( ( updateReadOnlyRequested ( ) ) || ( updateWipeAfterDeleteRequested ( ) ) ) && ( ( org.ovirt.engine.core.bll.storage.disk.UpdateVmDiskCommand.getVm ( ) . getVmPoolId ( ) ) != null ) ) return failValidation ( EngineMessage.ACTION_TYPE_FAILED_VM_ATTACHED_TO_POOL ) ; return true ; }
Source:
public void testSendInvalidSource ( ) throws java.lang.Exception { client.sendFile ( ( ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.getAbsolutePath ( ) ) + "A" ) , remote ) ; }

Target:
public void testSendInvalidSource ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.io.FileNotFoundException.class , ( ) -> client.sendFile ( ( ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.getAbsolutePath ( ) ) + "A" ) , remote ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( getNetwork ( ) . getId ( ) ) ; } return persistedNetwork ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getNetworkDao ( ) . get ( getNetwork ( ) . getId ( ) ) ; } return persistedNetwork ; }
Source:
public void setusage_mem_percent ( java.lang.Integer value ) { this . mVmStatistics.setusage_mem_percent ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "usage_mem_percent" ) ) ; }

Target:
public void setUtcDiff ( java.lang.Integer value ) { this . vmDynamic.setutc_diff ( value ) ; }
Source:
public static java.lang.String GetMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String value = "" ; if ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.containsKey ( logType ) ) { value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; } return value ; }

Target:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String value = "" ; if ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.containsKey ( logType ) ) { value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; } return value ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , sysPrepDomainName , sysPrepUserName , sysPrepPassword , vmInit , destinationVdsId , customEmulatedMachine , customCpuName ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , sysPrepDomainName , sysPrepUserName , sysPrepPassword , vmInit , destinationVdsId , customEmulatedMachine , customCpuName , initrdUrl , kernelUrl , kernelParams , bootMenuEnabled , spiceFileTransferEnabled , spiceCopyPasteEnabled , bootSequence ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAutoAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return RunAction ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return runAction ( VdcActionType.LogoutUser , parameters ) ; }
Source:
public void Install ( ) { org.ovirt.engine.ui.common.uicommon.SpicePluginImpl.logger.finer ( "Spice must be installed ahead..." ) ; InstallNatively ( ) ; }

Target:
public void install ( ) { org.ovirt.engine.ui.common.uicommon.SpicePluginImpl.logger.finer ( "Spice must be installed ahead..." ) ; InstallNatively ( ) ; }
Source:
public org.ovirt.engine.api.resource.ClusterResource getClusterSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResource ( this , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.ClusterResource getClusterResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResource ( this , id ) ) ; }
Source:
public void setvmt_guid ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvmt_guid ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vmt_guid" ) ) ; }

Target:
public void setVmtTimeZone ( java.lang.String value ) { vmtTimeZone = value ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return null ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getStopSessionCommand ( ) ; }
Source:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.AttachUserToVmFromPoolAndRunParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobIdForVdsmAndGluster ( org.ovirt.engine.core.compat.Guid jobId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Step.getStepsByJobIdForVdsmAndGluster" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "jobId" , jobId ) . setParameter ( "systemType" , java.util.EnumSet.of ( ExternalSystemType.VDSM , ExternalSystemType.GLUSTER ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByParentStepId ( org.ovirt.engine.core.compat.Guid parentStepId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "parent_step_id" , parentStepId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByParentStepId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { if ( ( getVds ( ) . getVdsGroupCompatibilityVersion ( ) . compareTo ( Version.v3_3 ) ) >= 0 ) { status = getBroker ( ) . setMOMPolicyParameters ( initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; } }

Target:
protected void executeVdsBrokerCommand ( ) { if ( ( getVds ( ) . getClusterCompatibilityVersion ( ) . compareTo ( Version.v3_3 ) ) >= 0 ) { status = getBroker ( ) . setMOMPolicyParameters ( initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; } }
Source:
private void addLabel ( java.lang.String label ) { org.gwtbootstrap3.client.ui.html.Span labelSpan = new org.gwtbootstrap3.client.ui.html.Span ( ) ; labelSpan.getElement ( ) . setInnerText ( label ) ; add ( labelSpan ) ; }

Target:
private void addLabel ( com.google.gwt.safehtml.shared.SafeHtml label ) { org.gwtbootstrap3.client.ui.html.Span labelSpan = new org.gwtbootstrap3.client.ui.html.Span ( ) ; labelSpan.getElement ( ) . setInnerSafeHtml ( label ) ; add ( labelSpan ) ; }
Source:
protected void RemoveVmStatic ( ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }

Target:
protected void removeVmStatic ( ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }
Source:
public static boolean isManagementNetwork ( org.ovirt.engine.core.common.businessentities.network.Network net ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.ManagementNetwork ) . equals ( net.getName ( ) ) ; }

Target:
public static boolean isManagementNetwork ( java.lang.String networkName ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.ManagementNetwork ) . equals ( networkName ) ; }
Source:
public void testPhasesCorrelation ( ) { for ( org.ovirt.engine.api.model.ImageTransferPhase phase : org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase.values ( ) ) { try { org.ovirt.engine.api.model.ImageTransferPhase.valueOf ( phase.name ( ) ) ; } catch ( java.lang.Exception ex ) { org.junit.Assert.fail ( ) ; } } }

Target:
public void testPhasesCorrelation ( ) { for ( org.ovirt.engine.api.model.ImageTransferPhase phase : org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase.values ( ) ) { try { org.ovirt.engine.api.model.ImageTransferPhase.valueOf ( phase.name ( ) ) ; } catch ( java.lang.Exception ex ) { org.junit.jupiter.api.Assertions.fail ( ) ; } } }
Source:
private static java.lang.String mapToInheritableBoolean ( java.lang.Boolean value ) { return org.ovirt.engine.api.restapi.types.InheritableBooleanMapper.map ( value ) . value ( ) ; }

Target:
private static org.ovirt.engine.api.model.InheritableBoolean mapToInheritableBoolean ( java.lang.Boolean value ) { return org.ovirt.engine.api.restapi.types.InheritableBooleanMapper.map ( value ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }
Source:
public void setClientRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . client.setRetryPolicy ( policy ) ; }

Target:
public void setClientRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.internal.ClientPolicy policy ) { this . client.setClientPolicy ( policy ) ; }
Source:
private void setStoragePool ( ) { storage_pool.setQuotaEnforcementType ( ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.hardEnforcement ? org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.HARD_ENFORCEMENT : org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ) ; storage_pool.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000001111" ) ) ; }

Target:
private void setStoragePool ( ) { storage_pool.setQuotaEnforcementType ( ( hardEnforcement ? org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.HARD_ENFORCEMENT : org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ) ; storage_pool.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000001111" ) ) ; }
Source:
protected org.ovirt.engine.api.model.NIC populate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.NIC deprecatedPopulate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { addReportedDevices ( model , entity ) ; return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }
Source:
public void addToHistoryEmptyBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 12 ) , statistics.addToHistory ( new java.util.ArrayList < java.lang.Integer > ( ) , 12 , 100 ) ) ; }

Target:
public void addToHistoryEmptyBefore ( ) { org.junit.Assert.assertEquals ( java.util.Collections.singletonList ( 12 ) , statistics.addToHistory ( new java.util.ArrayList < java.lang.Integer > ( ) , 12 , 100 ) ) ; }
Source:
public void onUserLogout ( ) { setUserName ( null ) ; setUserId ( null ) ; setLoggedIn ( false ) ; fireLoginChangeEvent ( ) ; }

Target:
public void onUserLogin ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { setLoggedUser ( loggedUser ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }
Source:
private void InternalEndWithFailure ( ) { log.errorFormat ( "Ending command with failure: {0}" , getClass ( ) . getName ( ) ) ; EndWithFailure ( ) ; }

Target:
private void internalEndWithFailure ( ) { log.errorFormat ( "Ending command with failure: {0}" , getClass ( ) . getName ( ) ) ; if ( hasTaskHandlers ( ) ) { getCurrentTaskHandler ( ) . endWithFailure ( ) ; revertPreviousHandlers ( ) ; } else { endWithFailure ( ) ; } }
Source:
protected void addCustomModelsDetailModelList ( org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list ) { list.add ( new org.ovirt.engine.ui.uicommonweb.models.templates.UserPortalTemplateEventListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.UserPortalPermissionListModel ( ) ) ; }

Target:
protected void addCustomModelsDetailModelList ( org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list ) { list.add ( 2 , new org.ovirt.engine.ui.uicommonweb.models.templates.UserPortalTemplateDiskListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.templates.UserPortalTemplateEventListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.UserPortalPermissionListModel ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.Guid addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metadataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMetadataDisk ( ) ; return addDisk ( metadataDisk ) ; }

Target:
private org.ovirt.engine.core.compat.Guid addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metadataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMetadataDisk ( ) ; metadataDisk.setWipeAfterDelete ( wipeAfterDelete ) ; return addDisk ( metadataDisk ) ; }
Source:
public java.lang.Void runInTransaction ( ) { if ( RemoveVmTemplateImages ( ) ) { setSucceeded ( true ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { if ( removeVmTemplateImages ( ) ) { setSucceeded ( true ) ; } return null ; }
Source:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }

Target:
public void setProfile ( java.lang.String sessionId , org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PROFILE_PARAMETER_NAME , profile ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > GetStoragePoolTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.NFS , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP , org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS , org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS , org.ovirt.engine.core.common.businessentities.StorageType.GLUSTERFS } ) ) ; }

Target:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > getStoragePoolTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.NFS , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP , org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS , org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS , org.ovirt.engine.core.common.businessentities.StorageType.GLUSTERFS } ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "storagePoolId = %s, ignoreFailoverLimit = %s, compatabilityVersion = %s" , getStoragePoolId ( ) , getIgnoreFailoverLimit ( ) , getCompatibilityVersion ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "storagePoolId = %s, ignoreFailoverLimit = %s" , getStoragePoolId ( ) , getIgnoreFailoverLimit ( ) ) ; }
Source:
void setupCloneVmPermissions ( org.ovirt.engine.core.common.action.AddVmTemplateParameters params ) { boolean clonePermissions = org.ovirt.engine.api.common.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendTemplatesResource.CLONE_PERMISSIONS , true , false ) ; if ( clonePermissions ) { params.setCopyVmPermissions ( clonePermissions ) ; } }

Target:
void setupCloneVmPermissions ( org.ovirt.engine.core.common.action.AddVmTemplateParameters params ) { boolean clonePermissions = org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendTemplatesResource.CLONE_PERMISSIONS , true , false ) ; if ( clonePermissions ) { params.setCopyVmPermissions ( clonePermissions ) ; } }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( long sizeInGigabytes ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setSizeInGigabytes ( sizeInGigabytes ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createDiskImage ( long sizeInGigabytes ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setSizeInGigabytes ( sizeInGigabytes ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }
Source:
public java.lang.Object runInTransaction ( ) { getStorageHelper ( dom ) . storageDomainRemoved ( dom.getStorageStaticData ( ) ) ; getStorageDomainDAO ( ) . remove ( dom.getId ( ) ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { getStorageHelper ( dom ) . storageDomainRemoved ( dom.getStorageStaticData ( ) ) ; getStorageDomainDao ( ) . remove ( dom.getId ( ) ) ; return null ; }
Source:
public void OnSaveInternal ( ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel ) ( getWindow ( ) ) ) ; if ( ( model.getProgress ( ) ) != null ) { return ; } CancelConfirmation ( ) ; OnSaveInternalWithModel ( model ) ; }

Target:
public void onSaveInternal ( ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel ) ( getWindow ( ) ) ) ; if ( ( model.getProgress ( ) ) != null ) { return ; } cancelConfirmation ( ) ; onSaveInternalWithModel ( model ) ; }
Source:
public void testGetVmDeviceByVmIdTypeAndDeviceNoFiltering ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , "disk" , "disk" ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }

Target:
public void testGetVmDeviceByVmIdTypeAndDeviceNoFiltering ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }
Source:
public void vlanIdTakenBySameNetwork ( ) throws java.lang.Exception { vlanIdAvailableTest ( ValidationResult.VALID , getSingletonVlanNetworkList ( DEFAULT_VLAN_ID , DEFAULT_GUID ) ) ; }

Target:
public void vlanIdTakenBySameNetwork ( ) throws java.lang.Exception { vlanIdAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , getSingletonVlanNetworkList ( DEFAULT_VLAN_ID , DEFAULT_GUID ) ) ; }
Source:
public void writeStartElement ( java.lang.String uri , java.lang.String name ) { try { writer.writeStartElement ( uri , name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }

Target:
public void writeElement ( java.lang.String uri , java.lang.String name , java.lang.String value ) { writeStartElement ( uri , name ) ; writeCharacters ( value ) ; writeEndElement ( ) ; }
Source:
private void setUpGetEntityExpectations ( org.ovirt.engine.core.compat.Guid guid , int times , org.ovirt.engine.core.common.businessentities.storage_domains entity ) throws java.lang.Exception { for ( int i = 0 ; i < times ; i ++ ) { setUpGetEntityExpectations ( guid , entity ) ; } }

Target:
private void setUpGetEntityExpectations ( org.ovirt.engine.core.compat.Guid guid , int times , org.ovirt.engine.api.model.StorageDomain entity ) throws java.lang.Exception { for ( int i = 0 ; i < times ; i ++ ) { setUpGetEntityExpectations ( guid , entity ) ; } }
Source:
private boolean hasFreeSpace ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { if ( ( getDiskImageInfo ( ) . getvolume_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ) ) { return doesStorageDomainhaveSpaceForRequest ( storageDomain ) ; } return isStorageDomainWithinThresholds ( storageDomain ) ; }

Target:
private boolean hasFreeSpace ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { if ( ( getDiskImageInfo ( ) . getVolumeType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ) ) { return doesStorageDomainhaveSpaceForRequest ( storageDomain ) ; } return isStorageDomainWithinThresholds ( storageDomain ) ; }
Source:
public org.ovirt.engine.api.resource.SnapshotCdRomResource getCdRomResource ( java.lang.String id ) { return new org.ovirt.engine.api.restapi.resource.BackendSnapshotCdRomResource ( id , this ) ; }

Target:
public org.ovirt.engine.api.resource.SnapshotCdromResource getCdromResource ( java.lang.String id ) { return new org.ovirt.engine.api.restapi.resource.BackendSnapshotCdRomResource ( id , this ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.DbUser t ) { return domains.contains ( t.getdomain ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.DbUser t ) { return domains.contains ( t.getDomain ( ) ) ; }
Source:
public void testGetAllForClusterFull ( ) { checkResults ( dao.getAllForCluster ( FixturesTool.VDS_GROUP_RHEL6_ISCSI ) ) ; }

Target:
public void testGetAllForClusterFull ( ) { checkResults ( dao.getAllForCluster ( FixturesTool.CLUSTER_RHEL6_ISCSI ) ) ; }
Source:
protected void updateButton ( ) { super . updateButton ( ) ; tooltip.setText ( buildTooltipText ( ) ) ; }

Target:
protected void updateButton ( ) { super . updateButton ( ) ; tooltip.setHtml ( buildTooltipHtml ( ) ) ; }
Source:
public void mapNoMethodSsoFromRestToBackend ( ) { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; restSso.setMethods ( new org.ovirt.engine.api.model.Methods ( ) ) ; org.ovirt.engine.core.common.businessentities.SsoMethod expectedBackendSsoMethod = org.ovirt.engine.core.common.businessentities.SsoMethod.NONE ; org.junit.Assert.assertEquals ( expectedBackendSsoMethod , org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }

Target:
public void mapNoMethodSsoFromRestToBackend ( ) { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; restSso.setMethods ( new org.ovirt.engine.api.model.Methods ( ) ) ; org.ovirt.engine.core.common.businessentities.SsoMethod expectedBackendSsoMethod = org.ovirt.engine.core.common.businessentities.SsoMethod.NONE ; org.junit.jupiter.api.Assertions.assertEquals ( expectedBackendSsoMethod , org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }
Source:
public void setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { privateChangeProhibitionReason = null ; } } }

Target:
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 ) { privateChangeProhibitionReason = null ; } } return this ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getExternalVMs ( java.lang.String uri , java.lang.String username , java.lang.String password ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getExternalVMs ( java.lang.String uri , java.lang.String username , java.lang.String password , java.util.List < java.lang.String > vmsNames ) ;
Source:
public java.lang.String setValue ( java.lang.String value ) throws java.lang.Exception { value = pwdValueHelper.extractPasswordValue ( value ) ; return reformatKeyVal ( value , org.ovirt.engine.core.config.entity.helper.CompositePasswordValueHelper.ReformatType.ENCRYPT ) ; }

Target:
public java.lang.String setValue ( java.lang.String value ) throws java.lang.Exception { if ( value.isEmpty ( ) ) { return "" ; } value = pwdValueHelper.extractPasswordValue ( value ) ; return reformatKeyVal ( value , org.ovirt.engine.core.config.entity.helper.CompositePasswordValueHelper.ReformatType.ENCRYPT ) ; }
Source:
public void updateNicWithVnicProfileForUser ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmInterface , org.ovirt.engine.core.common.businessentities.DbUser user ) { if ( ! ( updateNicWithVnicProfile ( vmInterface , user ) ) ) { markNicHasNoProfile ( vmInterface ) ; } }

Target:
public void updateNicWithVnicProfileForUser ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmInterface , org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { if ( ! ( updateNicWithVnicProfile ( vmInterface , user ) ) ) { markNicHasNoProfile ( vmInterface ) ; } }
Source:
protected void init ( ) { disk = loadDisk ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getParameters ( ) . getEntityInfo ( ) . getId ( ) ) ; }

Target:
protected void init ( ) { disk = diskHandler.loadDiskFromSnapshot ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getParameters ( ) . getEntityInfo ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getParameters ( ) . getSnapshotId ( ) ) ; }
Source:
public void setvm_description ( java.lang.String value ) { this . mVmStatic.setdescription ( value ) ; }

Target:
public int getNumOfMonitors ( ) { return this . vmStatic.getnum_of_monitors ( ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfileForUser ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , getEffectiveCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }
Source:
protected void SelectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . SelectedItemPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { UpdateActionAvailability ( ) ; } }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { UpdateActionAvailability ( ) ; } }
Source:
public void setRemapCtrlAltDelete ( boolean remapCtrlAltDelete ) { this . remapCtrlAltDelete = remapCtrlAltDelete ; }

Target:
public void setRemapCtrlAltDelete ( boolean remapCtrlAltDelete ) { consoleOptions.setRemapCtrlAltDelete ( remapCtrlAltDelete ) ; }
Source:
public final java.lang.String feedbackMessage ( ) { return getString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.FEEDBACK_MESSAGE ) ; }

Target:
public final java.lang.String feedbackLinkLabel ( ) { return getString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.FEEDBACK_LINK_LABEL ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVDSGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeRemoveBricksStatusQueryTest.CLUSTER_ID ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeRemoveBricksStatusQueryTest.CLUSTER_ID ) ; return cluster ; }
Source:
public org.ovirt.engine.core.compat.Guid getMasterStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid pool ) { return getStorageDomainId ( pool , StorageDomainType.Master ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getMasterStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid poolId ) { return getStorageDomainId ( poolId , StorageDomainType.Master ) ; }
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 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.ActionGroup > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ( ) ; }
Source:
public static org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.NewClusterPolicyModel createModel ( org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType commandType , org.ovirt.engine.core.common.scheduling.ClusterPolicy clusterPolicy , org.ovirt.engine.ui.uicommonweb.models.EntityModel sourceModel , java.util.ArrayList < org.ovirt.engine.core.common.scheduling.PolicyUnit > policyUnits ) { org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.NewClusterPolicyModel clusterPolicyModel = new org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.NewClusterPolicyModel ( commandType , clusterPolicy , sourceModel , policyUnits ) ; clusterPolicyModel.init ( ) ; return clusterPolicyModel ; }

Target:
public static org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.NewClusterPolicyModel createModel ( org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType commandType , org.ovirt.engine.core.common.scheduling.ClusterPolicy clusterPolicy , org.ovirt.engine.ui.uicommonweb.models.IModel sourceModel , java.util.ArrayList < org.ovirt.engine.core.common.scheduling.PolicyUnit > policyUnits ) { org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.NewClusterPolicyModel clusterPolicyModel = new org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.NewClusterPolicyModel ( commandType , clusterPolicy , sourceModel , policyUnits ) ; clusterPolicyModel.init ( ) ; return clusterPolicyModel ; }
Source:
protected void executeCommand ( ) { removeQuotaFromCache ( ) ; setQuotaParameter ( ) ; org.ovirt.engine.core.dao.QuotaDAO dao = getQuotaDAO ( ) ; dao.update ( getParameters ( ) . getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { removeQuotaFromCache ( ) ; setQuotaParameter ( ) ; org.ovirt.engine.core.dao.QuotaDAO dao = getQuotaDAO ( ) ; dao.update ( getParameters ( ) . getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; afterUpdate ( ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { onRestoreFromExportDomain ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setWindow ( null ) ; setWindow ( model ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.dataCenterList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( returnValue ) ) ; SetDefaultNames5 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.dataCenterList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( returnValue ) ) ; setDefaultNames5 ( ) ; }
Source:
public void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public void setStorageDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( storageDomain , value ) ) ) { storageDomain = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "StorageDomain" ) ) ; } }

Target:
public void setStorageDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( storageDomain , value ) ) ) { storageDomain = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "StorageDomain" ) ) ; } }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }

Target:
public void getDefaultSpmPriority ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( 0 ) ; aQuery.asyncCallback.onSuccess ( 5 ) ; }
Source:
public void validateFailsForCluster ( ) { prepareMocks ( VDSStatus.Up ) ; mockIsGlusterEnabled ( false ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; mockIsGlusterEnabled ( true ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsForCluster ( ) { prepareMocks ( VDSStatus.Up ) ; mockIsGlusterEnabled ( false ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; mockIsGlusterEnabled ( true ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
private void SearchStringChanged ( ) { getBookmarkList ( ) . setSearchString ( getEffectiveSearchString ( ) ) ; }

Target:
private void searchStringChanged ( ) { getBookmarkList ( ) . setSearchString ( getEffectiveSearchString ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.getReadOnly ( ) ? getDefaultTitle ( ) : null ) ) ; return object.getReadOnly ( ) ? getDefaultImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isShareable ( ) ? getDefaultTitle ( ) : null ) ) ; return object.isShareable ( ) ? getDefaultImage ( ) : null ; }
Source:
public org.ovirt.engine.core.compat.Guid getRootCommandId ( ) { return cmdEntity.getRootCommandId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getRootCommandId ( ) { return rootCommandId ; }
Source:
private void setHasSearchStringPrefix ( boolean value ) { if ( ( hasSearchStringPrefix ) != value ) { hasSearchStringPrefix = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "HasSearchStringPrefix" ) ) ; } }

Target:
private void setHasSearchStringPrefix ( boolean value ) { if ( ( hasSearchStringPrefix ) != value ) { hasSearchStringPrefix = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HasSearchStringPrefix" ) ) ; } }
Source:
public void testValidatePoolInMaintenance ( ) { getStoragePool ( ) . setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testValidatePoolInMaintenance ( ) { storagePool.setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }
Source:
public void testCanDoActionVmUp ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; }

Target:
public void testCanDoActionVmUp ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
public static org.ovirt.engine.api.model.Network getNetwork ( ) { org.ovirt.engine.api.model.Network entity = new org.ovirt.engine.api.model.Network ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_GUID ) ; entity.setName ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_NAME ) ; return entity ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { org.ovirt.engine.api.restapi.resource.Network entity = new org.ovirt.engine.api.restapi.resource.Network ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_GUID ) ; entity.setName ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_NAME ) ; return entity ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; updateActionAvailability ( ) ; }

Target:
public boolean canConnect ( ) { if ( ! ( canBeSelected ( ) ) ) { return false ; } return getForceVmStatusUp ( ) ? ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) : isVmRunning ( ) ; }
Source:
public static boolean getDefaultWipeAfterDeleteFlag ( final org.ovirt.engine.core.common.businessentities.StorageType storageType ) { if ( storageType.isBlockDomain ( ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.SANWipeAfterDelete ) ; } else { return org.ovirt.engine.core.bll.utils.WipeAfterDeleteUtils.WIPE_AFTER_DELETE_FILE_DOMAIN ; } }

Target:
public static boolean getDefaultWipeAfterDeleteFlag ( final org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { if ( storageType.isBlockDomain ( ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.SANWipeAfterDelete ) ; } else { return org.ovirt.engine.core.bll.utils.WipeAfterDeleteUtils.WIPE_AFTER_DELETE_FILE_DOMAIN ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.host.provider.HostProviderProxy proxy = systemProviderFinder.findSystemProvider ( ) ; if ( proxy != null ) { setReturnValue ( proxy.getErratumForHost ( systemProviderFinder.getSystemHostName ( ) , org.ovirt.engine.core.bll.GetErratumByIdForSystemQuery.getParameters ( ) . getName ( ) ) ) ; } }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.host.provider.HostProviderProxy proxy = systemProviderFinder.findSystemProvider ( ) ; if ( proxy != null ) { setReturnValue ( proxy.getErratumForHost ( systemProviderFinder.getSystemHostName ( ) , org.ovirt.engine.core.bll.GetErratumByIdForEngineQuery.getParameters ( ) . getName ( ) ) ) ; } }
Source:
public void setBondingOptionsOverrideNotification ( boolean value ) { setbondingOptionsOverrideNotification ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "BondingOptionsOverrideNotification" ) ) ; }

Target:
public void setBondingOptionsOverrideNotification ( boolean value ) { setbondingOptionsOverrideNotification ( value ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BondingOptionsOverrideNotification" ) ) ; }
Source:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertTrue ( validator.isPosixSupportedInDC ( ) . isValid ( ) ) ; }

Target:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void OnTaskEndFailure ( ) { LogEndTaskFailure ( ) ; clearAsyncTask ( ) ; }

Target:
protected void onTaskEndFailure ( ) { logEndTaskFailure ( ) ; clearAsyncTask ( ) ; }