auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setFencingOptionMappingMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { org.ovirt.engine.core.utils.pm.VdsFencingOptions.fencingOptionMapping = ( value != null ) ? new java.util.HashMap < java.lang.String , java.util.HashMap < java.lang.String , java.lang.String > > ( value.asMap ( ) ) : null ; }

Target:
public void setFencingOptionMappingMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingOptionMapping = ( value != null ) ? new java.util.HashMap < java.lang.String , java.util.HashMap < java.lang.String , java.lang.String > > ( value.asMap ( ) ) : null ; }
Source:
protected boolean shouldCheckSpaceInStorageDomains ( ) { return ! ( org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getImagesToCheckDestinationStorageDomains ( ) . isEmpty ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }
Source:
private org.ovirt.engine.core.utils.lock.EngineLock createLockForRunVmCommand ( org.ovirt.engine.core.compat.Guid vmId ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( vmId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ) ) , null ) ; }

Target:
protected java.lang.String getLockMessage ( ) { return VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ; }
Source:
public void setHostNetworkQos ( org.ovirt.engine.core.common.businessentities.network.HostNetworkQos hostNetworkQos ) { this . hostNetworkQos = hostNetworkQos ; if ( ( this . hostNetworkQos ) != null ) { this . hostNetworkQos.setId ( this . getId ( ) ) ; } }

Target:
public void setHostNetworkQos ( org.ovirt.engine.core.common.businessentities.network.AnonymousHostNetworkQos hostNetworkQos ) { this . hostNetworkQos = hostNetworkQos ; if ( ( this . hostNetworkQos ) != null ) { this . hostNetworkQos.setId ( this . getId ( ) ) ; } }
Source:
public void setExpression ( org.ovirt.api.metamodel.concepts.Expression expression ) { this . expression = expression ; }

Target:
public void addExpression ( org.ovirt.api.metamodel.concepts.Expression newExpression ) { expressions.add ( newExpression ) ; }
Source:
private void stopGeoRepSessionCommand ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.StopGeoRepSession , new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( session.getMasterVolumeId ( ) , session.getId ( ) ) , command.cloneContextAndDetachFromParent ( ) ) ; }

Target:
private void stopGeoRepSessionCommand ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session ) { commandCoordinatorUtil.executeAsyncCommand ( ActionType.StopGeoRepSession , new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( session.getMasterVolumeId ( ) , session.getId ( ) ) , command.cloneContextAndDetachFromParent ( ) ) ; }
Source:
public void testValidateGatewayWhenMultipleGatewayIsSupported ( ) throws java.lang.Exception { host.setVdsGroupCompatibilityVersion ( Version.v3_6 ) ; doTestValidateGateway ( "someGateway" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayWhenGatewayIsNotSpecified ( ) { doTestValidateGateway ( "" , false , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( name ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_name" , org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { final javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.Bookmark > query = entityManager.createNamedQuery ( "Bookmark.byName" , org.ovirt.engine.core.common.businessentities.Bookmark.class ) ; query.setParameter ( "name" , name ) ; return singleResult ( query ) ; }
Source:
public void networkNotInUseByHosts ( ) throws java.lang.Exception { networkNotUsedByHostsTest ( ValidationResult.VALID , java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; }

Target:
public void networkNotInUseByHosts ( ) throws java.lang.Exception { networkNotUsedByHostsTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.util.Set < java.lang.String > > getDiskHotpluggableInterfacesMap ( ) ;

Target:
java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.lang.Boolean > getNicHotplugSupportMap ( ) ;
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ( ) ; }

Target:
public void getClusterFeaturesByClusterId ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.Set < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > > aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.SetConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetClusterFeaturesByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , aQuery ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ( ! ( vds.isDisablePowerManagementPolicy ( ) ) ) && ( ( vds.getSpmStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VdsSpmStatus.SPM ) ) ) && ( vds.getpm_enabled ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ( ! ( vds.isDisablePowerManagementPolicy ( ) ) ) && ( ( vds.getSpmStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VdsSpmStatus.SPM ) ) ) && ( vds.isPmEnabled ( ) ) ; }
Source:
private void InternalEndSuccessfully ( ) { log.infoFormat ( "Ending command successfully: {0}" , getClass ( ) . getName ( ) ) ; EndSuccessfully ( ) ; }

Target:
private void internalEndSuccessfully ( ) { log.infoFormat ( "Ending command successfully: {0}" , getClass ( ) . getName ( ) ) ; endSuccessfully ( ) ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { super . markAsInvalid ( validationHints ) ; updateErrorIconLabel ( validationHints ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { super . markAsInvalid ( validationHints ) ; updateErrorIconLabel ( validationHints ) ; errorMessage.setVisible ( true ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network net ) { return net.getname ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network net ) { return net.getname ( ) . equals ( getNetworkName ( ) ) ; }
Source:
private java.lang.String getErrorMessage ( ) { return java.lang.String.format ( "[within thread]: EndAction for action type %1$s threw an exception." , getParameters ( ) . getDbAsyncTask ( ) . getActionParameters ( ) . getCommandType ( ) ) ; }

Target:
private java.lang.String getErrorMessage ( ) { return java.lang.String.format ( "[within thread]: endAction for action type %1$s threw an exception." , getParameters ( ) . getDbAsyncTask ( ) . getActionParameters ( ) . getCommandType ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { parent.setConsoleDevice ( model ) ; parent.setVirtioScsiController ( model ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { parent.setConsoleDevice ( model ) ; parent.setVirtioScsiController ( model ) ; parent.setVmOvfConfiguration ( model , entity ) ; return model ; }
Source:
public org.ovirt.engine.core.common.businessentities.TagsUserGroupMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.TagsUserGroupMap entity = new org.ovirt.engine.core.common.businessentities.TagsUserGroupMap ( ) ; entity.setgroup_id ( getGuidDefaultEmpty ( rs , "group_id" ) ) ; entity.settag_id ( getGuidDefaultEmpty ( rs , "tag_id" ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.TagsUserGroupMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.TagsUserGroupMap entity = new org.ovirt.engine.core.common.businessentities.TagsUserGroupMap ( ) ; entity.setGroupId ( getGuidDefaultEmpty ( rs , "group_id" ) ) ; entity.setTagId ( getGuidDefaultEmpty ( rs , "tag_id" ) ) ; return entity ; }
Source:
public void vnicProfileDoesNotExist ( ) { org.mockito.Mockito.when ( vnicProfileDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }

Target:
public void vnicProfileExists ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void validateGenerateVmNameStartsWithMask ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "???mypool" ) ; for ( int i = 1 ; i < 17 ; ++ i ) { generator.generateVmName ( ) ; } org.junit.Assert.assertEquals ( "017mypool" , generator.generateVmName ( ) ) ; }

Target:
public void validateGenerateVmNameStartsWithMask ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "???mypool" ) ; for ( int i = 1 ; i < 17 ; ++ i ) { generator.generateVmName ( ) ; } org.junit.jupiter.api.Assertions.assertEquals ( "017mypool" , generator.generateVmName ( ) ) ; }
Source:
public void updateNetConfigDirty ( org.ovirt.engine.core.compat.Guid id , java.lang.Boolean netConfigDirty ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setNetConfigDirty ( netConfigDirty ) ; update ( entity ) ; }

Target:
public void updateNetConfigDirty ( org.ovirt.engine.core.compat.Guid id , java.lang.Boolean netConfigDirty ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "net_config_dirty" , netConfigDirty ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicNetConfigDirty" , parameterSource ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getcompatibility_version ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/" ) + ( _messagingConfiguration.getBrokerType ( ) . getPasswordKey ( ) ) ) , _messagingConfiguration.getPassword ( ) ) ; return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/" ) + ( _messagingConfiguration.getBrokerType ( ) . getUsernameKey ( ) ) ) , _messagingConfiguration.getUsername ( ) ) ; return true ; }
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "" ) ) ; }

Target:
public void encodeWithNullDiskDescription ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "" ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Tag model , int index ) { super . verifyModel ( model , index ) ; org.ovirt.engine.api.restapi.resource.BackendTagsResourceTest.verifyParent ( model , org.ovirt.engine.api.restapi.resource.BackendTagsResourceTest.PARENT_GUID.toString ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Tag model , int index , java.lang.String parentId ) { super . verifyModel ( model , index ) ; org.ovirt.engine.api.restapi.resource.BackendTagsResourceTest.verifyParent ( model , parentId ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Provider > ( ) ; } 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.Provider > ( ) ; } return source ; }
Source:
protected org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters createParameters ( ) { return new org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters ( vmId , diskImageGuid ) ; }

Target:
protected org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters createParameters ( ) { return new org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( diskImageGuid , vmId ) ) ; }
Source:
public org.ovirt.sdk.ruby.RubyName getTypeName ( org.ovirt.api.metamodel.concepts.Type type ) { return buildName ( type.getName ( ) , null , org.ovirt.sdk.ruby.RubyNames.TYPES_DIR ) ; }

Target:
public org.ovirt.sdk.ruby.RubyName getTypeName ( org.ovirt.api.metamodel.concepts.Type type ) { if ( type instanceof org.ovirt.api.metamodel.concepts.ListType ) { return getBaseListName ( ) ; } return buildName ( type.getName ( ) , null , org.ovirt.sdk.ruby.RubyNames.TYPES_DIR ) ; }
Source:
public void testGetRoleByName ( ) { org.ovirt.engine.core.common.businessentities.roles result = dao.getByName ( existingRole.getname ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingRole , result ) ; }

Target:
public void testGetRoleByName ( ) { org.ovirt.engine.core.common.businessentities.Role result = dao.getByName ( existingRole.getname ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingRole , result ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getNicId ( ) , getNicName ( ) , getLabel ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( nicId , nicName , label ) ; }
Source:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic , null ) ) ; }

Target:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }
Source:
java.lang.String labeledNetworkNotAttached ( java.lang.String nicName , java.lang.String labelName ) ;

Target:
java.lang.String networkLabelConflict ( java.lang.String nicName , java.lang.String labelName ) ;
Source:
public void activated ( ) { if ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFields ( ) ; } }

Target:
public void activated ( ) { if ( ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) && ( ! ( getBehavior ( ) . basedOnCustomInstanceType ( ) ) ) ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFildsAfterOsChanged ( ) ; } }
Source:
private void setProgress ( org.ovirt.engine.ui.uicommonweb.models.common.ProgressModel value ) { if ( ( progress ) != value ) { progress = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( PropertyChangedEventArgs.Args.PROGRESS.toString ( ) ) ) ; } }

Target:
private void setProgress ( org.ovirt.engine.ui.uicommonweb.models.common.ProgressModel value ) { if ( ( progress ) != value ) { progress = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs.PROGRESS ) ) ; } }
Source:
protected void mockGetStorageDomainList ( int availableDiskSizeFirstDomain , int availableDiskSizeSecondDomain ) { storageDomainsList = getStorageDomainList ( availableDiskSizeFirstDomain , availableDiskSizeSecondDomain ) ; mockDiskImageDAO ( ) ; mockStorageDomainDAO ( storageDomainsList ) ; }

Target:
protected void mockGetStorageDomainList ( int availableDiskSizeFirstDomain , int availableDiskSizeSecondDomain ) { storageDomainsList = getStorageDomainList ( availableDiskSizeFirstDomain , availableDiskSizeSecondDomain ) ; mockDiskImageDao ( ) ; mockStorageDomainDao ( storageDomainsList ) ; }
Source:
private void addPermission ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid macPoolId ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( userId , macPoolId , PredefinedRoles.MAC_POOL_ADMIN , VdcObjectType.MacPool ) ; }

Target:
private void addPermission ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid macPoolId ) { multiLevelAdministrationHandler.addPermission ( userId , macPoolId , PredefinedRoles.MAC_POOL_ADMIN , VdcObjectType.MacPool ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( true ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( true ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.get ( ) ) ) ; }
Source:
protected boolean validateNoDuplicateDiskImages ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > images ) { if ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) { org.ovirt.engine.core.bll.validator.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( images ) ; return validate ( diskImagesValidator.diskImagesAlreadyExist ( ) ) ; } return true ; }

Target:
protected boolean validateNoDuplicateDiskImages ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > images ) { if ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) { org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( images ) ; return validate ( diskImagesValidator.diskImagesAlreadyExist ( ) ) ; } return true ; }
Source:
public java.lang.String getUserPassword ( ) { return org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoginPassword ( ) ; }

Target:
public java.lang.String getUserPassword ( ) { java.lang.String password = org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoginPassword ( ) ; return password != null ? password : "" ; }
Source:
public void testParseGetActionWithKeyInFirstArgument ( ) { parser.parse ( new java.lang.String [ ] { "--get=keyToGet" } ) ; org.junit.Assert.assertEquals ( ConfigActionType.ACTION_GET , parser.getConfigAction ( ) ) ; org.junit.Assert.assertEquals ( "keyToGet" , parser.getKey ( ) ) ; }

Target:
public void testParseGetActionWithKeyInFirstArgument ( ) { parser.parse ( new java.lang.String [ ] { "--get=keyToGet" } ) ; org.junit.jupiter.api.Assertions.assertEquals ( ConfigActionType.ACTION_GET , parser.getConfigAction ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( "keyToGet" , parser.getKey ( ) ) ; }
Source:
public void activateItemsUpdate ( ) { disableItemsUpdate ( ) ; model.getItemsChangedEvent ( ) . addListener ( new org.ovirt.engine.core.compat.IEventListener ( ) { @ java.lang.Override public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { updateItems ( ) ; } } ) ; updateItems ( ) ; }

Target:
public void activateItemsUpdate ( ) { disableItemsUpdate ( ) ; model.getItemsChangedEvent ( ) . addListener ( new org.ovirt.engine.ui.uicompat.IEventListener ( ) { @ java.lang.Override public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateItems ( ) ; } } ) ; updateItems ( ) ; }
Source:
public void setIsManaged ( boolean isManaged ) { this . isManaged = isManaged ; }

Target:
public void setManaged ( boolean managed ) { this . managed = managed ; }
Source:
public void testListCrashClientLocale ( ) throws java.lang.Exception { }

Target:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.SEARCH_QUERY ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.SEARCH_QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc list ( java.lang.String isFull , java.lang.String [ ] vmIds ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc extend_image_ticket ( java.lang.String ticketId , long timeout ) ;
Source:
public void invalidVersion ( ) { createCommandWithInvalidVersion ( ) ; setupCpu ( ) ; canDoActionFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED ) ; }

Target:
public void invalidVersion ( ) { createCommandWithInvalidVersion ( ) ; setupCpu ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED ) ; }
Source:
private void setBond ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { privateBond = value ; }

Target:
protected void setBond ( org.ovirt.engine.ui.uicommonweb.models.SortedListModel value ) { privateBond = value ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , volumeId , serverId , brickDirectory , brickOrder , status , asyncTask ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , volumeId , serverId , brickDirectory , brickOrder , status , asyncTask , unSyncedEntries , unSyncedEntriesTrend , selfHealEta , isArbiter ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.ovfstore.OvfHelper getOvfHelper ( ) { return ovfHelper ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > getOvfEntityList ( org.ovirt.engine.core.common.businessentities.VmEntityType vmEntityType ) { return unregisteredOVFDataDao.getAllForStorageDomainByEntityType ( org.ovirt.engine.core.bll.storage.domain.GetUnregisteredEntitiesQuery.getParameters ( ) . getId ( ) , vmEntityType ) ; }
Source:
public void setXmlRpcStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc status ) { this . status = status ; }

Target:
public void setStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.Status status ) { this . status = status ; }
Source:
private static org.ovirt.engine.core.common.businessentities.qos.QosBase mapCpuQosToEntity ( org.ovirt.engine.api.model.QoS model , org.ovirt.engine.core.common.businessentities.qos.CpuQos entity ) { if ( model.isSetCpuLimit ( ) ) { entity.setCpuLimit ( org.ovirt.engine.api.restapi.types.IntegerMapper.mapMinusOneToNull ( model.getCpuLimit ( ) ) ) ; } return entity ; }

Target:
private static org.ovirt.engine.core.common.businessentities.qos.QosBase mapCpuQosToEntity ( org.ovirt.engine.api.model.Qos model , org.ovirt.engine.core.common.businessentities.qos.CpuQos entity ) { if ( model.isSetCpuLimit ( ) ) { entity.setCpuLimit ( org.ovirt.engine.api.restapi.types.IntegerMapper.mapMinusOneToNull ( model.getCpuLimit ( ) ) ) ; } return entity ; }
Source:
private static org.ovirt.engine.core.dao.PermissionDAO getPermissionDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getPermissionDao ( ) ; }

Target:
private static org.ovirt.engine.core.dao.PermissionDao getPermissionDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getPermissionDao ( ) ; }
Source:
private void handleSaslException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response , java.lang.Throwable cause ) { response.setServerScore ( Score.LOW ) . setTranslatedException ( new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_ERROR , ( "General connection problem due to " + cause ) ) ) . setTryNextServer ( true ) ; }

Target:
private void handleSaslException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response , java.lang.Throwable cause ) { response.setOrderingAlgorithm ( OrderingAlgorithmType.PUT_LAST ) . setTranslatedException ( new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_ERROR , ( "General connection problem due to " + cause ) ) ) . setTryNextServer ( true ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.bll.CommandBase < ? > action , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { org.ovirt.engine.core.bll.job.ExecutionHandler.setExecutionContextForTasks ( action.getContext ( ) , executionContext , null ) ; return runAction ( action , true ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.bll.CommandBase < ? > action , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { org.ovirt.engine.core.bll.job.ExecutionHandler.setExecutionContextForTasks ( action.getContext ( ) , executionContext , action.getContext ( ) . getLock ( ) ) ; return runAction ( action , true ) ; }
Source:
protected < P extends org.ovirt.engine.core.common.queries.VdcQueryParametersBase > P sessionize ( P parameters ) { java.lang.String sessionId = getCurrent ( ) . getSessionId ( ) ; parameters.setSessionId ( sessionId ) ; return parameters ; }

Target:
protected < P extends org.ovirt.engine.core.common.action.VdcActionParametersBase > P sessionize ( P parameters ) { java.lang.String sessionId = getCurrent ( ) . getSessionId ( ) ; parameters.setSessionId ( sessionId ) ; return parameters ; }
Source:
void execute ( org.ovirt.engine.api.extensions.ExtMap context , java.util.Map < java.lang.String , java.lang.Object > argMap ) { logic.execute ( context , argMap ) ; }

Target:
void execute ( org.ovirt.engine.exttool.logger.LoggerServiceImpl module ) { logic.execute ( module ) ; }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getClusterCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getExistingStorageDomainList ( org.ovirt.engine.core.common.businessentities.StorageServerConnections storageServerConnection ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = backend.runInternalQuery ( VdcQueryType.GetExistingStorageDomainList , new org.ovirt.engine.core.common.queries.GetExistingStorageDomainListParameters ( org.ovirt.engine.core.bll.storage.domain.GetFileStorageDomainsWithAttachedStoragePoolGuidQuery.getVdsId ( ) , storageServerConnection.getStorageType ( ) , org.ovirt.engine.core.common.businessentities.StorageDomainType.Data , storageServerConnection.getConnection ( ) ) ) ; return returnValue ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getExistingStorageDomainList ( org.ovirt.engine.core.common.businessentities.StorageServerConnections storageServerConnection ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = backend.runInternalQuery ( QueryType.GetExistingStorageDomainList , new org.ovirt.engine.core.common.queries.GetExistingStorageDomainListParameters ( org.ovirt.engine.core.bll.storage.domain.GetFileStorageDomainsWithAttachedStoragePoolGuidQuery.getVdsId ( ) , storageServerConnection.getStorageType ( ) , org.ovirt.engine.core.common.businessentities.StorageDomainType.Data , storageServerConnection.getConnection ( ) ) ) ; return returnValue ; }
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.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeSnapshotDelete ( java.lang.String volumeName ) ;
Source:
public static java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getGuidListFromString ( java.lang.String str ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( str ) ) { return new java.util.ArrayList < > ( ) ; } return org.ovirt.engine.core.utils.GuidUtils.getGuidListFromStringArray ( java.util.Arrays.asList ( str.split ( org.ovirt.engine.core.utils.GuidUtils.SEPARATOR ) ) ) ; }

Target:
public static java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getGuidListFromString ( java.lang.String str ) { return org.ovirt.engine.core.utils.GuidUtils.getGuidListFromStringArray ( java.util.Arrays.asList ( org.apache.commons.lang.StringUtils.split ( java.util.Objects.toString ( str , StringUtils.EMPTY ) , org.ovirt.engine.core.utils.GuidUtils.SEPARATOR ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnectionExpectations ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; connection.setid ( org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResourceTest.STORAGE_CONNECTION_ID.toString ( ) ) ; connection.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return connection ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnectionExpectations ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; connection.setId ( org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResourceTest.STORAGE_CONNECTION_ID.toString ( ) ) ; connection.setConnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return connection ; }
Source:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; resource.setParent ( getCollectionResourceMock ( ) ) ; org.ovirt.engine.api.model.Hook hook = resource.get ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest.EVENT_2_NAME , hook.getEventName ( ) ) ; }

Target:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; resource.setParent ( getCollectionResourceMock ( ) ) ; org.ovirt.engine.api.model.Hook hook = resource.get ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest.EVENT_2_NAME , hook.getEventName ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( interfaceDao , networkDao , networkCluster ) ; }

Target:
protected org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( interfaceDao , networkDao , vdsDao , networkCluster ) ; }
Source:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.GuestNicsConfiguration > createGuestNicsConfiguation ( org.ovirt.engine.sdk.entities.GuestNicsConfiguration value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.GuestNicsConfiguration > ( org.ovirt.engine.sdk.entities.ObjectFactory._GuestNicsConfiguation_QNAME , org.ovirt.engine.sdk.entities.GuestNicsConfiguration.class , null , value ) ; }

Target:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.GuestNicsConfiguration > createNicConfigurations ( org.ovirt.engine.sdk.entities.GuestNicsConfiguration value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.GuestNicsConfiguration > ( org.ovirt.engine.sdk.entities.ObjectFactory._NicConfigurations_QNAME , org.ovirt.engine.sdk.entities.GuestNicsConfiguration.class , null , value ) ; }
Source:
private boolean acquireLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) . acquireLock ( lock ) . getFirst ( ) ; }

