auphong2707/dl4se-code-review-dataset huggingface dataset:
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 java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state , true , false ) ; }

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 ) { runMultipleAction ( actionType , parameters , callback , null ) ; }
Source:
public void nameNotUsed ( ) { validator = new org.ovirt.engine.core.bll.validator.ClusterValidator ( clusterDao , dataCenterDao , cluster , cpuFlagsManagerHandler ) ; org.junit.Assert.assertThat ( validator.nameNotUsed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nameNotUsed ( ) { org.junit.Assert.assertThat ( validator.nameNotUsed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void init ( ) { mockCpuFlagsManagerHandler ( ) ; vmHandler.init ( ) ; mockVmPropertiesUtils ( ) ; }

Target:
public void init ( ) { vmHandler.init ( ) ; mockVmPropertiesUtils ( ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.DBUser , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
private void setSelectedDefaultManagementNetwork ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel clusterModel , org.ovirt.engine.core.common.businessentities.network.Network defaultManagementNetwork ) { if ( defaultManagementNetwork != null ) { clusterModel.getManagementNetwork ( ) . setSelectedItem ( defaultManagementNetwork ) ; } }

Target:
private void setSelectedDefaultManagementNetwork ( org.ovirt.engine.core.common.businessentities.network.Network defaultManagementNetwork ) { if ( defaultManagementNetwork != null ) { getManagementNetwork ( ) . setSelectedItem ( defaultManagementNetwork ) ; } }
Source:
public java.lang.String getRoleName ( ) { org.ovirt.engine.core.common.businessentities.Role role = org.ovirt.engine.core.bll.PermissionsCommandBase.getRoleDao ( ) . get ( org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) . getrole_id ( ) ) ; return role == null ? null : role.getname ( ) ; }

Target:
public java.lang.String getRoleName ( ) { org.ovirt.engine.core.common.businessentities.Role role = org.ovirt.engine.core.bll.PermissionsCommandBase.getRoleDao ( ) . get ( org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) . getrole_id ( ) ) ; return role == null ? null : role.getName ( ) ; }
Source:
public void setIsSameVdsMessageVisible ( boolean value ) { isSameVdsMessageVisible = ( value & ( gethasSameVdsMessage ( ) ) ) & ( ! ( getIsAutoSelect ( ) ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsSameVdsMessageVisible" ) ) ; }

Target:
public void setIsSameVdsMessageVisible ( boolean value ) { isSameVdsMessageVisible = ( value && ( gethasSameVdsMessage ( ) ) ) && ( ! ( getIsAutoSelect ( ) ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsSameVdsMessageVisible" ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ! ( isHostNetworkUnreacable ( vds ) ) ) && ( vds.getstorage_pool_id ( ) . equals ( _vds.getstorage_pool_id ( ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ! ( isHostNetworkUnreacable ( vds ) ) ) && ( vds.getStoragePoolId ( ) . equals ( _vds.getStoragePoolId ( ) ) ) ; }
Source:
private void closeChannel ( ) { try { this . channel.close ( ) ; } catch ( java.io.IOException e ) { } }

Target:
private void closeChannel ( ) { try { this . channel.close ( ) ; } catch ( java.io.IOException e ) { } finally { this . channel = null ; } }
Source:
protected org.ovirt.engine.core.compat.Guid extractStoragePoolIdNullSafe ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return entity.getStoragePoolId ( ) . getValue ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid extractStoragePoolIdNullSafe ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return entity.getStoragePoolId ( ) ; }
Source:
public void updateHosts ( ) { updateExternalHostModels ( null ) ; }

Target:
public abstract void updateHosts ( ) ;
Source:
public void setUp ( ) { storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; memoryDisks = new java.util.LinkedList < > ( ) ; initFilter ( ) ; initStorageDomainValidator ( ) ; }

Target:
public void setUp ( ) { storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; memoryDisks = new java.util.LinkedList < > ( ) ; initFilter ( ) ; }
Source:
public int compare ( java.lang.Object x , java.lang.Object y ) { return GetValue ( x ) . compareTo ( GetValue ( y ) ) ; }

Target:
public int compare ( java.lang.Object x , java.lang.Object y ) { return getValue ( x ) . compareTo ( getValue ( y ) ) ; }
Source:
public void testGetSelectorScriptName ( ) { org.junit.Assert.assertEquals ( testServlet.getSelectorScriptName ( ) , "userportal.nocache.js" ) ; }

Target:
public void testGetSelectorScriptName ( ) { org.junit.Assert.assertEquals ( "userportal.nocache.js" , testServlet.getSelectorScriptName ( ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.VDSGroup source ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.SupportCustomDeviceProperties , source.getcompatibility_version ( ) . getValue ( ) ) ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.VDSGroup source ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.SupportCustomDeviceProperties , source.getcompatibility_version ( ) . getValue ( ) ) ) ) ; }
Source:
private boolean isVmNeedsToBeAutoStarted ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = getVmDynamicDao ( ) . get ( vmId ) ; return ( ( vmDynamic.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) && ( ( vmDynamic.getExitStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmExitStatus.Error ) ) ; }

Target:
protected abstract boolean isVmNeedsToBeAutoStarted ( org.ovirt.engine.core.compat.Guid vmId ) ;
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { switch ( org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.getActionState ( ) ) { case EXECUTE : return org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_REMOVE_TEMPLATE : org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_REMOVE_TEMPLATE_FAILED ; default : return org.ovirt.engine.core.common.AuditLogType.UNASSIGNED ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_REMOVE_TEMPLATE : org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_REMOVE_TEMPLATE_FAILED ; }
Source:
protected java.util.List < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > getPluginData ( ) { java.util.List < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > currentData = new java.util.ArrayList < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > ( org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager.getInstance ( ) . reloadAndGetCurrentData ( ) ) ; java.util.Collections.sort ( currentData ) ; return currentData ; }

Target:
protected java.util.List < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > getPluginData ( ) { java.util.List < org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginData > currentData = new java.util.ArrayList ( org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager.getInstance ( ) . reloadAndGetCurrentData ( ) ) ; java.util.Collections.sort ( currentData ) ; return currentData ; }
Source:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; vdsExist ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_CLUSTER_WITH_HOSTS_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( ) ; setupCpu ( ) ; vdsExist ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_CLUSTER_WITH_HOSTS_COMPATIBILITY_VERSION ) ; }
Source:
public void postDisconnect ( ) { outbox.clear ( ) ; }

Target:
public void postDisconnect ( ) { }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageFormatType getEnum ( org.ovirt.engine.core.common.businessentities.storage_domains storage ) { return storage.getStorageStaticData ( ) . getStorageFormat ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageFormatType getEnum ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return storage.getStorageStaticData ( ) . getStorageFormat ( ) ; }
Source:
private void createCommandWithOlderVersion ( boolean supportsVirtService , boolean supportsGlusterService ) { createCommand ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.createClusterWithOlderVersion ( true , false ) ) ; }

Target:
private void createCommandWithOlderVersion ( ) { createCommand ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.createClusterWithOlderVersion ( true , false ) ) ; }
Source:
public void setElementId ( java.lang.String elementId ) { this . getElement ( ) . setId ( elementId ) ; this . formPanel.setElementIdPrefix ( elementId ) ; }

Target:
public void setElementId ( java.lang.String elementId ) { this . getElement ( ) . setId ( elementId ) ; formPanel.setElementId ( elementId ) ; }
Source:
public void setvds_name ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . mVdsStatic.getvds_name ( ) , value ) ) ) { this . mVdsStatic.setvds_name ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_name" ) ) ; } }

Target:
public void setvds_name ( java.lang.String value ) { this . mVdsStatic.setvds_name ( value ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommand createTestCommand ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { return new org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.CreateGlusterVolumeParameters ( volumeEntity ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommand createTestCommand ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { org.ovirt.engine.core.common.action.gluster.CreateGlusterVolumeParameters parameters = new org.ovirt.engine.core.common.action.gluster.CreateGlusterVolumeParameters ( volumeEntity ) ; return new org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommand ( parameters , null ) ; }
Source:
public synchronized org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { org.ovirt.engine.core.bll.SPMAsyncTask task = org.ovirt.engine.core.bll.AsyncTaskFactory.Construct ( taskType , taskParameters ) ; AddTaskToManager ( task ) ; return task == null ? org.ovirt.engine.core.compat.Guid.Empty : task.getTaskID ( ) ; }

Target:
public org.ovirt.engine.core.bll.SPMAsyncTask CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.Construct ( taskType , taskParameters ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( vmId , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId ) { return getVirtioScsiControllers ( vmId , null , false ) ; }
Source:
public void setpriority ( int value ) { mVmStatic.setpriority ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "priority" ) ) ; }

Target:
public void setpriority ( int value ) { mVmStatic.setpriority ( value ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { postPrepareSanStorageForEdit ( model , true ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { postPrepareSanStorageForEdit ( model , true ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.scheduling.ClusterPolicy > list = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; java.util.Collections.sort ( list , new org.ovirt.engine.ui.uicommonweb.Linq.ClusterPolicyComparator ( ) ) ; setItems ( list ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.scheduling.ClusterPolicy > list = returnValue.getReturnValue ( ) ; java.util.Collections.sort ( list , new org.ovirt.engine.ui.uicommonweb.Linq.ClusterPolicyComparator ( ) ) ; setItems ( list ) ; }
Source:
public void setUp ( ) { command = new org.ovirt.engine.core.bll.SetVmTicketCommand ( new org.ovirt.engine.core.common.action.SetVmTicketParameters ( ) ) ; }

Target:
public void setUp ( ) { command = new org.ovirt.engine.core.bll.SetVmTicketCommand ( new org.ovirt.engine.core.common.action.SetVmTicketParameters ( ) , null ) ; }
Source:
public void testForValue ( ) { java.lang.System.out.println ( "test2" ) ; org.junit.Assert.assertEquals ( ( "Wrong forValue() for " + ( value ) ) , value , org.ovirt.engine.core.common.queries.ConfigurationValues.forValue ( value.getValue ( ) ) ) ; }

Target:
public void testForValue ( ) { org.junit.Assert.assertEquals ( ( "Wrong forValue() for " + ( value ) ) , value , org.ovirt.engine.core.common.queries.ConfigurationValues.forValue ( value.getValue ( ) ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; } }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { }
Source:
public void testNetworkLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Network network = new org.ovirt.engine.api.model.Network ( ) ; network.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( setUpUriExpectations ( ) , network ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_HREF , network.getHref ( ) ) ; }

Target:
public void testNetworkLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Network network = new org.ovirt.engine.api.model.Network ( ) ; network.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( network ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_HREF , network.getHref ( ) ) ; }
Source:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.storage_pool result = dao.get ( existingPool.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( existingPool.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void testGetValidatorWithOutKey ( ) { org.ovirt.engine.core.config.EngineConfigMap engineConfigMap = org.mockito.Mockito.mock ( org.ovirt.engine.core.config.EngineConfigMap.class ) ; org.mockito.Mockito.when ( engineConfigMap.getKey ( ) ) . thenReturn ( null ) ; org.ovirt.engine.core.config.validation.ConfigActionType setAction = org.ovirt.engine.core.config.validation.ConfigActionType.ACTION_GET ; setAction.validate ( engineConfigMap ) ; }

Target:
public void testGetValidatorWithOutKey ( ) { org.ovirt.engine.core.config.EngineConfigMap engineConfigMap = org.mockito.Mockito.mock ( org.ovirt.engine.core.config.EngineConfigMap.class ) ; org.ovirt.engine.core.config.validation.ConfigActionType setAction = org.ovirt.engine.core.config.validation.ConfigActionType.ACTION_GET ; setAction.validate ( engineConfigMap ) ; }
Source:
protected void buildVmCD ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( vm.getCdPath ( ) ) ) ) { createInfo.add ( VdsProperties.CDRom , vm.getCdPath ( ) ) ; } }

Target:
protected void buildVmCD ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( vm.getCdPath ( ) ) ) ) { createInfo.put ( VdsProperties.CDRom , vm.getCdPath ( ) ) ; } }
Source:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmId ) ; }

Target:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmId ) ; }
Source:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( storageDomainStaticDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }

Target:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( storageDomainStaticDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetStepByStepIdQuery.getQueryReturnValue ( ) . setReturnValue ( jobRepository.getStep ( org.ovirt.engine.core.bll.GetStepByStepIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetStepByStepIdQuery.getQueryReturnValue ( ) . setReturnValue ( jobRepository.getStep ( org.ovirt.engine.core.bll.GetStepByStepIdQuery.getParameters ( ) . getId ( ) , false ) ) ; }
Source:
public boolean isTaskOfType ( org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport supportObj , org.ovirt.engine.core.common.asynctasks.gluster.GlusterTaskType type ) { if ( ( ( supportObj.getAsyncTask ( ) ) != null ) && ( ( supportObj.getAsyncTask ( ) . getType ( ) ) == type ) ) { return true ; } return false ; }

Target:
public boolean isTaskOfType ( org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport supportObj , org.ovirt.engine.core.common.asynctasks.gluster.GlusterTaskType type ) { return ( ( supportObj.getAsyncTask ( ) ) != null ) && ( ( supportObj.getAsyncTask ( ) . getType ( ) ) == type ) ; }
Source:
public void setActiveTab ( com.gwtplatform.mvp.client.Tab tab ) { super . setActiveTab ( tab ) ; if ( ( tabWidgetHandler ) != null ) { tabWidgetHandler.setActiveTab ( ( ( org.ovirt.engine.ui.common.widget.tab.TabDefinition ) ( tab ) ) ) ; } }

Target:
public void setActiveTab ( com.gwtplatform.mvp.client.Tab tab ) { super . setActiveTab ( tab ) ; if ( ( ( tabWidgetHandler ) != null ) && ( tab instanceof org.ovirt.engine.ui.common.widget.tab.TabDefinition ) ) { tabWidgetHandler.setActiveTab ( ( ( org.ovirt.engine.ui.common.widget.tab.TabDefinition ) ( tab ) ) ) ; } }
Source:
public boolean isSetFile ( ) { return ( this . file ) != null ; }

Target:
public boolean isSetFile ( ) { return ( ( this . file ) != null ) && ( ! ( this . file.isEmpty ( ) ) ) ; }
Source:
private java.lang.String buildId ( int index ) { return org.ovirt.engine.core.compat.Guid.createGuidFromString ( ( "0-0-0-0-" + index ) ) . toString ( ) ; }

Target:
private java.lang.String buildId ( int index ) { return new org.ovirt.engine.core.compat.Guid ( ( "0-0-0-0-" + index ) ) . toString ( ) ; }
Source:
public void testGetAllAttachableDisksByPoolIdNull ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllAttachableDisksByPoolId ( null , null , false ) ; org.ovirt.engine.core.dao.DiskDaoTest.assertFullGetAllAttachableDisksByPoolId ( result ) ; }

Target:
public void testGetAllAttachableDisksByPoolIdNull ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllAttachableDisksByPoolId ( null , null , null , false ) ; org.ovirt.engine.core.dao.DiskDaoTest.assertFullGetAllAttachableDisksByPoolId ( result ) ; }
Source:
public void setParser ( org.ovirt.engine.core.config.EngineConfigCLIParser parser ) { this . parser = parser ; this . pwdValueHelper.setParser ( parser ) ; }

Target:
public void setParser ( org.ovirt.engine.core.config.EngineConfigCLIParser parser ) { this . pwdValueHelper.setParser ( parser ) ; }
Source:
public void setElementId ( java.lang.String elementId ) { this . elementId = elementId ; org.ovirt.engine.ui.common.widget.table.ElementIdCellTable.popuplateSwappedList ( ) ; }

Target:
public void setElementId ( java.lang.String elementId ) { this . elementId = elementId ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getVmValuesForMsgResolving ( ) { java.util.Map < java.lang.String , java.lang.String > values = java.util.Collections.singletonMap ( VdcObjectType.VM.name ( ) . toLowerCase ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVmName ( ) ) ; return values ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getVmValuesForMsgResolving ( ) { return java.util.Collections.singletonMap ( VdcObjectType.VM.name ( ) . toLowerCase ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVmName ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterById ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupById , new org.ovirt.engine.core.common.queries.GetVdsGroupByIdParameters ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( id ) ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterById ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( id ) ) , id ) ; }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . remove ( getParameters ( ) . getMacPoolId ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getParameters ( ) . getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
private void mockJobDao ( org.ovirt.engine.core.common.job.Job job ) { job.setJobSubjectEntities ( org.ovirt.engine.core.bll.job.JobRepositoryTest.JOB_SUBJECT_ENTITIES_MAP ) ; org.mockito.Mockito.when ( jobDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( job ) ; }

Target:
private void mockJobDao ( org.ovirt.engine.core.common.job.Job job ) { org.mockito.Mockito.when ( jobDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( job ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return object.getNetwork ( ) . getdescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return object.getdescription ( ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetErrataForEngine , org.ovirt.engine.core.common.queries.GetErrataCountsParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getErrataData ( ) , failure ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetErrataForEngine , org.ovirt.engine.core.common.queries.GetErrataCountsParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getErrataData ( ) , failure ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; }
Source:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskImageId ) ) ; }
Source:
protected void doTestGet ( org.ovirt.engine.core.common.mode.ApplicationMode appMode ) { setupExpectations ( appMode , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.relationships ) ; verifyResponse ( resource.get ( ) ) ; }

Target:
protected void doTestGet ( org.ovirt.engine.core.common.mode.ApplicationMode appMode ) { setupExpectations ( appMode ) ; verifyResponse ( resource.get ( ) ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher getRefresherForVds ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager , org.ovirt.engine.core.vdsbroker.ResourceManager resourceManager ) { return new org.ovirt.engine.core.vdsbroker.monitoring.EventVmStatsRefresher ( vdsManager , resourceManager ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher getRefresherForVds ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager ) { return new org.ovirt.engine.core.vdsbroker.monitoring.EventVmStatsRefresher ( vdsManager ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Network nwk ) { return getValue ( nwk.getCluster ( ) ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.network.Network nwk ) { return getValue ( nwk.getCluster ( ) ) ; }
Source:
public java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { long totalSpace = ( ( object.getTotalDiskSize ( ) ) != null ) ? object.getTotalDiskSize ( ) : 0 ; return ( ( long ) ( totalSpace ) ) ; }

Target:
public java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { java.lang.Integer totalSpace = object.getTotalDiskSize ( ) ; return totalSpace == null ? null : java.lang.Long.valueOf ( totalSpace ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network n ) { return n.getId ( ) . equals ( getParameters ( ) . getNetwork ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getId ( ) . equals ( getParameters ( ) . getNetwork ( ) . getId ( ) ) ; }
Source:
public void testStartFence ( ) throws java.lang.Exception { doTestFence ( FenceType.START , VdcActionType.StartVds , FenceActionType.START ) ; }

Target:
public void testStartFence ( ) throws java.lang.Exception { doTestFence ( FenceType.START , VdcActionType.StartVds ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getVdsName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getName ( ) ; }
Source:
protected org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao getVmNetworkInterfaceDao ( ) { return getDbFacade ( ) . getVmNetworkInterfaceDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao getVmNetworkInterfaceDao ( ) { return getDbFacade ( ) . getVmNetworkInterfaceDao ( ) ; }
Source:
protected void PostDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { super . PostDiscoverTargets ( newItems ) ; InitializeItems ( null , newItems ) ; lastDiscoveredTargets.clear ( ) ; lastDiscoveredTargets.addAll ( newItems ) ; getContainer ( ) . StopProgress ( ) ; }

Target:
protected void PostDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { super . PostDiscoverTargets ( newItems ) ; InitializeItems ( null , newItems ) ; lastDiscoveredTargets.clear ( ) ; lastDiscoveredTargets.addAll ( newItems ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) . intValue ( ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( null ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( null ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void setPreviousStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { previousStatus = value.getValue ( ) ; }

Target:
public void setPreviousStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { previousStatus = value ; }
Source:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable exception ) { setXmlInitialized ( ) ; }

Target:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable exception ) { }
Source:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , new java.util.ArrayList < > ( ) , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }

Target:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , new java.util.ArrayList < > ( ) ) , false , EngineMessage.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > createActionTable ( ) { return new org.ovirt.engine.ui.userportal.widget.table.column.UserPortalSimpleActionTable < T > ( modelProvider , getTableResources ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getClientStorage ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > createActionTable ( ) { return new org.ovirt.engine.ui.userportal.widget.table.column.UserPortalSimpleActionTable < T > ( modelProvider , getTableResources ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.getEventBus ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.getClientStorage ( ) ) ; }
Source:
private java.lang.String getOuterClassNames ( ) { java.util.Set < java.lang.String > classNames = new java.util.LinkedHashSet < > ( ) ; classNames.add ( org.ovirt.engine.ui.common.widget.tooltip.TooltipConfig.Defaults.TEMPLATE_CLASS_OUTER ) ; classNames.addAll ( extraTooltipClassNames ) ; return org.ovirt.engine.ui.uicompat.external.StringUtils.join ( classNames , " " ) ; }

Target:
private java.lang.String getOuterClassNames ( ) { java.util.Set < java.lang.String > classNames = new java.util.LinkedHashSet < > ( ) ; classNames.add ( org.ovirt.engine.ui.common.widget.tooltip.TooltipConfig.Defaults.TEMPLATE_CLASS_OUTER ) ; classNames.addAll ( extraTooltipClassNames ) ; return java.lang.String.join ( " " , classNames ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates updates ) { return updateEntity ( updates , false ) ; }

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:
private void setQosOverridden ( boolean qosOverridden ) { this . qosOverridden = qosOverridden ; }

Target:
public void setQosOverridden ( boolean qosOverridden ) { this . qosOverridden = qosOverridden ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public void mockDaos ( ) { mockVmDao ( ) ; mockDiskImageDao ( ) ; mockDiskDao ( ) ; }

Target:
public void mockDaos ( ) { mockVmDao ( ) ; mockDiskImageDao ( ) ; }
Source:
public void executeCommand ( ) { setupMocks ( ) ; org.mockito.Mockito.doNothing ( ) . when ( hookSyncJob ) . refreshHooksInCluster ( getCluster ( ) , true ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertEquals ( AuditLogType.GLUSTER_HOOK_REFRESH , cmd.getAuditLogTypeValue ( ) ) ; }

Target:
public void executeCommand ( ) { setupMocks ( ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertEquals ( AuditLogType.GLUSTER_HOOK_REFRESH , cmd.getAuditLogTypeValue ( ) ) ; }
Source:
public java.lang.String toString ( ) { if ( ( uuid ) == null ) return "[null]" ; else return uuid.toString ( ) ; }

Target:
public java.lang.String toString ( ) { if ( ( uuid ) == null ) { return "[null]" ; } return uuid.toString ( ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel.ClientConsoleMode readDefaultConsoleClientMode ( ) { try { return org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.ClientModeVncDefault ) ) ) ) ; } catch ( java.lang.Exception e ) { return org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel.ClientConsoleMode.Native ; } }

Target:
private org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel.ClientConsoleMode readDefaultConsoleClientMode ( ) { try { return org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.ClientModeVncDefault ) ) ) ) ; } catch ( java.lang.Exception e ) { return org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel.ClientConsoleMode.Native ; } }
Source:
protected static org.ovirt.engine.core.compat.Guid getGuid ( java.sql.ResultSet resultSet , java.lang.String columnName ) throws java.sql.SQLException { return org.ovirt.engine.core.dao.BaseDAODbFacade.getGuid ( resultSet , columnName , null ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid getGuid ( java.sql.ResultSet resultSet , java.lang.String columnName ) throws java.sql.SQLException { return org.ovirt.engine.core.dao.BaseDAODbFacade.getGuid ( resultSet , columnName , null ) ; }
Source:
public void testGetAsyncTaskIdsByInvalidStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( guids.size ( ) , 0 ) ; }

Target:
public void testGetAsyncTaskIdsByInvalidStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( 0 , guids.size ( ) ) ; }
Source:
public void test ( ) { underTest.getHead ( ) . process ( actual ) ; org.junit.Assert.assertTrue ( expected.equals ( actual ) ) ; }

Target:
public void test ( ) { underTest.getHead ( ) . process ( actual ) ; org.junit.Assert.assertEquals ( expected , actual ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DisableGlusterHookCommand < org.ovirt.engine.core.common.action.gluster.GlusterHookParameters > ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DisableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ServerCpu findMaxServerCpuByFlags ( java.lang.String flags , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.FindMaxServerCpuByFlags ( flags ) ; } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.ServerCpu findMaxServerCpuByFlags ( java.lang.String flags , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.findMaxServerCpuByFlags ( flags ) ; } return null ; }
Source:
public void testGet ( ) { java.lang.String result = dao.get ( FixturesTool.PROVIDER_BINDING_HOST_ID_HOST_ID , FixturesTool.PROVIDER_BINDING_HOST_ID_PLUGIN_TYPE ) ; org.junit.Assert.assertEquals ( result , FixturesTool.PROVIDER_BINDING_HOST_PLUGIN_ID ) ; }

Target:
public void testGet ( ) { java.lang.String result = dao.get ( FixturesTool.PROVIDER_BINDING_HOST_ID_HOST_ID , FixturesTool.PROVIDER_BINDING_HOST_ID_PLUGIN_TYPE ) ; org.junit.Assert.assertEquals ( FixturesTool.PROVIDER_BINDING_HOST_PLUGIN_ID , result ) ; }
Source:
protected java.lang.String getToggleFullScreenKeys ( ) { return ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.ConsoleToggleFullScreenKeys ) ) ) ; }

Target:
protected java.lang.String getToggleFullScreenKeys ( ) { return ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.ConsoleToggleFullScreenKeys ) ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { hostDeviceDao.saveAllInBatch ( newDevices ) ; hostDeviceDao.updateAllInBatch ( changedDevices ) ; handleHostNicVfsConfigUpdate ( oldMap , newDevices , changedDevices , removedDevices ) ; hostDeviceDao.removeAllInBatch ( removedDevices ) ; vmDeviceDao.removeAllInBatch ( removedVmDevices ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { hostDeviceDao.removeAllInBatch ( removedDevices ) ; hostDeviceDao.saveAllInBatch ( newDevices ) ; hostDeviceDao.updateAllInBatch ( changedDevices ) ; handleHostNicVfsConfigUpdate ( newDevices , changedDevices , removedDevices ) ; vmDeviceDao.removeAllInBatch ( removedVmDevices ) ; return null ; }
Source:
public void canRunVmPassStatelessWhenVmHAwithNegativeStatelessParam ( ) { org.ovirt.engine.core.bll.RunVmCommandTest.canRunStatelessVmTest ( true , false , java.lang.Boolean.FALSE , true ) ; }

Target:
public void canRunVmPassStatelessWhenVmHAwithNegativeStatelessParam ( ) { canRunStatelessVmTest ( true , false , java.lang.Boolean.FALSE , true ) ; }
Source:
public void testAttrAndElement ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm id=\"123\"><name>myvm</name></vm>" ) ; org.junit.Assert.assertEquals ( "123" , object.getId ( ) ) ; org.junit.Assert.assertEquals ( "myvm" , object.getName ( ) ) ; }

Target:
public void testAttrAndElement ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm id=\"123\"><name>myvm</name></vm>" ) ; org.junit.Assert.assertEquals ( "123" , object.id ( ) ) ; org.junit.Assert.assertEquals ( "myvm" , object.name ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.network.Network o1 , org.ovirt.engine.core.common.businessentities.network.Network o2 ) { return HostInterfaceListModel.ENGINE_NETWORK_NAME.equals ( o1.getname ( ) ) ? - 1 : o1.getname ( ) . compareTo ( o2.getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.network.Network o1 , org.ovirt.engine.core.common.businessentities.network.Network o2 ) { return HostInterfaceListModel.ENGINE_NETWORK_NAME.equals ( o1.getName ( ) ) ? - 1 : o1.getName ( ) . compareTo ( o2.getName ( ) ) ; }
Source:
protected void removeVmNetworkInterfaces ( ) { new org.ovirt.engine.core.bll.network.VmInterfaceManager ( org.ovirt.engine.core.bll.ImportVmCommand.getMacPool ( ) ) . removeAll ( getVmId ( ) ) ; }

Target:
protected void removeVmNetworkInterfaces ( ) { new org.ovirt.engine.core.bll.network.VmInterfaceManager ( org.ovirt.engine.core.bll.ImportVmCommand.getMacPool ( ) ) . removeAll ( org.ovirt.engine.core.bll.ImportVmCommand.getVmId ( ) ) ; }
Source:
private void initialize ( ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.info ( "Start initializing {}" , getClass ( ) . getSimpleName ( ) ) ; this . macsStorage = createMacsStorage ( rangesBoundaries ) ; org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.info ( "Finished initializing. Available MACs in pool: {}" , macsStorage.getAvailableMacsCount ( ) ) ; }

Target:
public int getAvailableMacsCount ( ) { return macsStorage.getAvailableMacsCount ( ) ; }
Source:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker CreateBackendSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; if ( ( org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ) == null ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.SearchResultsLimit ) , true ) ; } return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ; }

Target:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker CreateBackendSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; if ( ( org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ) == null ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.SearchResultsLimit ) ) ; } return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ; }
Source:
public org.ovirt.engine.api.model.GlusterBrick get ( ) { return performGet ( VdcQueryType.GetGlusterBrickById , new org.ovirt.engine.core.common.queries.gluster.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.GlusterBrick get ( ) { return performGet ( VdcQueryType.GetGlusterBrickById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
protected abstract void beforeLogin ( T loginModel ) ;

Target:
protected void beforeLogin ( ) { }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addCdDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addCdDevice ( vmId , "" ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addCdDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return addCdDevice ( vmId , "" ) ; }