auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setDefaultConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( defaultConsoleModel ) != value ) { defaultConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "DefaultConsoleModel" ) ) ; } }

Target:
public void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol selectedProtocol ) { setSelectedProtocol ( selectedProtocol , this ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( result ) ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; stopProgress ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { defaultProfile.getName ( ) . setEntity ( getName ( ) . getEntity ( ) ) ; }
Source:
public static java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.executeAsyncCommand ( actionType , parameters , cmdContext ) ; }

Target:
public static java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.businessentities.SubjectEntity ... subjectEntities ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.executeAsyncCommand ( actionType , parameters , cmdContext , subjectEntities ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult uuidExist ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.LIBVIRT_SECRET_UUID_NOT_EXISTS ) . unless ( ( ( libvirtSecretDao.get ( libvirtSecret.getId ( ) ) ) != null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult uuidExist ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.LIBVIRT_SECRET_UUID_NOT_EXISTS ) . unless ( ( ( libvirtSecretDao.get ( libvirtSecret.getId ( ) ) ) != null ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel flush ( ) { org.ovirt.engine.ui.uicommonweb.models.ListModel model = driver.flush ( ) ; flush ( model ) ; return model ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel flush ( ) { vnicsModel.getItemsChangedEvent ( ) . removeListener ( vnicsChangedListener ) ; flush ( vnicsModel ) ; return driver.flush ( ) ; }
Source:
public void emptyStringMakesEmptyMap ( ) { final java.lang.String empty = "" ; java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.utils.pm.PowerManagementUtils.pmOptionsStringToMap ( empty ) ; mapIsEmpty ( map ) ; }

Target:
public void emptyStringMakesEmptyMap ( ) { final java.lang.String empty = "" ; java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.utils.pm.PowerManagementUtils.pmOptionsStringToMap ( empty ) ; org.junit.Assert.assertTrue ( map.isEmpty ( ) ) ; }
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY ) ; }

Target:
public boolean IsVmDuringInitiating ( org.ovirt.engine.core.compat.Guid vm_guid ) { return asyncRunningVms.contains ( vm_guid ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object vm ) { if ( problematicItems.contains ( vm ) ) { return getApplicationResources ( ) . alertImage ( ) ; } return null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object vm ) { if ( problematicItems.contains ( vm ) ) { return org.ovirt.engine.ui.webadmin.widget.table.column.IsProblematicImportVmColumn.resources.alertImage ( ) ; } return null ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase verifyCalled ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( backend , times ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( vdcActionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }

Target:
private org.ovirt.engine.core.common.action.VdcReturnValueBase verifyCalled ( org.ovirt.engine.core.common.action.ActionType actionType , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( backend , times ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( actionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }
Source:
private void assertCollectionContainingOnlyThese ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > actualNetworks , org.ovirt.engine.core.common.businessentities.network.Network ... expectedNetworks ) { org.junit.Assert.assertThat ( actualNetworks , org.hamcrest.Matchers.hasSize ( expectedNetworks.length ) ) ; org.junit.Assert.assertThat ( actualNetworks , org.hamcrest.Matchers.containsInAnyOrder ( expectedNetworks ) ) ; }

Target:
private void assertCollectionContainingOnlyThese ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > actualNetworks , org.ovirt.engine.core.common.businessentities.network.Network ... expectedNetworks ) { org.hamcrest.MatcherAssert.assertThat ( actualNetworks , org.hamcrest.Matchers.hasSize ( expectedNetworks.length ) ) ; org.hamcrest.MatcherAssert.assertThat ( actualNetworks , org.hamcrest.Matchers.containsInAnyOrder ( expectedNetworks ) ) ; }
Source:
private void UpdateProperties ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getdomain ( ) ) ; setEmail ( user.getemail ( ) ) ; setStatus ( user.getAdStatus ( ) ) ; }

Target:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getdomain ( ) ) ; setEmail ( user.getemail ( ) ) ; setStatus ( user.getAdStatus ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ( ( ( java.util.List < java.lang.String > ) ( source ) ) . size ( ) ) > 0 ; } return false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.util.Collections.< org.ovirt.engine.core.common.businessentities.CertificateInfo > emptyList ( ) ; } return source ; }
Source:
protected static org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getVmPropertiesUtils ( ) { return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.getInstance ( ) ; }

Target:
private static org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return org.ovirt.engine.core.bll.VmPoolCommandBase.runVmValidator ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , executionContext ) ; }

Target:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , isWaitForResult , null ) ; }
Source:
public void getConfiguredVmHostDevices ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmHostDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }

Target:
public void getConfiguredVmHostDevices ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.VmHostDevice > > aQuery , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmHostDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( _vds.getDynamicData ( ) ) ; return null ; }

Target:
public org.ovirt.engine.core.bll.VdsDeploy.DeployStatus getDeployStatus ( ) { return _deployStatus ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult interfaceAlreadyLabeledWith ( java.lang.String label ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.INTERFACE_ALREADY_LABELED ) . when ( ( ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( iface ) ) && ( iface.getLabels ( ) . contains ( label ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult interfaceAlreadyLabeledWith ( java.lang.String label ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.INTERFACE_ALREADY_LABELED ) . when ( ( ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( iface ) ) && ( iface.getLabels ( ) . contains ( label ) ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.QuotaStorage object ) { return ( ( object.getStorageName ( ) ) == null ) || ( object.getStorageName ( ) . equals ( "" ) ) ? constants.utlQuotaAllStoragesQuotaPopup ( ) : object.getStorageName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.QuotaStorage object ) { return ( ( object.getStorageName ( ) ) == null ) || ( object.getStorageName ( ) . equals ( "" ) ) ? org.ovirt.engine.ui.webadmin.section.main.view.tab.quota.SubTabQuotaStorageView.constants.utlQuotaAllStoragesQuotaPopup ( ) : object.getStorageName ( ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { return null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallback ( ) { return null ; }
Source:
public void setVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { externalVnicProfileMapping.setVnicProfileId ( vnicProfileId ) ; setChanged ( ) ; }

Target:
public void setVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { externalVnicProfileMapping.setTargetProfileId ( vnicProfileId ) ; setChanged ( ) ; }
Source:
boolean DisconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) ;

Target:
boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) ;
Source:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setOs ( value ) ; }

Target:
public void setVmOs ( int value ) { this . vmStatic.setOsId ( value ) ; }
Source:
public void error ( java.util.Map < java.lang.String , java.lang.String > error ) { }

Target:
public void error ( java.util.Map < java.lang.String , java.lang.String > error ) { org.junit.Assert.fail ( ) ; }
Source:
private static org.ovirt.engine.api.restapi.resource.BackendWatchdogsResource getCollection ( ) { return new org.ovirt.engine.api.restapi.resource.BackendWatchdogsResource ( GUIDS [ 0 ] , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( GUIDS [ 1 ] ) ) ; }

Target:
private static org.ovirt.engine.api.restapi.resource.BackendWatchdogsResource getCollection ( ) { return new org.ovirt.engine.api.restapi.resource.BackendWatchdogsResource ( true , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.VM_ID , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.VM_ID ) ) ; }
Source:
public void testTemplate ( ) { testValidSql ( "Template: " , "SELECT * FROM ((SELECT vm_templates_view.* FROM vm_templates_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Template: hosts.name = fake1" , "SELECT * FROM ((SELECT vm_templates_view.* FROM vm_templates_view LEFT OUTER JOIN vms_with_tags ON vm_templates_view.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN vds_with_tags ON vms_with_tags.run_on_vds=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Templates: storage.name = 111" , "SELECT * FROM (SELECT * FROM vm_templates_view WHERE ( vmt_guid IN (SELECT vm_templates_storage_domain.vmt_guid FROM vm_templates_storage_domain LEFT OUTER JOIN vms_with_tags ON vm_templates_storage_domain.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN storage_domains_with_hosts_view ON vm_templates_storage_domain.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testEvents ( ) { testValidSql ( "Events: " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.IPv4Address getPrimaryAddress ( ) { if ( ! ( hasPrimaryAddressSet ( ) ) ) { throw new java.lang.IllegalStateException ( "IpConfiguration does not have IPv4 address set." ) ; } return getIPv4Addresses ( ) . get ( 0 ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.IPv4Address getIpv4PrimaryAddress ( ) { if ( ! ( hasIpv4PrimaryAddressSet ( ) ) ) { throw new java.lang.IllegalStateException ( "IpConfiguration does not have IPv4 address set." ) ; } return getIPv4Addresses ( ) . get ( 0 ) ; }
Source:
private void initIpConfiguration ( ) { org.mockito.Mockito.when ( mockedIpConfiguration.hasPrimaryAddressSet ( ) ) . thenReturn ( true ) ; org.mockito.Mockito.when ( mockedIpConfiguration.getPrimaryAddress ( ) ) . thenReturn ( mockedIPv4Address ) ; }

Target:
private void initIpConfiguration ( ) { org.mockito.Mockito.when ( mockedIpConfiguration.hasIpv4PrimaryAddressSet ( ) ) . thenReturn ( true ) ; org.mockito.Mockito.when ( mockedIpConfiguration.getIpv4PrimaryAddress ( ) ) . thenReturn ( mockedIPv4Address ) ; }
Source:
public void onSuccess ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > idToIconMap ) { finishSearch ( all ) ; }

Target:
protected boolean fetchLargeIcons ( ) { return true ; }
Source:
private void updateHeartbeatPolicy ( boolean isheartbeat ) { org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy = client.getClientRetryPolicy ( ) ; policy.setHeartbeat ( isheartbeat ) ; client.setClientRetryPolicy ( policy ) ; }

Target:
private void updateHeartbeatPolicy ( boolean isHeartbeat ) { org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy = client.getClientRetryPolicy ( ) ; policy.setIncomingHeartbeat ( isHeartbeat ) ; policy.setOutgoingHeartbeat ( isHeartbeat ) ; client.setClientRetryPolicy ( policy ) ; }
Source:
public void startMonitoring ( ) { vmsMonitoringJobId = scheduler.scheduleAFixedDelayJob ( this , "poll" , new java.lang.Class [ 0 ] , new java.lang.Object [ 0 ] , org.ovirt.engine.core.vdsbroker.PollVMStatsRefresher.VMS_REFRESH_RATE , org.ovirt.engine.core.vdsbroker.PollVMStatsRefresher.VMS_REFRESH_RATE , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }

Target:
public void startMonitoring ( ) { vmsMonitoringJobId = scheduler.scheduleAFixedDelayJob ( this , "poll" , new java.lang.Class [ 0 ] , new java.lang.Object [ 0 ] , 0 , refreshRate , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsSpmIdMapDao ( ) ; existingVdsSpmIdMap = dao.get ( org.ovirt.engine.core.dao.VdsSpmIdMapDaoTest.EXISTING_VDS_ID ) ; newVdsSpmIdMap = new org.ovirt.engine.core.common.businessentities.VdsSpmIdMap ( org.ovirt.engine.core.dao.VdsSpmIdMapDaoTest.FREE_STORAGE_POOL_ID , org.ovirt.engine.core.dao.VdsSpmIdMapDaoTest.FREE_VDS_ID , 1 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsSpmIdMapDao ( ) ; existingVdsSpmIdMap = dao.get ( org.ovirt.engine.core.dao.VdsSpmIdMapDaoTest.EXISTING_VDS_ID ) ; newVdsSpmIdMap = new org.ovirt.engine.core.common.businessentities.VdsSpmIdMap ( org.ovirt.engine.core.dao.VdsSpmIdMapDaoTest.FREE_STORAGE_POOL_ID , FixturesTool.VDS_RHEL6_NFS_SPM , 1 ) ; }
Source:
protected org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend getBackendResourceManager ( ) { return org.ovirt.engine.core.bll.gluster.GlusterQueriesCommandBase.getBackend ( ) . getResourceManager ( ) ; }

Target:
private org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend getBackendResourceManager ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) ; }
Source:
protected boolean isVDSGroupCompatible ( ) { if ( ( getVdsGroup ( ) . getArchitecture ( ) ) != ( getVmTemplate ( ) . getClusterArch ( ) ) ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_ARCHITECTURE_NOT_SUPPORTED_BY_CLUSTER ) ; return false ; } return true ; }

Target:
protected boolean isVDSGroupCompatible ( ) { if ( ( getVdsGroup ( ) . getArchitecture ( ) ) != ( getVmTemplate ( ) . getClusterArch ( ) ) ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_ARCHITECTURE_NOT_SUPPORTED_BY_CLUSTER ) ; return false ; } return true ; }
Source:
protected boolean canDoAction ( ) { return CanPauseVm ( org.ovirt.engine.core.bll.PauseVmCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.PauseVmCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return canPauseVm ( org.ovirt.engine.core.bll.PauseVmCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.PauseVmCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
public void setUser ( java.lang.String user ) { this . user = user ; }

Target:
public void setUser ( java.lang.String user ) { _user = user ; }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return java.util.Base64.encode ( value.getValue ( ) ) ; }

Target:
public java.lang.String encode ( com.unboundid.asn1.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return com.unboundid.util.Base64.encode ( value.getValue ( ) ) ; }
Source:
protected void SyncSearch ( ) { super . SyncSearch ( ) ; requestingData = true ; setItems ( new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.core.common.businessentities.AuditLog > ( ) ) ; setLastEvent ( null ) ; timer.start ( ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; requestingData = true ; setItems ( new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.core.common.businessentities.AuditLog > ( ) ) ; setLastEvent ( null ) ; timer.start ( ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "entityId" , entityId ) . append ( "entityType" , entityType ) . build ( ) ; }

Target:
public java.lang.String toString ( ) { return appendProperties ( org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) ) . build ( ) ; }
Source:
public void setacpi_enable ( java.lang.Boolean value ) { this . acpi_enable = value ; }

Target:
public java.lang.Integer getVmPid ( ) { return this . vmPid ; }
Source:
public java.lang.Object runInTransaction ( ) { getStoragePoolDAO ( ) . updatePartial ( storagePool ) ; updateMemberDomainsFormat ( targetFormat ) ; if ( org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( spVersion ) ) { getVmStaticDAO ( ) . incrementDbGenerationForAllInStoragePool ( spId ) ; } return null ; }

Target:
public java.lang.Object runInTransaction ( ) { getStoragePoolDao ( ) . updatePartial ( storagePool ) ; updateMemberDomainsFormat ( targetFormat ) ; if ( org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( spVersion ) ) { getVmStaticDao ( ) . incrementDbGenerationForAllInStoragePool ( spId ) ; } return null ; }
Source:
protected boolean canAddVm ( ) { boolean exists = org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( getVm ( ) . getName ( ) ) ; if ( exists ) { addCanDoActionMessage ( VdcBllMessages.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) ; } return ! exists ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) ) ; }
Source:
public void setRenderer ( org.ovirt.engine.ui.common.widget.VisibilityRenderer renderer ) { overrideSerialNumberPolicy.setRenderer ( renderer ) ; }

Target:
public void setEnabled ( boolean enabled ) { overrideSerialNumberPolicy.setEnabled ( enabled ) ; serialNumberPolicy.setEnabled ( enabled ) ; customSerialNumber.setEnabled ( enabled ) ; }
Source:
private org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > createCommand ( org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters params ) { org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand ( params , null ) ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( command ) . getVdsDao ( ) ; return command ; }

Target:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommandTest.VALID_OVIRT_VERSION ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public void testValidateAndSetClusterQuotaForMemSpecificNotExceeded ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( quotaManager.validateAndSetClusterQuota ( storage_pool , org.ovirt.engine.core.bll.quota.QuotaManagerTest.DESTINATION_GUID , org.ovirt.engine.core.bll.quota.QuotaManagerTest.MEM_QUOTA_SPECIFIC_NOT_EXCEEDED , 1 , 1 , canDoActionMessages ) ) ; assertEmptyCanDoActionMessage ( ) ; assertAuditLogNotWritten ( ) ; }

Target:
public void testValidateAndSetClusterQuotaForMemSpecificInGrace ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( consumeForVdsQuota ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.MEM_QUOTA_SPECIFIC_IN_GRACE ) ) ; assertEmptyCanDoActionMessage ( ) ; assertAuditLogWritten ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { clearVms ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { clearVms ( ) ; clearValidations ( ) ; loadProviders ( ) ; }
Source:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public boolean CanUpdateField ( java.lang.Object obj , java.lang.String fieldName , java.lang.Enum < ? > status ) { return true ; }

Target:
public boolean canUpdateField ( java.lang.Object obj , java.lang.String fieldName , java.lang.Enum < ? > status ) { return true ; }
Source:
protected void UpdateTemplateInSpm ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate vmt = org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmTemplate ( ) ; org.ovirt.engine.core.bll.VmTemplateCommand.UpdateTemplateInSpm ( vmt.getstorage_pool_id ( ) . getValue ( ) , java.util.Arrays.asList ( vmt ) ) ; }

Target:
protected void updateTemplateInSpm ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate vmt = org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmTemplate ( ) ; org.ovirt.engine.core.bll.VmTemplateCommand.UpdateTemplateInSpm ( vmt.getstorage_pool_id ( ) . getValue ( ) , java.util.Arrays.asList ( vmt ) ) ; }
Source:
public void addAlert ( com.google.gwt.user.client.ui.Widget alertWidget ) { alertsList.add ( new org.ovirt.engine.ui.webadmin.widget.alert.InLineAlertWidget ( alertWidget ) ) ; if ( ! ( alertsPanel.isVisible ( ) ) ) { alertsPanel.setVisible ( true ) ; } }

Target:
public void addAlert ( com.google.gwt.user.client.ui.Widget alertWidget , org.ovirt.engine.ui.webadmin.widget.alert.InLineAlertWidget.AlertType type ) { alertsList.add ( new org.ovirt.engine.ui.webadmin.widget.alert.InLineAlertWidget ( alertWidget , type ) ) ; if ( ! ( alertsPanel.isVisible ( ) ) ) { alertsPanel.setVisible ( true ) ; } }
Source:
java.lang.String integerValidationNumberLessInvalidReason ( java.lang.String prefixMsg , int max ) ;

Target:
java.lang.String numberValidationNumberBetweenInvalidReason ( java.lang.String prefixMsg , java.lang.String min , java.lang.String max ) ;
Source:
public void existsForNonExistingDisk ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( new org.ovirt.engine.core.compat.Guid ( ) ) ) ; }

Target:
public void existsForNonExistingDisk ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( Guid.Empty ) ) ; }
Source:
private boolean isNetworkSubnetInSync ( ) { return getsSubnetUtilsInstance ( ) . equalSubnet ( iface.getSubnet ( ) , getPrimaryAddress ( ) . getNetmask ( ) ) ; }

Target:
private boolean isNetworkSubnetInSync ( ) { return getsSubnetUtilsInstance ( ) . equalSubnet ( iface.getIpv4Subnet ( ) , getPrimaryAddress ( ) . getNetmask ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageType mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.common.businessentities.StorageType.forValue ( rs.getInt ( 1 ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.StorageType mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.common.businessentities.storage.StorageType.forValue ( rs.getInt ( 1 ) ) ; }
Source:
private void addGhostEntry ( ) { T value = createGhostValue ( ) ; addEntry ( value ) ; modelItems.add ( value ) ; }

Target:
private org.ovirt.engine.core.common.utils.Pair < T , V > addGhostEntry ( ) { T value = createGhostValue ( ) ; V widget = addEntry ( value ) ; return new org.ovirt.engine.core.common.utils.Pair < T , V > ( value , widget ) ; }
Source:
public void setContentType ( java.lang.String contentType ) { if ( contentType != null ) { this . contentType = org.ovirt.engine.core.common.businessentities.gluster.GlusterHookContentType.valueOf ( contentType ) ; } }

Target:
public void setContentType ( java.lang.String contentType ) { if ( contentType != null ) { if ( contentType.toLowerCase ( ) . contains ( "binary" ) ) { this . contentType = GlusterHookContentType.BINARY ; } else { this . contentType = GlusterHookContentType.TEXT ; } } }
Source:
void processSessionIdException ( ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; }

Target:
void processSessionIdException ( ) { org.ovirt.engine.ui.common.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; }
Source:
public void testValidName ( ) { prepareVmToPassCanDoAction ( ) ; mockVmValidator ( ) ; boolean c = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , c ) ; }

Target:
public void testValidName ( ) { prepareVmToPassCanDoAction ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; boolean c = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , c ) ; }
Source:
public void setPmSecondaryConcurrent ( boolean value ) { mVdsStatic.setPmSecondaryConcurrent ( value ) ; }

Target:
public void setLiveMergeSupport ( boolean value ) { this . mVdsDynamic.setLiveMergeSupport ( value ) ; }
Source:
public java.lang.String getHelpNote ( org.ovirt.engine.core.config.entity.ConfigKey key ) { return "User defined VM properties specification should conform to " + ( org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.getInstance ( ) . getVmPropSpec ( ) ) ; }

Target:
public java.lang.String getHelpNote ( org.ovirt.engine.core.config.entity.ConfigKey key ) { return "User defined VM properties specification should conform to " + ( org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . getVmPropSpec ( ) ) ; }
Source:
public void setup ( ) { existingGroup.setCompatibilityVersion ( Version.v3_1 ) ; param = new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( getExistingVdsGroup ( ) , getNetwork ( ) ) ; underTest = new org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommandTest.TestAttachNetworkToClusterCommand ( param ) ; }

Target:
public void setup ( ) { existingGroup.setCompatibilityVersion ( Version.v3_1 ) ; param = new org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter ( getExistingCluster ( ) , getNetwork ( ) ) ; underTest = new org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommandTest.TestAttachNetworkToClusterCommand ( param ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDiskImages ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { if ( ( cachedImagesDisks ) == null ) { cachedImagesDisks = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( disks , true , true , true ) ; } return cachedImagesDisks ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDiskImages ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { if ( ( cachedImagesDisks ) == null ) { cachedImagesDisks = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.filterImageDisks ( disks , true , true , true ) ; } return cachedImagesDisks ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Agent agent ) { validateParameters ( agent , "address" , "order" , "type" , "username" , "password" ) ; return performCreate ( VdcActionType.AddFenceAgent , getAddParameters ( agent ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetFenceAgentById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Agent agent ) { validateParameters ( agent , "address" , "order" , "type" , "username" , "password" ) ; return performCreate ( ActionType.AddFenceAgent , getAddParameters ( agent ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetFenceAgentById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public void close ( ) { javax.enterprise.inject.spi.CDI.current ( ) . select ( org.ovirt.engine.core.utils.lock.LockManager.class ) . get ( ) . releaseLock ( this ) ; }

Target:
public void close ( ) { getLockManager ( ) . releaseLock ( this ) ; }
Source:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator , org.ovirt.engine.core.common.businessentities.StorageDomain domain ) { return validate ( storageDomainValidator.isDomainHasSpaceForRequest ( getNeededDiskSize ( domain.getId ( ) ) ) ) ; }

Target:
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 ) ) ; }
Source:
public void canDoActionSucceedsOnEmptyClusterEvenWhenGlusterServerHasPeers ( ) throws java.lang.Exception { setupGlusterMock ( false , null , true ) ; org.junit.Assert.assertTrue ( commandMock.canDoAction ( ) ) ; }

Target:
public void validateSucceedsOnEmptyClusterEvenWhenGlusterServerHasPeers ( ) throws java.lang.Exception { setupGlusterMock ( false , null , true ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }
Source:
public void testGetWithNonExistingId ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithNonExistingId ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain getImageSourceDomain ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; org.ovirt.engine.core.compat.Guid domainId = diskImage.getStorageIds ( ) . get ( 0 ) ; return getStorageDomainById ( domainId , org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getStoragePoolId ( ) ) ; }

Target:
protected boolean validatePassDiscardSupportedOnDestinationStorageDomain ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidator validator = createDiskVmElementValidator ( parameters.getImageGroupID ( ) , parameters.getVmId ( ) ) ; return validate ( validator.isPassDiscardSupported ( parameters.getTargetStorageDomainId ( ) ) ) ; }
Source:
public void testGetRelevantQuotasNonExistingStorage ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForStorage ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , 0 ) ; }

Target:
public void testGetRelevantQuotasNonExistingStorage ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForStorage ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , 0 ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { setTitle ( ( object.isBoot ( ) ? getDefaultTitle ( ) : null ) ) ; return object.isBoot ( ) ? getDefaultImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return object.isBoot ( ) ? getDefaultImage ( ) : null ; }
Source:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , vmId ) , VmDeviceType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false ) ; }

Target:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.Cluster , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > o1 , org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.Cluster , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > o2 ) { return ( calculateValue ( o1.getSecond ( ) ) ) - ( calculateValue ( o2.getSecond ( ) ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getManageCommand ( ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter > parameters = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( parameters ) ; org.junit.Assert.assertEquals ( FixturesTool.NUMBER_OF_VM_NETWORK_FILTER_PARAMETERS , parameters.size ( ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return org.ovirt.engine.core.dao.FixturesTool.VM_NETWORK_FILTER_PARAMETER ; }
Source:
protected void handleSpecificCommandActions ( ) { org.ovirt.engine.core.bll.StartVdsCommand.RestartVdsVms ( ) ; }

Target:
protected void handleSpecificCommandActions ( ) { org.ovirt.engine.core.bll.StartVdsCommand.restartVdsVms ( ) ; }
Source:
org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm > build ( ) { return pairOf ( null , createVmInternalData ( ) ) ; }

Target:
org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm > build ( ) { return pairOf ( null , createVmInternalData ( VMStatus.Up ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc prepareImage ( java.lang.String spID , java.lang.String sdID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult snapshotNotBroken ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { return ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.BROKEN ) == ( snapshot.getStatus ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_IS_BROKEN ) : new org.ovirt.engine.core.bll.ValidationResult ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult snapshotNotBroken ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { return ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.BROKEN ) == ( snapshot.getStatus ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_IS_BROKEN ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void setVersion ( java.lang.String text ) { versionLabel.setText ( dynamicMessages.ovirtVersionAbout ( text ) ) ; }

Target:
void localize ( ) { applicationTitle.setText ( dynamicMessages.applicationTitle ( ) ) ; copyrightNotice.setText ( dynamicMessages.copyRightNotice ( ) ) ; versionLabel.setText ( dynamicMessages.ovirtVersionAbout ( ) ) ; }
Source:
protected void verifyModelClearingPayloads ( org.ovirt.engine.api.model.Vm model , int index ) { verifyModel ( model , index ) ; org.junit.Assert.assertNull ( model.getPayloads ( ) ) ; }

Target:
protected void verifyModelClearingPayloads ( org.ovirt.engine.api.model.Vm model , int index ) { verifyModel ( model , index ) ; org.junit.jupiter.api.Assertions.assertNull ( model.getPayloads ( ) ) ; }
Source:
protected void logTaskDoesntExist ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.errorFormat ( "BaseAsyncTask::logTaskDoesntExist: Task '{0}' (Parent Command {1}, Parameters Type {2}) does not exist." , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getActionType ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }

Target:
protected void logTaskDoesntExist ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.error ( "BaseAsyncTask::logTaskDoesntExist: Task '{}' (Parent Command '{}', Parameters Type '{}') does not exist." , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getActionType ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }
Source:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.ArgumentMatchers.any ( ) ) ; org.junit.Assert.assertThat ( validator.diskImagesAlreadyExist ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.ArgumentMatchers.any ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.diskImagesAlreadyExist ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ? super . getEntity ( ) : null ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Events: volume.name=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . search ( ) ; } }
Source:
public void setQuotaName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( defaultHost , value ) ) ) { this . quotaName = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaName" ) ) ; } }

Target:
public void setQuotaName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( defaultHost , value ) ) ) { this . quotaName = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaName" ) ) ; } }
Source:
public void setVMs ( org.ovirt.engine.sdk.entities.VMs value ) { this . vMs = value ; }

Target:
public void setVms ( org.ovirt.engine.sdk.entities.Vms value ) { this . vms = value ; }
Source:
public void getVmDataFromPoolByPoolGuidWithPermissionsForNonPriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.getVmDataFromPoolByPoolGuid ( org.ovirt.engine.core.dao.VmPoolDaoTest.EXISTING_VM_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void getVmDataFromPoolByPoolGuidWithPermissionsForNonPriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.getVmDataFromPoolByPoolGuid ( org.ovirt.engine.core.dao.VmPoolDaoTest.EXISTING_VM_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment createNetworkAttachentWithOverriddenQos ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; org.ovirt.engine.core.common.businessentities.network.HostNetworkQos hostNetworkQos = createHostNetworkQos ( ) ; networkAttachment.setHostNetworkQos ( hostNetworkQos ) ; return networkAttachment ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment createNetworkAttachentWithOverriddenQos ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; org.ovirt.engine.core.common.businessentities.network.HostNetworkQos hostNetworkQos = createHostNetworkQos ( ) ; networkAttachment.setHostNetworkQos ( org.ovirt.engine.core.common.businessentities.network.AnonymousHostNetworkQos.fromHostNetworkQos ( hostNetworkQos ) ) ; return networkAttachment ; }
Source:
public int compareTo ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics o ) { return org.ovirt.engine.core.common.businessentities.BusinessEntityGuidComparator.< org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics > newInstance ( ) . compare ( this , o ) ; }

Target:
public int compareTo ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics o ) { return org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityGuidComparator.< org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics > newInstance ( ) . compare ( this , o ) ; }
Source:
public void disconnect ( ) ;

Target:
public void close ( ) throws java.io.IOException ;
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { addInvalidIdErrorMessages ( VdcBllMessages.VAR__ACTION__UPDATE ) ; return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { addInvalidIdErrorMessages ( EngineMessage.VAR__ACTION__UPDATE ) ; return false ; } return true ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , null ) ; }

Target:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , isWaitForResult , null ) ; }