auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getbookmark_name ( ) ) ) != null ) { addErrorMessages ( VdcBllMessages.VAR__ACTION__ADD , VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getbookmark_name ( ) ) ) != null ) { addErrorMessages ( EngineMessage.VAR__ACTION__ADD , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }
Source:
public void formatStringTestNotEnoughParams ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" ) ; org.junit.Assert.fail ( "Should not get here" ) ; }

Target:
public void formatStringTestNotEnoughParams ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" ) ) ; }
Source:
void save ( org.ovirt.engine.core.common.businessentities.async_tasks task ) ;

Target:
void save ( org.ovirt.engine.core.common.businessentities.async_tasks task , org.ovirt.engine.core.common.VdcObjectType enitytType , org.ovirt.engine.core.compat.Guid ... entityIds ) ;
Source:
public static void updateAsyncTaskInDB ( org.ovirt.engine.core.bll.SPMAsyncTask asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDAO ( ) . update ( asyncTask.getParameters ( ) . getDbAsyncTask ( ) ) ; }

Target:
public static void updateAsyncTaskInDB ( org.ovirt.engine.core.bll.SPMAsyncTask asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . update ( asyncTask.getParameters ( ) . getDbAsyncTask ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > searchDisk ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getDiskDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > searchAuditLogEvents ( ) { return genericSearch ( auditLogDao , false ) ; }
Source:
public void addMessage ( com.google.gwt.safehtml.shared.SafeHtml message , java.lang.String styleName ) { com.google.gwt.user.client.ui.HTMLPanel messageLabel = new com.google.gwt.user.client.ui.HTMLPanel ( message ) ; messageLabel.addStyleName ( styleName ) ; messagePanel.add ( messageLabel ) ; }

Target:
private com.google.gwt.user.client.ui.HTMLPanel createMessageLabel ( com.google.gwt.safehtml.shared.SafeHtml message ) { messagesList.add ( message ) ; com.google.gwt.user.client.ui.HTMLPanel messageLabel = new com.google.gwt.user.client.ui.HTMLPanel ( message ) ; return messageLabel ; }
Source:
private void createNonUpVds ( ) { org.mockito.Mockito.when ( vdsDao.getAllForStoragePoolAndStatus ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.Matchers.eq ( VDSStatus.Up ) ) ) . thenReturn ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ) ; }

Target:
private void createNonUpVds ( ) { org.mockito.Mockito.when ( vdsDao.getAllForStoragePoolAndStatus ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.Matchers.eq ( VDSStatus.Up ) ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.DiskVmElement resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.core.common.businessentities.storage.DiskVmElement.class , VdcQueryType.GetDiskVmElementById , new org.ovirt.engine.core.common.queries.VmDeviceIdQueryParameters ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( id , vmId ) ) , id.toString ( ) , true ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.DiskVmElement resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.core.common.businessentities.storage.DiskVmElement.class , QueryType.GetDiskVmElementById , new org.ovirt.engine.core.common.queries.VmDeviceIdQueryParameters ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( id , vmId ) ) , id.toString ( ) , true ) ; }
Source:
protected boolean validateVmArchitecture ( ) { return ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }

Target:
protected boolean validateVmArchitecture ( ) { return ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__CREATE ) ; addCustomValue ( GlusterConstants.VOLUME_SNAPSHOT_NAME , getParameters ( ) . getSnapshot ( ) . getSnapshotName ( ) ) ; super . setActionMessageParameters ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__CREATE ) ; addCustomValue ( GlusterConstants.VOLUME_SNAPSHOT_NAME , getParameters ( ) . getSnapshot ( ) . getSnapshotName ( ) ) ; super . setActionMessageParameters ( ) ; }
Source:
public void testInterfaceIsBondWhenInterfaceIsNull ( ) { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( null ) . interfaceIsBondOrNull ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testInterfaceIsBondWhenInterfaceIsNull ( ) { org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( null ) . interfaceIsBondOrNull ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public int getPriority ( ) { return vmStatic.getpriority ( ) ; }

Target:
public void setPriority ( int value ) { vmStatic.setPriority ( value ) ; }
Source:
public void parseLunFromXmlRpcReturnsUnknownForNoField ( ) throws java.lang.Exception { java.util.Map < java.lang.String , java.lang.Object > xlun = new java.util.HashMap < > ( ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.parseLunFromXmlRpc ( xlun , Version.v4_1 ) ; org.junit.Assert.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }

Target:
public void parseLunReturnsUnknownForNoField ( ) throws java.lang.Exception { java.util.Map < java.lang.String , java.lang.Object > xlun = new java.util.HashMap < > ( ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.parseLun ( xlun , Version.v4_1 ) ; org.junit.Assert.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }
Source:
private final org.ovirt.engine.core.common.businessentities.DbUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . addUserToThreadContext ( parameters.getSessionId ( ) , parameters.getRefresh ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DbUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( engineContext.getSessionId ( ) , parameters.getRefresh ( ) ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.VmStatic vm ) { getCallsHandler ( ) . executeModification ( "UpdateVmStatic" , getFullParameterSource ( vm ) ) ; }

Target:
public void remove ( org.ovirt.engine.core.compat.Guid id , boolean removePermissions ) { getCallsHandler ( ) . executeModification ( "DeleteVmStatic" , createIdParameterMapper ( id ) . addValue ( "remove_permissions" , removePermissions ) ) ; }
Source:
public void setPassword ( java.lang.String password ) { _dialog.setPassword ( password ) ; }

Target:
public void setUser ( java.lang.String user ) { _dialog.setUser ( user ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , size , url , timeout , transferTypes , fileName , active , transferred ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , size , url , timeout , transferTypes , fileName , active , transferred , idleTime ) ; }
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.Snapshot > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Snapshot > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }
Source:
public void threeSequence_threeSubsequence ( ) { org.junit.Assert.assertTrue ( BootSequence.CDN.containsSubsequence ( BootSequence.CDN ) ) ; }

Target:
public void threeSequenceThreeSubsequence ( ) { org.junit.Assert.assertTrue ( BootSequence.CDN.containsSubsequence ( BootSequence.CDN ) ) ; }
Source:
public java.lang.String getName ( ) { return getname ( ) ; }

Target:
public void setname ( java.lang.String value ) { setName ( value ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.vm_pools vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getvm_pool_id ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getvm_pool_id ( ) ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.ServiceInfo entity ) { return entity.getHostName ( ) ; }

Target:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService entity ) { return entity.getHostName ( ) ; }
Source:
public void testUndelete ( ) throws java.lang.Exception { setUriInfo ( setUpActionExpectations ( ActionType.DisplayAllAuditLogAlerts , org.ovirt.engine.core.common.action.VdcActionParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , true , true ) ) ; collection.undelete ( new org.ovirt.engine.api.model.Action ( ) ) ; }

Target:
public void testUndelete ( ) throws java.lang.Exception { setUriInfo ( setUpActionExpectations ( ActionType.DisplayAllAuditLogAlerts , org.ovirt.engine.core.common.action.ActionParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , true , true ) ) ; collection.undelete ( new org.ovirt.engine.api.model.Action ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isShareable ( ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.shareable ( ) : null ) ) ; return object.isShareable ( ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.resources.shareableDiskIcon ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getDefaultImage ( ) { return org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.resources.shareableDiskIcon ( ) ; }
Source:
private boolean isCloudInitUsed ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( vm.getInitializationType ( ) ) == ( org.ovirt.engine.core.common.businessentities.InitializationType.CloudInit ) ) && ( ! ( org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isWindows ( vm.getVmOsId ( ) ) ) ) ; }

Target:
private boolean isCloudInitUsed ( ) { return ( ( vm.getInitializationType ( ) ) == ( org.ovirt.engine.core.common.businessentities.InitializationType.CloudInit ) ) && ( ! ( windows ) ) ; }
Source:
public java.lang.Boolean getkvm_enable ( ) { return this . mVmDynamic.getkvm_enable ( ) ; }

Target:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . vmDynamic.setdisplay_type ( value ) ; }
Source:
public void handleFailure ( ) { }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addValidationMessage ( EngineMessage.VAR__ACTION__UPDATE_OVFS ) ; }
Source:
public java.lang.Object runInTransaction ( ) { getStoragePoolDAO ( ) . updatePartial ( storagePool ) ; updateMemberDomainsFormat ( targetFormat ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { getStoragePoolDAO ( ) . updatePartial ( storagePool ) ; updateMemberDomainsFormat ( targetFormat ) ; if ( org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( spVersion ) ) { getVmStaticDAO ( ) . incrementDbGenerationForAllInStoragePool ( spId ) ; } return null ; }
Source:
public void nullVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileLinkingTest ( org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.hamcrest.CoreMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , null ) ; }

Target:
public void nullVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileLinkingTest ( org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NULL_NETWORK_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.hamcrest.CoreMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , null ) ; }
Source:
private boolean performVmRelatedChecks ( ) { org.ovirt.engine.core.bll.validator.VmValidator vmValidator = createVmValidator ( ) ; return ( validate ( vmValidator.vmNotRunningStateless ( ) ) ) && ( org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.validate ( ( ! ( isVmNotInPreview ( ) ) ) ) ) ; }

Target:
private boolean performVmRelatedChecks ( ) { org.ovirt.engine.core.bll.validator.VmValidator vmValidator = createVmValidator ( ) ; return ( validate ( vmValidator.vmNotRunningStateless ( ) ) ) && ( org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.validateObject ( ( ! ( isVmNotInPreview ( ) ) ) ) ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid generateDeviceId ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface ) { return new org.ovirt.engine.core.compat.Guid ( ( ( vmGuestAgentInterface.getInterfaceName ( ) ) + ( vmGuestAgentInterface.getMacAddress ( ) ) ) . getBytes ( ) , true ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid generateDeviceId ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface ) { return org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( ( ( vmGuestAgentInterface.getInterfaceName ( ) ) + ( vmGuestAgentInterface.getMacAddress ( ) ) ) . getBytes ( ) , true ) ; }
Source:
public void setvm_host ( java.lang.String value ) { this . vm_host = value ; }

Target:
public org.ovirt.engine.core.compat.NGuid getRunOnVds ( ) { return this . runOnVds ; }
Source:
public java.lang.String getClusterName ( ) { if ( ( clusterName ) == null ) { if ( ( getCluster ( ) ) != null ) { clusterName = getCluster ( ) . getName ( ) ; } else { clusterName = "" ; } } return clusterName ; }

Target:
public java.lang.String getClusterName ( ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( clusterName ) ) { if ( ( getCluster ( ) ) != null ) { clusterName = getCluster ( ) . getName ( ) ; } else { clusterName = "" ; } } return clusterName ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.bookmarks result = dao.get ( existing_bookmark.getbookmark_id ( ) ) ; assertNotNull ( result ) ; assertEquals ( existing_bookmark.getbookmark_id ( ) , result.getbookmark_id ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.get ( existing_bookmark.getbookmark_id ( ) ) ; assertNotNull ( result ) ; assertEquals ( existing_bookmark.getbookmark_id ( ) , result.getbookmark_id ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > mockVfsOnNetDevice ( int numOfVfs ) { return mockVfsOnNetDevice ( numOfVfs , null ) ; }

Target:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; hostNicVfsConfigHelper.getFreeVf ( nic , null ) ; }
Source:
private static void logException ( final java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "ResourceManager::refreshVdsRunTimeInfo" , ex ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to refresh VDS , vds = '{}' : '{}', error = '{}', continuing." , cachedVds.getName ( ) , cachedVds.getId ( ) , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "Exception" , ex ) ; }
Source:
private void cacheNewValues ( org.ovirt.engine.core.common.businessentities.QuotaVdsGroup quotaVdsGroup , long newMemory , int newVcpu ) { quotaVdsGroup.setVirtualCpuUsage ( newVcpu ) ; quotaVdsGroup.setMemSizeMBUsage ( newMemory ) ; }

Target:
private void cacheNewValues ( org.ovirt.engine.core.bll.quota.QuotaVdsGroup quotaVdsGroup , long newMemory , int newVcpu ) { quotaVdsGroup.setVirtualCpuUsage ( newVcpu ) ; quotaVdsGroup.setMemSizeMBUsage ( newMemory ) ; }
Source:
public javax.ws.rs.core.Response start ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.StartGlusterVolume , new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( guid , ( action.isSetForce ( ) ? action.isForce ( ) : false ) ) , action ) ; }

Target:
public javax.ws.rs.core.Response start ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.StartGlusterVolume , new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( guid , ( action.isSetForce ( ) ? action.isForce ( ) : false ) ) , action ) ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackImageProviderResource getOpenStackImageProvider ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackImageProviderResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.openstack.OpenstackImageProviderResource getProviderResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackImageProviderResource ( id ) ) ; }
Source:
public void testMapConfigurationType ( ) { org.ovirt.engine.api.model.ConfigurationType configurationTypeBll = org.ovirt.engine.api.restapi.types.VmMapper.map ( ConfigurationType.OVF , null ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , configurationTypeBll ) ; org.ovirt.engine.api.model.ConfigurationType configurationTypeApi = org.ovirt.engine.api.restapi.types.VmMapper.map ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , null ) ; org.junit.Assert.assertEquals ( ConfigurationType.OVF , configurationTypeApi ) ; }

Target:
public void testMapConfigurationType ( ) { org.ovirt.engine.api.model.ConfigurationType configurationTypeBll = org.ovirt.engine.api.restapi.types.VmMapper.map ( ConfigurationType.OVF , null ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , configurationTypeBll ) ; org.ovirt.engine.api.model.ConfigurationType configurationTypeApi = org.ovirt.engine.api.restapi.types.VmMapper.map ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , null ) ; org.junit.jupiter.api.Assertions.assertEquals ( ConfigurationType.OVF , configurationTypeApi ) ; }
Source:
public final boolean setUser ( org.ovirt.engine.core.common.users.VdcUser user ) { return SetData ( org.ovirt.engine.core.bll.session.SessionDataContainer.VDC_USER_PARAMETER_NAME , user ) ; }

Target:
public final boolean setUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return SetData ( org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }
Source:
protected org.ovirt.engine.core.utils.lock.EngineLock acquireGeoRepSessionLock ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.utils.lock.EngineLock lock = new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( id.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.GLUSTER_GEOREP , EngineMessage.ACTION_TYPE_FAILED_GEOREP_SESSION_LOCKED ) ) , null ) ; getLockManager ( ) . acquireLockWait ( lock ) ; return lock ; }

Target:
protected org.ovirt.engine.core.utils.lock.EngineLock acquireGeoRepSessionLock ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.utils.lock.EngineLock lock = new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( id.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.GLUSTER_GEOREP , EngineMessage.ACTION_TYPE_FAILED_GEOREP_SESSION_LOCKED ) ) , null ) ; lockManager.acquireLockWait ( lock ) ; return lock ; }
Source:
public void testExecuteQueryWithInValidVmIdOrMissingPermissions ( ) throws java.lang.Exception { mockDAOForQuery ( ) ; vm = mockVm ( ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertEquals ( null , getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }

Target:
public void testExecuteQueryWithInValidVmIdOrMissingPermissions ( ) throws java.lang.Exception { mockDaoForQuery ( ) ; vm = mockVm ( ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertEquals ( null , getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskNull , getBricks ( volumeWithRemoveBricksTaskNull ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { setVolume ( volumeWithRemoveBricksTaskNull ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testIpConfiguredForStaticBootProtocol_WhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "" , null ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsNull ( ) throws java.lang.Exception { doTestIpConfiguredForStaticBootProtocol ( "192.168.1.1" , null ) ; }
Source:
protected org.ovirt.engine.core.dao.DiskDao getDiskDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.DiskDao getDiskDao ( ) { return diskDao ; }
Source:
private void incrementVmGeneration ( ) { org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmStaticDAO ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVm ( ) . getId ( ) ) ; }

Target:
private void incrementVmGeneration ( ) { org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmStaticDao ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVm ( ) . getId ( ) ) ; }
Source:
public void validateVmMemoryCantStartOnVdsHighPendingSwapSmall ( ) { vds.setSwapFree ( 60L ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCantStartOnVdsHighPendingSwapSmall ( ) { vds.setSwapFree ( 60L ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.MacPool getOldMacPool ( ) { if ( ( oldMacPool ) == null ) { oldMacPool = getMacPoolDao ( ) . get ( getMacPoolId ( ) ) ; } return oldMacPool ; }

Target:
private org.ovirt.engine.core.common.businessentities.MacPool getOldMacPool ( ) { if ( ( oldMacPool ) == null ) { oldMacPool = macPoolDao.get ( getMacPoolId ( ) ) ; } return oldMacPool ; }
Source:
protected boolean isDiskExist ( org.ovirt.engine.core.common.businessentities.Disk disk ) { if ( ( disk == null ) || ( ! ( isDiskExistInVm ( disk ) ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; return false ; } return true ; }

Target:
protected boolean checkDiskUsedAsOvfStore ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return checkDiskUsedAsOvfStore ( getDiskValidator ( disk ) ) ; }
Source:
public void copyDataTo ( ovirt_engine_dwh.osenumupdate_3_3.OsEnumUpdate.host_changesStruct other ) { other.enum_type = this . enum_type ; other.enum_key = this . enum_key ; other.language_code = this . language_code ; other.value = this . value ; }

Target:
public void copyKeysDataTo ( ovirt_engine_dwh.osenumupdate_3_3.OsEnumUpdate.row2Struct other ) { other.enum_type = this . enum_type ; other.enum_key = this . enum_key ; other.language_code = this . language_code ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) != null ) { } else { setItems ( null ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getRefreshSessionsCommand ( ) { return refreshSessionsCommand ; }
Source:
public boolean isAutoSuspend ( ) { return this . vmStatic.isAutoSuspend ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getCreatedByUserId ( ) { return vmStatic.getCreatedByUserId ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.StoragePoolParametersBase parameters = new org.ovirt.engine.core.common.action.StoragePoolParametersBase ( storagePoolId ) ; return backend.runInternalAction ( VdcActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.StoragePoolParametersBase parameters = new org.ovirt.engine.core.common.action.StoragePoolParametersBase ( storagePoolId ) ; return backend.runInternalAction ( ActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbProvisionedHost.getValue ( ) ) { model.getIsDiscorveredHosts ( ) . setEntity ( false ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbProvisionedHost.getValue ( ) ) { model.getIsDiscoveredHosts ( ) . setEntity ( false ) ; } }
Source:
void setNotSelected ( boolean vmIsUp ) ;

Target:
void setNotSelected ( boolean vmIsUp , boolean consoleInUse ) ;
Source:
private void mockConfig ( ) { mcr.mockConfigValue ( ConfigValues.PredefinedVMProperties , Version.v3_0 , "" ) ; mcr.mockConfigValue ( ConfigValues.UserDefinedVMProperties , Version.v3_0 , "" ) ; mcr.mockConfigValue ( ConfigValues.InitStorageSparseSizeInGB , 1 ) ; }

Target:
private void mockConfig ( ) { mcr.mockConfigValue ( ConfigValues.PredefinedVMProperties , Version.v3_0 , "" ) ; mcr.mockConfigValue ( ConfigValues.UserDefinedVMProperties , Version.v3_0 , "" ) ; mcr.mockConfigValue ( ConfigValues.InitStorageSparseSizeInGB , 1 ) ; mcr.mockConfigValue ( ConfigValues.VirtIoScsiEnabled , Version.v3_3 , true ) ; }
Source:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct networks , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct bonding , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct options ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) ;
Source:
public void testGetWithNotExistingDiskId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; org.junit.Assert.assertTrue ( "Disk should not exists in the UnregisteredDisks table" , unregisteredDisk.isEmpty ( ) ) ; }

Target:
public void testGetWithNotExistingDiskId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; org.junit.jupiter.api.Assertions.assertTrue ( unregisteredDisk.isEmpty ( ) , "Disk should not exists in the UnregisteredDisks table" ) ; }
Source:
public void setRngSourceRandom ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NotChangableForVmInPoolEntityModel < java.lang.Boolean > rngSourceRandom ) { this . rngSourceRandom = rngSourceRandom ; }

Target:
public void setRngSourceUrandom ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NotChangableForVmInPoolEntityModel < java.lang.Boolean > rngSourceUrandom ) { this . rngSourceUrandom = rngSourceUrandom ; }
Source:
private void initEditors ( ) { hostsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel > ( org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable.SelectionMode.SINGLE , true ) ; useCommonPasswordEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
private void initEditors ( ) { hostsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.ui.uicommonweb.models.hosts.HostDetailModel > > > ( org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable.SelectionMode.SINGLE , true ) ; useCommonPasswordEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; configureFirewallEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.LEFT ) ; configureFirewallEditor.setAccessible ( true ) ; }
Source:
protected void build ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model , org.ovirt.engine.core.common.businessentities.VmBase vm ) { vm.setMigrationSupport ( model.getMigrationMode ( ) . getSelectedItem ( ) ) ; vm.setMigrationDowntime ( model.getSelectedMigrationDowntime ( ) ) ; }

Target:
protected void build ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model , org.ovirt.engine.core.common.businessentities.VmBase vm ) { vm.setMigrationSupport ( model.getMigrationMode ( ) . getSelectedItem ( ) ) ; vm.setMigrationDowntime ( model.getSelectedMigrationDowntime ( ) ) ; vm.setMigrationPolicyId ( model.getSelectedMigrationPolicy ( ) ) ; }
Source:
public static void addStoragePoolExistingTasks ( org.ovirt.engine.core.common.businessentities.StoragePool sp ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . addStoragePoolExistingTasks ( sp ) ; }

Target:
public static void addStoragePoolExistingTasks ( org.ovirt.engine.core.common.businessentities.StoragePool sp ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . addStoragePoolExistingTasks ( sp ) ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addInitializeHandler ( com.google.gwt.event.logical.shared.InitializeHandler handler ) { return eventBus.addHandler ( com.google.gwt.event.logical.shared.InitializeEvent.getType ( ) , handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addInitializeHandler ( com.google.gwt.event.logical.shared.InitializeHandler handler ) { com.google.gwt.event.shared.HandlerRegistration reg = eventBus.addHandler ( com.google.gwt.event.logical.shared.InitializeEvent.getType ( ) , handler ) ; registerHandler ( reg ) ; return reg ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result1 ) { org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = result1.getReturnValue ( ) ; postSaveAction ( null , ( ( retVal != null ) && ( retVal.getSucceeded ( ) ) ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result1 ) { org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = result1.getReturnValue ( ) ; postSaveAction ( null , ( ( retVal != null ) && ( retVal.getSucceeded ( ) ) ) ) ; }
Source:
public void setIsDisksAvailable ( boolean value ) { if ( ( isDisksAvailable ) != value ) { isDisksAvailable = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsDisksAvailable" ) ) ; } }

Target:
public void setIsDisksAvailable ( boolean value ) { isDisksAvailable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsDisksAvailable" ) ) ; }
Source:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VM o1 ) { return ( o1.getusage_cpu_percent ( ) ) * ( o1.getnum_of_cpus ( ) ) ; }

Target:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VM o1 ) { return ( o1.getUsageCpuPercent ( ) ) * ( o1.getNumOfCpus ( ) ) ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getNetworkId ( ) ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getNetworkId ( ) ) ; } return persistedNetwork ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > GetDiskInterfaceList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO } ) ) ; }

Target:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > getDiskInterfaceList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO } ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isBoot ( ) ? getDefaultTitle ( ) : null ) ) ; return object.isBoot ( ) ? getDefaultImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { setTitle ( ( object.isBoot ( ) ? getDefaultTitle ( ) : null ) ) ; return object.isBoot ( ) ? getDefaultImage ( ) : null ; }
Source:
public void updateVnics ( final org.ovirt.engine.core.compat.Guid vmId , final java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType > vnicInstanceTypes ) { updateVnicsFromParams ( vmId , createAddVmInterfaceParams ( vmId , vnicInstanceTypes ) ) ; }

Target:
public void updateVnics ( final org.ovirt.engine.core.compat.Guid vmId , final java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType > vnicInstanceTypes ) { new org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceCreatingManager.UpdatedNicsUpdater ( ) { @ java.lang.Override protected void onNoNicsDefinedOnVm ( ) { callback.vnicCreated ( vmId ) ; } } . execute ( vmId , vnicInstanceTypes ) ; }
Source:
public void setpm_password ( java.lang.String value ) { mVdsStatic.setpm_password ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "pm_password" ) ) ; }

Target:
public void setPmProxyPreferences ( java.lang.String pmProxyPreferences ) { mVdsStatic.setPmProxyPreferences ( pmProxyPreferences ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.StopProgress ( ) ; cancel ( ) ; }
Source:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( ( "ADUSER@" + ( getDomain ( ) . getSelectedItem ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.DirectoryUser ) , query ) ; }

Target:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( ( "ADGROUP@" + ( ( ( org.ovirt.engine.core.aaa.ProfileEntry ) ( getProfile ( ) . getSelectedItem ( ) ) ) . getAuthz ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.DirectoryGroup ) , query ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.resources.externalDiskIcon ( ) : null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return object.getCinderVolumeType ( ) ; }
Source:
void setTitle ( java.lang.String title ) ;

Target:
void setTooltipText ( java.lang.String title ) ;
Source:
public java.util.Set < org.ovirt.engine.core.common.businessentities.VmRngDevice.Source > getRequiredRngSources ( ) { final java.util.Set < org.ovirt.engine.core.common.businessentities.VmRngDevice.Source > requiredRngSources = new java.util.HashSet ( getAdditionalRngSources ( ) ) ; requiredRngSources.add ( VmRngDevice.Source.RANDOM ) ; return java.util.Collections.unmodifiableSet ( requiredRngSources ) ; }

Target:
public java.util.Set < org.ovirt.engine.core.common.businessentities.VmRngDevice.Source > getRequiredRngSources ( ) { final java.util.Set < org.ovirt.engine.core.common.businessentities.VmRngDevice.Source > requiredRngSources = new java.util.HashSet ( getAdditionalRngSources ( ) ) ; requiredRngSources.add ( VmRngDevice.Source.getUrandomOrRandomFor ( getCompatibilityVersion ( ) ) ) ; return java.util.Collections.unmodifiableSet ( requiredRngSources ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDisks ( ) { return disks ; }

Target:
public java.util.Set < org.ovirt.engine.core.compat.Guid > getDiskIds ( ) { return disks ; }
Source:
public org.ovirt.engine.core.bll.network.macpool.MacPool createDecoratedPool ( org.ovirt.engine.core.compat.Guid macPoolId , org.ovirt.engine.core.bll.network.macpool.MacPool poolById , java.util.List < org.ovirt.engine.core.bll.network.macpool.MacPoolDecorator > decorators ) { org.ovirt.engine.core.bll.network.macpool.MacPool decoratedPool = decoratePool ( macPoolId , poolById , decorators ) ; return lockedObjectFactory.createLockingInstance ( decoratedPool , org.ovirt.engine.core.bll.network.macpool.MacPool.class , lockForMacPool ( macPoolId ) ) ; }

Target:
public org.ovirt.engine.core.bll.network.macpool.MacPool createDecoratedPool ( org.ovirt.engine.core.bll.network.macpool.MacPool macPool , java.util.List < org.ovirt.engine.core.bll.network.macpool.MacPoolDecorator > decorators ) { org.ovirt.engine.core.bll.network.macpool.MacPool lockedPool = lockedObjectFactory.createLockingInstance ( macPool , org.ovirt.engine.core.bll.network.macpool.MacPool.class , lockForMacPool ( macPool.getId ( ) ) ) ; org.ovirt.engine.core.bll.network.macpool.MacPool decoratedPool = decoratePool ( lockedPool , decorators ) ; return decoratedPool ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VmTemplate x , org.ovirt.engine.core.common.businessentities.VmTemplate y ) { return ( ( int ) ( ( getCachedActualDiskSize ( x ) ) - ( getCachedActualDiskSize ( y ) ) ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VmTemplate x , org.ovirt.engine.core.common.businessentities.VmTemplate y ) { return ( ( int ) ( ( x.getActualDiskSize ( ) ) - ( y.getActualDiskSize ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity getById ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetGlusterOptionById" , org.ovirt.engine.core.dao.gluster.GlusterOptionDaoDbFacadeImpl.optionRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity getById ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetGlusterOptionById" , org.ovirt.engine.core.dao.gluster.GlusterOptionDaoDbFacadeImpl.optionRowMapper , createIdParameterMapper ( id ) ) ; }
Source:
public static java.lang.String getPath ( java.lang.String hashName ) { java.lang.String path = null ; if ( ( hashName != null ) && ( ( org.ovirt.engine.ui.common.uicommon.DocumentationPathTranslator.documentationPathMap ) != null ) ) { path = org.ovirt.engine.ui.common.uicommon.DocumentationPathTranslator.documentationPathMap.get ( hashName ) ; } return path ; }

Target:
public static java.lang.String getPath ( java.lang.String helpTag ) { java.lang.String path = null ; if ( ( helpTag != null ) && ( ( org.ovirt.engine.ui.common.uicommon.DocumentationPathTranslator.documentationPathMap ) != null ) ) { path = org.ovirt.engine.ui.common.uicommon.DocumentationPathTranslator.documentationPathMap.get ( helpTag ) ; } return path ; }
Source:
public void testGetTagUserGroupByGroupIdAndTagId ( ) { org.ovirt.engine.core.common.businessentities.TagsUserGroupMap result = dao.getTagUserGroupByGroupIdAndByTagId ( existingUserGroupTag.getTagId ( ) , existingUserGroupTag.getGroupId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertEqualsTagUserGroupMap ( existingUserGroupTag , result ) ; }

Target:
public void testGetTagUserGroupByGroupIdAndTagId ( ) { org.ovirt.engine.core.common.businessentities.TagsUserGroupMap result = dao.getTagUserGroupByGroupIdAndByTagId ( existingUserGroupTag.getTagId ( ) , existingUserGroupTag.getGroupId ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; assertEqualsTagUserGroupMap ( existingUserGroupTag , result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.FencingPolicy getFencingPolicy ( ) { return fencingPolicy ; }

Target:
protected org.ovirt.engine.core.compat.Version getMinSupportedVersionForFencingPolicy ( ) { return ( fencingPolicy ) == null ? null : org.ovirt.engine.core.common.utils.FencingPolicyHelper.getMinimalSupportedVersion ( fencingPolicy ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages , getPendingResourceManager ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( org.ovirt.engine.core.common.businessentities.Cluster cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages , getPendingResourceManager ( ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.networks.ImportNetworksModel model ) { splitTable.edit ( model.getProviderNetworks ( ) , model.getImportedNetworks ( ) , model.getAddImportCommand ( ) , model.getCancelImportCommand ( ) ) ; driver.edit ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.networks.BaseImportNetworksModel model ) { splitTable.edit ( model.getProviderNetworks ( ) , model.getImportedNetworks ( ) , model.getAddImportCommand ( ) , model.getCancelImportCommand ( ) ) ; driver.edit ( model ) ; }
Source:
public void Cancel ( ) { CancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; UpdateActionAvailability ( ) ; }

Target:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }