auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getAllForVmForPrivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.EXISTING_VM_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertVmGuestAgentInterfaceForVm ( interfaces ) ; }

Target:
public void getAllForVmForPrivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_50 , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertVmGuestAgentInterfaceForVm ( interfaces ) ; }
Source:
public boolean isVisible ( ) { return getDetailModel ( ) . getIsNfs ( ) ; }

Target:
public boolean isVisible ( ) { return ( getDetailModel ( ) . getPath ( ) ) != null ; }
Source:
public void setTitle ( java.lang.String title ) { this . title = title ; }

Target:
public void setNoTaskMgrExecution ( boolean noTaskMgrExecution ) { this . consoleOptions.setNoTaskMgrExecution ( noTaskMgrExecution ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . PollTasks ( org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getParameters ( ) . getTasksIDs ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . pollTasks ( org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getParameters ( ) . getTasksIDs ( ) ) ) ; }
Source:
public void validateVirtOnlySucceeds ( ) throws java.lang.Exception { setupVirtMock ( ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateVirtOnlySucceeds ( ) throws java.lang.Exception { setupVirtMock ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
public abstract int removeByVdsmTaskId ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) ;

Target:
org.ovirt.engine.core.common.businessentities.AsyncTask getByVdsmTaskId ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) ;
Source:
protected void removeQuotaCommandLeftOver ( ) { org.ovirt.engine.core.bll.QuotaManager.removeVdsGroupDeltaQuotaCommand ( org.ovirt.engine.core.bll.RunVmCommand.getQuotaId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getvds_group_id ( ) , org.ovirt.engine.core.bll.RunVmCommand.getCommandId ( ) ) ; }

Target:
public void rollbackQuota ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > list = new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( ) ; list.add ( getQuotaId ( ) ) ; org.ovirt.engine.core.bll.RunVmCommand.getQuotaManager ( ) . rollbackQuota ( org.ovirt.engine.core.bll.RunVmCommand.getStoragePool ( ) , list ) ; }
Source:
protected void setStatus ( ) { if ( org.ovirt.engine.core.bll.pm.StartVdsCommand.getParameters ( ) . isChangeHostToMaintenanceOnStart ( ) ) { setStatus ( VDSStatus.Maintenance ) ; } else { setStatus ( VDSStatus.NonResponsive ) ; } }

Target:
protected void setStatus ( ) { if ( org.ovirt.engine.core.bll.pm.StartVdsCommand.getParameters ( ) . isChangeHostToMaintenanceOnStart ( ) ) { setStatus ( VDSStatus.Maintenance ) ; } else { setStatus ( VDSStatus.Reboot ) ; } }
Source:
public void enableCifs ( ) { accessProtocols.add ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.ON ) ; }

Target:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.DISABLE ) ; }
Source:
protected org.ovirt.engine.core.dao.VmDynamicDAO getVmDynamicDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) ; }

Target:
private java.lang.String getPoolSharedLockMessage ( ) { return new java.lang.StringBuilder ( EngineMessage.ACTION_TYPE_FAILED_VM_POOL_IS_USED_FOR_CREATE_VM.name ( ) ) . append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.AddVmCommand.getVmName ( ) ) ) . toString ( ) ; }
Source:
public void testNonExistentType ( ) { org.junit.Assert.assertFalse ( comp.validateFieldValue ( ProviderConditionFieldAutoCompleter.TYPE , "foo" ) ) ; }

Target:
public void testNonExistentType ( ) { org.junit.jupiter.api.Assertions.assertFalse ( comp.validateFieldValue ( ProviderConditionFieldAutoCompleter.TYPE , "foo" ) ) ; }
Source:
protected java.lang.String prepareImage ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue vdsRetVal = runVdsCommand ( VDSCommandType.PrepareImage , getPrepareTeardownParameters ( vdsId ) ) ; return ( ( org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc ) ( vdsRetVal.getReturnValue ( ) ) ) . getImagePath ( ) ; }

Target:
protected java.lang.String prepareImage ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue vdsRetVal = runVdsCommand ( VDSCommandType.PrepareImage , getPrepareParameters ( vdsId ) ) ; return ( ( org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc ) ( vdsRetVal.getReturnValue ( ) ) ) . getImagePath ( ) ; }
Source:
private void handleCancelled ( ) { log.info ( "Upload cancelled for {}" , getUploadDescription ( ) ) ; setAuditLogTypeFromPhase ( ImageTransferPhase.CANCELLED ) ; updateEntityPhase ( ImageTransferPhase.FINALIZING_FAILURE ) ; }

