auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testParseNegative3 ( ) { org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.parse ( "lorem ipsum" ) ; }

Target:
public void testParseNegative4 ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.parse ( "include:message:_badSeverityTest_(kuku:pupu)" ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmList ( java.lang.String url , java.lang.String username , java.lang.String password ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmList ( java.lang.String uri , java.lang.String username , java.lang.String password ) ;
Source:
public java.lang.String toString ( ) { return ( "Host[" + ( ( mVdsStatic ) == null ? "null" : mVdsStatic.getvds_name ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( "Host[" + ( ( mVdsStatic ) == null ? "null" : mVdsStatic.getVdsName ( ) ) ) + "]" ; }
Source:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmStatistics o ) { return org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityGuidComparator.< org.ovirt.engine.core.common.businessentities.VmStatistics > newInstance ( ) . compare ( this , o ) ; }

Target:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmStatistics o ) { return org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityComparator.< org.ovirt.engine.core.common.businessentities.VmStatistics , org.ovirt.engine.core.compat.Guid > newInstance ( ) . compare ( this , o ) ; }
Source:
private void translateErrors ( final java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( ( ( java.util.ArrayList < java.lang.String > ) ( translateError ( retVal ) ) ) ) ; } }

Target:
public java.lang.String translateEngineFault ( final org.ovirt.engine.core.common.errors.EngineFault fault ) { return getVdsmErrorsTranslator ( ) . translateErrorTextSingle ( ( ( fault.getError ( ) ) == null ? fault.getMessage ( ) : fault.getError ( ) . toString ( ) ) ) ; }
Source:
public void removeSessionItem ( java.lang.String key ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorageImpl.sessionStorage ) != null ) { org.ovirt.engine.ui.common.system.ClientStorageImpl.sessionStorage.removeItem ( key ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( key ) ; } }

Target:
public void setSessionItem ( java.lang.String key , java.lang.String value ) { setSessionItemImpl ( getPrefixedKey ( key ) , value ) ; }
Source:
protected void setActionMessageParameters ( ) { addCustomValue ( GlusterConstants.VOLUME_SNAPSHOT_NAME , org.ovirt.engine.core.bll.gluster.GlusterVolumeSnapshotCommandBase.getParameters ( ) . getSnapshotName ( ) ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getCustomValues ( ) { addCustomValue ( GlusterConstants.VOLUME_SNAPSHOT_NAME , org.ovirt.engine.core.bll.gluster.GlusterVolumeSnapshotCommandBase.getParameters ( ) . getSnapshotName ( ) ) ; return super . getCustomValues ( ) ; }
Source:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testChangeToExistingName ( ) { prepareVmToPassValidate ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "validate should have failed with vm name already in use." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public void ClearTasks ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = GetCurrentActionTypeTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.ClearAsyncTask ( ) ; } StartPollingNextTask ( ) ; } }

Target:
public void ClearTasks ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = GetCurrentActionTypeTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.clearAsyncTask ( ) ; } StartPollingNextTask ( ) ; } }
Source:
public void validateSucceeds ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) , null ) ) ; prepareMocks ( command ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { command.getParameters ( ) . setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) ; prepareMocks ( command ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StoragePool value ) { privateEntity = value ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StoragePool value ) { privateEntity = value ; initSelectedMacPool ( ) ; }
Source:
protected org.ovirt.engine.core.bll.pm.FenceAgentExecutor createAgentExecutor ( ) { return new org.ovirt.engine.core.bll.pm.FenceAgentExecutor ( fencedHost , fencingPolicy ) ; }

Target:
protected org.ovirt.engine.core.bll.pm.FenceAgentExecutor createAgentExecutor ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.pm.FenceAgentExecutor ( fencedHost , fencingPolicy ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Job.getJobsByCorrelationId" , org.ovirt.engine.core.common.job.Job.class ) . setParameter ( "correlationId" , correlationId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "correlation_id" , correlationId ) ; return getCallsHandler ( ) . executeReadList ( "GetJobsByCorrelationId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
public void noVdsGroup ( ) { simulateVdsGroupDoesNotExist ( ) ; assertValidateFailure ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }

Target:
public void noCluster ( ) { simulateClusterDoesNotExist ( ) ; assertValidateFailure ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }
Source:
protected static org.ovirt.engine.api.restapi.resource.BackendVmReportedDevicesResource getCollection ( ) { return new org.ovirt.engine.api.restapi.resource.BackendVmReportedDevicesResource ( org.ovirt.engine.api.restapi.resource.AbstractBackendDisksResourceTest.PARENT_ID ) ; }

Target:
protected static org.ovirt.engine.api.restapi.resource.BackendVmReportedDevicesResource getCollection ( ) { return new org.ovirt.engine.api.restapi.resource.BackendVmReportedDevicesResource ( org.ovirt.engine.api.restapi.resource.BackendVmReportedDeviceResourceTest.VM_ID ) ; }
Source:
public java.lang.Boolean getValue ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { if ( ! ( networkClusterModel.isRequired ( ) ) ) { return false ; } } return true ; }

Target:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { if ( networkClusterModel.getIsChangable ( ) ) { networkClusterModel.setAttached ( value ) ; } } refreshClustersTable ( ) ; }
Source:
public java.lang.String GetTagNamesAndChildrenNamesByRegExp ( java.lang.String tagNameRegExp ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagNamesAndChildrenNamesByRegExp ( tagNameRegExp ) ; }

Target:
public java.lang.String getTagNamesAndChildrenNamesByRegExp ( java.lang.String tagNameRegExp ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagNamesAndChildrenNamesByRegExp ( tagNameRegExp ) ; }
Source:
public static boolean IsMatch ( java.lang.String string , java.lang.String expression , org.ovirt.engine.core.compat.RegexOptions options ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public static boolean isMatch ( java.lang.String string , java.lang.String expression , org.ovirt.engine.core.compat.RegexOptions options ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }
Source:
public void initTemplate ( ) { setupTemplate ( vm , getModel ( ) . getTemplate ( ) ) ; }

Target:
public int getHostCpu ( ) { return hostCpu ; }
Source:
protected void UpdateCustomProperties ( ) { super . UpdateCustomProperties ( ) ; updateCustomPropertySheet ( ) ; }

Target:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; UpdateMinAllocatedMemory ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( null , "" ) ; updateCpuPinningVisibility ( ) ; }
Source:
protected org.ovirt.engine.api.model.VM getEntity ( int index ) { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; vm.setId ( GUIDS [ index ] ) ; vm.setName ( NAMES [ index ] ) ; return vm ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index ) { org.ovirt.engine.api.restapi.resource.VM vm = new org.ovirt.engine.api.restapi.resource.VM ( ) ; vm.setId ( GUIDS [ index ] ) ; vm.setName ( NAMES [ index ] ) ; return vm ; }
Source:
public boolean isSplitted ( ) { return ( ( getVmNumaNode ( ) . getVdsNumaNodeList ( ) ) != null ) && ( ( getVmNumaNode ( ) . getVdsNumaNodeList ( ) . size ( ) ) > 1 ) ; }

Target:
public java.lang.Integer getHostNodeIndex ( ) { return hostNodeIndex ; }
Source:
protected void afterExecute ( java.lang.Runnable r , java.lang.Throwable t ) { super . afterExecute ( r , t ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; }

Target:
protected void afterExecute ( java.lang.Runnable r , java.lang.Throwable t ) { super . afterExecute ( r , t ) ; org.ovirt.engine.core.utils.CorrelationIdTracker.clean ( ) ; }
Source:
public void testValidateNotRemovingUsedNetworkByVmsWhenNotUsedByVms ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ) ; org.junit.Assert.assertThat ( validator.validateNotRemovingUsedNetworkByVms ( "removedNet" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateNotRemovingUsedNetworkByVmsWhenNotUsedByVms ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateNotRemovingUsedNetworkByVms ( "removedNet" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml vmCountWithMigrating ( java.lang.String vmCountStr , java.lang.String vmMigratingStr , java.lang.String title , com.google.gwt.safehtml.shared.SafeHtml image ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml vmCountWithMigrations ( java.lang.String title , com.google.gwt.safehtml.shared.SafeHtml incomingMigrations , java.lang.String vmCountStr , com.google.gwt.safehtml.shared.SafeHtml outgoingMigrations ) ;
Source:
protected boolean canDoAction ( ) { return ( ( ( super . canDoAction ( ) ) && ( VdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return ( ( ( super . canDoAction ( ) ) && ( vdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.vm_pools object ) { return java.lang.Integer.toString ( object.getvm_running_count ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmPool object ) { return java.lang.Integer.toString ( object.getvm_running_count ( ) ) ; }
Source:
public static void resume ( org.ovirt.engine.core.utils.transaction.Transaction transaction ) { try { org.ovirt.engine.core.utils.transaction.TransactionManager tm = org.ovirt.engine.core.utils.transaction.TransactionSupport.findTransactionManager ( ) ; tm.resume ( transaction ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( "Unable to resume transaction" , e ) ; } }

Target:
public static void resume ( javax.transaction.Transaction transaction ) { try { javax.transaction.TransactionManager tm = org.ovirt.engine.core.utils.transaction.TransactionSupport.findTransactionManager ( ) ; tm.resume ( transaction ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( "Unable to resume transaction" , e ) ; } }
Source:
public void testLogOffDoesntLog ( ) { org.ovirt.engine.core.utils.log.Log log = org.mockito.Mockito.mock ( org.ovirt.engine.core.utils.log.Log.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.log ( log , LogLevel.OFF , "{0}" , new java.lang.Object ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( log ) ; }

Target:
public void testLogOffDoesntLog ( ) { org.slf4j.Logger log = org.mockito.Mockito.mock ( org.slf4j.Logger.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.log ( log , LogLevel.OFF , "{}" , new java.lang.Object ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( log ) ; }
Source:
private org.ovirt.engine.core.bll.ImportVmTemplateCommand setupDiskSpaceTest ( final int extraDiskSpaceRequired ) { mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , extraDiskSpaceRequired ) ; return new org.ovirt.engine.core.bll.TestHelperImportVmTemplateCommand ( createParameters ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.ImportVmTemplateCommand setupDiskSpaceTest ( final int extraDiskSpaceRequired ) { return setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS , extraDiskSpaceRequired ) ; }
Source:
public void refreshRunningVmsWithDiskProfile ( org.ovirt.engine.core.compat.Guid diskProfileId , org.ovirt.engine.core.common.businessentities.qos.StorageQos newQos ) { refreshVmsStorageQos ( getRunningVmDiskImageMapWithProfiles ( java.util.Collections.singleton ( diskProfileId ) ) , newQos ) ; }

Target:
public void refreshRunningVmsWithDiskProfile ( org.ovirt.engine.core.compat.Guid diskProfileId ) { refreshVmsStorageQos ( getRunningVmDiskImageMapWithProfiles ( java.util.Collections.singleton ( diskProfileId ) ) , storageQosDao.getQosByDiskProfileId ( diskProfileId ) ) ; }
Source:
static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { throw new java.lang.RuntimeException ( ( "Could not load audit log messages from the file " + ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ) ) ; } }

Target:
static java.util.ResourceBundle getResourceBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.getResourceBundleName ( ) ) ; } catch ( java.util.MissingResourceException e ) { throw new java.lang.RuntimeException ( ( ( "Could not find ResourceBundle file '" + ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.getResourceBundleName ( ) ) ) + "'." ) ) ; } }
Source:
public void testVersionedValue ( ) { org.junit.Assert.assertEquals ( 1024 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 777 , null ) ) ; org.junit.Assert.assertEquals ( 512 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 777 , Version.v3_5 ) ) ; }

Target:
public void testVersionedValue ( ) { org.junit.Assert.assertEquals ( 1024 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 777 , null ) ) ; org.junit.Assert.assertEquals ( 512 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 777 , Version.v3_6 ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VM v ) { return ! ( vdsId.equals ( v.getdedicated_vm_for_vds ( ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VM v ) { return ! ( vdsId.equals ( v.getDedicatedVmForVds ( ) ) ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) . focusInput ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.popupResourcesToCleanup.add ( org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.popupResourcesToCleanup.add ( model ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) . focusInput ( ) ; }
Source:
public java.lang.String getName ( ) { return getVmName ( ) ; }

Target:
public void setVncKeyboardLayout ( java.lang.String vncKeyboardLayout ) { vmStatic.setVncKeyboardLayout ( vncKeyboardLayout ) ; }
Source:
public void setnum_of_cpus ( int value ) { }

Target:
public int getNumOfSockets ( ) { return this . vmStatic.getNumOfSockets ( ) ; }
Source:
public void testAdjustLegacySecureChannels ( ) { java.lang.String legacyChannels = "smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir" ; java.lang.String correctChannels = "main,display,inputs,cursor,playback,record,smartcard,usbredir" ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }

Target:
public void testAdjustLegacySecureChannels ( ) { java.lang.String legacyChannels = "smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir" ; java.lang.String correctChannels = "main,display,inputs,cursor,playback,record,smartcard,usbredir" ; org.junit.jupiter.api.Assertions.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vdsId , NonOperationalReason.STORAGE_DOMAIN_UNREACHABLE , true , true , domainId ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vdsId , NonOperationalReason.STORAGE_DOMAIN_UNREACHABLE , true , true , domainId , java.util.Collections.singletonMap ( "StorageDomainNames" , storageDomain.getStorageName ( ) ) ) ; }
Source:
public void resetCompensation ( ) ;

Target:
void afterCompensation ( ) ;
Source:
public java.lang.String getDiskAlias ( ) { return disk.getDiskAlias ( ) ; }

Target:
public java.lang.String getDiskAlias ( ) { return getDisk ( ) . getDiskAlias ( ) ; }
Source:
protected void initDetailModels ( ) { super . initDetailModels ( ) ; org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.ClusterPolicyClusterListModel ( ) ) ; setDetailModels ( list ) ; }

Target:
private void setDetailList ( final org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.ClusterPolicyClusterListModel clusterPolicyClusterListModel ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasEntity < org.ovirt.engine.core.common.scheduling.ClusterPolicy > > list = new java.util.ArrayList < > ( ) ; list.add ( clusterPolicyClusterListModel ) ; setDetailModels ( list ) ; }
Source:
public void setStyleClass ( java.lang.String styleClass ) { this . styleClass = ( styleClass == null ) ? "" : styleClass ; }

Target:
protected com.google.gwt.safehtml.shared.SafeHtml getRenderedImage ( com.google.gwt.resources.client.ImageResource value ) { return com.google.gwt.user.client.ui.AbstractImagePrototype.create ( value ) . getSafeHtml ( ) ; }
Source:
public void setbuild_name ( java.lang.String value ) { this . buildName = value ; this . getVersion ( ) . setBuildName ( value ) ; }

Target:
public java.lang.String getbuild_name ( ) { return this . buildName ; }
Source:
protected void attemptToActivateDomain ( ) { org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase activateParameters = new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand.getStorageDomain ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand.getStoragePool ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ActivateStorageDomain , activateParameters ) ; }

Target:
protected void attemptToActivateDomain ( ) { org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase activateParameters = new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand.getStorageDomain ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand.getStoragePool ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand.getBackend ( ) . runInternalAction ( VdcActionType.ActivateStorageDomain , activateParameters ) ; }
Source:
void setsize ( long value ) ;

Target:
void setSize ( long value ) ;
Source:
void AddError ( java.lang.String error ) ;

Target:
void addError ( java.lang.String error ) ;
Source:
private java.lang.String getTemplateExclusiveLockMessage ( ) { return new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_IS_BEING_REMOVED.name ( ) ) . append ( java.lang.String.format ( "$TemplateName %1$s" , org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getName ( ) ) ) . toString ( ) ; }

Target:
private java.lang.String getTemplateExclusiveLockMessage ( ) { return new java.lang.StringBuilder ( EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_IS_BEING_REMOVED.name ( ) ) . append ( java.lang.String.format ( "$TemplateName %1$s" , org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getName ( ) ) ) . toString ( ) ; }
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; templateValidate ( ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; templateValidate ( ) ; instanceTypeManager = new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.NewPoolInstanceTypeManager ( getModel ( ) ) ; }
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.VDS , isCaseSensitiveSearch ( ) ) ; 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 ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.VDS , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc fenceSpmStorage ( java.lang.String spUUID , int prevID , java.lang.String prevLVER ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc merge ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > drive , java.lang.String baseVolUUID , java.lang.String topVolUUID , java.lang.String bandwidth , java.lang.String jobUUID ) ;
Source:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return super . createTask ( taskId , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public void handleFailure ( ) { updateDiskStatus ( ImageStatus.ILLEGAL ) ; removeDisk ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage_server_connections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDAO ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage_server_connections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }
Source:
private boolean bondIsBeingRemoved ( java.lang.String bondName ) { for ( org.ovirt.engine.core.common.businessentities.network.Bond removedBond : params.getRemovedBonds ( ) ) { if ( bondName.equals ( removedBond.getName ( ) ) ) { return true ; } } return false ; }

Target:
private boolean isBondRemoved ( java.lang.String bondName ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface removedBond : removedBondVdsNetworkInterface ) { if ( bondName.equals ( removedBond.getName ( ) ) ) { return true ; } } return false ; }
Source:
public void testValidateImageNotInTemplateTrue ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }

Target:
public void testValidateImageNotInTemplateTrue ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImageAndGetId ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }
Source:
public void editProfiles ( org.ovirt.engine.ui.uicommonweb.models.ListModel profiles , org.ovirt.engine.core.compat.Version dcCompatibilityVersion , org.ovirt.engine.core.compat.Guid dcId , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel defaultProfile ) { profilesEditor.edit ( profiles , dcCompatibilityVersion , dcId , defaultProfile ) ; }

Target:
public T flush ( ) { profilesEditor.flush ( ) ; return null ; }
Source:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) { macPool.setDefaultPool ( false ) ; org.junit.Assert.assertThat ( macPoolValidator.defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) { macPool.setDefaultPool ( false ) ; org.hamcrest.MatcherAssert.assertThat ( macPoolValidator.defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Disk createDisk ( org.ovirt.engine.core.compat.Guid id , boolean boot ) { org.ovirt.engine.core.common.businessentities.Disk disk = new org.ovirt.engine.core.common.businessentities.DiskImageBase ( ) ; disk.setId ( id ) ; disk.setBoot ( boot ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.Disk createDisk ( org.ovirt.engine.core.compat.Guid id , boolean boot ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImageBase ( ) ; disk.setId ( id ) ; disk.setBoot ( boot ) ; return disk ; }
Source:
public void externalNetworkIsNotNewInDataCenter ( ) throws java.lang.Exception { externalNetworkNewInDataCenterTestSetup ( true ) ; org.junit.Assert.assertThat ( validator.externalNetworkNewInDataCenter ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_ALREADY_EXISTS ) ) ; }

Target:
public void externalNetworkIsNotNewInDataCenter ( ) throws java.lang.Exception { externalNetworkNewInDataCenterTestSetup ( true ) ; org.junit.Assert.assertThat ( validator.externalNetworkNewInDataCenter ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_ALREADY_EXISTS ) ) ; }
Source:
public void setdepartment ( java.lang.String value ) { this . department = value ; }

Target:
public void setExternalId ( byte [ ] externalId ) { this . externalId = externalId ; }
Source:
public void setUp ( ) { org.ovirt.engine.core.bll.VdsHandler.init ( ) ; }

Target:
public void setUp ( ) { vdsHandler.init ( ) ; }
Source:
protected org.ovirt.engine.api.model.DataCenter deprecatedPopulate ( org.ovirt.engine.api.model.DataCenter model , org.ovirt.engine.core.common.businessentities.storage_pool entity ) { return parent.deprecatedPopulate ( model , entity ) ; }

Target:
protected org.ovirt.engine.api.model.DataCenter doPopulate ( org.ovirt.engine.api.model.DataCenter model , org.ovirt.engine.core.common.businessentities.StoragePool entity ) { return parent.doPopulate ( model , entity ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notLabeled ( ) { return ( network.getLabel ( ) ) == null ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notLabeled ( ) { return ! ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.HotPlugDiskToVmCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.HotPlugDiskToVmCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_LOCKED ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType getDiskType ( ) { return getDisk ( ) . getDiskStorageType ( ) ; }

Target:
public java.lang.String getDiskAlias ( ) { if ( ( getDisk ( ) ) != null ) { return getDisk ( ) . getDiskAlias ( ) ; } return "" ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface3 ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , vlanNetwork ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmAndNonVmAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM , NetworkType.NON_VM ) , vmNetwork1 , nonVmNetwork1 ) ; }
Source:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker CreateBackendSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; if ( ( org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ) == null ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.SearchResultsLimit ) ) ; } return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ; }

Target:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker createBackendSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; if ( ( org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ) == null ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.SearchResultsLimit ) ) ; } return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackVolumeProviderResource getOpenStackVolumeProvider ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( id ) ) ; }

Target:
protected org.ovirt.engine.api.model.OpenStackVolumeProvider doPopulate ( org.ovirt.engine.api.model.OpenStackVolumeProvider model , org.ovirt.engine.core.common.businessentities.Provider entity ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = getStoragePoolIdByStorageDomainName ( entity.getName ( ) ) ; if ( storagePool != null ) { model.setDataCenter ( org.ovirt.engine.api.restapi.types.DataCenterMapper.map ( storagePool , null ) ) ; } return model ; }
Source:
public void setDetachableIconVisible ( boolean visible ) { ( ( org.ovirt.engine.ui.common.widget.HasDetachable ) ( contentWidget ) ) . setDetachableIconVisible ( visible ) ; }

Target:
public void setDetachableIconVisible ( boolean visible ) { getContentWidget ( ) . setDetachableIconVisible ( visible ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { addCustomValue ( "AuditLogId" , java.lang.String.valueOf ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ) ; return org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_AUDIT_LOG : org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_AUDIT_LOG_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { addCustomValue ( "AuditLogId" , java.lang.String.valueOf ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ) ; return org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.UNASSIGNED : org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_AUDIT_LOG_FAILED ; }
Source:
protected boolean isSlave ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String masterName ) { return ( ( iface.getBondName ( ) ) != null ) && ( iface.getBondName ( ) . equals ( masterName ) ) ; }

Target:
org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig findVfsConfig ( org.ovirt.engine.core.compat.Guid nicId ) { final java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > hostNicVfsConfigs = findHostNicVfsConfigs ( ) ; return hostNicVfsConfigs.get ( nicId ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , effectiveHostNetworkQos ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , mockNetworkExclusivenessValidatorResolver ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig get ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig vfsConfig = super . get ( id ) ; return vfsConfig ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig getByNicId ( org.ovirt.engine.core.compat.Guid nicId ) { return getCallsHandler ( ) . executeRead ( "GetVfsConfigByNicId" , createEntityRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "nic_id" , nicId ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel flush ( ) { neutronAgentWidget.flush ( ) ; vmwarePropertiesWidget.flush ( ) ; return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel flush ( ) { neutronAgentWidget.flush ( ) ; vmwarePropertiesWidget.flush ( ) ; kvmPropertiesWidget.flush ( ) ; return driver.flush ( ) ; }
Source:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_SUSPENDED ) ) ; }

Target:
public void shouldDetectClusterUpgradeIsEnabled ( ) { final org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setCompatibilityVersion ( org.ovirt.engine.core.bll.validator.InClusterUpgradeValidatorTest.VERSION_1_1 ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkClusterUpgradeIsEnabled ( cluster ) , org.hamcrest.core.Is.is ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.MIXED_HOST_VERSIONS_NOT_ALLOWED ) ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface FindInterfaceByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getName ( ) , name ) ) { return i ; } } return null ; }
Source:
public static java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.executeAsyncCommand ( actionType , parameters ) ; }

Target:
public static java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.executeAsyncCommand ( actionType , parameters , cmdContext ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult exists ( ) { if ( ( vds ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.VDS_DOES_NOT_EXIST ) ; } return ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult exists ( ) { if ( ( vds ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.VDS_DOES_NOT_EXIST ) ; } return ValidationResult.VALID ; }
Source:
protected void setUpStorageDomainQueryExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { STORAGE_DOMAIN_ID } , new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ) ; }

Target:
protected void setUpStorageDomainQueryExpectations ( ) { setUpEntityQueryExpectations ( QueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { STORAGE_DOMAIN_ID } , new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ) ; }
Source:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver , boolean block ) { return performCreate ( task , taskParams , entityResolver , block , null ) ; }

Target:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.ActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver , boolean block ) { return performCreate ( task , taskParams , entityResolver , block , null ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmNicsServer getNicsResource ( ) { return new org.ovirt.engine.api.v3.servers.V3VmNicsServer ( id , delegate.getNicsResource ( ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmNicsServer getNicsResource ( ) { return new org.ovirt.engine.api.v3.servers.V3VmNicsServer ( id , getDelegate ( ) . getNicsResource ( ) ) ; }
Source:
java.lang.String getSessionId ( ) { return clientStorage.getLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY ) ; }

Target:
public void onSuccess ( java.lang.String result ) { if ( result != null ) { restApiSessionId = result ; processSessionId ( result ) ; } else { processSessionIdException ( ) ; } }
Source:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }

Target:
public final void setSessionValid ( java.lang.String sessionId , boolean valid ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SESSION_VALID_PARAMETER_NAME , valid ) ; }
Source:
public void testUpdateWithNonGuidId ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "hosts" , "00000001-0001-0001-0001-000000000011" , "nics" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/apidoc#services/host_nic/methods/update" , fault.getDetail ( ) ) ; }

Target:
public void testUpdateWithNonGuidId ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "hosts" , "00000001-0001-0001-0001-000000000011" , "nics" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; org.junit.Assert.assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/apidoc#services/host_nic/methods/update" , fault.getDetail ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( java.lang.Object object ) { java.lang.String problem = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getProblem ( ) ; return problem != null ? com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( problem ) : null ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( java.lang.Object object ) { java.lang.String problem = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getWarning ( ) ; return problem != null ? com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( problem ) : null ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllVMsForStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.GetVmsByStorageDomainQuery.getDbFacade ( ) . getVmDao ( ) . getAllForStorageDomain ( domainId ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllVMsForStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.GetVmsByStorageDomainQuery.getDbFacade ( ) . getVmDao ( ) . getAllForStorageDomain ( domainId ) ; }
Source:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return new java.util.ArrayList < java.lang.String > ( ) ; }

Target:
public boolean isDeleted ( ) { return deleted ; }
Source:
public void setExplanation ( com.google.gwt.safehtml.shared.SafeHtml text ) { infoIcon.setText ( text ) ; }

Target:
public void setExplanation ( com.google.gwt.safehtml.shared.SafeHtml text ) { infoIcon.setTitle ( text.asString ( ) ) ; }
Source:
java.lang.String decrypt ( java.lang.String value ) throws java.lang.Exception { return org.ovirt.engine.core.utils.crypt.EncryptionUtils.decrypt ( value , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.keyStoreURL , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.keyStorePass , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.certAlias ) ; }

Target:
java.lang.String decrypt ( java.lang.String value ) throws java.lang.Exception { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.decrypt ( value ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.StorageDomain , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.StorageDomain , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }