auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getCpuNameByCpuId ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.getCpuNameByCpuId ( name ) ; } return null ; }

Target:
public java.lang.String getCpuNameByCpuId ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler.managersDictionary.get ( ver ) ; return cpuFlagsManager != null ? cpuFlagsManager.getCpuNameByCpuId ( name ) : null ; }
Source:
private static java.lang.String getMacAddress ( java.util.Map < java.lang.String , java.lang.Object > ifaceMap ) { java.lang.String macAddress = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignStringValue ( ifaceMap , VdsProperties.VM_INTERFACE_MAC_ADDRESS ) ; return macAddress != null ? macAddress.replace ( '-' , ':' ) : null ; }

Target:
private static java.lang.String getMacAddress ( java.util.Map < java.lang.String , java.lang.Object > ifaceMap ) { java.lang.String macAddress = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.assignStringValue ( ifaceMap , VdsProperties.VM_INTERFACE_MAC_ADDRESS ) ; return macAddress != null ? macAddress.replace ( '-' , ':' ) : null ; }
Source:
public void setSelectionContext ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleSelectionContext selectionContext ) { this . selectionContext = selectionContext ; }

Target:
public static java.lang.String getEjectLabel ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.EJECT_LABEL ) == null ) { org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.EJECT_LABEL = ( "[" + ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . eject ( ) ) ) + "]" ; } return org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.EJECT_LABEL ; }
Source:
public void testGetFilterById ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkFilter actualNetworkFilter = dao.getNetworkFilterById ( FixturesTool.NETWORK_FILTER ) ; final org.ovirt.engine.core.common.businessentities.network.NetworkFilter expectedNetworkFilter = expectedNetworkFilter ( ) ; org.junit.Assert.assertEquals ( expectedNetworkFilter , actualNetworkFilter ) ; }

Target:
public void testGetFilterById ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkFilter actualNetworkFilter = dao.getNetworkFilterById ( FixturesTool.NETWORK_FILTER ) ; final org.ovirt.engine.core.common.businessentities.network.NetworkFilter expectedNetworkFilter = expectedNetworkFilter ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( expectedNetworkFilter , actualNetworkFilter ) ; }
Source:
public org.ovirt.engine.api.model.Users list ( ) { if ( isFiltered ( ) ) { return mapDbUserCollection ( getBackendCollection ( VdcQueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.DBUser ) ) ; } else { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }

Target:
public org.ovirt.engine.api.model.Users list ( ) { if ( isFiltered ( ) ) { return mapDbUserCollection ( getBackendCollection ( QueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.DBUser ) ) ; } else { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }
Source:
public void onSuccess ( org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Frontend: sucessfully executed RunAction, determining result!" ) ; org.ovirt.engine.ui.frontend.Frontend.handleActionResult ( actionType , parameters , result , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK , null ) ; }

Target:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) ; }
Source:
public void testGetCascadedResource ( ) { org.junit.Assert.assertNotNull ( "Should have found test brand 2's resource" , testManager.getCascadingResource ( "favicon" ) ) ; org.junit.Assert.assertTrue ( "Should have found test brand 2's resource" , testManager.getCascadingResource ( "favicon" ) . getFile ( ) . getAbsolutePath ( ) . contains ( "02-test2.brand" ) ) ; }

Target:
public void testGetCascadedResource ( ) { org.junit.jupiter.api.Assertions.assertNotNull ( testManager.getCascadingResource ( "favicon" ) , "Should have found test brand 2's resource" ) ; org.junit.jupiter.api.Assertions.assertTrue ( testManager.getCascadingResource ( "favicon" ) . getFile ( ) . getAbsolutePath ( ) . contains ( "02-test2.brand" ) , "Should have found test brand 2's resource" ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VM , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
private void cancel ( ) { setWindow ( null ) ; setConfirmWindow ( null ) ; }

Target:
private void cancel ( ) { org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel.setWindow ( null ) ; org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel.setConfirmWindow ( null ) ; }
Source:
public void setmem_commited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_commited" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_commited_percent" ) ) ; }

Target:
public void setmem_commited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; calculateFreeVirtualMemory ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_commited" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_commited_percent" ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;
Source:
public boolean isSetFopStatistic ( ) { return ( ( this . fopStatistic ) != null ) && ( ! ( this . fopStatistic.isEmpty ( ) ) ) ; }

Target:
public boolean isSetFopStatistics ( ) { return ( this . fopStatistics ) != null ; }
Source:
protected java.lang.String getVmLockMessage ( ) { return VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ; }

Target:
protected java.lang.String getLockMessage ( ) { return VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ; }
Source:
protected void updateHostPinning ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager getInstanceTypeManager ( ) { return instanceTypeManager ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS setUpVDS ( int index ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( GUIDS [ index ] ) ; vds.setvds_name ( NAMES [ index ] ) ; return vds ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS setUpVDS ( int index ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( GUIDS [ index ] ) ; vds.setVdsName ( NAMES [ index ] ) ; return vds ; }
Source:
public static org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.createTask ( taskId , command , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.createTask ( taskId , command , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_CPUS_PINNED ) ) ; }

Target:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_NOT_MIGRATABLE.name ( ) ) ) ; }
Source:
public void setusername ( java.lang.String value ) { this . username = value ; }

Target:
public void setStatus ( int value ) { status = value ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MultipleHostsModel object ) { hostsTable.edit ( object.getHosts ( ) ) ; driver.edit ( object ) ; applyPasswordButton.setCommand ( object.getApplyPasswordCommand ( ) ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MultipleHostsModel object ) { hostsTable.asEditor ( ) . edit ( object.getHosts ( ) ) ; driver.edit ( object ) ; applyPasswordButton.setCommand ( object.getApplyPasswordCommand ( ) ) ; }
Source:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum quotaEnforcementType ) { this . mVmStatic.setQuotaEnforcementType ( quotaEnforcementType ) ; }

Target:
public void setNumOfMonitors ( int value ) { this . vmStatic.setNumOfMonitors ( value ) ; }
Source:
private org.ovirt.engine.api.model.Host getVdsByVdsId ( ) { return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
private org.ovirt.engine.api.model.Host getVdsByVdsId ( ) { return performGet ( QueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void setActiveDetailModel ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { if ( ( activeDetailModel ) != value ) { ActiveDetailModelChanging ( value , getActiveDetailModel ( ) ) ; activeDetailModel = value ; ActiveDetailModelChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ActiveDetailModel" ) ) ; } }

Target:
public void setActiveDetailModel ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { if ( ( activeDetailModel ) != value ) { ActiveDetailModelChanging ( value , getActiveDetailModel ( ) ) ; activeDetailModel = value ; ActiveDetailModelChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ActiveDetailModel" ) ) ; } }
Source:
public void setFallbackProtocol ( ) { setFallbackProtocol ( VdsProtocol.XML ) ; fallbackTriggered = true ; }

Target:
public void setFallbackProtocol ( ) { org.ovirt.engine.core.bll.transport.ProtocolDetector.log.info ( "Fallback for XML-RPC protocol for host '{}' ({})" , vds.getName ( ) , vds.getId ( ) ) ; setFallbackProtocol ( VdsProtocol.XML ) ; fallbackTriggered = true ; }
Source:
public void testBeanValidations ( ) { org.junit.Assert.assertTrue ( cmd.validateInputs ( ) ) ; }

Target:
public void testBeanValidations ( ) { org.junit.jupiter.api.Assertions.assertTrue ( cmd.validateInputs ( ) ) ; }
Source:
public boolean IsVmConnectReady ( ) { if ( getForceVmStatusUp ( ) ) { return ( getEntity ( ) . getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ; } return IsVmUp ( ) ; }

Target:
public boolean IsVmUp ( ) { switch ( getEntity ( ) . getStatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }
Source:
public static void LogoffAsync ( final org.ovirt.engine.core.common.businessentities.DbUser dbUser , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . logoffAsync ( dbUser , callback ) ; }

Target:
public void runQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { runQuery ( queryType , parameters , callback , false ) ; }
Source:
public void replace_patternNotPresent ( ) { runAndCheck ( "abcd" , "X" , "Y" , "abcd" ) ; }

Target:
public void replacePatternNotPresent ( ) { runAndCheck ( "abcd" , "X" , "Y" , "abcd" ) ; }
Source:
protected void syncSearch ( ) { super . syncSearch ( ) ; requestingData = true ; setItems ( new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.core.common.businessentities.AuditLog > ( ) ) ; setLastEvent ( null ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; requestingData = true ; setItems ( new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.core.common.businessentities.AuditLog > ( ) ) ; setLastEvent ( null ) ; timer.start ( ) ; }
Source:
public org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession > getBatchMapper ( ) { return new org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession > ( ) { @ java.lang.Override public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession entity ) { return createFullParametersMapper ( entity ) ; } } ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails > getDetailsBatchMapper ( ) { return new org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails > ( ) { @ java.lang.Override public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails entity ) { return createFullParametersMapper ( entity ) ; } } ; }
Source:
protected void updateVmDisks ( ) { }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmDisksFromDB ( ) { return getDisksList ( spId ) ; }
Source:
public void updatePortAllowedWhenInstallationRequired ( ) { validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.updatePortAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void updatePortAllowedWhenInstallationRequired ( ) { validator = createValidatorForHostInstallation ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.updatePortAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void validateGenerateVmNameEndsWithMask ( ) { junit.framework.Assert.assertEquals ( "mypool170" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "mypool???" . replace ( '?' , VmPool.MASK_CHARACTER ) , 170 ) ) ; }

Target:
public void validateGenerateVmNameEndsWithMask ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "mypool???" ) ; for ( int i = 1 ; i < 101 ; ++ i ) { generator.generateVmName ( ) ; } org.junit.Assert.assertEquals ( "mypool101" , generator.generateVmName ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( e.PropertyName.equals ( "IsExecutionAllowed" ) ) { menuItem.setEnabled ( command.getIsExecutionAllowed ( ) ) ; } }

Target:
public void onInitialize ( com.google.gwt.event.logical.shared.InitializeEvent event ) { menuItem.setEnabled ( buttonDef.isEnabled ( null ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return super . persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getActionType ( ) ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , vds.getId ( ) , vds.getName ( ) , ex ) ; }

Target:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to AfterRefreshTreatment VDS, continuing: {}" , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.debug ( "Exception" , ex ) ; }
Source:
public void externalNetworkIsNotAVmNetwork ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.isVmNetwork ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( validator.externalNetworkIsVmNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_MUST_BE_VM_NETWORK ) ) ; }

Target:
public void externalNetworkIsNotAVmNetwork ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.isVmNetwork ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( validator.externalNetworkIsVmNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_MUST_BE_VM_NETWORK ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getNetworkAttachments ( ) { return getBackendCollection ( VdcQueryType.GetNetworkAttachmentsByHostNicId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( nicId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getNetworkAttachments ( ) { verifyHostAndNicExistence ( ) ; return getBackendCollection ( VdcQueryType.GetNetworkAttachmentsByHostNicId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( nicId ) ) ; }
Source:
public java.lang.Object getReturnValue ( ) { return returnValue ; }

Target:
public < T > T getReturnValue ( ) { return ( ( T ) ( returnValue ) ) ; }
Source:
protected java.util.List < Q > getBackendCollection ( org.ovirt.engine.core.common.interfaces.SearchType searchType ) { return getBackendCollection ( searchType , org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( org.ovirt.engine.api.restapi.resource.AbstractBackendCollectionResource.getUriInfo ( ) , "" , modelType ) ) ; }

Target:
protected java.util.List < Q > getBackendCollection ( org.ovirt.engine.core.common.interfaces.SearchType searchType ) { return getBackendCollection ( searchType , org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , "" , modelType ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
protected void init ( ) { super . init ( ) ; georepSessions = getDbFacade ( ) . getGlusterGeoRepDao ( ) . getGeoRepSessions ( getGlusterVolumeId ( ) ) ; }

Target:
protected void init ( ) { super . init ( ) ; georepSessions = glusterGeoRepDao.getGeoRepSessions ( getGlusterVolumeId ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; } return source ; }
Source:
public void removeGlusterServerHook ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterHookById" , createIdParameterMapper ( id ) ) ; }

Target:
public void removeGlusterServerHooks ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterServerHookById" , getCustomMapSqlParameterSource ( ) . addValue ( "hook_id" , id ) ) ; }
Source:
protected org.ovirt.engine.api.model.NicStatus map ( org.ovirt.engine.core.common.businessentities.InterfaceStatus interfaceStatus , org.ovirt.engine.api.model.NicStatus params ) { return getMapper ( org.ovirt.engine.core.common.businessentities.InterfaceStatus.class , org.ovirt.engine.api.model.NicStatus.class ) . map ( interfaceStatus , params ) ; }

Target:
protected org.ovirt.engine.api.model.NicStatus map ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus interfaceStatus , org.ovirt.engine.api.model.NicStatus params ) { return getMapper ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus.class , org.ovirt.engine.api.model.NicStatus.class ) . map ( interfaceStatus , params ) ; }
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.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.network.NetworkView > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkPermissionPresenter.constants.networkPermissionSubTabLabel ( ) , 7 , 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.network.SubTabNetworkPermissionPresenter.constants.networkPermissionSubTabLabel ( ) , 7 ) ; }
Source:
private org.ovirt.engine.core.bll.session.SessionDataContainer.SessionInfo getSessionInfo ( java.lang.String sessionId ) { return sessionInfoMap.get ( sessionId ) ; }

Target:
private org.ovirt.engine.core.bll.aaa.SessionDataContainer.SessionInfo getSessionInfo ( java.lang.String sessionId ) { return sessionInfoMap.get ( sessionId ) ; }
Source:
public javax.ws.rs.core.Response toResponse ( org.ovirt.engine.api.restapi.resource.BaseBackendResource.MalformedIdException exception ) { return javax.ws.rs.core.Response.status ( Status.BAD_REQUEST ) . entity ( exception.getCause ( ) . getMessage ( ) ) . build ( ) ; }

Target:
public javax.ws.rs.core.Response toResponse ( org.ovirt.engine.api.restapi.utils.MalformedIdException exception ) { return javax.ws.rs.core.Response.status ( Status.BAD_REQUEST ) . entity ( exception.getCause ( ) . getMessage ( ) ) . build ( ) ; }
Source:
private void endVmRelatedOps ( ) { setVm ( null ) ; if ( ( getVm ( ) ) != null ) { org.ovirt.engine.core.bll.VmHandler.UnLockVm ( getVm ( ) ) ; } else { setCommandShouldBeLogged ( false ) ; org.ovirt.engine.core.bll.ImportVmCommand.log.warn ( "ImportVmCommand::EndImportCommand: Vm is null - not performing full EndAction" ) ; } }

Target:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return org.ovirt.engine.core.bll.ImportVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.ImportClonedEntity.class ) ; } return org.ovirt.engine.core.bll.ImportVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.ImportEntity.class ) ; }
Source:
protected void ExecuteVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { _vdsManager.UpdateVmDynamic ( org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getParameters ( ) . getVmDynamic ( ) ) ; } else { org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }

Target:
protected void executeVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { _vdsManager.UpdateVmDynamic ( org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getParameters ( ) . getVmDynamic ( ) ) ; } else { org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel templateListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel ) ( target ) ) ; boolean isNameUnique = ( ( java.lang.Boolean ) ( returnValue ) ) ; templateListModel.PostNameUniqueCheck ( isNameUnique ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel templateListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel ) ( target ) ) ; boolean isNameUnique = ( ( java.lang.Boolean ) ( returnValue ) ) ; templateListModel.postNameUniqueCheck ( isNameUnique ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getConnections ( ) { return _connections ; }

Target:
private void updateConnectionsTypeMap ( ) { connectionsTypeMap = new java.util.HashMap < > ( ) ; for ( org.ovirt.engine.core.common.businessentities.StorageServerConnections conn : _connections ) { org.ovirt.engine.core.common.businessentities.StorageType connType = conn.getstorage_type ( ) ; org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( connType , conn , connectionsTypeMap ) ; } }
Source:
protected void FailedToRunVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . FailedToRunVm ( ) ; } }

Target:
protected void failedToRunVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageType getLUNStorageType ( org.ovirt.engine.core.common.businessentities.LUNs lun ) { return lun.getLunConnections ( ) . isEmpty ( ) ? org.ovirt.engine.core.common.businessentities.StorageType.FCP : lun.getLunConnections ( ) . get ( 0 ) . getstorage_type ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.StorageType getLUNStorageType ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return lun.getLunConnections ( ) . isEmpty ( ) ? org.ovirt.engine.core.common.businessentities.storage.StorageType.FCP : lun.getLunConnections ( ) . get ( 0 ) . getstorage_type ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > getWANDisableEffects ( ) { return consoleOptions.getWanDisableEffects ( ) ; }

Target:
public org.ovirt.engine.core.common.console.ConsoleOptions getOptions ( ) { return consoleOptions ; }
Source:
public void clearSession ( ) { container.removeSession ( ) ; container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( null ) ; }

Target:
public void testGetDataAndSetDataWithEmptySession ( ) { org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.getData ( "" , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return new org.ovirt.engine.core.compat.Guid ( "1115c1c6-cb15-4832-b2a4-023770607111" ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return org.ovirt.engine.core.dao.FixturesTool.PROVIDER_ID ; }
Source:
public org.ovirt.engine.api.model.Quota get ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ; org.ovirt.engine.api.model.Quota quota = performGet ( VdcQueryType.GetQuotaByQuotaId , params ) ; return quota ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.QuotaCRUDParameters prms = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( ) ; prms.setQuotaId ( asGuid ( id ) ) ; return performAction ( VdcActionType.RemoveQuota , prms ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.SessionsListReturnForXmlRpc getSessionList ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc diskReplicateStart ( java.lang.String vmUUID , java.util.Map srcDisk , java.util.Map dstDisk ) ;
Source:
public void testExistAndUpInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.junit.Assert.assertThat ( validator.existsAndUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ) ; }

Target:
public void testExistAndUpInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.hamcrest.MatcherAssert.assertThat ( validator.existsAndUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ) ; }
Source:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getVmNetworkInterfaceDao ( ) . get ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }

Target:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getVmNetworkInterfaceDao ( ) . get ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getorigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getOrigin ( ) ; }
Source:
public void testGetAllForStoragePoolWithInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.ovirt.engine.core.dao.VdsGroupDAOTest.assertGetAllForStoragePoolInvalidResult ( result ) ; }

Target:
public void testGetAllForStoragePoolWithInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.dao.VdsGroupDAOTest.assertGetAllForStoragePoolInvalidResult ( result ) ; }
Source:
public void testGetVmPool ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) ) ; assertGetResult ( result ) ; }

Target:
public void testGetVmPool ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) ) ; assertGetResult ( result ) ; }
Source:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = org.ovirt.engine.ui.common.utils.HttpUtils.getHeader ( response , org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setSessionId ( sessionIdFromHeader , true ) ; } reuseSession ( ) ; }

Target:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = org.ovirt.engine.ui.common.utils.HttpUtils.getHeader ( response , org.ovirt.engine.ui.common.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setSessionId ( sessionIdFromHeader , true ) ; } reuseSession ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_pool getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendDataCentersResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.storage_pool.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StoragePool getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendDataCentersResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) , index ) ; }
Source:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.api.model.Network entity = getNetwork ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }

Target:
public org.ovirt.engine.api.model.Network get ( ) { return performGet ( VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; initSpmPriorities1 ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updatePmModels ( ) ; }
Source:
void updateLUNsDeviceSize ( java.lang.String id , int deviceSize ) ;

Target:
void update ( org.ovirt.engine.core.common.businessentities.LUNs lun ) ;
Source:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.UpdateHardwareSystemInformation ( infoReturn.mInfo , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateHardwareSystemInformation ( infoReturn.mInfo , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }
Source:
public void Initialize ( ) { super . Initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; InitDataCenter ( ) ; }

Target:
public void Initialize ( ) { super . Initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; behavior.setHash ( getHash ( ) ) ; InitDataCenter ( ) ; }
Source:
public org.ovirt.engine.api.resource.gluster.GlusterBricksResource getGlusterBrickResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBricksResource ( this ) ) ; }

Target:
public org.ovirt.engine.api.resource.gluster.GlusterBricksResource getGlusterBricksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBricksResource ( this ) ) ; }
Source:
private void addRangesToStorage ( java.util.List < org.ovirt.engine.core.bll.network.macpoolmanager.Range > ranges , org.ovirt.engine.core.bll.network.macpoolmanager.MacsStorage macsStorage ) { for ( org.ovirt.engine.core.bll.network.macpoolmanager.Range range : ranges ) { macsStorage.addRange ( range ) ; } }

Target:
private void addRangesToStorage ( java.util.List < org.ovirt.engine.core.bll.network.macpool.Range > ranges , org.ovirt.engine.core.bll.network.macpool.MacsStorage macsStorage ) { for ( org.ovirt.engine.core.bll.network.macpool.Range range : ranges ) { macsStorage.addRange ( range ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.Role getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "name" , name ) ; return getCallsHandler ( ) . executeRead ( "GetRoleByName" , RolesRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromRole" , org.ovirt.engine.core.dao.RoleDAODbFacadeImpl.RolesRowMapper.instance , parameterSource ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getQuotaVdsGroupByVdsGroupGuid ( org.ovirt.engine.core.compat.Guid vdsGroupId , org.ovirt.engine.core.compat.Guid quotaId ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getQuotaClusterByClusterGuid ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid quotaId ) ;
Source:
public int [ ] getDefaultTokens ( ) { return new int [ ] { com.puppycrawl.tools.checkstyle.api.TokenTypes.ASSIGN } ; }

Target:
public int [ ] getRequiredTokens ( ) { return new int [ ] { com.puppycrawl.tools.checkstyle.api.TokenTypes.ASSIGN } ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase Logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = org.ovirt.engine.ui.genericapi.GenericApiService.backend.Logoff ( parameters ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase Logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = backend.Logoff ( parameters ) ; return returnValue ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Host.class , org.ovirt.engine.core.common.VdcObjectType.VDS ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Host.class , org.ovirt.engine.core.common.VdcObjectType.VDS ) ) ; }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; onFinish ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; getCommand ( ) . endAction ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) ; }

Target:
public java.lang.Boolean convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmType getvm_type ( ) { return this . mVmStatic.getvm_type ( ) ; }

Target:
public void setNiceLevel ( int value ) { this . vmStatic.setnice_level ( value ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Nic model , int index ) { org.ovirt.engine.api.restapi.resource.BackendTemplateNicsResourceTest.verifyModelSpecific ( model , index ) ; verifyLinks ( model ) ; }
Source:
public org.ovirt.engine.core.dao.ActionGroupDAO getActionGroupDao ( ) { return getDao ( org.ovirt.engine.core.dao.ActionGroupDAO.class ) ; }

Target:
public org.ovirt.engine.core.dao.ActionGroupDao getActionGroupDao ( ) { return getDao ( org.ovirt.engine.core.dao.ActionGroupDao.class ) ; }
Source:
private void analyzeOrExpression ( org.ovirt.api.metamodel.analyzer.MethodExpression expression , java.util.List < org.ovirt.api.metamodel.concepts.Parameter > parameters , boolean mandatory ) { }

Target:
private org.ovirt.api.metamodel.analyzer.MethodExpression getMethodExpression ( org.ovirt.api.metamodel.concepts.Expression expression ) { return expression instanceof org.ovirt.api.metamodel.concepts.ArrayExpression ? ( ( org.ovirt.api.metamodel.analyzer.MethodExpression ) ( ( ( org.ovirt.api.metamodel.concepts.ArrayExpression ) ( expression ) ) . getArray ( ) ) ) : ( ( org.ovirt.api.metamodel.analyzer.MethodExpression ) ( expression ) ) ; }
Source:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { runSynchronizeOperation ( new org.ovirt.engine.core.bll.storage.RefreshPoolSingleAsyncOperationFactory ( ) , vdsIdsToSetNonOperational ) ; return null ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { runSynchronizeOperation ( new org.ovirt.engine.core.bll.storage.pool.RefreshPoolSingleAsyncOperationFactory ( ) , vdsIdsToSetNonOperational ) ; return null ; }
Source:
public void notHostedEngineVM ( ) { vm.setOrigin ( OriginType.OVIRT ) ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , version , emulatedMachine , cpuId ) ) . isInstanceOf ( java.lang.IllegalArgumentException.class ) . hasMessageContaining ( "Hosted Engine" ) ; }

Target:
public void notHostedEngineVM ( ) { vm.setOrigin ( OriginType.OVIRT ) ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.IllegalArgumentException.class ) . hasMessageContaining ( "Hosted Engine" ) ; }
Source:
public java.lang.String getvmt_name ( ) { return this . vmt_nameField ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmtGuid ( ) { return this . vmStatic.getvmt_guid ( ) ; }
Source:
public boolean getis_initialized ( ) { return this . mVmStatic.getis_initialized ( ) ; }

Target:
public void setNumOfSockets ( int value ) { this . vmStatic.setNumOfSockets ( value ) ; }
Source:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForStorageDomain ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStorageDomainWithoutVMs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForStorageDomain ( FixturesTool.STORAGE_DOAMIN_SCALE_SD6 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void getJobSubjectEntityByJobId ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitybeforeSave = dao.getJobSubjectEntityByJobId ( org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.EXISTING_JOB_ID ) ; org.junit.Assert.assertEquals ( "Compare of existing to expected amount of entities" , org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.TOTAL_JOBS_SUBJECT_ENTITIES , entitybeforeSave.size ( ) ) ; }

Target:
public void getJobSubjectEntityByJobId ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitybeforeSave = dao.getJobSubjectEntityByJobId ( org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.EXISTING_JOB_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.TOTAL_JOBS_SUBJECT_ENTITIES , entitybeforeSave.size ( ) , "Compare of existing to expected amount of entities" ) ; }
Source:
private void mockHostForUniqueId ( java.lang.String value ) { mockConfigRule.mockConfigValue ( ConfigValues.InstallVds , java.lang.Boolean.TRUE ) ; org.mockito.Mockito.when ( host.getUniqueId ( ) ) . thenReturn ( value ) ; }

Target:
public void testValidateNoUniqueId ( ) { org.mockito.Mockito.when ( host.getUniqueId ( ) ) . thenReturn ( StringUtils.EMPTY ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NO_UUID ) ) ; }