Target:
private void handleCancelled ( ) { log.info ( "Transfer cancelled for {}" , getTransferDescription ( ) ) ; setAuditLogTypeFromPhase ( ImageTransferPhase.CANCELLED ) ; updateEntityPhase ( ImageTransferPhase.FINALIZING_FAILURE ) ; }
Source:
public void onSucceeded ( ) { }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback ( ) ; }
Source:
public javax.xml.bind.JAXBElement < java.lang.String > createSource ( java.lang.String value ) { return new javax.xml.bind.JAXBElement < java.lang.String > ( org.ovirt.engine.sdk.entities.ObjectFactory._Source_QNAME , java.lang.String.class , null , value ) ; }

Target:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.Watchdog > createWatchdog ( org.ovirt.engine.sdk.entities.Watchdog value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.Watchdog > ( org.ovirt.engine.sdk.entities.ObjectFactory._Watchdog_QNAME , org.ovirt.engine.sdk.entities.Watchdog.class , null , value ) ; }
Source:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . poolForDataCenter ( params.getStoragePoolId ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc.class ) . poolForDataCenter ( params.getStoragePoolId ( ) ) ; }
Source:
private void assertCompareTo ( org.ovirt.engine.core.common.businessentities.VmDevice device1 , org.ovirt.engine.core.common.businessentities.VmDevice device2 ) { org.junit.Assert.assertTrue ( ( ( device2.compareTo ( device1 ) ) > 0 ) ) ; org.junit.Assert.assertTrue ( ( ( device1.compareTo ( device2 ) ) < 0 ) ) ; }

Target:
private void assertCompareTo ( org.ovirt.engine.core.common.businessentities.VmDevice device1 , org.ovirt.engine.core.common.businessentities.VmDevice device2 ) { org.junit.jupiter.api.Assertions.assertTrue ( ( ( device2.compareTo ( device1 ) ) > 0 ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ( device1.compareTo ( device2 ) ) < 0 ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.quota.QuotaModel flush ( ) { quotaClusterTable.flush ( ) ; quotaStorageTable.flush ( ) ; return org.ovirt.engine.ui.webadmin.section.main.view.popup.quota.QuotaPopupView.Driver.driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.quota.QuotaModel flush ( ) { quotaClusterTable.flush ( ) ; quotaStorageTable.flush ( ) ; return driver.flush ( ) ; }
Source:
public void setMaxWidth ( org.ovirt.engine.ui.common.widget.tooltip.TooltipConfig.Width width ) { addTooltipClassName ( width.getWidthClass ( ) ) ; }

Target:
private void scheduleTooltipUpdate ( ) { if ( tooltipUpdateScheduled ) { return ; } com.google.gwt.core.client.Scheduler.get ( ) . scheduleFinally ( new com.google.gwt.core.client.Scheduler.ScheduledCommand ( ) { @ java.lang.Override public void execute ( ) { applyTooltip ( ) ; tooltipUpdateScheduled = false ; } } ) ; tooltipUpdateScheduled = true ; }
Source:
protected boolean canAddDomain ( ) { return org.ovirt.engine.core.bll.storage.AddExistingNFSStorageDomainCommand.checkExistingStorageDomain ( ) ; }

Target:
protected boolean canAddDomain ( ) { return org.ovirt.engine.core.bll.storage.AddExistingFileStorageDomainCommand.checkExistingStorageDomain ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
protected int getEntitiesTotalCount ( ) { return 8 ; }

Target:
protected int getEntitiesTotalCount ( ) { return 10 ; }
Source:
public java.lang.String getdisplay_ip ( ) { return this . display_ip ; }

Target:
public void setVmPid ( java.lang.Integer value ) { this . vmPid = value ; }
Source:
public void testHasUniqueNamePersistingNewRecordWithNullId ( ) { org.junit.Assert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , null , "macPool1" , "whatever" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testHasUniqueNamePersistingNewRecordWithNullId ( ) { org.hamcrest.MatcherAssert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , null , "macPool1" , "whatever" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { initChildHierarchy ( ) ; if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( cmdEntity.getId ( ) ) ) { return ; } persistCommand ( cmdEntity ) ; saveCommandContext ( cmdEntity.getId ( ) , cmdContext ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { commandsRepository.persistCommand ( cmdEntity , cmdContext ) ; }
Source:
protected void executeCommand ( ) { getSyncJobInstance ( ) . refreshHooksInCluster ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommand.getVdsGroup ( ) , true ) ; org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getSyncJobInstance ( ) . refreshHooksInCluster ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommand.getCluster ( ) , true ) ; org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommand.setSucceeded ( true ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml userWithRole ( java.lang.String userName , java.lang.String roleName ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml roleOnUser ( java.lang.String roleName , java.lang.String userName ) ;
Source:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { if ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.isDataOperationsBySpm ( ) ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.moveImage ; } return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { if ( ! ( isUsingSPDMFlow ( ) ) ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.moveImage ; } return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported ; }
Source:
public void networkDoesntExist ( ) { simulateVdsGroupExists ( ) ; assertCanDoActionFailure ( VdcBllMessages.NETWROK_NOT_EXISTS.toString ( ) ) ; }

Target:
public void networkDoesntExist ( ) { simulateVdsGroupExists ( ) ; assertCanDoActionFailure ( VdcBllMessages.NETWORK_NOT_EXISTS.toString ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.NetworkDAO getNetworkDAO ( ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getDbFacade ( ) . getNetworkDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.NetworkDAO getNetworkDAO ( ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getDbFacade ( ) . getNetworkDao ( ) ; }
Source:
public boolean canConnect ( ) { if ( ! ( canBeSelected ( ) ) ) { return false ; } return getForceVmStatusUp ( ) ? ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) : isVmRunning ( ) ; }

Target:
public boolean canConnect ( ) { if ( ! ( canBeSelected ( ) ) ) { return false ; } return getForceVmStatusUp ( ) ? ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) : getEntity ( ) . isQualifiedForConsoleConnect ( ) ; }
Source:
public static boolean IsActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isActive = ( ( storageDomain.getStatus ( ) ) != null ) && ( ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }

Target:
public static boolean isActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isActive = ( ( storageDomain.getStatus ( ) ) != null ) && ( ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }
Source:
public void setStorageFormat ( org.ovirt.engine.core.common.businessentities.StorageFormatType value ) { getStorageStaticData ( ) . setStorageFormat ( value ) ; }

Target:
public void setStorageFormat ( org.ovirt.engine.core.common.businessentities.StorageFormatType storageFormatType ) { getStorageStaticData ( ) . setStorageFormat ( storageFormatType ) ; }
Source:
public void setFirewall ( boolean doFirewall ) { if ( doFirewall ) { _iptables = _getIpTables ( ) ; } }

Target:
public void setFirewall ( boolean doFirewall ) { if ( doFirewall ) { _iptables = _getIpTables ( ) ; _customizationConditions.add ( org.ovirt.engine.core.bll.VdsDeploy.CustomizationCondition.IPTABLES_OVERRIDE ) ; } }
Source:
protected void setupSelectedTemplate ( org.ovirt.engine.ui.uicommonweb.models.ListModel model , java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > templates ) { getModel ( ) . getTemplate ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VmTemplate > FirstOrDefault ( templates ) ) ; }

Target:
protected void setupSelectedTemplate ( org.ovirt.engine.ui.uicommonweb.models.ListModel model , java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > templates ) { getModel ( ) . getTemplate ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VmTemplate > firstOrDefault ( templates ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealDiskPanel ( disk ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( disk.getIsNew ( ) ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealDiskPanel ( disk ) ; } }
Source:
public static void removeDiskFromVm ( org.ovirt.engine.core.compat.Guid vmGuid , org.ovirt.engine.core.compat.Guid diskId ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDao ( ) . remove ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( diskId , vmGuid ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . remove ( diskId ) ; }

Target:
public void removeDiskFromVm ( org.ovirt.engine.core.compat.Guid vmGuid , org.ovirt.engine.core.compat.Guid diskId ) { vmDeviceDao.remove ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( diskId , vmGuid ) ) ; baseDiskDao.remove ( diskId ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult parentEntityNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( getProfile ( ) . getStorageDomainId ( ) , getProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult parentEntityNotChanged ( ) { if ( java.util.Objects.equals ( getProfile ( ) . getStorageDomainId ( ) , getProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) . unless ( ( ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ) ) ; }
Source:
public void saveAllInBatch ( java.util.Collection < T > entities ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getCallsHandler ( ) . executeStoredProcAsBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForSave ( ) , entities , getBatchMapper ( ) ) ; }

Target:
public void saveAllInBatch ( java.util.Collection < T > entities ) { org.ovirt.engine.core.dao.MassOperationsGenericDao.getCallsHandler ( ) . executeStoredProcAsBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForSave ( ) , entities , getBatchMapper ( ) ) ; }
Source:
private void canDoActionFails ( ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
private void testActionAllowed ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getSecond ( ) . getVdsGroupName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getSecond ( ) . getClusterName ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getById ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetGlusterBrickById" , brickRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ; }
Source:
private void flushCheckBoxes ( org.ovirt.engine.ui.userportal.widget.popup.console.EntityModelValueCheckBoxEditor < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > ... checkBoxes ) { for ( org.ovirt.engine.ui.userportal.widget.popup.console.EntityModelValueCheckBoxEditor < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > checkBox : checkBoxes ) { checkBox.asEditor ( ) . getSubEditor ( ) . getValue ( ) ; } }

Target:
private void flushCheckBoxes ( org.ovirt.engine.ui.common.widget.uicommon.popup.console.EntityModelValueCheckBoxEditor < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > ... checkBoxes ) { for ( org.ovirt.engine.ui.common.widget.uicommon.popup.console.EntityModelValueCheckBoxEditor < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > checkBox : checkBoxes ) { checkBox.asEditor ( ) . getSubEditor ( ) . getValue ( ) ; } }
Source:
public void setvm_creation_date ( java.util.Date value ) { this . mVmStatic.setcreation_date ( value ) ; }

Target:
public boolean isQuotaDefault ( ) { return this . vmStatic.isQuotaDefault ( ) ; }
Source:
public void updateGlusterServerHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.compat.Guid hostId ) ;

Target:
public void updateGlusterServerHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverHook ) ;
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmTemplate , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

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 java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return ( object.getProvidedBy ( ) ) == null ? new java.lang.String ( ) : object.getProviderName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return ( object.getProvidedBy ( ) ) == null ? "" : object.getProviderName ( ) ; }
Source:
public void testVms ( ) { testValidSql ( "Vms:" , "SELECT * FROM ((SELECT distinct vms.* FROM vms ) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Vms: storage.name = 111" , "SELECT * FROM (SELECT * FROM vms WHERE ( vm_guid IN (SELECT distinct vms_with_tags.vm_guid FROM vms_with_tags LEFT OUTER JOIN storage_domains_with_hosts_view ON vms_with_tags.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Vm: template.name = temp1" , "SELECT * FROM ((SELECT distinct vms.* FROM vms LEFT OUTER JOIN vm_templates_storage_domain ON vms.vmt_guid=vm_templates_storage_domain.vmt_guid WHERE vm_templates_storage_domain.name LIKE temp1 ) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testVms ( ) { testValidSql ( "Vms:" , "SELECT * FROM ((SELECT vms.* FROM vms ) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Vms: storage.name = 111" , "SELECT * FROM (SELECT * FROM vms WHERE ( vm_guid IN (SELECT distinct vms_with_tags.vm_guid FROM vms_with_tags LEFT OUTER JOIN storage_domains_with_hosts_view ON vms_with_tags.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Vm: template.name = temp1" , "SELECT * FROM ((SELECT vms.* FROM vms LEFT OUTER JOIN vm_templates_storage_domain ON vms.vmt_guid=vm_templates_storage_domain.vmt_guid WHERE vm_templates_storage_domain.name LIKE temp1 ) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllRelevantQuotasForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllRelevantQuotasForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;
Source:
public java.lang.String getName ( ) { return getVmName ( ) ; }

Target:
public long getTotalMemorySizeInBytes ( ) { return ( ( ( long ) ( ( ( getVmMemSizeMb ( ) ) + 200 ) + ( 64 * ( getNumOfMonitors ( ) ) ) ) ) * 1024 ) * 1024 ; }
Source:
public void hide ( ) { getView ( ) . hide ( ) ; }

Target:
protected boolean shouldDestroyOnClose ( ) { return true ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }
Source:
public void setSearchString ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchString , value ) ) ) { searchString = value ; SearchStringChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }

Target:
public void setSearchString ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchString , value ) ) ) { searchString = value ; SearchStringChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.network.NetworkView selectedItem ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.network.SubTabNetworkGeneralView.Driver.driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.network.NetworkView selectedItem ) { driver.edit ( getDetailModel ( ) ) ; formBuilder.update ( getDetailModel ( ) ) ; }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . get ( storagePool.getId ( ) ) ; pool.setspm_vds_id ( null ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . update ( pool ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . get ( storagePool.getId ( ) ) ; pool.setSpmVdsId ( null ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . update ( pool ) ; return null ; }
Source:
public void testFromBackendToRest ( ) { testStatusMapping ( StoragePoolStatus.Contend , DataCenterStatus.CONTEND ) ; testStatusMapping ( StoragePoolStatus.Maintanance , DataCenterStatus.MAINTENANCE ) ; testStatusMapping ( StoragePoolStatus.NotOperational , DataCenterStatus.NOT_OPERATIONAL ) ; testStatusMapping ( StoragePoolStatus.Problematic , DataCenterStatus.PROBLEMATIC ) ; testStatusMapping ( StoragePoolStatus.Uninitialized , DataCenterStatus.UNINITIALIZED ) ; testStatusMapping ( StoragePoolStatus.Up , DataCenterStatus.UP ) ; }

Target:
public void testFromBackendToRest ( ) { testStatusMapping ( StoragePoolStatus.Contend , DataCenterStatus.CONTEND ) ; testStatusMapping ( StoragePoolStatus.Maintenance , DataCenterStatus.MAINTENANCE ) ; testStatusMapping ( StoragePoolStatus.NotOperational , DataCenterStatus.NOT_OPERATIONAL ) ; testStatusMapping ( StoragePoolStatus.Problematic , DataCenterStatus.PROBLEMATIC ) ; testStatusMapping ( StoragePoolStatus.Uninitialized , DataCenterStatus.UNINITIALIZED ) ; testStatusMapping ( StoragePoolStatus.Up , DataCenterStatus.UP ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > GetTagsAttachedToObject ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.tags > ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.tags > ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; }
Source:
public void canDoActionFailsIsoVersionNotCompatible ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.assertFailsWithCanDoActionMessage ( command , EngineMessage.VDS_CANNOT_UPGRADE_BETWEEN_MAJOR_VERSION ) ; }

Target:
public void validateFailsIsoVersionNotCompatible ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.assertFailsWithValidateMessage ( command , EngineMessage.VDS_CANNOT_UPGRADE_BETWEEN_MAJOR_VERSION ) ; }
Source:
protected void rerunInternal ( ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getDestinationVds ( ) . getId ( ) ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.determineMigrationFailueForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.log ( ) ; }

Target:
public void rerun ( ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getDestinationVds ( ) . getId ( ) ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.determineMigrationFailueForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.log ( ) ; }
Source:
public org.ovirt.engine.core.common.mode.ApplicationMode getUiMode ( ) { try { return org.ovirt.engine.core.common.mode.ApplicationMode.from ( java.lang.Integer.parseInt ( getValue ( ) ) ) ; } catch ( java.lang.NumberFormatException ex ) { return null ; } }

Target:
public static org.ovirt.engine.core.common.mode.ApplicationMode getUiMode ( ) { java.lang.String applicationModeValue = getValueFrom ( "applicationMode" ) ; try { return org.ovirt.engine.core.common.mode.ApplicationMode.from ( java.lang.Integer.parseInt ( applicationModeValue ) ) ; } catch ( java.lang.NumberFormatException ex ) { return null ; } }
Source:
private static org.ovirt.engine.core.bll.tasks.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( ) ; }

Target:
private static org.ovirt.engine.core.bll.tasks.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco ) ; }
Source:
public void updateRunButton ( org.ovirt.engine.ui.uicommonweb.UICommand command , boolean isPool ) { runButton.setTitle ( ( isPool ? constants.takeVm ( ) : constants.runVm ( ) ) ) ; updateButton ( runButton , command ) ; }

Target:
public void updateRunButton ( org.ovirt.engine.ui.uicommonweb.UICommand command , boolean isPool ) { runButton.setTooltipText ( ( isPool ? org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.constants.takeVm ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.constants.runVm ( ) ) ) ; updateButton ( runButton , command ) ; }
Source:
private org.ovirt.engine.api.model.StorageDomain getStorageDomainById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }

Target:
private org.ovirt.engine.api.model.StorageDomain getStorageDomainById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , QueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }
Source:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.TagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.Init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.TagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
protected java.lang.String getFormattedLunId ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun , java.lang.String usedByEntityName ) { return java.lang.String.format ( "%1$s (%2$s)" , lun.getLUN_id ( ) , usedByEntityName ) ; }

Target:
protected java.lang.String getFormattedLunId ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun , java.lang.String usedByEntityName ) { return java.lang.String.format ( "%1$s (%2$s)" , lun.getLUNId ( ) , usedByEntityName ) ; }
Source:
public static void LoginAsync ( final java.lang.String userName , final java.lang.String password , final java.lang.String domain , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync service = GenericApiGWTServiceAsync.Util.getInstance ( ) ; org.ovirt.engine.ui.frontend.Frontend.LoginAsync ( userName , password , domain , callback , service ) ; }

Target:
public static void RunPublicQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runPublicQuery ( queryType , parameters , callback ) ; }
Source:
public void onCreated ( org.ovirt.engine.ui.uicommonweb.models.vms.IconWithOsDefault instance ) { getIcon ( ) . setEntity ( instance ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { getBehavior ( ) . deactivateInstanceTypeManager ( ) ; updateWatchdogItems ( ( ( java.util.HashSet < org.ovirt.engine.core.common.businessentities.VmWatchdogType > ) ( returnValue.getReturnValue ( ) ) ) ) ; getBehavior ( ) . activateInstanceTypeManager ( ) ; }
Source:
public org.ovirt.engine.ui.common.widget.table.column.ImageResourceCell getCell ( ) { return ( ( org.ovirt.engine.ui.common.widget.table.column.ImageResourceCell ) ( super . getCell ( ) ) ) ; }

Target:
public org.ovirt.engine.ui.common.widget.table.cell.ImageResourceCell getCell ( ) { return ( ( org.ovirt.engine.ui.common.widget.table.cell.ImageResourceCell ) ( super . getCell ( ) ) ) ; }
Source:
public void setUp ( ) { disksList = new java.util.LinkedList < > ( ) ; initStorageDomains ( ) ; initStorageDomainValidators ( ) ; initMemoryStorageHandler ( ) ; }

Target:
public void testFindStorageDomainForMemoryWithSingleDomain ( ) { verifyDomainForMemory ( java.util.Collections.singletonList ( validStorageDomain ) ) ; }
Source:
public void snapshotEntityStatus ( org.ovirt.engine.core.common.businessentities.BusinessEntity < ? > entity , java.lang.Enum < ? > status ) ;

Target:
public < T extends java.lang.Enum < ? > > void snapshotEntityStatus ( org.ovirt.engine.core.common.businessentities.BusinessEntityWithStatus < ? , T > entity , T status ) ;
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null , true , false ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { runMultipleAction ( actionType , parameters , callback , null ) ; }
Source:
public void execute ( ) { try { command.Execute ( ) ; } catch ( java.lang.Exception ex ) { org.ovirt.engine.ui.common.uicommon.model.DeferredModelCommandInvoker.logger.log ( java.util.logging.Level.SEVERE , "UICommand execution failed" , ex ) ; commandFailed ( command ) ; } finally { commandFinished ( command ) ; } }

Target:
protected void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { command.Execute ( ) ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( entityExists ( ) ) ) { return failCanDoAction ( ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . isVm ( ) ? org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_NOT_FOUND : org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ) ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ! ( entityExists ( ) ) ) { return failCanDoAction ( ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . isVm ( ) ? org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND : org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ) ; } return true ; }
Source:
public boolean isValid ( java.lang.String name , javax.validation.ConstraintValidatorContext context ) { return ( java.util.regex.Pattern.matches ( org.ovirt.engine.core.common.validation.NfsMountPointConstraint.LINUX_MOUNT_POINT , name ) ) && ( java.util.regex.Pattern.matches ( org.ovirt.engine.core.common.validation.NfsMountPointConstraint.ASCII , name ) ) ; }

Target:
public boolean isValid ( java.lang.String name , javax.validation.ConstraintValidatorContext context ) { return ( org.ovirt.engine.core.common.validation.NfsMountPointConstraint.LINUX_MOUNT_POINT_PATTERN.matcher ( name ) . matches ( ) ) && ( org.ovirt.engine.core.common.validation.NfsMountPointConstraint.ASCII_PATTERN.matcher ( name ) . matches ( ) ) ; }
Source:
public void versionHigherThanCluster ( ) { storagePoolWithVersionHigherThanCluster ( ) ; canDoActionFailed ( EngineMessage.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }

Target:
public void versionHigherThanCluster ( ) { storagePoolWithVersionHigherThanCluster ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobIdForVdsmAndGluster ( org.ovirt.engine.core.compat.Guid jobId ) { return multipleResults ( entityManager.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 > 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 ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < T > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.List < T > items = returnValue.getReturnValue ( ) ; java.util.Collections.sort ( items , comparator ) ; setItems ( items ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult interfaceByNameExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) . when ( ( ( ( iface ) == null ) || ( ( iface.getName ( ) ) == null ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult interfaceHasNameSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.HOST_NETWORK_INTERFACE_DOES_NOT_HAVE_NAME_SET ) . when ( ( ( iface.getName ( ) ) == null ) ) ; }
Source:
public void testRemovePoolMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; new org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc ( ) . removePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }

Target:
public void testModifyPoolMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; pool.modifyPool ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getLoggedInUser ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( runQuery ( VdcQueryType.GetUserBySessionId , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , sessionId ) ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getLoggedInUser ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( runQuery ( QueryType.GetUserBySessionId , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , sessionId ) ) ) ; }
Source:
public void testAddValueNull ( ) { paramSource.addValue ( paramName , null ) ; org.junit.Assert.assertNull ( "wrong value returned from parameter source" , paramSource.getValue ( paramName ) ) ; }

Target:
public void testAddValueNull ( ) { paramSource.addValue ( paramName , null ) ; org.junit.jupiter.api.Assertions.assertNull ( paramSource.getValue ( paramName ) , "wrong value returned from parameter source" ) ; }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; poolPerDc.removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNotInPreview ( org.ovirt.engine.core.compat.Guid vmId ) { return vmNotInStatus ( vmId , SnapshotStatus.IN_PREVIEW , VdcBllMessages.ACTION_TYPE_FAILED_VM_IN_PREVIEW ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNotInPreview ( org.ovirt.engine.core.compat.Guid vmId ) { return vmNotInStatus ( vmId , SnapshotStatus.IN_PREVIEW , EngineMessage.ACTION_TYPE_FAILED_VM_IN_PREVIEW ) ; }
Source:
public void getJobById ( ) { org.junit.Assert.assertNotNull ( jobRepository.getJob ( job.getId ( ) ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.bll.job.JobRepositoryTest.JOB_SUBJECT_ENTITIES_MAP , job.getJobSubjectEntities ( ) ) ; }

Target:
public void getJobById ( ) { org.junit.jupiter.api.Assertions.assertNotNull ( jobRepository.getJob ( job.getId ( ) ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.bll.job.JobRepositoryTest.JOB_SUBJECT_ENTITIES_MAP , job.getJobSubjectEntities ( ) ) ; }
Source:
public void onPowerringUp ( ) { decreasePendingVms ( org.ovirt.engine.core.bll.RunVmCommand.getVmStaticDAO ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }

Target:
public void onPowerringUp ( ) { decreasePendingVm ( org.ovirt.engine.core.bll.RunVmCommand.getVmStaticDAO ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getNetworkByName ( java.lang.String networkName , org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Network > clusterNetworks ) { if ( clusterNetworks != null ) { return clusterNetworks.get ( networkName ) ; } else { return networkDao.getByName ( networkName ) ; } }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetworkByName ( java.lang.String networkName , org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Network > clusterNetworks , org.ovirt.engine.core.compat.Guid dataCenterId ) { if ( clusterNetworks != null ) { return clusterNetworks.get ( networkName ) ; } else { return networkDao.getByNameAndDataCenter ( networkName , dataCenterId ) ; } }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( java.lang.String id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "LUN_id" , id ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( java.lang.String id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , id ) ; }