auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void ExecuteVdsBrokerCommand ( ) { glusterServers = org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.getBroker ( ) . glusterServersList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.proceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterServers.getServers ( ) ) ; } }

Target:
protected void executeVdsBrokerCommand ( ) { glusterServers = org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.getBroker ( ) . glusterServersList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.proceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterServers.getServers ( ) ) ; } }
Source:
public java.util.concurrent.Future < java.lang.Void > close ( ) { final java.util.concurrent.Callable < java.lang.Void > callable = new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) { closeChannel ( ) ; return null ; } } ; return scheduleTask ( callable ) ; }

Target:
public final java.util.concurrent.Future < java.lang.Void > disconnect ( ) { final java.util.concurrent.Callable < java.lang.Void > callable = new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) { closeChannel ( ) ; return null ; } } ; return scheduleTask ( callable ) ; }
Source:
protected boolean validateDiscardAfterDeleteLegal ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , org.ovirt.engine.core.compat.Version compatibilityVersion ) { if ( org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomain ( ) . isDiscardAfterDelete ( ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_DISCARD_AFTER_DELETE_SUPPORTED_ONLY_BY_BLOCK_DOMAINS ) ; } return true ; }

Target:
protected boolean validateDiscardAfterDeleteLegal ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , org.ovirt.engine.core.compat.Version compatibilityVersion ) { if ( org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomain ( ) . getDiscardAfterDelete ( ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_DISCARD_AFTER_DELETE_SUPPORTED_ONLY_BY_BLOCK_DOMAINS ) ; } return true ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.getConnection ( ) . getconnection ( ) , LockMessagesMatchUtil.STORAGE_CONNECTION ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.getConnection ( ) . getconnection ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.STORAGE_CONNECTION , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.EnableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( CLUSTER_ID , HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.EnableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookStatusChangeParameters ( CLUSTER_ID , HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
private java.lang.String getDiskIsUsedByGetAlignment ( ) { return new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_IS_USED_BY_GET_ALIGNMENT.name ( ) ) . append ( java.lang.String.format ( "$DiskAlias %1$s" , getDiskAlias ( ) ) ) . toString ( ) ; }

Target:
private java.lang.String getDiskIsUsedByGetAlignment ( ) { return new java.lang.StringBuilder ( EngineMessage.ACTION_TYPE_FAILED_DISK_IS_USED_BY_GET_ALIGNMENT.name ( ) ) . append ( java.lang.String.format ( "$DiskAlias %1$s" , getDiskAlias ( ) ) ) . toString ( ) ; }
Source:
public void validWithIP ( ) { assertValid ( "1.2.3.4:/path/to/dir" ) ; }

Target:
public void validWithIpv4 ( ) { assertValid ( "1.2.3.4:/path/to/dir" ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; } return source ; }

Target:
public java.util.List < T > convert ( java.lang.Object source ) { java.util.List < T > list = super . convert ( source ) ; java.util.Collections.sort ( list , comparator ) ; return list ; }
Source:
protected void incrementDbGeneration ( ) { org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getVmStaticDao ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }

Target:
protected void incrementDbGeneration ( ) { vmStaticDao.incrementDbGeneration ( org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { chainedCallback.onSuccess ( model , ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ; }

Target:
public void getIsPasswordDelegationPossible ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Boolean > asyncQuery ) { asyncQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.IsPasswordDelegationPossible , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , asyncQuery ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesList ( java.lang.String [ ] serviceNames ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookRemove ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType extractOsType ( org.ovirt.engine.core.common.businessentities.VmTemplate item ) { return item.getos ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType extractOsType ( org.ovirt.engine.core.common.businessentities.VmTemplate item ) { return item.getOs ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setname ( "Default" ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setName ( "Default" ) ; return pool ; }
Source:
public org.ovirt.engine.api.model.NetworkAttachments list ( ) { return mapCollection ( getNetworkAttachments ( ) ) ; }

Target:
public org.ovirt.engine.api.model.NetworkAttachments list ( ) { verifyIfHostExistsToHandle404StatusCode ( ) ; return mapCollection ( getNetworkAttachments ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmtOs ( ) { return this . vmtOs ; }

Target:
public int getVmtOsId ( ) { return this . vmtOsId ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClient ( reactor , selector , hostname , port ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient.CertCallback certCallback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClient ( reactor , selector , hostname , port ) ; }
Source:
private void userName_EntityChanged ( ) { getDomain ( ) . setIsChangable ( getDomainAvailability ( ) ) ; }

Target:
private void userName_EntityChanged ( ) { getProfile ( ) . setIsChangable ( getDomainAvailability ( ) ) ; }
Source:
public java.lang.String ExportTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate vmTemplate , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfTemplateWriter ( vmTemplate , images , version ) ; BuildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }

Target:
public java.lang.String exportTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate vmTemplate , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfTemplateWriter ( vmTemplate , images , version ) ; buildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . numberOfVmsForHostsLoad ( object.getvm_active ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { int numOfActiveVMs = ( ( object.getvm_active ( ) ) != null ) ? object.getvm_active ( ) : 0 ; return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . numberOfVmsForHostsLoad ( numOfActiveVMs ) ; }
Source:
public void setDefaultConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( defaultConsoleModel ) != value ) { defaultConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "DefaultConsoleModel" ) ) ; } }

Target:
public void setHasAdditionalConsoleModel ( boolean value ) { if ( ( hasAdditionalConsoleModel ) != value ) { hasAdditionalConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HasAdditionalConsoleModel" ) ) ; } }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Plugin ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { boolean previousSpicePreference = getView ( ) . getSpiceProxy ( ) ; selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Html5 ) ; spiceProxyUserPreference = previousSpicePreference ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getManagementNetwork ( ) { if ( ( mgmtNetwork ) == null ) { mgmtNetwork = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkDAO ( ) . getByNameAndCluster ( org.ovirt.engine.core.utils.NetworkUtils.getEngineNetwork ( ) , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupId ( ) ) ; } return mgmtNetwork ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getManagementNetwork ( ) { if ( ( mgmtNetwork ) == null ) { mgmtNetwork = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkDAO ( ) . getByNameAndCluster ( org.ovirt.engine.core.utils.NetworkUtils.getDefaultManagementNetworkName ( ) , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupId ( ) ) ; } return mgmtNetwork ; }
Source:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase FindVdcReturnValueByDescription ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > items , java.lang.String description ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getDescription ( ) , description ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase findVdcReturnValueByDescription ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > items , java.lang.String description ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getDescription ( ) , description ) ) { return i ; } } return null ; }
Source:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { auditLogDirector.log ( auditLogable , logType ) ; }

Target:
public static void alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { auditLogDirector.log ( auditLogable , logType ) ; }
Source:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }
Source:
public void copyDataTo ( ovirt_engine_dwh.osenumupdate_3_3.OsEnumUpdate.host_changesStruct other ) { other.enum_type = this . enum_type ; other.enum_key = this . enum_key ; other.language_code = this . language_code ; other.value = this . value ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.osenumupdate_3_3.OsEnumUpdate.row2Struct other ) { other.enum_type = this . enum_type ; other.enum_key = this . enum_key ; other.language_code = this . language_code ; other.value = this . value ; }
Source:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomainByTypeAndPool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID , StorageDomainType.Master ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetResult ( result ) ; }

Target:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomainByTypeAndPool ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetResult ( result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Tags GetTagByTagName ( java.lang.String tagName ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagByName ( tagName ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Tags getTagByTagName ( java.lang.String tagName ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagByName ( tagName ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { update ( ) ; }

Target:
public boolean getIsAvailable ( ) { return ( getModel ( ) . getFormat ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.COW ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) super . setIsChangable ( value ) ; return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < T > setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangable ( value ) ; } return this ; }
Source:
public void activeDisallowed ( ) { testExecution ( StorageDomainStatus.Active ) ; testActionDisallowed ( ) ; }

Target:
public void nonInternalActiveDisallowed ( ) { testExecution ( StorageDomainStatus.Active ) ; testActionDisallowed ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ; dcClusters.put ( dcId , clusters ) ; attachNetworkToClusters ( network , clusters , publicUse ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.VDSGroup source ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.SupportCustomDeviceProperties , source.getcompatibility_version ( ) . getValue ( ) ) ) ) ; }
Source:
protected void Update ( ) { lastDiscoveredTargets.clear ( ) ; super . Update ( ) ; }

Target:
protected void update ( ) { lastDiscoveredTargets.clear ( ) ; super . update ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_INVALID_SERVER_ID ) . when ( ( ( host ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_INVALID_SERVER_ID ) . when ( ( ( host ) == null ) ) ; }
Source:
public java.util.List < java.lang.String > allocateMacAddresses ( int numberOfAddresses ) { lockObj.writeLock ( ) . lock ( ) ; try { checkIfInitialized ( ) ; return allocateNewMacsWithoutLocking ( numberOfAddresses ) ; } finally { lockObj.writeLock ( ) . unlock ( ) ; } }

Target:
public java.util.List < java.lang.String > allocateMacAddresses ( int numberOfAddresses ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { checkIfInitialized ( ) ; return allocateNewMacsWithoutLocking ( numberOfAddresses ) ; } }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { StopProgress ( ) ; commandTarget.executeCommand ( runOnceCommand ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( ) ; commandTarget.executeCommand ( runOnceCommand ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { if ( ( items ) != value ) { ItemsChanging ( value , items ) ; items = value ; getItemsChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Items" ) ) ; } }

Target:
public void setItems ( java.lang.Iterable value ) { if ( ( items ) != value ) { ItemsChanging ( value , items ) ; items = value ; getItemsChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Items" ) ) ; } }
Source:
protected org.ovirt.engine.api.model.CdRom getUpdate ( ) { org.ovirt.engine.api.model.CdRom update = new org.ovirt.engine.api.model.CdRom ( ) ; update.setFile ( new org.ovirt.engine.api.model.File ( ) ) ; update.getFile ( ) . setId ( org.ovirt.engine.api.restapi.resource.BackendCdRomResourceTest.ISO_PATH ) ; return update ; }

Target:
protected org.ovirt.engine.api.model.CdRom getUpdate ( ) { org.ovirt.engine.api.model.CdRom update = new org.ovirt.engine.api.model.CdRom ( ) ; update.setFile ( new org.ovirt.engine.api.model.File ( ) ) ; update.getFile ( ) . setId ( org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.ISO_PATH ) ; return update ; }
Source:
void processSessionId ( java.lang.String sessionId ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; scheduleKeepAliveHeartbeat ( ) ; }

Target:
void processSessionId ( java.lang.String sessionId ) { org.ovirt.engine.ui.common.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; scheduleKeepAliveHeartbeat ( ) ; }
Source:
public void setdomain ( java.lang.String value ) { this . domain = value ; }

Target:
public void setDomain ( java.lang.String value ) { domain = value ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.businessentities.VmDevice object ) { return object.getReadOnly ( ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDeviceFeEntity object ) { return object.getVmDevice ( ) . getReadOnly ( ) ; }
Source:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }

Target:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }
Source:
public void setRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . policy = policy ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy getRetryPolicy ( ) { return this . client.getRetryPolicy ( ) ; }
Source:
public void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public int getVmMemSizeMb ( ) { return this . vmStatic.getmem_size_mb ( ) ; }

Target:
public int getVmMemSizeMb ( ) { return this . vmStatic.getMemSizeMb ( ) ; }
Source:
private org.ovirt.engine.core.dao.VdsDAO mockVdsDao ( ) { org.ovirt.engine.core.dao.VdsDAO mock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.VdsDAO.class ) ; org.mockito.Mockito.when ( mock.getFirstUpRhelForVdsGroup ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vdsFromDb ) ; return mock ; }

Target:
private org.ovirt.engine.core.dao.VdsDao mockVdsDao ( ) { org.ovirt.engine.core.dao.VdsDao mock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.VdsDao.class ) ; org.mockito.Mockito.when ( mock.getFirstUpRhelForVdsGroup ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vdsFromDb ) ; return mock ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPoolDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getvm_pool_id ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPoolDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getVmPoolId ( ) ; }
Source:
public void setAllowConsoleReconnect ( boolean value ) { this . mVmStatic.setAllowConsoleReconnect ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "allowConsoleReconnect" ) ) ; }

Target:
public boolean isAutoStartup ( ) { return vmStatic.isAutoStartup ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; quotaManager.updateUsage ( quotaList ) ; return quotaList ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > searchAuditLogEvents ( ) { return genericSearch ( auditLogDao , false ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > getGraphicsDevices ( ) { if ( ( cachedGraphics ) == null ) { cachedGraphics = org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getBackend ( ) . runInternalQuery ( VdcQueryType.GetGraphicsDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplateId ( ) ) ) . getReturnValue ( ) ; } return cachedGraphics ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > getGraphicsDevices ( ) { if ( ( cachedGraphics ) == null ) { cachedGraphics = org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getBackend ( ) . runInternalQuery ( QueryType.GetGraphicsDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplateId ( ) ) ) . getReturnValue ( ) ; } return cachedGraphics ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; mockMaxPciSlots ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void validateSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; mockMaxPciSlots ( ) ; runAndAssertValidateSuccess ( ) ; }
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.Disk > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.VM ) ( source ) ) : null ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . save ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . addTag ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.AddTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { tagDao.save ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; tagsDirector.addTag ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.AddTagCommand.setSucceeded ( true ) ; }
Source:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { return ( ( org.ovirt.engine.core.utils.ssh.EngineSSHClient ) ( _client ) ) . getHostFingerprint ( ) ; }

Target:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { if ( ( _client ) == null ) { throw new java.net.ConnectException ( "SSH is not connected" ) ; } return ( ( org.ovirt.engine.core.utils.ssh.EngineSSHClient ) ( _client ) ) . getHostFingerprint ( ) ; }
Source:
org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb ) ;

Target:
org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) ;
Source:
void getSessionIdFromHttpSession ( org.ovirt.engine.ui.frontend.communication.StorageCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . retrieveFromHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , callback ) ; }

Target:
void getSessionIdFromHttpSession ( org.ovirt.engine.ui.frontend.communication.StorageCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . retrieveFromHttpSession ( org.ovirt.engine.ui.common.restapi.RestApiSessionManager.SESSION_ID_KEY , callback ) ; }
Source:
public void testRemove ( ) { dao.remove ( existingDynamic.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.DiskImageDynamic result = dao.get ( existingDynamic.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( existingDynamic.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.storage.DiskImageDynamic result = dao.get ( existingDynamic.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand < org.ovirt.engine.core.common.action.VmDiskOperationParameterBase > command ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( command.getDiskDao ( ) . get ( getDiskId ( command ) ) ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand < org.ovirt.engine.core.common.action.VmDiskOperationParameterBase > command ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( diskDao.get ( getDiskId ( command ) ) ) ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , null ) ; }

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

Target:
org.ovirt.engine.core.bll.validator.NetworkValidator getNetworkValidator ( ) { if ( ( networkValidator ) == null ) { networkValidator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( getNetwork ( ) ) ; } return networkValidator ; }
Source:
private void localize ( ) { nameEditor.setLabel ( constants.storageQosName ( ) ) ; descriptionEditor.setLabel ( constants.storageQosDescription ( ) ) ; dataCenterEditor.setLabel ( constants.dataCenterQosPopup ( ) ) ; }

Target:
private void localize ( ) { nameEditor.setLabel ( constants.qosName ( ) ) ; descriptionEditor.setLabel ( constants.qosDescription ( ) ) ; dataCenterEditor.setLabel ( constants.dataCenterQosPopup ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { if ( isPolicyReset ) { updateHeartbeatPolicy ( client.getClientRetryPolicy ( ) . clone ( ) , false ) ; } return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }

Target:
public boolean test ( org.ovirt.vdsm.jsonrpc.client.JsonRpcClient client ) { return ! ( client.isClosed ( ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command == ( getRefreshCommand ( ) ) ) { Refresh ( ) ; UpdatePagingAvailability ( ) ; } }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command == ( getRefreshCommand ( ) ) ) { refreshModel ( ) ; UpdatePagingAvailability ( ) ; } }
Source:
public void testGlusterDcAndNotMatchingCompatiblityVersion ( ) { storagePool.setCompatibilityVersion ( org.ovirt.engine.core.bll.validator.storage.StorageDomainToPoolRelationValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isGlusterSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.DATA_CENTER_GLUSTER_STORAGE_NOT_SUPPORTED_IN_CURRENT_VERSION ) ) ; }

Target:
public void testGlusterDcAndNotMatchingCompatiblityVersion ( ) { storagePool.setCompatibilityVersion ( org.ovirt.engine.core.bll.validator.storage.StorageDomainToPoolRelationValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isGlusterSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.DATA_CENTER_GLUSTER_STORAGE_NOT_SUPPORTED_IN_CURRENT_VERSION ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_LEGACY ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
public int getMaximumRam ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
int getVramMultiplier ( int osId ) ;
Source:
public java.lang.String gethibernation_vol_handle ( ) { return this . hibernation_vol_handle ; }

Target:
public java.lang.Long getLastWatchdogEvent ( ) { return lastWatchdogEvent ; }
Source:
public java.util.Date getGuestLastLogoutTime ( ) { return this . vmDynamic.getGuestLastLogoutTime ( ) ; }

Target:
public void setNumOfIoThreads ( int numOfIoThreads ) { this . vmStatic.setNumOfIoThreads ( numOfIoThreads ) ; }
Source:
public void canDetachInactiveDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false , false ) ) ; }

Target:
public void canDetachInactiveDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertFalse ( cmd.canDetachDomain ( false , false ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.getIsPool ( ) ? value.getReturnVmCommand ( ) : value.getShutdownCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? value.getReturnVmCommand ( ) : value.getShutdownCommand ( ) ; }
Source:
private static org.ovirt.engine.core.common.queries.VdcQueryReturnValue createGetDeviceListReturnValue ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; returnValue.setSucceeded ( true ) ; returnValue.setReturnValue ( luns ) ; return returnValue ; }

Target:
private static org.ovirt.engine.core.common.queries.QueryReturnValue createGetDeviceListReturnValue ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns ) { org.ovirt.engine.core.common.queries.QueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.QueryReturnValue ( ) ; returnValue.setSucceeded ( true ) ; returnValue.setReturnValue ( luns ) ; return returnValue ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBricksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntity ( int index ) { return helper.getBrickEntity ( index , false ) ; }
Source:
public static void GetDefaultPmProxyPreferences ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.FenceProxyDefaultPreferences , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) , query ) ; }

Target:
public static void getDefaultPmProxyPreferences ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.FenceProxyDefaultPreferences , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) , query ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAll ( ) { return getAll ( null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAll ( ) { return getAll ( null , false , VmEntityType.TEMPLATE ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.AdUser > getUsersFromDomain ( ) { return asCollection ( org.ovirt.engine.core.common.businessentities.AdUser.class , getEntity ( java.util.ArrayList.class , SearchType.AdUser , getSearchPattern ( "*" , getCurrentDomain ( ) ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LdapUser > getUsersFromDomain ( ) { return asCollection ( org.ovirt.engine.core.common.businessentities.LdapUser.class , getEntity ( java.util.ArrayList.class , SearchType.AdUser , getSearchPattern ( "*" , getCurrentDomain ( ) ) ) ) ; }
Source:
private void onFinish ( org.ovirt.engine.core.compat.Guid cmdId ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getCommand ( ) . getParameters ( ) . getImageId ( ) , ImageStatus.OK ) ; getCommand ( ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
private void onFinish ( org.ovirt.engine.core.compat.Guid cmdId ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( org.ovirt.engine.core.bll.storage.CloneSingleCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getImageId ( ) , ImageStatus.OK ) ; org.ovirt.engine.core.bll.storage.CloneSingleCinderDiskCommandCallback.getCommand ( ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.async_tasks task ) { logNullParameters ( task ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource parameterSource = getTaskParameterSource ( task ) ; getCallsHandler ( ) . executeModification ( "Updateasync_tasks" , parameterSource ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.async_tasks task ) { org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.logNullParameters ( task ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource parameterSource = getTaskParameterSource ( task ) ; getCallsHandler ( ) . executeModification ( "Updateasync_tasks" , parameterSource ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; }
Source:
public void setup ( ) { org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION ) ; validator = new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ; }

Target:
public void setup ( ) { org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ) ; org.mockito.Mockito.doReturn ( dbFacade ) . when ( validator ) . getDbFacade ( ) ; }
Source:
public void testGetTempaltesForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_1 , VmEntityType.TEMPLATE ) ; org.junit.Assert.assertTrue ( "A Tempalte should not be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetTemplatesForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_1 , VmEntityType.TEMPLATE ) ; org.junit.Assert.assertTrue ( "A Template should be fetched for the specified storage domain" , ( ! ( ovfEntityDataList.isEmpty ( ) ) ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { return storagePool.getName ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult interfaceByNameExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) . when ( ( ( ( iface ) == null ) || ( ( iface.getName ( ) ) == null ) ) ) ; }

Target:
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 ) ) ) ; }
Source:
public void testIsNetworkInSyncWhenMtuSameViaDefault ( ) { org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface testedInstanceWithSameNonQosValues = createTestedInstanceWithSameNonQosValues ( ) ; iface.setMtu ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.DEFAULT_MTU_VALUE ) ; network.setMtu ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.VALUE_DENOTING_THAT_MTU_SHOULD_BE_SET_TO_DEFAULT_VALUE ) ; org.junit.Assert.assertThat ( testedInstanceWithSameNonQosValues.isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenMtuSameViaDefault ( ) { org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface testedInstanceWithSameNonQosValues = createTestedInstanceWithSameNonQosValues ( ) ; iface.setMtu ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.DEFAULT_MTU_VALUE ) ; network.setMtu ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.VALUE_DENOTING_THAT_MTU_SHOULD_BE_SET_TO_DEFAULT_VALUE ) ; org.hamcrest.MatcherAssert.assertThat ( testedInstanceWithSameNonQosValues.isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
java.lang.String numOfVmsInPoolInvalidWithQuestionMarks ( int maxNumOfVms , int poolNameLength , int numberOfQuestionMarks ) ;

Target:
java.lang.String poolNameWithQuestionMarksLengthInvalid ( int maxLength , int vmsInPool , int numberOfQuestionMarks ) ;
Source:
private org.ovirt.engine.core.common.businessentities.Quota mockVCPUQuotaGlobalNotExceeded ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.VCPU_QUOTA_GLOBAL_NOT_EXCEEDED ) ; quota.setGlobalQuotaVdsGroup ( getQuotaVdsGroup ( 100 , 18 , org.ovirt.engine.core.bll.quota.QuotaManagerTest.UNLIMITED_MEM , 0 ) ) ; return quota ; }

Target:
private org.ovirt.engine.core.common.businessentities.Quota mockVCPUQuotaGlobalNotExceeded ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.VCPU_QUOTA_GLOBAL_NOT_EXCEEDED ) ; quota.setGlobalQuotaCluster ( getQuotaCluster ( 100 , 18 , org.ovirt.engine.core.bll.quota.QuotaManagerTest.UNLIMITED_MEM , 0 ) ) ; return quota ; }
Source:
protected boolean checkIfRoleIsReadOnly ( java.util.List < java.lang.String > CanDoActionMessages ) { boolean result = false ; if ( getRole ( ) . isReadonly ( ) ) { result = true ; CanDoActionMessages.add ( EngineMessage.ACTION_TYPE_FAILED_ROLE_IS_READ_ONLY.toString ( ) ) ; } return result ; }

Target:
protected boolean checkIfRoleIsReadOnly ( java.util.List < java.lang.String > validationMessages ) { boolean result = false ; if ( getRole ( ) . isReadonly ( ) ) { result = true ; validationMessages.add ( EngineMessage.ACTION_TYPE_FAILED_ROLE_IS_READ_ONLY.toString ( ) ) ; } return result ; }
Source:
public void clearWindowModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > source , java.lang.String propertyName ) { if ( VmListModel.DISK_WINDOW.equals ( propertyName ) ) { source.setDiskWindow ( null ) ; } else { super . clearWindowModel ( source , propertyName ) ; } }

Target:
public void clearWindowModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > source , java.lang.String propertyName ) { if ( VmBaseListModel.DISK_WINDOW.equals ( propertyName ) ) { source.setDiskWindow ( null ) ; } else { super . clearWindowModel ( source , propertyName ) ; } }
Source:
public org.ovirt.engine.api.model.VM get ( ) { return performGet ( VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.VM get ( ) { org.ovirt.engine.api.model.VM vm = performGet ( VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( guid ) ) ; return removeRestrictedInfo ( vm ) ; }