auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid uuid ) { return getCustomMapSqlParameterSource ( ) . addValue ( "secret_uuid" , uuid ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid uuid ) { return getCustomMapSqlParameterSource ( ) . addValue ( "secret_id" , uuid ) ; }
Source:
public void testCDAStoragePoolHasTasks ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.mockito.Mockito.doReturn ( tasks ) . when ( asyncTaskDaoMock ) . getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate did not fail on a Storage Pool with running tasks" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_STORAGE_POOL_HAS_RUNNING_TASKS ) ; }

Target:
public void testCDAStoragePoolHasTasks ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = java.util.Collections.singletonList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.mockito.Mockito.doReturn ( tasks ) . when ( asyncTaskDaoMock ) . getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate did not fail on a Storage Pool with running tasks" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_STORAGE_POOL_HAS_RUNNING_TASKS ) ; }
Source:
public T get ( ID id ) { return org.ovirt.engine.core.dao.DefaultReadDaoDbFacade.getCallsHandler ( ) . executeRead ( getProcedureNameForGet ( ) , createEntityRowMapper ( ) , createIdParameterMapper ( id ) ) ; }

Target:
public T get ( ID id ) { return org.ovirt.engine.core.dao.DefaultReadDao.getCallsHandler ( ) . executeRead ( getProcedureNameForGet ( ) , createEntityRowMapper ( ) , createIdParameterMapper ( id ) ) ; }
Source:
public void setSupportedClusterLevels ( java.lang.String value ) { this . mVdsDynamic.setsupported_cluster_levels ( value ) ; }

Target:
public void setIfTotalSpeed ( java.lang.String value ) { vdsDynamic.setIfTotalSpeed ( value ) ; }
Source:
public void setUsePatternFly ( final boolean use ) { if ( use ) { getContentWidgetElement ( ) . removeClassName ( Styles.FORM_CONTROL ) ; removeContentWidgetStyleName ( Styles.FORM_CONTROL ) ; } }

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 ) { optimizationForServerFormatter ( object ) ; }
Source:
protected void printLog ( org.ovirt.engine.core.utils.log.Log logger , java.lang.String connectionField , java.lang.String errorCode ) { java.lang.String translatedError = getTranslatedStorageError ( errorCode ) ; logger.errorFormat ( "The connection with details {0} failed because of error code {1} and error message is: {2}" , connectionField , errorCode , org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . TranslateErrorTextSingle ( translatedError ) ) ; }

Target:
protected void printLog ( org.slf4j.Logger logger , java.lang.String connectionField , java.lang.String errorCode ) { java.lang.String translatedError = getTranslatedStorageError ( errorCode ) ; logger.error ( "The connection with details '{}' failed because of error code '{}' and error message is: {}" , connectionField , errorCode , org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . TranslateErrorTextSingle ( translatedError ) ) ; }
Source:
public void run ( ) { doUpdateTimeZone ( null ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.ArrayList < java.lang.String > images = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }
Source:
public void setIsResiliencePolicyTabAvailable ( boolean value ) { if ( ( getisResiliencePolicyTabAvailable ( ) ) != value ) { setisResiliencePolicyTabAvailable ( value ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsResiliencePolicyTabAvailable" ) ) ; } }

Target:
public boolean isMigrationTabAvailable ( ) { return migrationTabAvailable ; }
Source:
public void Search ( ) { super . Search ( ) ; if ( ( getEntity ( ) ) != null ) { getRefreshCommand ( ) . Execute ( ) ; } }

Target:
protected void forceRefresh ( ) { getRefreshCommand ( ) . Execute ( ) ; }
Source:
protected void logExceptionAndCompensate ( java.lang.Exception e ) { log.errorFormat ( "Exception while wrapping-up compensation in endAction: {0}." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( e ) , e ) ; compensate ( ) ; }

Target:
protected void logExceptionAndCompensate ( java.lang.Exception e ) { log.error ( "Exception while wrapping-up compensation in endAction" , e ) ; compensate ( ) ; }
Source:
private boolean isOvirtReInstallOrUpgrade ( ) { return ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand.getParameters ( ) . getIsReinstallOrUpgrade ( ) ) && ( ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand.getVds ( ) . getVdsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) ; }

Target:
private boolean isOvirtReInstallOrUpgrade ( ) { return ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand.getParameters ( ) . getIsReinstallOrUpgrade ( ) ) && ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand.getVds ( ) . isOvirtNode ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getVmWithConfiguration ( java.lang.String configuration , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM result = getVmDao ( ) . get ( vmId ) ; getSnapshotManager ( ) . updateVmFromConfiguration ( result , configuration ) ; return result ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getVmWithConfiguration ( java.lang.String configuration , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM result = vmDao.get ( vmId ) ; snapshotsManager.updateVmFromConfiguration ( result , configuration ) ; return result ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapUser populateUserData ( org.ovirt.engine.core.common.businessentities.LdapUser user , java.lang.String domain ) { return populateUserData ( user , domain , true ) ; }

Target:
private void ProceedGroupsSearchResult ( org.ovirt.engine.core.bll.adbroker.GroupSearchResult groupsResult , java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.LdapGroup > groupsDict , org.ovirt.engine.core.bll.adbroker.GroupsDNQueryGenerator generator ) { java.util.List < java.lang.String > groupsList = groupsResult.getMemberOf ( ) ; proceedGroupsSearchResult ( groupsList , groupsDict , generator ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getId ( ) { if ( ( id ) == null ) { id = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; } return id ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( boolean generateIfNull ) { if ( ( ( id ) == null ) && generateIfNull ) { id = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; } return id ; }
Source:
private boolean validateExternalNetwork ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidator validator ) { return ( validate ( validator.externalNetworkNotDisplay ( getNetworkName ( ) ) ) ) && ( validate ( validator.externalNetworkNotRequired ( getNetworkName ( ) ) ) ) ; }

Target:
private boolean validateAttachment ( ) { final org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator networkClusterValidator = createNetworkClusterValidator ( ) ; return ( validate ( networkClusterValidator.managementNetworkUnset ( ) ) ) && ( validateAttachment ( networkClusterValidator ) ) ; }
Source:
public abstract void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) ;

Target:
public abstract void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) ;
Source:
protected void SyncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StoragePool ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . SyncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StoragePool ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.hosts.InstallModel model ) { driver.edit ( model ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPassPkWindow ( false ) ; }
Source:
public static java.lang.String map ( org.ovirt.engine.api.model.TransportType transportType , java.lang.String template ) { switch ( transportType ) { case TCP : return TransportType.TCP.value ( ) ; case RDMA : return TransportType.RDMA.value ( ) ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.TransportType map ( org.ovirt.engine.api.model.TransportType transportType , org.ovirt.engine.api.model.TransportType template ) { switch ( transportType ) { case TCP : return org.ovirt.engine.api.model.TransportType.TCP ; case RDMA : return org.ovirt.engine.api.model.TransportType.RDMA ; default : return null ; } }
Source:
private void initDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskImage.setId ( diskImageId ) ; org.mockito.Mockito.when ( diskImageDao.getAncestor ( diskImageId ) ) . thenReturn ( diskImage ) ; }

Target:
private void initDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = mockDiskImage ( diskImageId ) ; org.mockito.Mockito.when ( diskImageDao.get ( diskImageId ) ) . thenReturn ( diskImage ) ; }
Source:
public abstract void removeCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
protected void ExecuteVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand.getVDSReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . IsVmDuringInitiating ( org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand.getParameters ( ) . getVmId ( ) ) ) ; }

Target:
protected void executeVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand.getVDSReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . IsVmDuringInitiating ( org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand.getParameters ( ) . getVmId ( ) ) ) ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setActive ( true ) ; image.setImageStatus ( ImageStatus.OK ) ; image.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setActive ( true ) ; image.setImageStatus ( ImageStatus.OK ) ; image.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }
Source:
private void auditLogFailedToConnect ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( loggable , AuditLogType.FAILED_TO_CONNECT_TO_SCHEDULER_PROXY ) ; }

Target:
private void auditLogFailedToConnect ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( loggable , AuditLogType.FAILED_TO_CONNECT_TO_SCHEDULER_PROXY ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public java.util.List < java.lang.Integer > getNonCountableQutoaVmStatuses ( ) { return getCallsHandler ( ) . executeReadList ( "getNonCountableQutoaVmStatuses" , getIntegerMapper ( ) , null ) ; }

Target:
public java.util.List < java.lang.Integer > getNonCountableQutoaVmStatuses ( ) { return getCallsHandler ( ) . executeReadList ( "getNonCountableQutoaVmStatuses" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Integer.class ) , null ) ; }
Source:
public void setTitle ( java.lang.String text ) { tooltipPanel.setText ( text ) ; }

Target:
public void setTitle ( java.lang.String text ) { this . title = text ; }
Source:
protected abstract void onExportChanged ( ) ;

Target:
protected void onExportChanged ( ) { getQos ( ) . setIsChangable ( ( ! ( ( java.lang.Boolean ) ( getExport ( ) . getEntity ( ) ) ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol resolveSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) { return consoleModelsCache.resolveUserSelectedProtocol ( item ) ; }

Target:
protected static void buildVmOnSave ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model , org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.build ( model , vm.getStaticData ( ) , new org.ovirt.engine.ui.uicommonweb.builders.vm.FullUnitToVmBaseBuilder ( ) ) ; org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.build ( model , vm , new org.ovirt.engine.ui.uicommonweb.builders.vm.VmSpecificUnitToVmBuilder ( ) ) ; }
Source:
public java.lang.String getSessionItem ( java.lang.String key ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorage.sessionStorage ) != null ) { return org.ovirt.engine.ui.common.system.ClientStorage.sessionStorage.getItem ( key ) ; } else { return com.google.gwt.user.client.Cookies.getCookie ( key ) ; } }

Target:
void removeLocalItem ( java.lang.String key ) ;
Source:
protected void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; queryFreeBonds ( ) ; validate ( ) ; getNetworksChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
protected void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; queryFreeBonds ( ) ; validate ( ) ; getNetworksChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters params = new org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.UNPLUG ) ; params.setVmId ( ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) . parentId ) ; return doAction ( VdcActionType.HotPlugUnplugVmNic , params , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.PlugUnplugVmNicParameters params = new org.ovirt.engine.core.common.action.PlugUnplugVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.UNPLUG ) ; params.setVmId ( ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) . parentId ) ; return doAction ( VdcActionType.PlugUnplugVmNic , params , action ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }
Source:
private void updateImagesStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( imageGroupId , imageStatus , ImageStatus.ILLEGAL , null ) ; }

Target:
private void updateImagesStatus ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( imageGroupId , imageStatus , ImageStatus.ILLEGAL , null ) ; }
Source:
public void setvm_snapshot_id ( org.ovirt.engine.core.compat.NGuid value ) { getImage ( ) . setSnapshotId ( ( value == null ? null : value.getValue ( ) ) ) ; }

Target:
public void setVmSnapshotId ( org.ovirt.engine.core.compat.NGuid snapshotId ) { getImage ( ) . setSnapshotId ( ( snapshotId == null ? null : snapshotId.getValue ( ) ) ) ; }
Source:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setStatus ( status ) ; update ( entity ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsDynamic get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetVdsDynamicByVdsId" , org.ovirt.engine.core.dao.VdsDynamicDAODbFacadeImpl.VdcDynamicRowMapper.instance , parameterSource ) ; }
Source:
public void preventRollback ( ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public void preventRollback ( ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }
Source:
public boolean isAllowDuplicates ( ) { return allowDuplicates ; }

Target:
public java.lang.Boolean getAllowDuplicates ( ) { return allowDuplicates ; }
Source:
public void RerunFailedCommand ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( asyncRunningVms.remove ( vmId ) ) { getEventListener ( ) . rerun ( vmId ) ; } }

Target:
public void rerunFailedCommand ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( asyncRunningVms.remove ( vmId ) ) { getEventListener ( ) . rerun ( vmId ) ; } }
Source:
public void testBothNulls ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( null ) . test ( null ) ) ; }

Target:
public void testBothNulls ( ) { org.junit.jupiter.api.Assertions.assertTrue ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( null ) . test ( null ) ) ; }
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 ) { commandsRepository.persistCommand ( cmdEntity ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromRole" , RolesRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromRole" , org.ovirt.engine.core.dao.RoleDAODbFacadeImpl.RolesRowMapper.instance , parameterSource ) ; }
Source:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( false ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) . defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.MacPoolValidator createMacPoolValidator ( org.ovirt.engine.core.common.businessentities.MacPool macPool ) { org.ovirt.engine.core.bll.MacPoolValidator macPoolValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) ) ; return macPoolValidator ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc reset ( java.lang.String vmId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc hotplugDisk ( java.util.Map info ) ;
Source:
private void writeToAuditLog ( ) { try { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , getAuditLogTypeValue ( ) ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WriteToAuditLog: An exception has been thrown." , ex ) ; } }

Target:
private void writeToAuditLog ( ) { try { auditLogDirector.log ( logable , getAuditLogTypeValue ( ) ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WriteToAuditLog: An exception has been thrown." , ex ) ; } }
Source:
public void finishSshSoftFencingExecution ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mUnrespondedAttempts.set ( 0 ) ; setStatus ( VDSStatus.Connecting , vds ) ; updateDynamicData ( vds.getDynamicData ( ) ) ; }

Target:
public void setLastVmsList ( java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData > > lastVmsList ) { this . lastVmsList = lastVmsList ; }
Source:
public void setBeingDestroyed ( org.ovirt.engine.core.compat.Guid vmPoolId , boolean beingDestroyed ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , vmPoolId ) . addValue ( "is_being_destroyed" , beingDestroyed ) ; getCallsHandler ( ) . executeModification ( "SetVm_poolBeingDestroyed" , parameterSource ) ; }

Target:
public void setBeingDestroyed ( org.ovirt.engine.core.compat.Guid vmPoolId , boolean beingDestroyed ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , vmPoolId ) . addValue ( "is_being_destroyed" , beingDestroyed ) ; getCallsHandler ( ) . executeModification ( "SetVmPoolBeingDestroyed" , parameterSource ) ; }
Source:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { return setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) , index ) ; }
Source:
public org.ovirt.engine.api.model.Images list ( ) { org.ovirt.engine.core.common.queries.GetImagesListParameters getImagesListParams = new org.ovirt.engine.core.common.queries.GetImagesListParameters ( storageDomainId , org.ovirt.engine.core.common.businessentities.ImageFileType.All ) ; getImagesListParams.setForceRefresh ( true ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetImagesList , getImagesListParams ) ) ; }

Target:
public org.ovirt.engine.api.model.Images list ( ) { org.ovirt.engine.core.common.queries.GetImagesListParameters getImagesListParams = new org.ovirt.engine.core.common.queries.GetImagesListParameters ( storageDomainId , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.All ) ; getImagesListParams.setForceRefresh ( true ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetImagesList , getImagesListParams ) ) ; }
Source:
protected void ExecuteVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { _vdsManager.activate ( ) ; } else { org.ovirt.engine.core.vdsbroker.ActivateVdsVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }

Target:
protected void ExecuteVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { setReturnValue ( _vdsManager.activate ( ) ) ; } else { org.ovirt.engine.core.vdsbroker.ActivateVdsVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }
Source:
public boolean IsConnectSucceeded ( java.util.Map < java.lang.String , java.lang.String > returnValue , java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > connections ) { return true ; }

Target:
public boolean isConnectSucceeded ( java.util.Map < java.lang.String , java.lang.String > returnValue , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return true ; }
Source:
protected void populateDomains ( java.util.List < java.lang.String > domains ) { getDomain ( ) . setItems ( domains ) ; getDomain ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( domains ) ) ; }

Target:
protected void populateProfiles ( java.util.List < org.ovirt.engine.core.aaa.ProfileEntry > profiles ) { getProfile ( ) . setItems ( profiles ) ; getProfile ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( profiles ) ) ; }
Source:
public void testAddUser_2 ( ) throws java.lang.Exception { setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; model.setDomain ( domain ) ; model.setUserName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }

Target:
public void testAddUser_2 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; model.setDomain ( domain ) ; model.setUserName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }
Source:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }

Target:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . generateJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }
Source:
public void testFingerprintStringsMD5 ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.checkKeyFingerprint ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS [ 0 ] [ 1 ] . replace ( "MD5:" , "" ) , org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.decodeKey ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS [ 0 ] [ 0 ] ) , null ) ) ; }

Target:
public void testFingerprintStringsMD5 ( ) throws java.lang.Exception { org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.checkKeyFingerprint ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS [ 0 ] [ 1 ] . replace ( "MD5:" , "" ) , org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.decodeKey ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS [ 0 ] [ 0 ] ) , null ) ) ; }
Source:
protected boolean isUserAuthorizedToRunAction ( ) { if ( isSystemSuperUserPredicate.test ( org.ovirt.engine.core.bll.aaa.TerminateSessionCommand.getCurrentUser ( ) . getId ( ) ) ) { return true ; } else { addCanDoActionMessage ( EngineMessage.USER_NOT_AUTHORIZED_TO_PERFORM_ACTION ) ; return false ; } }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { if ( isSystemSuperUserPredicate.test ( org.ovirt.engine.core.bll.aaa.TerminateSessionCommand.getCurrentUser ( ) . getId ( ) ) ) { return true ; } else { addValidationMessage ( EngineMessage.USER_NOT_AUTHORIZED_TO_PERFORM_ACTION ) ; return false ; } }
Source:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > AllVmImages ) { return ovfManager.ExportVm ( vm , AllVmImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatilibilyVersion ( vm ) ) ; }

Target:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > AllVmImages ) { return ovfManager.ExportVm ( vm , AllVmImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm ) ) ; }
Source:
private void endActions ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( org.ovirt.engine.core.bll.storage.disk.image.FenceVolumeJobCommand.getCommandId ( ) ) ; }

Target:
private void endActions ( ) { commandCoordinatorUtil.removeAllCommandsInHierarchy ( org.ovirt.engine.core.bll.storage.disk.image.FenceVolumeJobCommand.getCommandId ( ) ) ; }
Source:
public boolean getRefreshStatistics ( ) { return ( refreshIteration ) == ( org.ovirt.engine.core.vdsbroker.VdsManager.NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ; }

Target:
boolean isTimeToRefreshStatistics ( ) { return ( refreshIteration ) == ( NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ; }
Source:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; updateWanColorDepthOptions ( spice ) ; updateWANDisableEffects ( spice ) ; spice.setSpiceProxyEnabled ( isSpiceProxyDefined ( ) ) ; }

Target:
protected java.lang.String clientBrowserType ( ) { return clientAgentType.browser ; }
Source:
public java.lang.String replace ( java.lang.String searchClause , java.lang.String string ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public java.lang.String replace ( java.lang.String searchClause , java.lang.String string ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
private boolean isPrimaryAddressExist ( ) { return ( ( networkDataCenterIpConfigurationDefinition ) != null ) && ( networkDataCenterIpConfigurationDefinition.hasPrimaryAddressSet ( ) ) ; }

Target:
private boolean isPrimaryAddressExist ( ) { return ( ( networkDataCenterIpConfigurationDefinition ) != null ) && ( networkDataCenterIpConfigurationDefinition.hasIpv4PrimaryAddressSet ( ) ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( true ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( true ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testDefaultRouteWhenOutOfSync ( ) { network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testDefaultRouteWhenInSync ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testCDAVdsIsSPM ( ) { vds.setSpmStatus ( VdsSpmStatus.SPM ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on a VDS that is already set as SPM" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_ALREADY_SPM ) ; }

Target:
public void testCDAVdsSPMPrioritySetToNever ( ) { vds.setVdsSpmPriority ( BusinessEntitiesDefinitions.HOST_MIN_SPM_PRIORITY ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a VDS that is set to never be elected as SPM" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_MARKED_AS_NEVER_SPM ) ; }
Source:
private void updateVmDevices ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] vms ) { for ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct vm : vms ) { processVmDevices ( vm ) ; } }

Target:
protected void updateVmDevices ( java.util.List < java.lang.String > vmsToUpdate ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] vms = getVmInfo ( vmsToUpdate ) ; if ( vms != null ) { for ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct vm : vms ) { processVmDevices ( vm ) ; } } }
Source:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permissions object ) { return new java.lang.Object [ ] { getDetailModel ( ) . getEntity ( ) , object.getAdElementId ( ) , object.getOwnerName ( ) } ; }

Target:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permission object ) { return new java.lang.Object [ ] { getDetailModel ( ) . getEntity ( ) , object.getAdElementId ( ) , object.getOwnerName ( ) } ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.DisksService disksService = connection.systemService ( ) . disksService ( ) ; org.ovirt.engine.sdk4.types.Disk disk = disksService.add ( ) . disk ( org.ovirt.engine.sdk4.builders.Builders.disk ( ) . name ( "mydisk" ) . description ( "My disk" ) . format ( DiskFormat.COW ) . provisionedSize ( ( 1 * ( ( int ) ( java.lang.Math.pow ( 2 , 20 ) ) ) ) ) . storageDomains ( org.ovirt.engine.sdk4.builders.Builders.storageDomain ( ) . name ( "mydata" ) ) ) . send ( ) . disk ( ) ; org.ovirt.engine.sdk4.services.DiskService diskService = disksService.diskService ( disk.id ( ) ) ; for ( ; ; ) { java.lang.Thread.sleep ( ( 5 * 1000 ) ) ; disk = diskService.get ( ) . send ( ) . disk ( ) ; if ( ( disk.status ( ) ) == ( org.ovirt.engine.sdk4.types.DiskStatus.OK ) ) { break ; } } connection.close ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.DisksService disksService = connection.systemService ( ) . disksService ( ) ; org.ovirt.engine.sdk4.types.Disk disk = disksService.add ( ) . disk ( org.ovirt.engine.sdk4.builders.Builders.disk ( ) . name ( "mydisk" ) . description ( "My disk" ) . format ( DiskFormat.COW ) . provisionedSize ( ( 10 * ( ( int ) ( java.lang.Math.pow ( 2 , 30 ) ) ) ) ) . storageDomains ( org.ovirt.engine.sdk4.builders.Builders.storageDomain ( ) . name ( "mydata" ) ) ) . send ( ) . disk ( ) ; org.ovirt.engine.sdk4.services.DiskService diskService = disksService.diskService ( disk.id ( ) ) ; for ( ; ; ) { java.lang.Thread.sleep ( ( 5 * 1000 ) ) ; disk = diskService.get ( ) . send ( ) . disk ( ) ; if ( ( disk.status ( ) ) == ( org.ovirt.engine.sdk4.types.DiskStatus.OK ) ) { break ; } } connection.close ( ) ; }
Source:
private void UpdateProperties ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( getEntity ( ) ) ) ; setName ( provider.getName ( ) ) ; }

Target:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( getEntity ( ) ) ) ; setName ( provider.getName ( ) ) ; setDescription ( provider.getDescription ( ) ) ; setUrl ( provider.getUrl ( ) ) ; }
Source:
private void updateQosChangeability ( ) { getQosModel ( ) . setIsChangable ( ( ( ( getQosOverridden ( ) . getIsAvailable ( ) ) && ( getQosOverridden ( ) . getIsChangable ( ) ) ) && ( getQosOverridden ( ) . getEntity ( ) ) ) ) ; }

Target:
private void updateQosChangeability ( ) { getQosModel ( ) . setIsChangeable ( ( ( ( getQosOverridden ( ) . getIsAvailable ( ) ) && ( getQosOverridden ( ) . getIsChangable ( ) ) ) && ( getQosOverridden ( ) . getEntity ( ) ) ) ) ; }
Source:
protected void RemoveSnapshot ( org.ovirt.engine.core.common.businessentities.DiskImage snapshot ) { RemoveSnapshotFromDB ( snapshot ) ; AdditionalImageRemoveTreatment ( snapshot ) ; }

Target:
protected void MarkImageAsIllegal ( ) { setImageStatus ( ImageStatus.ILLEGAL ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Quota getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.Quota ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.Quota ? super . getEntity ( ) : null ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Events: quota=" + ( getEntity ( ) . getQuotaName ( ) ) ) ) ; super . search ( ) ; } }
Source:
public void updateFCPUnsupportedConnectionType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections dummyFCPConn = createISCSIConnection ( "10.35.16.25" , StorageType.FCP , "" , "3260" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( dummyFCPConn ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_FOR_STORAGE_TYPE ) ; }

Target:
public void updateFCPUnsupportedConnectionType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections dummyFCPConn = createISCSIConnection ( "10.35.16.25" , StorageType.FCP , "" , "3260" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( dummyFCPConn ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_FOR_STORAGE_TYPE ) ; }
Source:
public final boolean validate ( java.lang.String text ) { return text != null ? mVerbs.containsKey ( text.toUpperCase ( ) ) : false ; }

Target:
public final boolean validate ( java.lang.String text ) { return text != null ? mVerbs.contains ( text.toUpperCase ( ) ) : false ; }
Source:
public void setup ( ) { validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ) ; vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; }

Target:
public void setup ( ) { validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ) ; vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; }
Source:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CheckIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public java.lang.Boolean getIsEmpty ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetIsClusterEmpty" , org.ovirt.engine.core.dao.ClusterDaoImpl.BooleanRowMapper.instance , parameterSource ) ; }

Target:
public java.lang.Boolean getIsEmpty ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetIsClusterEmpty" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Boolean.class ) , parameterSource ) ; }
Source:
private int getMaintenanceHostsStat ( ) { return org.ovirt.engine.core.bll.GetSystemStatisticsQuery.getDbFacade ( ) . getSystemStatisticsValue ( org.ovirt.engine.core.bll.GetSystemStatisticsQuery.HOST_ENTITY_NAME , java.lang.String.valueOf ( VDSStatus.Maintenance.getValue ( ) ) ) ; }

Target:
private int getMaintenanceHostsStat ( ) { return systemStatisticsDao.getSystemStatisticsValue ( org.ovirt.engine.core.bll.GetSystemStatisticsQuery.HOST_ENTITY_NAME , java.lang.String.valueOf ( VDSStatus.Maintenance.getValue ( ) ) ) ; }
Source:
protected void ExecuteIrsBrokerCommand ( ) { setReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HsmGetIsoList , new org.ovirt.engine.core.common.vdscommands.HSMGetIsoListParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getParameters ( ) . getStoragePoolId ( ) ) ) . getReturnValue ( ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { setReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HsmGetIsoList , new org.ovirt.engine.core.common.vdscommands.HSMGetIsoListParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getParameters ( ) . getStoragePoolId ( ) ) ) . getReturnValue ( ) ) ; }
Source:
public void testGetQuotaByAdElementId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaByAdElementIdList = dao.getQuotaByAdElementId ( FixturesTool.USER_EXISTING_ID , FixturesTool.STORAGE_POOL_NFS , false ) ; org.junit.Assert.assertEquals ( "Quota General" , quotaByAdElementIdList.get ( 0 ) . getQuotaName ( ) ) ; }

Target:
public void testGetQuotaByAdElementId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaByAdElementIdList = dao.getQuotaByAdElementId ( FixturesTool.USER_EXISTING_ID , FixturesTool.STORAGE_POOL_NFS , false ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Quota General" , quotaByAdElementIdList.get ( 0 ) . getQuotaName ( ) ) ; }
Source:
protected org.ovirt.engine.api.resteasy.json.CustomObjectMapper indent ( boolean indent ) { configure ( SerializationConfig.Feature.INDENT_OUTPUT , indent ) ; return this ; }

Target:
protected org.ovirt.engine.api.json.CustomObjectMapper indent ( boolean indent ) { configure ( SerializationConfig.Feature.INDENT_OUTPUT , indent ) ; return this ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { return org.ovirt.engine.core.utils.NetworkUtils.isManagementNetwork ( network ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , getNetworkNameReplacement ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult getManagementNetworkValidationResult ( final boolean isManagementNetwork ) { return isManagementNetwork ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , getNetworkNameReplacement ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void addInvalidIdErrorMessages ( org.ovirt.engine.core.common.errors.VdcBllMessages messageActionTypeParameter ) { addErrorMessages ( messageActionTypeParameter , VdcBllMessages.ACTION_TYPE_FAILED_BOOKMARK_INVALID_ID ) ; }

Target:
protected void addInvalidIdErrorMessages ( org.ovirt.engine.core.common.errors.EngineMessage messageActionTypeParameter ) { addErrorMessages ( messageActionTypeParameter , EngineMessage.ACTION_TYPE_FAILED_BOOKMARK_INVALID_ID ) ; }