auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void dataCenterDoesNotExist ( ) { hsp.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( validator.storagePoolExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ) ; }

Target:
public void dataCenterDoesNotExist ( ) { hsp.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.storagePoolExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ) ; }
Source:
protected boolean validateValues ( ) { if ( missingValues ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_MISSING_VALUES ) ; } return true ; }

Target:
protected boolean validateValues ( ) { if ( missingValues ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_MISSING_VALUES ) ; } if ( peakLowerThanAverage ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_PEAK_LOWER_THAN_AVERAGE ) ; } return true ; }
Source:
private void logResultOfPrestartVms ( int prestartedVmsCounter , int numOfVmsToPrestart , org.ovirt.engine.core.compat.Guid vmPoolId ) { if ( prestartedVmsCounter > 0 ) { org.ovirt.engine.core.bll.VmPoolMonitor.log.infoFormat ( "Prestarted {0} Vms out of the {1} required, in VmPool {2}" , prestartedVmsCounter , numOfVmsToPrestart , vmPoolId ) ; } else { org.ovirt.engine.core.bll.VmPoolMonitor.log.infoFormat ( "Failed to prestart any Vms for VmPool {0}" , vmPoolId ) ; } }

Target:
private void logResultOfPrestartVms ( int prestartedVmsCounter , int numOfVmsToPrestart , org.ovirt.engine.core.compat.Guid vmPoolId ) { if ( prestartedVmsCounter > 0 ) { org.ovirt.engine.core.bll.VmPoolMonitor.log.info ( "Prestarted Vms out of the required, in VmPool '{}'" , prestartedVmsCounter , numOfVmsToPrestart , vmPoolId ) ; } else { org.ovirt.engine.core.bll.VmPoolMonitor.log.info ( "Failed to prestart any Vms for VmPool '{}'" , vmPoolId ) ; } }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE_BRICKS_COMMIT ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; super . setActionMessageParameters ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__REMOVE_BRICKS_COMMIT ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; super . setActionMessageParameters ( ) ; }
Source:
public abstract boolean validateAndSetQuota ( ) ;

Target:
public abstract java.util.List < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > getQuotaStorageConsumptionParameters ( ) ;
Source:
public void validateSucceedsOnUpVolume ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsOnUpVolume ( ) { cmd.setGlusterVolumeId ( volumeId1 ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void nameIsNotNullForCreate ( ) throws java.lang.Exception { assertNicValidation ( createNic ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.CreateEntity.class , false , VmNetworkInterface.VALIDATION_MESSAGE_NAME_NOT_NULL ) ; }

Target:
public void nameIsNotNullForCreate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertNicValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createNic ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.CreateEntity.class , false , VmNetworkInterface.VALIDATION_MESSAGE_NAME_NOT_NULL ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { onRestoreFromExportDomain ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { model.onRestoreVms ( new org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { setWindow ( null ) ; } } ) ; }
Source:
public void testGetCurrent ( ) throws java.lang.Exception { setUriInfo ( setUpUriMatrixExpectations ( null ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; verifyModelWithCurrentCd ( cdrom ) ; }

Target:
public void testGetCurrent ( ) throws java.lang.Exception { setUriInfo ( setUpUriMatrixExpectations ( null ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.Cdrom cdrom = resource.get ( ) ; verifyModelWithCurrentCd ( cdrom ) ; }
Source:
java.lang.String errorConnectingToConsole ( java.lang.String name , java.lang.String s ) ;

Target:
java.lang.String invalidIconFormat ( java.lang.String s ) ;
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Disk getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.DiskImage entity = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; entity.setImageId ( GUIDS [ index ] ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendStorageDomainDiskSnapshotResourceTest.DISK_ID ) ; return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.Disk getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage entity = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; entity.setImageId ( GUIDS [ index ] ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendStorageDomainDiskSnapshotResourceTest.DISK_ID ) ; return entity ; }
Source:
public void testGetNotFound ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( true ) ; try { resource.get ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( true ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
com.google.gwt.safehtml.shared.SafeHtml italicFixedWidth ( java.lang.String pxWidth , java.lang.String text ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml italicWordWrapMaxWidth ( java.lang.String text ) ;
Source:
public void testExecuteQueryCommnad ( ) { getQuery ( ) . executeQueryCommand ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > actual = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.Assert.assertEquals ( "wrong Gluster Volume" , expected.getBricks ( ) , actual ) ; }

Target:
public void testExecuteQueryCommnad ( ) { getQuery ( ) . executeQueryCommand ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > actual = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( expected.getBricks ( ) , actual , "wrong Gluster Volume" ) ; }
Source:
public org.ovirt.engine.core.aaa.Directory getDirectory ( java.lang.String name ) { return getProfile ( name ) . getDirectory ( ) ; }

Target:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthz ( java.lang.String name ) { return getProfile ( name ) . getAuthz ( ) ; }
Source:
protected void setupHostTabAvailability ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { hostTab.setVisible ( false ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . update ( hostTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) ; }
Source:
void setSessionId ( java.lang.String sessionId ) { clientStorage.setLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; }

Target:
void setSessionId ( java.lang.String sessionId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . storeInHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; restApiSessionId = sessionId ; }
Source:
public void onFailure ( org.ovirt.engine.ui.frontend.communication.VdcOperation < org.ovirt.engine.core.common.queries.QueryType , org.ovirt.engine.core.common.queries.QueryParametersBase > operation , java.lang.Throwable exception ) { org.junit.Assert.assertEquals ( "Operations should match" , operationList.get ( 0 ) , operation ) ; org.junit.Assert.assertEquals ( "Exceptions should match" , testException , exception ) ; }

Target:
public void onFailure ( org.ovirt.engine.ui.frontend.communication.VdcOperation < org.ovirt.engine.core.common.queries.QueryType , org.ovirt.engine.core.common.queries.QueryParametersBase > operation , java.lang.Throwable exception ) { org.junit.jupiter.api.Assertions.assertEquals ( operationList.get ( 0 ) , operation , "Operations should match" ) ; org.junit.jupiter.api.Assertions.assertEquals ( testException , exception , "Exceptions should match" ) ; }
Source:
public void trace ( java.lang.Object arg0 ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( arg0 ) ) ; } }

Target:
public void warn ( java.lang.Object msg ) { log.warn ( addPrefixToLogMessage ( msg ) ) ; }
Source:
public void testGetVmBootActiveDisk ( ) { org.ovirt.engine.core.common.businessentities.Disk bootDisk = dao.getVmBootActiveDisk ( FixturesTool.VM_RHEL5_POOL_57 ) ; org.junit.Assert.assertNotNull ( "VM should have a boot disk attached" , bootDisk ) ; org.junit.Assert.assertEquals ( "Wrong boot disk for VM" , bootDisk.getId ( ) , FixturesTool.BOOTABLE_DISK_ID ) ; }

Target:
public void testGetVmBootActiveDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk bootDisk = dao.getVmBootActiveDisk ( FixturesTool.VM_RHEL5_POOL_57 ) ; org.junit.Assert.assertNotNull ( "VM should have a boot disk attached" , bootDisk ) ; org.junit.Assert.assertEquals ( "Wrong boot disk for VM" , bootDisk.getId ( ) , FixturesTool.BOOTABLE_DISK_ID ) ; }
Source:
public void testEventLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Event event = new org.ovirt.engine.api.model.Event ( ) ; event.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( event ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_HREF , event.getHref ( ) ) ; }

Target:
public void testEventLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Event event = new org.ovirt.engine.api.model.Event ( ) ; event.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( event ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_HREF , event.getHref ( ) ) ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addClickHandler ( com.google.gwt.event.dom.client.ClickHandler handler ) { return getButtonWidget ( ) . addClickHandler ( handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addClickHandler ( com.google.gwt.event.dom.client.ClickHandler handler ) { com.google.gwt.user.client.ui.Widget widget = getButtonWidget ( ) ; if ( widget instanceof com.google.gwt.event.dom.client.HasClickHandlers ) { return ( ( com.google.gwt.event.dom.client.HasClickHandlers ) ( widget ) ) . addClickHandler ( handler ) ; } else { return null ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType extractOsType ( org.ovirt.engine.core.common.businessentities.VmTemplate item ) { return item.getOs ( ) ; }

Target:
public int extractOsType ( org.ovirt.engine.core.common.businessentities.VmTemplate item ) { return item.getOsId ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return headerText ; }

Target:
protected void setHeaderTooltipStyle ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { if ( ( tooltipText == null ) || ( tooltipText.asString ( ) . isEmpty ( ) ) ) { renderedHeaderText = this . headerText ; } else { renderedHeaderText = org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader.templates.hasTooltip ( headerText ) ; } }
Source:
private void mockVds ( ) { mockGetStorageDomainList ( 100 , 100 ) ; }

Target:
protected void mockGetStorageDomainList ( ) { storageDomainsList = getStorageDomainList ( ) ; mockDiskImageDao ( ) ; mockStorageDomainDao ( storageDomainsList ) ; }
Source:
protected void wakeup ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; auditLogDirector.log ( logable , AuditLogType.AFFINITY_RULES_ENFORCEMENT_MANAGER_START ) ; scheduleJobs ( getRegularInterval ( ) , getInitialInterval ( ) ) ; }

Target:
protected void wakeup ( ) { auditLogDirector.log ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) , AuditLogType.AFFINITY_RULES_ENFORCEMENT_MANAGER_START ) ; scheduleJobs ( getRegularInterval ( ) , getInitialInterval ( ) ) ; }
Source:
public void compensate ( ) { for ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters : enclosingCommand.getParameters ( ) . getParametersList ( ) ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( parameters.getImageId ( ) , ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( parameters.getDestinationImageId ( ) , ImageStatus.OK ) ; } }

Target:
public void compensate ( ) { for ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters : enclosingCommand.getParameters ( ) . getParametersList ( ) ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( parameters.getImageGroupID ( ) , ImageStatus.OK ) ; } }
Source:
public void setMultipathing ( int value ) { if ( ( multipathing ) != value ) { multipathing = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Multipathing" ) ) ; } }

Target:
public void setMultipathing ( int value ) { if ( ( multipathing ) != value ) { multipathing = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Multipathing" ) ) ; } }
Source:
private void emitOnMessageReceived ( byte [ ] message ) { for ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.EventListener el : eventListeners ) { el.onMessageReceived ( message ) ; } }

Target:
protected void emitOnMessageReceived ( byte [ ] message ) { for ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.MessageListener el : eventListeners ) { el.onMessageReceived ( message ) ; } }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ExternalDiscoveredHost > ( ) ; } return source ; }

Target:
public void getExternalProviderDiscoveredHostList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.common.businessentities.Provider provider ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.core.common.queries.ProviderQueryParameters params = new org.ovirt.engine.core.common.queries.ProviderQueryParameters ( ) ; params.setProvider ( provider ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetDiscoveredHostListFromExternalProvider , params , aQuery ) ; }
Source:
public void initializeCommand ( ) { org.ovirt.engine.core.common.action.AdElementParametersBase parameters = createParameters ( ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAdGroupCommand < org.ovirt.engine.core.common.action.AdElementParametersBase > ( parameters ) ) ; }

Target:
public void initializeCommand ( ) { org.ovirt.engine.core.common.action.AdElementParametersBase parameters = createParameters ( ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveGroupCommand < org.ovirt.engine.core.common.action.AdElementParametersBase > ( parameters ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.VM model , int index ) { super . verifyModel ( model , index ) ; org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.verifyModelSpecific ( model , index ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Vm model , int index ) { super . verifyModel ( model , index ) ; org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.verifyModelSpecific ( model , index ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) . unless ( ( ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getCompatibilityVersion ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) . unless ( ( ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getCompatibilityVersion ( ) ) ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskDescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskAlias ( ) ; }
Source:
public void setKeyPressHandler ( org.ovirt.engine.ui.common.widget.dialog.PopupNativeKeyPressHandler keyPressHandler ) { this . keyPressHandler = keyPressHandler ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration setKeyPressHandler ( org.ovirt.engine.ui.common.widget.dialog.PopupNativeKeyPressHandler keyPressHandler ) { this . keyPressHandler = keyPressHandler ; return ( ) -> this . keyPressHandler = null ; }
Source:
public void onExport ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( getWindow ( ) ) ) ; if ( ! ( model.Validate ( ) ) ) { return ; } model.StartProgress ( null ) ; getTemplatesNotPresentOnExportDomain ( ) ; }

Target:
public void onExport ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( getWindow ( ) ) ) ; if ( ! ( model.validate ( ) ) ) { return ; } model.startProgress ( null ) ; getTemplatesNotPresentOnExportDomain ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithInvalidBricks ( ) { cmd.setGlusterVolumeId ( volumeWithRemoveBricksTask ) ; cmd.getParameters ( ) . setBricks ( getInvalidBricks ( volumeWithRemoveBricksTask ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected boolean validateDestStorage ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) ; return ( validate ( validator.isDomainExistAndActive ( ) ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }

Target:
protected boolean validateDestStorage ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) ; return ( validate ( validator.isDomainExistAndActive ( ) ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }
Source:
protected void ItemsChanged ( ) { setSelectedItem ( null ) ; setSelectedItems ( null ) ; }

Target:
protected void itemsChanged ( ) { setSelectedItem ( null ) ; setSelectedItems ( null ) ; }
Source:
public org.ovirt.engine.core.notifier.transport.EventSenderResult send ( org.ovirt.engine.core.common.businessentities.AuditLogEvent auditLogEvent , org.ovirt.engine.core.common.businessentities.AuditLogEventSubscriber AuditLogEventSubscriber ) ;

Target:
public abstract void dispatchEvent ( org.ovirt.engine.core.notifier.filter.AuditLogEvent event , java.lang.String address ) ;
Source:
org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( org.ovirt.engine.core.compat.Guid networkId ) { return getDbFacade ( ) . getNetworkDao ( ) . get ( networkId ) ; }

Target:
org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( org.ovirt.engine.core.compat.Guid networkId ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.NetworkDao.class ) . get ( networkId ) ; }
Source:
public void testGetFetchAllQuotaInTheSetup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( null ) ; org.junit.Assert.assertEquals ( 13 , quotaList.size ( ) ) ; }

Target:
public void testGetFetchAllQuotaInTheSetup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( null ) ; org.junit.jupiter.api.Assertions.assertEquals ( 13 , quotaList.size ( ) ) ; }
Source:
public void illegalCpuUpdate ( ) { createCommandWithDifferentCpuName ( ) ; cpuIsNotUpdatable ( ) ; cpuManufacturersMatch ( ) ; cpuExists ( ) ; clusterHasVMs ( ) ; clusterHasVds ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( EngineMessage.VDS_GROUP_CPU_IS_NOT_UPDATABLE ) ; }

Target:
public void illegalCpuUpdate ( ) { createCommandWithDifferentCpuName ( ) ; cpuIsNotUpdatable ( ) ; cpuManufacturersMatch ( ) ; cpuExists ( ) ; clusterHasVMs ( ) ; clusterHasVds ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.VDS_GROUP_CPU_IS_NOT_UPDATABLE ) ; }
Source:
protected void setUpClusterQueryExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { CLUSTER_ID } , new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ) ; }

Target:
protected void setUpClusterQueryExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetClusterById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { CLUSTER_ID } , new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; }
Source:
private static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWithNetworkInUse ( ) { return org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE ) ; }

Target:
private static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWithOneNetworkInUse ( ) { return org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE ) ; }
Source:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return super . createTask ( asyncTaskCreationInfo , parentCommand ) ; }

Target:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return super . createTask ( taskId , asyncTaskCreationInfo , parentCommand ) ; }
Source:
protected void executeCommand ( ) { executeVmCommand ( ) ; }

Target:
protected void executeCommand ( ) { if ( shouldSkipCommandExecutionCached ( ) ) { org.ovirt.engine.core.bll.VmCommand.setSucceeded ( true ) ; return ; } executeVmCommand ( ) ; }
Source:
public void onLogout ( ) { user.onUserLogout ( ) ; }

Target:
public void onLogout ( ) { user.onUserLogout ( ) ; frontendFailureEventListener.hide ( ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemovePermission , new org.ovirt.engine.core.common.action.PermissionsOperationsParameters ( getPermissions ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemovePermission , new org.ovirt.engine.core.common.action.PermissionsOperationsParameters ( getPermissions ( ) , targetId ) ) ; }
Source:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case FOREMAN : default : return "http://localhost" ; } }

Target:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case OPENSTACK_VOLUME : return "http://localhost:8776" ; case VMWARE : return "" ; case FOREMAN : default : return "http://localhost" ; } }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost object ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.guide.MoveHostPopupView.Driver.driver.edit ( object ) ; table.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost object ) { if ( ! ( object.isMultiSelection ( ) ) ) table.setSelectionModel ( new com.google.gwt.view.client.SingleSelectionModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.guide.MoveHostPopupView.Driver.driver.edit ( object ) ; table.edit ( object ) ; }
Source:
private java.lang.String getProxyUri ( ) { java.lang.String scheme = ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ImageProxySSLEnabled ) ) ? org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.HTTPS_SCHEME : org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.HTTP_SCHEME ; java.lang.String address = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.ImageProxyAddress ) ; return ( scheme + address ) + ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.IMAGES_PATH ) ; }

Target:
private java.lang.String getProxyUri ( ) { java.lang.String scheme = ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ImageProxySSLEnabled ) ) ? org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.HTTPS_SCHEME : org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.HTTP_SCHEME ; java.lang.String address = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.ImageProxyAddress ) ; return ( scheme + address ) + ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.IMAGES_PATH ) ; }
Source:
public void loadAttachableDisks ( ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) , new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.LUN ) ) ; }

Target:
public void loadAttachableDisks ( ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) , new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.GetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.LUN ) ) ; }
Source:
public void refreshNetworkConfiguration ( ) { getBackend ( ) . getResourceManager ( ) . runVdsCommand ( VDSCommandType.CollectVdsNetworkDataAfterInstallation , new org.ovirt.engine.core.common.vdscommands.CollectHostNetworkDataVdsCommandParameters ( host ) ) ; }

Target:
public void refreshNetworkConfiguration ( ) { org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend.class ) . runVdsCommand ( VDSCommandType.CollectVdsNetworkDataAfterInstallation , new org.ovirt.engine.core.common.vdscommands.CollectHostNetworkDataVdsCommandParameters ( host ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost moveHost = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost ) ( target ) ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; moveHost.PostGetHostList ( hosts ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost moveHost = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost ) ( target ) ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; moveHost.postGetHostList ( hosts ) ; }
Source:
private void removeMemoryImages ( ) { new org.ovirt.engine.core.bll.memory.MemoryImageRemoverFromExportDomain ( getVm ( ) , this , getParameters ( ) . getStoragePoolId ( ) , getParameters ( ) . getStorageDomainId ( ) ) . remove ( ) ; }

Target:
private void removeMemoryImages ( ) { new org.ovirt.engine.core.bll.memory.MemoryImageRemoverFromExportDomain ( getVm ( ) , this , org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) ) . remove ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . eventMainTabLabel ( ) , 13 , ginjector.getMainTabEventModelProvider ( ) , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.events.EventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.eventMainTabLabel ( ) , 14 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > getNetworks ( ) { return org.ovirt.engine.core.bll.network.dc.NetworkCommon.getNetworkDAO ( ) . getAllForDataCenter ( getNetwork ( ) . getDataCenterId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > getNetworks ( ) { if ( ( networks ) == null ) { networks = org.ovirt.engine.core.bll.network.dc.NetworkCommon.getNetworkDAO ( ) . getAllForDataCenter ( getNetwork ( ) . getDataCenterId ( ) ) ; } return networks ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vm=%s" , super . toString ( ) , getVm ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "vm" , getVm ( ) ) ; }
Source:
void setupCloneTemplatePermissions ( org.ovirt.engine.api.model.Vm vm , org.ovirt.engine.core.common.action.VmManagementParametersBase params ) { if ( ( vm.isSetPermissions ( ) ) && ( vm.getPermissions ( ) . isSetClone ( ) ) ) { params.setCopyTemplatePermissions ( vm.getPermissions ( ) . isClone ( ) ) ; } }

Target:
void setupCloneTemplatePermissions ( org.ovirt.engine.core.common.action.VmManagementParametersBase params ) { boolean clonePermissions = org.ovirt.engine.api.common.util.QueryHelper.getBooleanMatrixParameter ( uriInfo , org.ovirt.engine.api.restapi.resource.BackendVmsResource.CLONE_PERMISSIONS , true , false ) ; if ( clonePermissions ) { params.setCopyTemplatePermissions ( clonePermissions ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup mockCluster ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.FenceExecutorTest.FENCECD_HOST_CLUSTER_ID ) ; cluster.setcompatibility_version ( org.ovirt.engine.core.bll.FenceExecutorTest.CLUSTER_VERSION ) ; cluster.setArchitecture ( org.ovirt.engine.core.bll.FenceExecutorTest.CLUSTER_ARCHITECTURE_TYPE ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup mockCluster ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.FenceExecutorTest.FENCECD_HOST_CLUSTER_ID ) ; cluster.setCompatibilityVersion ( org.ovirt.engine.core.bll.FenceExecutorTest.CLUSTER_VERSION ) ; cluster.setArchitecture ( org.ovirt.engine.core.bll.FenceExecutorTest.CLUSTER_ARCHITECTURE_TYPE ) ; return cluster ; }
Source:
public void setConfigurationProperties ( java.util.Properties configurationProperties ) { this . configruationProperties = configurationProperties ; }

Target:
public void setContext ( java.util.Map < org.ovirt.engine.core.aaa.ExtensionProperties , java.lang.Object > context ) { this . context = context ; }
Source:
protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { }

Target:
protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.DataFromHostSetupNetworksModel dataFromHostSetupNetworksModel , java.lang.Object ... params ) { }
Source:
public void testValidateNameSizeImportAsCloned ( ) { checkTemplateName ( true , string100 ) ; }

Target:
public void testDoNotValidateNameSizeImport ( ) { checkTemplateName ( false , string500 ) ; }
Source:
void addStyles ( ) { isoImageEditor.addLabelStyleName ( style.isoImageEditorLabel ( ) ) ; isoImageEditor.addContentWidgetStyleName ( style.isoImageEditorBox ( ) ) ; }

Target:
void addStyles ( ) { isoImageEditor.addLabelStyleName ( style.isoImageEditorLabel ( ) ) ; isoImageEditor.addContentWidgetContainerStyleName ( style.isoImageEditorBox ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmNetworkInterface createBaseNic ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface ) ( org.ovirt.engine.ui.uicommonweb.Cloner.clone ( getNic ( ) ) ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface createBaseNic ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface ) ( org.ovirt.engine.ui.uicommonweb.Cloner.clone ( getNic ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy.getFromStorageDomainId ( getEnclosingCommand ( ) . getParameters ( ) . getSourceStorageDomainId ( ) ) ; } return providerProxy ; }

Target:
protected org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy.getFromStorageDomainId ( getEnclosingCommand ( ) . getParameters ( ) . getSourceStorageDomainId ( ) ) ; } return providerProxy ; }
Source:
void handleMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { container.removeStyleName ( style.panelOver ( ) ) ; dragHandle.setVisible ( false ) ; }

Target:
void handleMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { if ( ! ( dragEnabled ) ) { return ; } container.removeStyleName ( style.panelOver ( ) ) ; dragHandle.setVisible ( false ) ; }
Source:
public org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk resource ) { validateEnums ( org.ovirt.engine.api.model.Disk.class , resource ) ; return super . update ( resource ) ; }

Target:
public org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk disk ) { validateEnums ( org.ovirt.engine.api.model.Disk.class , disk ) ; return performUpdate ( disk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.DiskResolver ( ) , VdcActionType.UpdateVmDisk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.UpdateParametersProvider ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getVM ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getSelectedItem ( ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel getSelectedHasConsoleModel ( ) { if ( ( ( selectedHasConsoleModels ) == null ) || ( ( selectedHasConsoleModels.size ( ) ) != 1 ) ) { return null ; } return selectedHasConsoleModels.get ( 0 ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( super . getEntity ( ) ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc heartBeat ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.heartBeat ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > createVolumeInfo ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.createVolumeContainer ( jobId , createVolumeInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }
Source:
public void testGetStorageDomainWithCorrectStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , StorageDomainStatus.Inactive ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_NFS_INACTIVE_ISO , result.getId ( ) ) ; }

Target:
public void testGetStorageDomainWithCorrectStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , StorageDomainStatus.Inactive ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_NFS_INACTIVE_ISO , result.get ( 0 ) . getId ( ) ) ; }
Source:
protected void initHttpHeaders ( org.apache.xmlrpc.XmlRpcRequest pRequest ) throws org.apache.xmlrpc.client.XmlRpcClientException { super . initHttpHeaders ( pRequest ) ; java.lang.String correlationId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getCorrelationId ( ) ; if ( org.apache.commons.lang.StringUtils.isNotBlank ( correlationId ) ) { method.setRequestHeader ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.CustomXmlRpcCommonsTransport.FLOW_ID_HEADER_NAME , correlationId ) ; } }

Target:
protected void initHttpHeaders ( org.apache.xmlrpc.XmlRpcRequest pRequest ) throws org.apache.xmlrpc.client.XmlRpcClientException { super . initHttpHeaders ( pRequest ) ; java.lang.String correlationId = org.ovirt.engine.core.utils.CorrelationIdTracker.getCorrelationId ( ) ; if ( org.apache.commons.lang.StringUtils.isNotBlank ( correlationId ) ) { method.setRequestHeader ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.CustomXmlRpcCommonsTransport.FLOW_ID_HEADER_NAME , correlationId ) ; } }
Source:
public boolean ConnectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return true ; }

Target:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return true ; }
Source:
protected void proceedOnFail ( ) { getQueryReturnValue ( ) . setIsSearchValid ( false ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > searchProviders ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getProviderDao ( ) , true , null ) ; }
Source:
public boolean validate ( ) { getName ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.SpecialAsciiI18NOrNoneValidation ( ) } ) ; return getName ( ) . getIsValid ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.qos.QosType getQosType ( ) { return org.ovirt.engine.core.common.businessentities.qos.QosType.STORAGE ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getNetworkByVnicProfileId ( nic.getVnicProfileId ( ) ) ; } return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = networkHelper.getNetworkByVnicProfileId ( nic.getVnicProfileId ( ) ) ; } return network ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { org.ovirt.engine.core.compat.Guid slaveUpserverId = getUpServerId ( slaveVolume.getClusterId ( ) ) ; if ( slaveUpserverId == null ) { return false ; } return checkEmptyGlusterVolume ( slaveUpserverId , slaveVolume.getName ( ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { org.ovirt.engine.core.compat.Guid slaveUpserverId = getUpServerId ( slaveVolume.getClusterId ( ) ) ; if ( slaveUpserverId == null ) { return false ; } return checkEmptyGlusterVolume ( slaveUpserverId , slaveVolume.getName ( ) ) ; }
Source:
public java.util.Map HostDevListByCaps ( ) { return hostService.hostdevListByCaps ( ) ; }

Target:
public java.util.Map HostDevListByCaps ( ) { return hostService.hostDevListByCaps ( ) ; }
Source:
protected void onReset ( ) { super . onReset ( ) ; clearSelection ( ) ; org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . resetTableScrollPosition ( ) ; }

Target:
protected void onReset ( ) { super . onReset ( ) ; clearSelection ( ) ; if ( ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) ) != null ) { org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) . resetScrollPosition ( ) ; } }
Source:
private void assertSingleMapEntryUnchanged ( ) { org.ovirt.engine.core.utils.collections.CopyOnAccessMapTest.MyValue newValue = innerMap.get ( key1 ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.utils.collections.CopyOnAccessMapTest.VALUE1_WIDTH , newValue.getWidth ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.utils.collections.CopyOnAccessMapTest.VALUE1_LENGTH , newValue.getLength ( ) ) ; }

Target:
private void assertSingleMapEntryUnchanged ( ) { org.ovirt.engine.core.utils.collections.CopyOnAccessMapTest.MyValue newValue = innerMap.get ( key1 ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.utils.collections.CopyOnAccessMapTest.VALUE1_WIDTH , newValue.getWidth ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.utils.collections.CopyOnAccessMapTest.VALUE1_LENGTH , newValue.getLength ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( vnicProfile.getNetworkId ( ) , getOldVnicProfile ( ) . getNetworkId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( vnicProfile.getNetworkId ( ) , getOldVnicProfile ( ) . getNetworkId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ; }