auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetClustersHavingHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters = ( ( org.ovirt.engine.core.dao.ClusterDaoImpl ) ( dao ) ) . getClustersHavingHosts ( ) ; org.junit.Assert.assertNotNull ( clusters ) ; org.junit.Assert.assertThat ( clusters , org.hamcrest.Matchers.hasSize ( 4 ) ) ; }

Target:
public void testGetClustersHavingHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters = dao.getClustersHavingHosts ( ) ; org.junit.Assert.assertNotNull ( clusters ) ; org.junit.Assert.assertThat ( clusters , org.hamcrest.Matchers.hasSize ( 4 ) ) ; }
Source:
private void setStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic value ) { privateStorageDomain = value ; }

Target:
public void setStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic value ) { privateStorageDomain = value ; }
Source:
public void testIsInternalExecutionDefault ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; org.junit.Assert.assertFalse ( "By default, a query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionDefault ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; org.junit.Assert.assertFalse ( "By default, a query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }
Source:
private void stubDaos ( ) { mockVmDynamic ( ) ; mockVmStatic ( true ) ; mockVdsDao ( ) ; }

Target:
private void stubDaos ( ) { mockVmStatic ( true ) ; mockVdsDao ( ) ; }
Source:
public void registerProfile ( org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { profiles.put ( profile.getName ( ) , profile ) ; }

Target:
public void registerProfile ( org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { registerProfile ( profiles , profile ) ; }
Source:
protected void doTestGlusterOnlyGet ( java.lang.String base ) { setupExpectations ( ApplicationMode.GlusterOnly , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.relationshipsGlusterOnly ) ; verifyResponseGlusterOnly ( resource.get ( ) ) ; }

Target:
protected void doTestGlusterOnlyGet ( ) { setupExpectations ( ApplicationMode.GlusterOnly , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.relationshipsGlusterOnly ) ; verifyResponseGlusterOnly ( resource.get ( ) ) ; }
Source:
public static org.ovirt.engine.core.vdsbroker.VdsManager buildVdsManager ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = new org.ovirt.engine.core.vdsbroker.VdsManager ( vds ) ; vdsManager.schedulJobs ( ) ; return vdsManager ; }

Target:
public static org.ovirt.engine.core.vdsbroker.VdsManager buildVdsManager ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = new org.ovirt.engine.core.vdsbroker.VdsManager ( vds ) ; return vdsManager ; }
Source:
public void testGetFilteredWithPermissionsNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.storage_pool result = dao.get ( existingPool.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetResult ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( existingPool.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetResult ( result ) ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionAvailability ( ) ; }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { }
Source:
protected boolean performImagesChecks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > diskImagesToCheck = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getImagesList ( ) , true , false ) ; org.ovirt.engine.core.bll.validator.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( diskImagesToCheck ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) ) ; }

Target:
protected boolean performImagesChecks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > diskImagesToCheck = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getImagesList ( ) , true , false , true ) ; org.ovirt.engine.core.bll.validator.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( diskImagesToCheck ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Templates list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVmTemplates , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; else return mapCollection ( getBackendCollection ( SearchType.VmTemplate ) ) ; }

Target:
public org.ovirt.engine.api.model.Templates list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVmTemplates , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VmTemplate ) ) ; else return mapCollection ( getBackendCollection ( SearchType.VmTemplate ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return ( object.getProvidedBy ( ) ) == null ? "-" : object.getProviderName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return ( object.getProvidedBy ( ) ) == null ? new java.lang.String ( ) : object.getProviderName ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { stepDao.updateJobStepsCompleted ( job.getId ( ) , job.getStatus ( ) , job.getEndTime ( ) ) ; jobDao.update ( job ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { jobDao.update ( job ) ; stepDao.updateJobStepsCompleted ( job.getId ( ) , job.getStatus ( ) , job.getEndTime ( ) ) ; return null ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog , final boolean waitForResult ) { runMultipleAction ( actionType , parameters , callback , null , showErrorDialog , waitForResult ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog , final boolean waitForResult ) { runMultipleAction ( actionType , parameters , false , callback , null , showErrorDialog , waitForResult ) ; }
Source:
public void testPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }

Target:
public void testPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }
Source:
public 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 bonds , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct options ) { return vdsServer.futureSetupNetworks ( networks.getInnerMap ( ) , bonds.getInnerMap ( ) , options.getInnerMap ( ) ) ; }

Target:
public java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( java.util.Map networks , java.util.Map bonds , java.util.Map options ) { return vdsServer.futureSetupNetworks ( networks , bonds , options ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.glusterHookRowMapper ) ; return glusterHooks ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = jdbcTemplate.query ( query , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.glusterHookRowMapper ) ; return glusterHooks ; }
Source:
void clearTooltip ( ) { tooltip.setText ( "" ) ; tooltip.reconfigure ( ) ; }

Target:
void clearTooltip ( ) { tooltip.setText ( "" ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY , existingInterfacesMap ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentIdentification ( java.lang.String.valueOf ( attachment.getId ( ) ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY , existingInterfacesMap ) ; }
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 ) { verifyModel ( model , index , org.ovirt.engine.api.restapi.resource.BackendTagsResourceTest.PARENT_GUID.toString ( ) ) ; }
Source:
protected java.lang.String getVolumeId ( ) { return getParent ( ) . getParent ( ) . get ( ) . getId ( ) ; }

Target:
protected java.lang.String getVolumeId ( ) { return getParent ( ) . getParent ( ) . getId ( ) ; }
Source:
public java.lang.String getName ( ) { return getname ( ) ; }

Target:
public java.lang.String getName ( ) { return super . getName ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( java.lang.Boolean ) ( source ) ) ; } return false ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { if ( source != null ) { return ! ( ( java.lang.Boolean ) ( source ) ) ; } return false ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates updates ) { return imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates ) { return updateEntity ( updates , false ) ; }
Source:
protected void removeVmStatic ( boolean removePermissions ) { this . vmStaticDao.remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) , removePermissions ) ; }

Target:
protected void removeVmStatic ( boolean removePermissions ) { vmStaticDao.remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) , removePermissions ) ; }
Source:
public java.lang.String getGuestOs ( ) { return this . vmDynamic.getguest_os ( ) ; }

Target:
public java.lang.String getGuestOs ( ) { return this . vmDynamic.getGuestOs ( ) ; }
Source:
public void testStorageDomainForMemoryIsValidOnlyForDataTypes ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType ) { storageDomain.setStorageDomainType ( storageDomainType ) ; org.junit.Assert.assertEquals ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) , storageDomainType.isDataDomain ( ) ) ; }

Target:
public void testStorageDomainForMemoryIsValidOnlyForDataTypes ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType ) { storageDomain.setStorageDomainType ( storageDomainType ) ; org.junit.Assert.assertEquals ( filter.test ( storageDomain ) , storageDomainType.isDataDomain ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbGroup getByExternalId ( java.lang.String domain , org.ovirt.engine.core.common.utils.ExternalId externalId ) { return getCallsHandler ( ) . executeRead ( "GetGroupByExternalId" , org.ovirt.engine.core.dao.DbGroupDAODbFacadeImpl.DbGroupRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "domain" , domain ) . addValue ( "external_id" , externalId.getBytes ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbGroup getByExternalId ( java.lang.String domain , java.lang.String externalId ) { return getCallsHandler ( ) . executeRead ( "GetGroupByExternalId" , org.ovirt.engine.core.dao.DbGroupDAODbFacadeImpl.DbGroupRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "domain" , domain ) . addValue ( "external_id" , externalId ) ) ; }
Source:
protected void endSuccessfullySynchronous ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm.getId ( ) ) ; this . updateSnapshotOvf ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfullySynchronous ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; this . updateSnapshotOvf ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }
Source:
private boolean isBalloonActiveOnHost ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getDbFacade ( ) . getVdsGroupDao ( ) . getFromCache ( _vds.getVdsGroupId ( ) ) ; return ( cluster != null ) && ( cluster.isEnableBallooning ( ) ) ; }

Target:
private boolean isBalloonActiveOnHost ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getDbFacade ( ) . getVdsGroupDao ( ) . get ( _vds.getVdsGroupId ( ) ) ; return ( cluster != null ) && ( cluster.isEnableBallooning ( ) ) ; }
Source:
public static boolean getScheudulingAllowOverbookingSupported ( ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.SchedulerAllowOverBooking , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ) ) ; }

Target:
public boolean getScheudulingAllowOverbookingSupported ( ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.SchedulerAllowOverBooking , getDefaultConfigurationVersion ( ) ) ) ) ; }
Source:
private void canDoActionFailed ( final org.ovirt.engine.core.common.errors.VdcBllMessages reason ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( reason.toString ( ) ) ) ; }

Target:
private void canDoActionFailed ( final org.ovirt.engine.core.common.errors.EngineMessage reason ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( reason.toString ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult networkNotUsed ( java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Nameable > entities , org.ovirt.engine.core.common.errors.VdcBllMessages entitiesReplacementPlural , org.ovirt.engine.core.common.errors.VdcBllMessages entitiesReplacementSingular ) { return new org.ovirt.engine.core.common.utils.PluralMessages ( ) . getNetworkInUse ( getEntitiesNames ( entities ) , entitiesReplacementSingular , entitiesReplacementPlural ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult networkNotUsed ( java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Nameable > entities , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementPlural , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementSingular ) { return new org.ovirt.engine.core.common.utils.PluralMessages ( ) . getNetworkInUse ( getEntitiesNames ( entities ) , entitiesReplacementSingular , entitiesReplacementPlural ) ; }
Source:
public boolean getIsAvailable ( ) { return ( getDetailModel ( ) . getExternalId ( ) ) != null ; }

Target:
public boolean getIsAvailable ( ) { return ( getDetailModel ( ) . getExternalId ( ) ) == null ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { notifyEvent.raise ( this , new org.ovirt.engine.ui.uicommonweb.models.hosts.ValueEventArgs ( ( ( T ) ( returnValue ) ) ) ) ; }

Target:
public void onSuccess ( T returnValue ) { notifyEvent.raise ( this , new org.ovirt.engine.ui.uicommonweb.models.hosts.ValueEventArgs ( returnValue ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { postMigrateGetUpHosts ( privateVmList , ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > returnValue ) { postMigrateGetUpHosts ( privateVmList , returnValue ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
public void setAndValidateSingleProfileTest ( ) { diskImage.setDiskProfileId ( diskProfile_a.getId ( ) ) ; map.put ( diskImage , org.ovirt.engine.core.bll.profiles.DiskProfileHelperTest.STORAGE_DOMAIN_1 ) ; org.junit.Assert.assertEquals ( diskProfileHelper.setAndValidateDiskProfiles ( map , dbUser ) , ValidationResult.VALID ) ; }

Target:
public void setAndValidateSingleProfileTest ( ) { diskImage.setDiskProfileId ( diskProfile_a.getId ( ) ) ; map.put ( diskImage , org.ovirt.engine.core.bll.profiles.DiskProfileHelperTest.STORAGE_DOMAIN_1 ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , diskProfileHelper.setAndValidateDiskProfiles ( map , dbUser ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllWithIpAddress ( java.lang.String address ) { return getCallsHandler ( ) . executeReadList ( "GetVdsStaticByIp" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "ip" , address ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllWithIpAddress ( java.lang.String address ) { return getCallsHandler ( ) . executeReadList ( "GetVdsStaticByIp" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "ip" , address ) ) ; }
Source:
private boolean isTypeRequiresAuthentication ( ) { org.ovirt.engine.core.common.businessentities.ProviderType type = getType ( ) . getSelectedItem ( ) ; return type == ( org.ovirt.engine.core.common.businessentities.ProviderType.FOREMAN ) ; }

Target:
private boolean isTypeRequiresAuthentication ( ) { return false ; }
Source:
public void persistCommandWithContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , getContext ( ) , enableCallBack ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , getContext ( ) , enableCallBack ) ; }
Source:
public java.nio.channels.SelectionKey getSelectionKey ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ( this . key ) == null ) { connect ( ) ; } return this . key ; }

Target:
public java.nio.channels.SelectionKey getSelectionKey ( ) { return this . key ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDeviceDao ( ) ) . thenReturn ( vmDeviceDao ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.GetWatchdogQueryTest.TEST_VM_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.GetWatchdogQueryTest.TEST_VM_ID ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) == ( event.getNativeEvent ( ) . getKeyCode ( ) ) ) { if ( ctx.canSetInModel ( ) ) { ctx.setInModel ( editor.getValue ( ) ) ; } } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) == ( event.getNativeEvent ( ) . getKeyCode ( ) ) ) { setInModel ( ctx , editor , editor.getValue ( ) ) ; } }
Source:
protected boolean canDoAction ( ) { return ( ( org.ovirt.engine.core.bll.VdsPowerDownCommand.getVds ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Maintenance ) ) && ( super . canDoAction ( ) ) ; }

Target:
protected boolean validate ( ) { return ( ( org.ovirt.engine.core.bll.VdsPowerDownCommand.getVds ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Maintenance ) ) && ( super . validate ( ) ) ; }
Source:
protected boolean hasWatchdog ( ) { return ( org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getWatchdog ( ) ) != null ? true : org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasWatchdog ( getVmId ( ) ) ; }

Target:
protected boolean hasWatchdog ( ) { return ( org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getWatchdog ( ) ) != null ; }
Source:
private void Frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { StopProgress ( ) ; } }

Target:
public void Frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { StopProgress ( ) ; } }
Source:
public void testGetMessagesBundle ( ) { java.util.ResourceBundle bundle = testTheme.getMessagesBundle ( ) ; org.junit.Assert.assertNotNull ( "There should be a bundle" , bundle ) ; org.junit.Assert.assertEquals ( "Login header" , bundle.getString ( "obrand.common.login_header_label" ) ) ; }

Target:
public void testGetMessagesBundle ( ) { java.util.List < java.util.ResourceBundle > bundle = testTheme.getMessagesBundle ( ) ; org.junit.Assert.assertNotNull ( "There should be a bundle" , bundle ) ; org.junit.Assert.assertEquals ( "Login header" , bundle.get ( 0 ) . getString ( "obrand.common.login_header_label" ) ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmDiskServer getDiskResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmDiskServer ( id , getDelegate ( ) . getDiskResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmDiskServer getDiskResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmDiskServer ( vmId , id , getDelegate ( ) . getDiskResource ( id ) ) ; }
Source:
public void triggerNow ( ) { if ( ( updateTimerJobId ) != null ) { org.ovirt.engine.core.utils.timer.SchedulerUtil scheduler = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.class ) ; scheduler.triggerJob ( updateTimerJobId ) ; } }

Target:
public void triggerNow ( ) { if ( ( updateTimerJobId ) != null ) { scheduler.triggerJob ( updateTimerJobId ) ; } }
Source:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmInterfaces ( ) ; addVmStatistics ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmStatistics ( ) ; addVmInterfaces ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public org.ovirt.engine.ui.uicommonweb.UICommand getCancelCommand ( ) { return cancelCommand ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getCancelCommand ( ) { return ( cancelCommand ) != null ? cancelCommand : super . getCancelCommand ( ) ; }
Source:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getstorage_pool_id ( ) . getValue ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }

Target:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) . getValue ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; } return false ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; } return false ; }
Source:
public void setIsDefault ( boolean value ) { privateIsDefault = value ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand setIsDefault ( boolean value ) { privateIsDefault = value ; return this ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; if ( object.getIsNew ( ) ) { object.getNumOfDesktops ( ) . setEntity ( 1 ) ; prestartedVmsEditor.setEnabled ( false ) ; } }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; if ( object.getIsNew ( ) ) { object.getNumOfDesktops ( ) . setEntity ( 1 ) ; prestartedVmsEditor.setEnabled ( false ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , SnapshotStatus.OK , SnapshotType.ACTIVE , vm , false , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , SnapshotStatus.OK , compensationContext ) ; }
Source:
protected boolean isUnavailable ( T size ) { return ( size == null ) || ( ( size.longValue ( ) ) == ( org.ovirt.engine.core.common.constants.StorageConstants.SIZE_IS_NOT_AVAILABLE ) ) ; }

Target:
protected boolean isUnavailable ( T size ) { return size == null ; }
Source:
public boolean isTypeOpenStackNetwork ( ) { return ( ( org.ovirt.engine.core.common.businessentities.ProviderType ) ( getType ( ) . getSelectedItem ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ; }

Target:
protected boolean isTypeOpenStackNetwork ( ) { return ( ( org.ovirt.engine.core.common.businessentities.ProviderType ) ( getType ( ) . getSelectedItem ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( returnValue ) ) ; diskModel.getStorageDomain ( ) . setSelectedItem ( storageDomain ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { getStorageDomain ( ) . setSelectedItem ( storageDomain ) ; }
Source:
public void removeAllCommandsInHierarchy ( final org.ovirt.engine.core.compat.Guid commandId ) { for ( org.ovirt.engine.core.compat.Guid childCmdId : new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( getChildCommandIds ( commandId ) ) ) { removeAllCommandsInHierarchy ( childCmdId ) ; } removeCommand ( commandId ) ; }

Target:
public void removeAllCommandsInHierarchy ( final org.ovirt.engine.core.compat.Guid commandId ) { for ( org.ovirt.engine.core.compat.Guid childCmdId : new java.util.ArrayList ( getChildCommandIds ( commandId ) ) ) { removeAllCommandsInHierarchy ( childCmdId ) ; } removeCommand ( commandId ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network n ) { return n.getname ( ) . equals ( getParameters ( ) . getInterface ( ) . getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getname ( ) . equals ( getParameters ( ) . getInterface ( ) . getNetworkName ( ) ) ; }
Source:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( vdsGroupCompatibilityVersion , value ) ) { this . vdsGroupCompatibilityVersion = value ; } }

Target:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { this . vdsGroupCompatibilityVersion = value ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index ) ; }
Source:
public void setAndValidateWithoutDiskProfilesTest ( ) { map.put ( diskImage , org.ovirt.engine.core.bll.profiles.DiskProfileHelperTest.STORAGE_DOMAIN_1 ) ; org.junit.Assert.assertEquals ( diskProfileHelper.setAndValidateDiskProfiles ( map , dbUser ) , ValidationResult.VALID ) ; }

Target:
public void setAndValidateWithoutDiskProfilesTest ( ) { map.put ( diskImage , org.ovirt.engine.core.bll.profiles.DiskProfileHelperTest.STORAGE_DOMAIN_1 ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , diskProfileHelper.setAndValidateDiskProfiles ( map , dbUser ) ) ; }
Source:
public static int getClusterDefaultMemoryOverCommit ( ) { return 100 ; }

Target:
public int getClusterDefaultMemoryOverCommit ( ) { return 100 ; }
Source:
public static boolean isSafeExpression ( java.lang.String expr ) { if ( ( org.ovirt.engine.core.searchbackend.SearchObjects.SAFE_SEARCH_EXPR.size ( ) ) == 0 ) { org.ovirt.engine.core.searchbackend.SearchObjects.init ( ) ; } return org.ovirt.engine.core.searchbackend.SearchObjects.SAFE_SEARCH_EXPR.contains ( expr.toLowerCase ( ) ) ; }

Target:
public static boolean isSafeExpression ( java.lang.String expr ) { return org.ovirt.engine.core.searchbackend.SearchObjects.SAFE_SEARCH_EXPR.contains ( expr.toLowerCase ( ) ) ; }
Source:
private void spice_Connected ( java.lang.Object sender ) { setIsConnected ( true ) ; updateActionAvailability ( ) ; }

Target:
private void spice_Connected ( java.lang.Object sender ) { setIsConnected ( true ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDS selectedItem ) { org.ovirt.engine.ui.webadmin.widget.host.HostInterfaceForm hostInterfaceForm = new org.ovirt.engine.ui.webadmin.widget.host.HostInterfaceForm ( getDetailModel ( ) ) ; contentPanel.remove ( ( ( contentPanel.getWidgetCount ( ) ) - 1 ) ) ; contentPanel.add ( hostInterfaceForm ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDS selectedItem ) { hostInterfaceForm = new org.ovirt.engine.ui.webadmin.widget.host.HostInterfaceForm ( getDetailModel ( ) ) ; contentPanel.remove ( ( ( contentPanel.getWidgetCount ( ) ) - 1 ) ) ; contentPanel.add ( hostInterfaceForm ) ; }
Source:
protected org.ovirt.engine.api.model.HostNIC populate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.HostNIC populate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( ( value.isPool ( ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.returnVmLabel ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.shutDownVm ( ) ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.returnVmLabel ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.shutDownVm ( ) ; }
Source:
public void initializeCommand ( ) { org.ovirt.engine.core.common.action.IdParameters parameters = createParameters ( ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.aaa.RemoveGroupCommand ( parameters ) ) ; }

Target:
public void initializeCommand ( ) { org.ovirt.engine.core.common.action.IdParameters parameters = createParameters ( ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.aaa.RemoveGroupCommand ( parameters , null ) ) ; }
Source:
public boolean validate ( boolean validateCpu ) { return validate ( true , validateCpu ) ; }

Target:
public boolean validate ( boolean validateCpu ) { return validate ( true , validateCpu , true ) ; }
Source:
private org.ovirt.engine.core.common.utils.Pair < T , V > addGhostEntry ( ) { T value = createGhostValue ( ) ; V widget = addEntry ( value , true ) ; return new org.ovirt.engine.core.common.utils.Pair < T , V > ( value , widget ) ; }

Target:
protected org.ovirt.engine.core.common.utils.Pair < T , V > addGhostEntry ( ) { T value = createGhostValue ( ) ; V widget = addEntry ( value , true ) ; return new org.ovirt.engine.core.common.utils.Pair < T , V > ( value , widget ) ; }
Source:
public void setup ( ) { map = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( ) ; cmd.init ( ) ; org.mockito.Mockito.doReturn ( eventQueue ) . when ( cmd ) . getEventQueue ( ) ; }

Target:
public void setup ( ) { map = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( ) ; cmd.init ( ) ; }
Source:
public void auditLogTypeValue ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.AuditLogType t = b.getAuditLogTypeValue ( ) ; org.junit.Assert.assertEquals ( AuditLogType.UNASSIGNED , t ) ; }

Target:
public void auditLogTypeValue ( ) { final org.ovirt.engine.core.common.AuditLogType t = b.getAuditLogTypeValue ( ) ; org.junit.Assert.assertEquals ( AuditLogType.UNASSIGNED , t ) ; }
Source:
public void testPatternBasedNameFails ( ) { initializeMock ( ) ; cmd.getParameters ( ) . getVm ( ) . setName ( "aa-??bb" ) ; org.junit.Assert.assertFalse ( "Pattern-based name should not be supported for VM" , cmd.validateInputs ( ) ) ; }

Target:
public void testPatternBasedNameFails ( ) { cmd.getParameters ( ) . getVm ( ) . setName ( "aa-??bb" ) ; org.junit.Assert.assertFalse ( "Pattern-based name should not be supported for VM" , cmd.validateInputs ( ) ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { super . Search ( ) ; } else { setItems ( null ) ; } }

Target:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { super . Search ( ) ; } }
Source:
protected void updateDataProvider ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.tags.TagModel > items ) { if ( ! ( items.isEmpty ( ) ) ) { super . updateDataProvider ( items ) ; expandTree ( ) ; } }

Target:
protected void updateDataProvider ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.tags.TagModel > items ) { if ( ! ( items.isEmpty ( ) ) ) { super . updateDataProvider ( items ) ; } }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object result ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser dbUser = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( result ) ) . getReturnValue ( ) ; if ( dbUser != null ) { setCreatedByUser ( getUserName ( dbUser ) ) ; } }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue result ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser dbUser = result.getReturnValue ( ) ; if ( dbUser != null ) { setCreatedByUser ( getUserName ( dbUser ) ) ; } }
Source:
private boolean networkExists ( ) { return org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getNetworkDAO ( ) . getAllForCluster ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getVdsGroupId ( ) ) ) . containsKey ( getNetworkName ( ) ) ; }

Target:
private boolean networkExists ( ) { return org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . getAllForCluster ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getVdsGroupId ( ) ) ) . containsKey ( getNetworkName ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network getNetworkByVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile = org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getVnicProfile ( vnicProfileId ) ; return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getNetworkByVnicProfile ( vnicProfile ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.Network getNetworkByVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile = getVnicProfile ( vnicProfileId ) ; return getNetworkByVnicProfile ( vnicProfile ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.Cluster group ) { getCallsHandler ( ) . executeModification ( "UpdateCluster" , getClusterParamSource ( group ) ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { getCallsHandler ( ) . executeModification ( "UpdateCluster" , getClusterParamSource ( cluster ) ) ; }
Source:
protected org.ovirt.engine.api.model.Qos postPopulate ( org.ovirt.engine.api.model.Qos model ) { model = super . postPopulate ( model ) ; model.setType ( QosType.STORAGE.name ( ) . toLowerCase ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Qos postPopulate ( org.ovirt.engine.api.model.Qos model ) { model = super . postPopulate ( model ) ; model.setType ( QosType.STORAGE ) ; return model ; }
Source:
public void setuser_id ( org.ovirt.engine.core.compat.Guid value ) { this . id = value ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { this . id = id ; }
Source:
public java.lang.String allocateNewMac ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { checkIfInitialized ( ) ; return allocateNewMacsWithoutLocking ( 1 ) . get ( 0 ) ; } }

Target:
public java.lang.String allocateNewMac ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { return allocateNewMacsWithoutLocking ( 1 ) . get ( 0 ) ; } }
Source:
public void WriteStartElement ( java.lang.String localName ) { try { writer.writeStartElement ( localName ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write start element" , e ) ; } }

Target:
public void writeStartElement ( java.lang.String localName ) { try { writer.writeStartElement ( localName ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write start element" , e ) ; } }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__CREATE ) ; addCustomValue ( GlusterConstants.VOLUME_SNAPSHOT_NAME , getParameters ( ) . getSnapshot ( ) . getSnapshotName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__CREATE ) ; addCustomValue ( GlusterConstants.VOLUME_SNAPSHOT_NAME , getParameters ( ) . getSnapshot ( ) . getSnapshotName ( ) ) ; super . setActionMessageParameters ( ) ; }
Source:
private boolean isGlusterSupportEnabled ( ) { return ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) . supportsGlusterService ( ) ) && ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . isGlusterPeerProbeNeeded ( ) ) ; }

Target:
protected boolean isGlusterSupportEnabled ( ) { return ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) . supportsGlusterService ( ) ) && ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . isGlusterPeerProbeNeeded ( ) ) ; }
Source:
public void freeMac ( java.lang.String mac ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { checkIfInitialized ( ) ; macsStorage.freeMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; } }

Target:
public void freeMac ( java.lang.String mac ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { macsStorage.freeMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; } }
Source:
public void setTotalDiskSize ( java.lang.Integer value ) { if ( ! ( totalDiskSize.equals ( value ) ) ) { totalDiskSize = value ; } }

Target:
public void setTotalDiskSize ( java.lang.Integer value ) { totalDiskSize = value ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN , new org.ovirt.engine.core.compat.Version ( ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { assertEquals ( "" , query ) ; setUpGetEntityExpectations ( true ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { assertEquals ( "" , query ) ; setUpGetEntityExpectations ( true ) ; }