Target:
private boolean acquireLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { return lockManager.acquireLock ( lock ) . getFirst ( ) ; }
Source:
public java.lang.Void call ( ) { closeChannel ( ) ; return null ; }

Target:
public java.lang.Void call ( ) { disconnect ( ) ; return null ; }
Source:
protected void setStatus ( ) { setStatus ( VDSStatus.NonResponsive ) ; }

Target:
protected void setStatus ( ) { if ( org.ovirt.engine.core.bll.StartVdsCommand.getParameters ( ) . isChangeHostToMaintenanceOnStart ( ) ) { setStatus ( VDSStatus.Maintenance ) ; } else { setStatus ( VDSStatus.NonResponsive ) ; } }
Source:
public void setAutoSuspend ( boolean value ) { this . vmStatic.setAutoSuspend ( value ) ; }

Target:
public void setTrustedService ( boolean trustedService ) { this . trustedService = trustedService ; }
Source:
public boolean IsFieldUpdatable ( java.lang.Enum < ? > status , java.lang.String name , java.lang.Object fieldContainer ) { return IsFieldUpdatable ( status , name , fieldContainer , false ) ; }

Target:
public boolean isFieldUpdatable ( java.lang.Enum < ? > status , java.lang.String name , java.lang.Object fieldContainer ) { return isFieldUpdatable ( status , name , fieldContainer , false ) ; }
Source:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTasks task , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }

Target:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTasks task , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }
Source:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig withSpecialMark ( ) { return new org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig ( advancedOnly , alwaysHidden , true , adminOnly ) ; }

Target:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig detachable ( ) { return new org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig ( advancedOnly , alwaysHidden , true , adminOnly ) ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpConfigurationBootProtocolAddress ( NetworkBootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolNotStaticNetmaskDifferent ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolNetmask ( Ipv4BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getcompatibility_version ( ) . getValue ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.network_cluster , org.ovirt.engine.core.common.businessentities.VDSGroup > object ) { return object.getSecond ( ) . getcompatibility_version ( ) . getValue ( ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getManageEventsCommand ( ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.event_subscriber o1 , org.ovirt.engine.core.common.businessentities.event_subscriber o2 ) { return lexoNumericComparator.compare ( o1.getevent_up_name ( ) , o2.getevent_up_name ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.HostNetworkQos getHostNetworkQos ( ) { if ( networkAttachment.isQosOverridden ( ) ) { return networkAttachment.getHostNetworkQos ( ) ; } else { return networkQos ; } }

Target:
public org.ovirt.engine.core.common.businessentities.network.HostNetworkQos getHostNetworkQos ( ) { if ( networkAttachment.isQosOverridden ( ) ) { return org.ovirt.engine.core.common.businessentities.network.HostNetworkQos.fromAnonymousHostNetworkQos ( networkAttachment.getHostNetworkQos ( ) ) ; } else { return networkQos ; } }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { org.ovirt.engine.api.model.Qos qos = model.getQos ( ) ; if ( qos != null ) { qos.setDataCenter ( model.getDataCenter ( ) ) ; } return model ; }

Target:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }
Source:
public void releaseLock ( org.ovirt.engine.core.compat.Guid clusterId ) { getLockManager ( ) . releaseLock ( getEngineLock ( clusterId ) ) ; }

Target:
public void releaseLock ( org.ovirt.engine.core.compat.Guid clusterId ) { lockManager.releaseLock ( getEngineLock ( clusterId ) ) ; }
Source:
public void testGetAllClustersByDefaultNetworkProviderId ( ) { org.junit.Assert.assertThat ( dao.getAllClustersByDefaultNetworkProviderId ( FixturesTool.OVN_NETWORK_PROVIDER_ID ) . size ( ) , org.hamcrest.CoreMatchers.is ( 3 ) ) ; }

Target:
public void testGetAllClustersByDefaultNetworkProviderId ( ) { org.hamcrest.MatcherAssert.assertThat ( dao.getAllClustersByDefaultNetworkProviderId ( FixturesTool.OVN_NETWORK_PROVIDER_ID ) . size ( ) , org.hamcrest.CoreMatchers.is ( 3 ) ) ; }
Source:
protected void ExecuteQuery ( ) { org.ovirt.engine.core.common.businessentities.LdapUser user = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getUserByUserGuid ( getUserId ( ) ) ; if ( user != null ) { setSucceeded ( true ) ; setReturnValue ( user ) ; } else { setSucceeded ( false ) ; } }

Target:
protected void executeQuery ( ) { org.ovirt.engine.core.common.businessentities.LdapUser user = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getUserByUserGuid ( getUserId ( ) ) ; if ( user != null ) { setSucceeded ( true ) ; setReturnValue ( user ) ; } else { setSucceeded ( false ) ; } }
Source:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVdsCpuStatisticsDAO ( ) . removeAllCpuStatisticsByVdsId ( _vds.getId ( ) ) ; getDbFacade ( ) . getVdsCpuStatisticsDAO ( ) . massSaveCpuStatistics ( cpuStatisticsToSave , _vds.getId ( ) ) ; return null ; }

Target:
private void handleVdsMaintenanceTimeout ( ) { getVdsEventListener ( ) . handleVdsMaintenanceTimeout ( _vds.getId ( ) ) ; _vdsManager.calculateNextMaintenanceAttemptTime ( ) ; }
Source:
public void run ( ) { for ( org.ovirt.engine.core.compat.Guid vmId : vmIds ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( vmId ) ) ; } }

Target:
public void run ( ) { for ( org.ovirt.engine.core.compat.Guid vmId : vmIds ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.ProcessDownVmParameters ( vmId ) ) ; } }
Source:
public int getvm_mem_size_mb ( ) { return this . mVmStatic.getmem_size_mb ( ) ; }

Target:
public void setVmDomain ( java.lang.String value ) { this . vmStatic.setDomain ( value ) ; }
Source:
public void canDoAction_noAffinityGroup_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getAffinityGroup ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_INVALID_AFFINITY_GROUP_ID ) ; }

Target:
public void canDoAction_noAffinityGroup_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getAffinityGroup ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_AFFINITY_GROUP_ID ) ; }
Source:
public org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget < ? extends org.ovirt.engine.ui.uicommonweb.models.Model , ? > getModelPopup ( org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel source , org.ovirt.engine.ui.uicommonweb.UICommand lastExecutedCommand , org.ovirt.engine.ui.uicommonweb.models.Model windowModel ) { return null ; }

Target:
public org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget < ? extends org.ovirt.engine.ui.uicommonweb.models.Model , ? > getModelPopup ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotListModel source , org.ovirt.engine.ui.uicommonweb.UICommand lastExecutedCommand , org.ovirt.engine.ui.uicommonweb.models.Model windowModel ) { return super . getModelPopup ( source , lastExecutedCommand , windowModel ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > returnValue = org.ovirt.engine.ui.genericapi.GenericApiService.backend.RunMultipleActions ( actionType , parameters ) ; return returnValue ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > returnValue = backend.RunMultipleActions ( actionType , parameters ) ; return returnValue ; }
Source:
protected org.ovirt.engine.api.model.QoS addParents ( org.ovirt.engine.api.model.QoS qos ) { qos.setDataCenter ( new org.ovirt.engine.api.model.DataCenter ( ) ) ; qos.getDataCenter ( ) . setId ( dataCenterId.toString ( ) ) ; return qos ; }

Target:
protected org.ovirt.engine.api.model.Qos addParents ( org.ovirt.engine.api.model.Qos qos ) { qos.setDataCenter ( new org.ovirt.engine.api.model.DataCenter ( ) ) ; qos.getDataCenter ( ) . setId ( dataCenterId.toString ( ) ) ; return qos ; }
Source:
public void storagePoolIdDefault ( ) { final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.Assert.assertNull ( n ) ; }

Target:
public void storagePoolIdDefault ( ) { final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.jupiter.api.Assertions.assertNull ( n ) ; }
Source:
public void addLocators ( java.util.List < org.ovirt.api.metamodel.concepts.Locator > newLocators ) { locators.addAll ( newLocators ) ; locators.sort ( java.util.Comparator.comparing ( Locator :: getName ) ) ; }

Target:
public java.util.stream.Stream < org.ovirt.api.metamodel.concepts.Locator > declaredLocators ( ) { return locators.stream ( ) ; }
Source:
public void clearAllDismissedAlerts ( ) { org.ovirt.engine.core.common.action.VdcActionParametersBase params = new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ClearAllDismissedAuditLogs , params ) ; }

Target:
public void clearAllDismissedAlerts ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ClearDismissedAuditLogAlerts , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ) ; }
Source:
protected void incrementDbGeneration ( ) { org.ovirt.engine.core.bll.storage.export.MoveOrCopyTemplateCommand.getVmStaticDao ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.storage.export.MoveOrCopyTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }

Target:
protected void incrementDbGeneration ( ) { org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getVmStaticDao ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }
Source:
protected void ExecuteVmCommand ( ) { InitVdss ( ) ; Perform ( ) ; ProcessVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }

Target:
protected void executeVmCommand ( ) { InitVdss ( ) ; Perform ( ) ; ProcessVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }