auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testNotExternalNetworkSucceedsForNonExternalNetwork ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( validator.notExternalNetwork ( ) , org.hamcrest.CoreMatchers.is ( ValidationResult.VALID ) ) ; }

Target:
public void testNotExternalNetworkSucceedsForNonExternalNetwork ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public int getHighUtilization ( ) { return this . highUtilization ; }

Target:
public boolean isSpm ( ) { return ( _spm_status ) == ( VdsSpmStatus.SPM ) ; }
Source:
private boolean validStaticAddressDetails ( org.ovirt.engine.core.common.businessentities.network.IPv4Address iPv4Address ) { return ! ( ( org.apache.commons.lang.StringUtils.isEmpty ( iPv4Address.getAddress ( ) ) ) || ( org.apache.commons.lang.StringUtils.isEmpty ( iPv4Address.getNetmask ( ) ) ) ) ; }

Target:
private boolean validStaticIpv4AddressDetails ( org.ovirt.engine.core.common.businessentities.network.IPv4Address iPv4Address ) { return ! ( ( org.apache.commons.lang.StringUtils.isEmpty ( iPv4Address.getAddress ( ) ) ) || ( org.apache.commons.lang.StringUtils.isEmpty ( iPv4Address.getNetmask ( ) ) ) ) ; }
Source:
public static boolean isWindowsOsType ( java.lang.Integer osType ) { if ( osType == null ) { return false ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.windowsOsIds.contains ( osType ) ; }

Target:
public boolean isWindowsOsType ( java.lang.Integer osType ) { if ( osType == null ) { return false ; } return windowsOsIds.contains ( osType ) ; }
Source:
private org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDao getGlusterVolumeSnapshotConfigDao ( ) { return getDbFacade ( ) . getGlusterVolumeSnapshotConfigDao ( ) ; }

Target:
public boolean hasBricks ( org.ovirt.engine.core.compat.Guid serverId ) { return ( glusterBrickDao.getGlusterVolumeBricksByServerId ( serverId ) . size ( ) ) > 0 ; }
Source:
public void testStartFence ( ) throws java.lang.Exception { doTestFence ( FenceType.START , VdcActionType.StartVds , FenceActionType.Start ) ; }

Target:
public void testStartFence ( ) throws java.lang.Exception { doTestFence ( FenceType.START , VdcActionType.StartVds , FenceActionType.START ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.storage.Disk > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk.SubTabDiskPermissionPresenter.constants.diskPermissionSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk.SubTabDiskPermissionPresenter.constants.diskPermissionSubTabLabel ( ) , 4 ) ; }
Source:
protected static void SetImageStatus ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage , org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { if ( diskImage != null ) { diskImage.setimageStatus ( imageStatus ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . update ( diskImage.getImage ( ) ) ; } }

Target:
protected void MarkImageAsIllegal ( ) { setImageStatus ( ImageStatus.ILLEGAL ) ; }
Source:
protected void emptyRoot ( com.google.gwt.user.client.ui.TreeItem rootItem ) { }

Target:
protected com.google.gwt.user.client.ui.TreeItem getEmptyRoot ( ) { return null ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return headerText ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return renderedHeaderText ; }
Source:
public void testSchedule ( ) throws java.lang.Exception { org.junit.Assert.assertNotNull ( schedulingManager.get ( ) ) ; }

Target:
public void testSchedule ( ) throws java.lang.Exception { org.junit.Assert.assertNotNull ( schedulingManager.get ( ) ) ; org.mockito.Mockito.verify ( schedulingManager.get ( ) ) . init ( ) ; }
Source:
private void updateQosChangeability ( ) { getQosModel ( ) . setIsChangable ( ( ( getQosOverridden ( ) . getEntity ( ) ) && ( getQosOverridden ( ) . getIsChangable ( ) ) ) ) ; }

Target:
private void updateQosChangeability ( ) { getQosModel ( ) . setIsChangable ( ( ( ( getQosOverridden ( ) . getIsAvailable ( ) ) && ( getQosOverridden ( ) . getIsChangable ( ) ) ) && ( getQosOverridden ( ) . getEntity ( ) ) ) ) ; }
Source:
private void initializeResouceIcons ( org.ovirt.engine.ui.common.CommonApplicationResources resources ) { pinnedPartialVNumaIcon = resources.darkPinnedPartialVNumaIcon ( ) ; pinnedVNumaIcon = resources.darkPinnedVNumaIcon ( ) ; partialVNumaIcon = resources.darkPartialVNumaIcon ( ) ; vNumaIcon = resources.darkVNumaIcon ( ) ; }

Target:
private void initializeResouceIcons ( ) { pinnedPartialVNumaIcon = org.ovirt.engine.ui.common.view.popup.numa.VirtualNumaPanel.resources.darkPinnedPartialVNumaIcon ( ) ; pinnedVNumaIcon = org.ovirt.engine.ui.common.view.popup.numa.VirtualNumaPanel.resources.darkPinnedVNumaIcon ( ) ; partialVNumaIcon = org.ovirt.engine.ui.common.view.popup.numa.VirtualNumaPanel.resources.darkPartialVNumaIcon ( ) ; vNumaIcon = org.ovirt.engine.ui.common.view.popup.numa.VirtualNumaPanel.resources.darkVNumaIcon ( ) ; }
Source:
private void ClearTimer ( org.ovirt.engine.core.compat.Guid domainId ) { java.lang.String jobId = _timers.remove ( domainId ) ; if ( jobId != null ) { org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( jobId ) ; } }

Target:
private void clearTimer ( org.ovirt.engine.core.compat.Guid domainId ) { java.lang.String jobId = _timers.remove ( domainId ) ; if ( jobId != null ) { org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( jobId ) ; } }
Source:
private org.ovirt.engine.ui.uicommonweb.UICommand createOKCommand ( java.lang.String commandName ) { org.ovirt.engine.ui.uicommonweb.UICommand command = new org.ovirt.engine.ui.uicommonweb.UICommand ( commandName , this ) ; command.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . ok ( ) ) ; command.setIsDefault ( true ) ; return command ; }

Target:
private org.ovirt.engine.ui.uicommonweb.UICommand createCancelCommand ( java.lang.String commandName ) { return org.ovirt.engine.ui.uicommonweb.UICommand.createCancelUiCommand ( commandName , this ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : - 1 ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.memorySnapshotSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setos ( value ) ; }

Target:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setOs ( value ) ; }
Source:
protected long BytesToGigabyte ( long bytes ) { return ( ( bytes / 1024 ) / 1024 ) / 1024 ; }

Target:
protected long bytesToGigabyte ( long bytes ) { return ( ( bytes / 1024 ) / 1024 ) / 1024 ; }
Source:
private static java.lang.String serializeParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) . serialize ( params ) ; }

Target:
private static java.lang.String serializeParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return org.ovirt.engine.core.utils.SerializationFactory.getSerializer ( ) . serialize ( params ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return runActionImpl ( actionType , parameters , true , context ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return runActionImpl ( actionType , parameters , true , context ) ; }
Source:
public void statusNotInList ( ) { storageDomainIsInactive ( ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.Active , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusNotInList ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.Active , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
public static void MarkVmAsIllegal ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVmStatus , new org.ovirt.engine.core.common.vdscommands.SetVmStatusVDSCommandParameters ( vmId , org.ovirt.engine.core.common.businessentities.VMStatus.ImageIllegal ) ) ; }

Target:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.lockVm ( vmId ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkDoesNotExist ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return ( getNetworkByName ( networks ) ) == null ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NAME_ALREADY_EXISTS ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkDoesNotExist ( ) { return ( getNetworkByName ( org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.getNetworks ( ) ) ) == null ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NAME_ALREADY_EXISTS ) ; }
Source:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidRole ( ) { org.ovirt.engine.core.common.businessentities.permissions result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidRole ( ) { org.ovirt.engine.core.common.businessentities.permissions result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void testGetAsyncTaskIdsByInvalidStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( 0 , guids.size ( ) ) ; }

Target:
public void testGetAsyncTaskIdsByInvalidStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks = dao.getAsyncTaskIdsByStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( tasks ) ; org.junit.Assert.assertEquals ( 0 , tasks.size ( ) ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null , true ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog , final boolean waitForResult ) { runMultipleAction ( actionType , parameters , false , callback , null , showErrorDialog , waitForResult ) ; }
Source:
protected void initTooltip ( ) { super . initTooltip ( ) ; setToolTipMaxWidth ( Width.W520 ) ; }

Target:
protected void initTooltip ( ) { super . initTooltip ( ) ; setToolTipMaxWidth ( TooltipWidth.W520 ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( getAffinityGroupDao ( ) . getByName ( getParameters ( ) . getAffinityGroup ( ) . getName ( ) ) ) != null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; } return validateParameters ( ) ; }

Target:
protected boolean canDoAction ( ) { if ( ( getAffinityGroupDao ( ) . getByName ( getParameters ( ) . getAffinityGroup ( ) . getName ( ) ) ) != null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; } return validateParameters ( ) ; }
Source:
public void setThresholdVdsGroupPercentage ( int thresholdVdsGroupPercentage ) { this . thresholdVdsGroupPercentage = thresholdVdsGroupPercentage ; }

Target:
public void setThresholdClusterPercentage ( int thresholdClusterPercentage ) { this . thresholdClusterPercentage = thresholdClusterPercentage ; }
Source:
private void PostAction ( ) { ResetData ( ) ; UpdateOptions ( ) ; }

Target:
private void postAction ( ) { resetData ( ) ; updateOptions ( ) ; }
Source:
protected void setPanelContent ( com.google.gwt.user.client.ui.Panel panel , com.google.gwt.user.client.ui.Widget content ) { panel.clear ( ) ; if ( content != null ) { panel.add ( content ) ; } }

Target:
protected void setPanelContent ( com.google.gwt.user.client.ui.Panel panel , com.google.gwt.user.client.ui.IsWidget content ) { panel.clear ( ) ; if ( content != null ) { panel.add ( content ) ; } }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateWindowsWarningMessage ( ) ; }
Source:
public void testExtractIpv6PrefixNoPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( "::" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv6PrefixNoPrefix ( ) { org.hamcrest.MatcherAssert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( "::" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
public void setBrandingManager ( final org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager manager ) { brandingManager = manager ; }

Target:
void init ( org.codehaus.jackson.map.ObjectMapper mapper , org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager brandingManager ) { this . mapper = mapper ; this . brandingManager = brandingManager ; }
Source:
public void testIsManagementNetworkNameInGivenClusterNull ( ) throws java.lang.Exception { testIsManagementNetworkNameInGivenClusterCommon ( null , false ) ; }

Target:
public void testIsManagementNetworkNameInGivenClusterNull ( ) throws java.lang.Exception { testIsManagementNetworkNameInGivenClusterCommon ( org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtilImplTest.TEST_NETWORK_NAME , null , false ) ; }
Source:
public void setCallBackEnabled ( boolean enabled ) { childCmdEntity.setCallBackEnabled ( enabled ) ; }

Target:
public void setCallBackEnabled ( boolean enabled ) { childCmdEntity.setCallbackEnabled ( enabled ) ; }
Source:
public void makeSortable ( java.util.Comparator < ? super T > comparator ) { assert comparator != null : "comparator cannot be null" ; this . sortBy = null ; this . comparator = comparator ; org.ovirt.engine.ui.common.widget.table.column.SortableColumn.setSortable ( true ) ; }

Target:
public void makeSortable ( java.util.Comparator < ? super T > comparator ) { assert comparator != null : "comparator cannot be null" ; this . sortBy = null ; this . comparator = comparator ; org.ovirt.engine.ui.common.widget.table.column.AbstractSortableColumn.setSortable ( true ) ; }
Source:
public void canDoActionSucceedsOnEmptyClusterEvenWhenGlusterServerHasPeers ( ) throws java.lang.Exception { setupGlusterMock ( false , null , true ) ; org.junit.Assert.assertTrue ( commandMock.canDoAction ( ) ) ; }

Target:
public void validateVirtOnlySucceeds ( ) throws java.lang.Exception { setupVirtMock ( ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid commandId ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.getChildCommandIds ( commandId ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid commandId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.getChildCommandIds ( commandId ) ; }
Source:
private void writeToAuditLog ( ) { try { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , getAuditLogTypeValue ( ) ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WriteToAuditLog: An exception has been thrown." , ex ) ; } }

Target:
private void writeToAuditLog ( ) { try { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , getAuditLogTypeValue ( ) ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WriteToAuditLog: An exception has been thrown." , ex ) ; } }
Source:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_VM_ALREADY_EXIST ) ; }

Target:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public void validateVmMemoryCantStartOnVdsVmTooBig ( ) { vm.setMinAllocatedMem ( 8865 ) ; vm.setVmMemSizeMb ( 8865 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsVmTooBig ( ) { vm.setMinAllocatedMem ( 8865 ) ; vm.setVmMemSizeMb ( 8865 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . UpdateTag ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . update ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.UpdateTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . updateTag ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . update ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.UpdateTagCommand.setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.api.model.Image get ( ) { return performGet ( VdcQueryType.GetImageById , new org.ovirt.engine.core.common.queries.GetImageByIdParameters ( getStorageDomainId ( ) , id ) ) ; }

Target:
public org.ovirt.engine.api.model.Image get ( ) { return performGet ( QueryType.GetImageById , new org.ovirt.engine.core.common.queries.GetImageByIdParameters ( getStorageDomainId ( ) , id ) ) ; }
Source:
public static void revertTasks ( final org.ovirt.engine.core.bll.CommandBase command ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorImpl.getInstance ( ) . revertTasks ( command ) ; }

Target:
public static void cancelTasks ( final org.ovirt.engine.core.bll.CommandBase command ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.cancelTasks ( command ) ; }
Source:
public void setUsbFilter ( java.lang.String usbFilter ) { this . usbFilter = usbFilter ; }

Target:
public boolean isSmartcardEnabledOverridden ( ) { return this . consoleOptions.isSmartcardEnabledOverridden ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ) ; }

Target:
public void getoVirtISOsList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.compat.RpmVersion > > aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetoVirtISOs , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , aQuery ) ; }
Source:
public org.ovirt.engine.api.model.Users list ( ) { if ( isFiltered ( ) ) { return mapDbUserCollection ( getBackendCollection ( VdcQueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getDbUsersForDomain ( ) { return asCollection ( org.ovirt.engine.core.common.businessentities.DbUser.class , getEntity ( java.util.ArrayList.class , SearchType.DBUser , getDirectoryUserSearchPattern ( "*" , getCurrentDomain ( ) ) ) ) ; }
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addCiscoUcsPmTypeListener ( model ) ; }
Source:
private org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getClusterId ( ) ) . getCompatibilityVersion ( ) ; }

Target:
private org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupDao ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getClusterId ( ) ) . getCompatibilityVersion ( ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { mVmListReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getBroker ( ) . getVmStats ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( createVmInternalData ( mVmListReturn.mInfoList [ 0 ] ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { mVmListReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getBroker ( ) . getVmStats ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( createVmInternalData ( mVmListReturn.mInfoList [ 0 ] ) ) ; }
Source:
public void setdisplay_secure_port ( java.lang.Integer value ) { this . display_secure_port = value ; }

Target:
public void setDisplayIp ( java.lang.String value ) { this . displayIp = value ; }
Source:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase RunActionAsyncroniousely ( org.ovirt.engine.core.common.action.VdcActionType addsanstoragedomain , org.ovirt.engine.core.common.action.VdcActionParametersBase param ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( "RunActionAsyncroniousely is not implemented!" ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryType getQueryType ( ) { return queryType ; }
Source:
public void setUrl ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( url , value ) ) ) { url = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_URL ) ) ; } }

Target:
public void setUrl ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( url , value ) ) ) { url = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_URL ) ) ; } }
Source:
public void setDisks ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disks ) { this . disks = disks ; }

Target:
public void setDiskIds ( java.util.Set < org.ovirt.engine.core.compat.Guid > diskIds ) { this . disks = diskIds ; }
Source:
java.lang.Boolean exclussive ( ) ;

Target:
java.lang.Boolean exclusive ( ) ;
Source:
protected org.ovirt.engine.api.model.Label addParents ( org.ovirt.engine.api.model.Label model ) { model.setNetwork ( new org.ovirt.engine.api.model.Network ( ) ) ; model.getNetwork ( ) . setId ( networkId.toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.NetworkLabel addParents ( org.ovirt.engine.api.model.NetworkLabel model ) { model.setNetwork ( new org.ovirt.engine.api.model.Network ( ) ) ; model.getNetwork ( ) . setId ( networkId.toString ( ) ) ; return model ; }
Source:
private void updateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.debugFormat ( "domain {0} still in problem. vds: {1}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.getDomainIdTuple ( domainId ) , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "Running storage pool metadata refresh for hosts '{}'" , handledHosts ) ; org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.invokeAll ( refreshStoragePoolTasks ) ; return new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.POOLREFRESH ) ; }
Source:
public void setCustomProperties ( org.ovirt.engine.sdk.entities.CustomProperties value ) { this . customProperties = value ; }

Target:
public void setRunOnce ( java.lang.Boolean value ) { this . runOnce = value ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.gluster.GetGlusterBrickByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.gluster.GetGlusterBrickByIdQuery.getGlusterBrickDao ( ) . getById ( org.ovirt.engine.core.bll.gluster.GetGlusterBrickByIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.gluster.GetGlusterBrickByIdQuery.getQueryReturnValue ( ) . setReturnValue ( glusterBrickDao.getById ( org.ovirt.engine.core.bll.gluster.GetGlusterBrickByIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates updates ) { return updateEntity ( updates , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransfer ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; return updateEntity ( updates ) ; }
Source:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setStorageType ( StorageType.LOCALFS ) ; org.junit.Assert.assertTrue ( validator.isPosixDcAndMatchingCompatiblityVersion ( ) . isValid ( ) ) ; }

Target:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertTrue ( validator.isPosixSupportedInDC ( ) . isValid ( ) ) ; }
Source:
public void setpm_port ( java.lang.Integer value ) { mVdsStatic.setpm_port ( value ) ; }

Target:
public void setPmPort ( java.lang.Integer value ) { mVdsStatic.setPmPort ( value ) ; }
Source:
private void FloppyImage_SelectedItemChanged ( ) { UpdateIsSysprepEnabled ( ) ; }

Target:
private void floppyImage_SelectedItemChanged ( ) { updateInitialRunFields ( ) ; }
Source:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_SUSPENDED ) ) ; }

Target:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_SUSPENDED ) ; }
Source:
public org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend getVdsBroker ( ) { return vdsBroker ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return vdsBroker.runVdsCommand ( commandType , parameters ) ; }
Source:
public static java.lang.String migrationMethodtoString ( org.ovirt.engine.core.common.businessentities.MigrationMethod method ) { switch ( method ) { case OFFLINE : return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.offline ; case ONLINE : return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.online ; default : return "" ; } }

Target:
public static java.lang.String migrationMethodtoString ( org.ovirt.engine.core.common.businessentities.MigrationMethod method ) { if ( method == ( org.ovirt.engine.core.common.businessentities.MigrationMethod.OFFLINE ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.offline ; } else if ( method == ( org.ovirt.engine.core.common.businessentities.MigrationMethod.ONLINE ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.online ; } else { return "" ; } }
Source:
public boolean isCtrlAltDelEnabled ( ) { if ( ! ( configurator.isClientWindows ( ) ) ) { return true ; } float ntVersion = extractNtVersion ( getUserAgentString ( ) ) ; if ( ntVersion >= 6.1F ) { return false ; } return true ; }

Target:
public boolean isIE11 ( ) { return clientAgentType.isIE11 ( ) ; }
Source:
private void attachManagementNetwork ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; networkCluster.setClusterId ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroupId ( ) ) ; networkClusterDao.save ( networkCluster ) ; }

Target:
private void attachManagementNetwork ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; networkCluster.setClusterId ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) ) ; networkClusterDao.save ( networkCluster ) ; }
Source:
public boolean getWin2kHackEnable ( ) { return getDynamicData ( ) . getWin2kHackEnable ( ) ; }

Target:
public boolean isWin2kHackEnable ( ) { return getDynamicData ( ) . getWin2kHackEnable ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc verifyUntrustedVolume ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) ;
Source:
private void doTestIpConfiguredForStaticBootProtocol ( java.lang.String address , java.lang.String netmask ) { org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher = org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ; doTestIpConfiguredForStaticBootProtocol ( address , netmask , matcher ) ; }

Target:
private void doTestIpConfiguredForStaticBootProtocol ( java.lang.String address , java.lang.String netmask ) { org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher = org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ; doTestIpConfiguredForStaticBootProtocol ( address , netmask , matcher ) ; }
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 , networkBusinessEntityMap , managementNetworkUtil , networkClusterDaoMock , networkAttachmentDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) ) ; }

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 , networkBusinessEntityMap , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > FilterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.ToList ( org.ovirt.engine.ui.uicommonweb.Linq.Where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterNotStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > FilterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.toList ( org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterNotStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) ) ) ; }
Source:
public boolean connectHostToDomainsInActiveOrUnknownStatus ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters params = new org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters ( vds , false ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ConnectHostToStoragePoolServers , params ) . getSucceeded ( ) ; }

Target:
public boolean connectHostToDomainsInActiveOrUnknownStatus ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters params = new org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters ( vds , false ) ; return backend.runInternalAction ( VdcActionType.ConnectHostToStoragePoolServers , params ) . getSucceeded ( ) ; }
Source:
private void setHostEventListModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostEventListModel value ) { privateHostEventListModel = value ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getNumaSupportCommand ( ) { return numaSupportCommand ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { networkProfiles = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ; initClusterAndStorage ( dataCenter ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { networkProfiles = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ; initNetworksList ( ) ; initClusterAndStorage ( dataCenter ) ; }
Source:
protected java.util.Set < org.ovirt.engine.core.utils.MockConfigDescriptor < java.lang.Object > > getExtraConfigDescriptors ( ) { return java.util.Collections.emptySet ( ) ; }

Target:
public static java.util.stream.Stream < org.ovirt.engine.core.utils.MockConfigDescriptor < ? > > mockConfiguration ( ) { return java.util.stream.Stream.of ( org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.UserSessionTimeOutInterval , 30 ) ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3StorageServerConnectionExtensionServer getStorageConnectionExtensionResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3StorageServerConnectionExtensionServer ( delegate.getStorageConnectionExtensionResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3StorageServerConnectionExtensionServer getStorageConnectionExtensionResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3StorageServerConnectionExtensionServer ( getDelegate ( ) . getStorageConnectionExtensionResource ( id ) ) ; }
Source:
private boolean isDomainHasStorageSpaceForRequest ( ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) . isDomainHasSpaceForRequest ( java.lang.Math.round ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getActualDiskWithSnapshotsSize ( ) ) ) ) ; }

Target:
protected boolean checkCanBeMoveInVm ( ) { return validate ( createDiskValidator ( ) . isDiskPluggedToVmsThatAreNotDown ( false , getVmsWithVmDeviceInfoForDiskId ( ) ) ) ; }
Source:
protected java.lang.Class < ? > getDriverInterfaceType ( ) { return com.google.gwt.editor.client.SimpleBeanEditorDriver.class ; }

Target:
protected java.lang.Class < ? > getDriverInterfaceType ( ) { return org.ovirt.engine.ui.common.editor.UiCommonEditorDriver.class ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.dal.VdcBllMessages message ) { addCanDoActionMessage ( message ) ; return false ; }

Target:
public org.ovirt.engine.core.bll.SPMAsyncTask CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.Construct ( taskType , taskParameters , false ) ; }
Source:
public org.ovirt.engine.api.model.StorageDomain get ( ) { return performGet ( VdcQueryType.GetStorageDomainByIdAndStoragePoolId , new org.ovirt.engine.core.common.queries.StorageDomainAndPoolQueryParameters ( guid , dataCenterId ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageDomain get ( ) { return performGet ( QueryType.GetStorageDomainByIdAndStoragePoolId , new org.ovirt.engine.core.common.queries.StorageDomainAndPoolQueryParameters ( guid , dataCenterId ) ) ; }
Source:
protected void initTemplateDisks ( ) { if ( ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) ) != null ) { org.ovirt.engine.core.bll.VmTemplateHandler.UpdateDisksFromDb ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) ) ; } }

Target:
protected org.ovirt.engine.core.common.businessentities.InstanceType getInstanceType ( ) { if ( ( ( instanceType ) == null ) && ( ( instanceTypeId ) != null ) ) { instanceType = org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateDAO ( ) . getInstanceType ( instanceTypeId ) ; } return instanceType ; }
Source:
public void updateCallBackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.updateCallBackNotified ( commandId ) ; }

Target:
public void updateCallBackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.updateCallbackNotified ( commandId ) ; }
Source:
public void currentUserNull ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = null ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser cu = b.getCurrentUser ( ) ; org.junit.Assert.assertEquals ( u , cu ) ; }

Target:
public void currentUserNull ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = null ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser cu = b.getCurrentUser ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( u , cu ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.businessentities.Snapshot object ) { return ! ( object.getMemoryVolume ( ) . isEmpty ( ) ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.businessentities.Snapshot object ) { return object.containsMemory ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VGListReturnForXmlRpc getVGList ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType ) ;
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getJobIdByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "entity_id" , entityId ) ; return getCallsHandler ( ) . executeReadList ( "GetAllJobIdsByEntityId" , org.ovirt.engine.core.dao.JobSubjectEntityDaoFacadeImpl.jobIdRowMapper , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getJobIdByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "entity_id" , entityId ) ; return getCallsHandler ( ) . executeReadList ( "GetAllJobIdsByEntityId" , createGuidMapper ( ) , parameterSource ) ; }
Source:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VmTemplateStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateVmTemplateStatus" , getCustomMapSqlParameterSource ( ) . addValue ( "vmt_guid" , id ) . addValue ( "status" , status ) ) ; }

Target:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VmTemplateStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateVmTemplateStatus" , createIdParameterMapper ( id ) . addValue ( "status" , status ) ) ; }
Source:
protected void onClick ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; if ( command != null ) { command.execute ( ) ; } }

Target:
protected void onClick ( C value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; if ( command != null ) { command.execute ( ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { addStorageDomainsColumn ( object ) ; }

Target:
protected void setGeneralViewSelection ( java.lang.Object selectedItem ) { generalView.setMainTabSelectedItem ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( selectedItem ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VnicProfile getOldVnicProfile ( ) { if ( ( oldVnicProfile ) == null ) { oldVnicProfile = getDbFacade ( ) . getVnicProfileDao ( ) . get ( vnicProfile.getId ( ) ) ; } return oldVnicProfile ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VnicProfile getOldVnicProfile ( ) { if ( ( oldVnicProfile ) == null ) { oldVnicProfile = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.VnicProfileDao.class ) . get ( vnicProfile.getId ( ) ) ; } return oldVnicProfile ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getId ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getVendorId ( ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public java.lang.Double getcpu_sys ( ) { return this . mVmStatistics.getcpu_sys ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmtGuid ( ) { return this . vmStatic.getVmtGuid ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbDiscoveredHost.getValue ( ) ) { model.getIsDiscoveredHosts ( ) . setEntity ( true ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbDiscoveredHost.asRadioButton ( ) . getValue ( ) ) { model.getIsDiscoveredHosts ( ) . setEntity ( true ) ; } }