auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void stopRefresh ( ) { if ( ( getTimer ( ) ) != null ) { getTimer ( ) . stop ( ) ; } }

Target:
public void stopRefresh ( ) { getTimer ( ) . stop ( ) ; }
Source:
public void onMainTabSelected ( ) { super . onMainTabSelected ( ) ; getModel ( ) . getDiskViewType ( ) . setEntity ( DiskStorageType.IMAGE ) ; }

Target:
public void onMainTabSelected ( ) { super . onMainTabSelected ( ) ; getModel ( ) . getDiskViewType ( ) . setEntity ( null ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { migrationPolicies = ( ( java.util.List < org.ovirt.engine.core.common.migration.MigrationPolicy > ) ( returnValue ) ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.migration.MigrationPolicy > returnValue ) { migrationPolicies = returnValue ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; behavior.maxCpusPerSocket = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.totalCpuCoresChanged ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = this ; behavior.maxCpusPerSocket = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.totalCpuCoresChanged ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureByCpuName ( java.lang.String cpuName ) { org.ovirt.engine.core.common.businessentities.ServerCpu cpu = getServerCpuByName ( cpuName ) ; org.ovirt.engine.core.common.businessentities.ArchitectureType result = org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ; if ( cpu != null ) { result = cpu.getArchitecture ( ) ; } return result ; }

Target:
public org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureByCpuName ( java.lang.String cpuName ) { org.ovirt.engine.core.common.businessentities.ServerCpu cpu = getServerCpuByName ( cpuName ) ; if ( cpu != null ) { return cpu.getArchitecture ( ) ; } return org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addInterface ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , boolean plugged , boolean hostDev ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addInterface ( vmId , deviceId , plugged , hostDev , null ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addInterface ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , boolean plugged , boolean hostDev ) { return addInterface ( vmId , deviceId , plugged , hostDev , null ) ; }
Source:
public void testGetDefaultQuotaForStoragePool ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = dao.getDefaultQuotaForStoragePool ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertNotNull ( quota ) ; org.junit.Assert.assertEquals ( quota.getStoragePoolId ( ) , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertTrue ( quota.isDefault ( ) ) ; }

Target:
public void testGetDefaultQuotaForStoragePool ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = dao.getDefaultQuotaForStoragePool ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertNotNull ( quota ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_POOL_NFS , quota.getStoragePoolId ( ) ) ; org.junit.Assert.assertTrue ( quota.isDefault ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmWatchdog getWatchdog ( ) { return watchdog ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmWatchdog getWatchdog ( ) { return watchdog.getValue ( ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private boolean shouldDiskBePlugged ( ) { return ( ( org.ovirt.engine.core.bll.AddDiskCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) && ( ! ( java.lang.Boolean.FALSE.equals ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getPlugDiskToVm ( ) ) ) ) ; }

Target:
protected boolean shouldDiskBePlugged ( ) { return ( ( org.ovirt.engine.core.bll.AddDiskCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) && ( ! ( java.lang.Boolean.FALSE.equals ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getPlugDiskToVm ( ) ) ) ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid getGuidValue ( org.ovirt.engine.core.compat.Guid id ) { return id == null ? null : id.getValue ( ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid getGuidValue ( org.ovirt.engine.core.compat.Guid id ) { return id ; }
Source:
public void testIsNetworkInSyncWhenNetworkQosIsNullIfaceQosOverridden ( ) throws java.lang.Exception { networkQos = null ; iface.setQosOverridden ( true ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenNetworkQosIsNullIfaceQosOverridden ( ) throws java.lang.Exception { networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . masterDomainNotOperational ( masterDomainId , getParameters ( ) . getStoragePoolId ( ) ) ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . masterDomainNotOperational ( masterDomainId , getParameters ( ) . getStoragePoolId ( ) , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Quota getDefaultQuotaForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , storagePoolId ) ; org.ovirt.engine.core.common.businessentities.Quota quota = getCallsHandler ( ) . executeRead ( "GetDefaultQuotaForStoragePool" , getQuotaFromResultSet ( ) , parameterSource ) ; return quota ; }

Target:
public org.ovirt.engine.core.common.businessentities.Quota getDefaultQuotaForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , storagePoolId ) ; return getCallsHandler ( ) . executeRead ( "GetDefaultQuotaForStoragePool" , getQuotaFromResultSet ( ) , parameterSource ) ; }
Source:
protected void StartPollingAsyncTasks ( ) { startPollingAsyncTasks ( getReturnValue ( ) . getTaskIdList ( ) ) ; }

Target:
protected void startPollingAsyncTasks ( ) { startPollingAsyncTasks ( getReturnValue ( ) . getTaskIdList ( ) ) ; }
Source:
public void getAllForForConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = dao.get ( existingConnection.getid ( ) ) ; conn.setid ( "copy" ) ; dao.save ( conn ) ; assertGetAllForConnectionResult ( java.util.Arrays.asList ( existingConnection , conn ) , existingConnection ) ; }

Target:
public void getAllForForConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = dao.get ( existingConnection.getId ( ) ) ; conn.setId ( "copy" ) ; dao.save ( conn ) ; assertGetAllForConnectionResult ( java.util.Arrays.asList ( existingConnection , conn ) , existingConnection ) ; }
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 ) ; }
Source:
public java.lang.String getBookmarkValue ( ) { return ( getBookmark ( ) ) != null ? getBookmark ( ) . getbookmark_value ( ) : null ; }

Target:
public java.lang.String getBookmarkValue ( ) { return ( getBookmark ( ) ) != null ? getBookmark ( ) . getValue ( ) : null ; }
Source:
protected synchronized void registerObject ( java.lang.String name , O object ) { java.util.HashMap < java.lang.String , O > newObjects = new java.util.HashMap < java.lang.String , O > ( objectsByName ) ; newObjects.put ( name , object ) ; objectsByName = newObjects ; }

Target:
protected void registerObject ( java.lang.String name , O object ) { objectsByName.put ( name , object ) ; }
Source:
private void mockProxySourcesForFencedHost ( java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType > fenceProxySources ) { org.mockito.Mockito.doReturn ( fenceProxySources ) . when ( fencedHost ) . getFenceProxySources ( ) ; }

Target:
private void mockProxySourcesForFencedHost ( java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType > fenceProxySources ) { org.mockito.Mockito.when ( fencedHost.getFenceProxySources ( ) ) . thenReturn ( fenceProxySources ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel templateListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel ) ( target ) ) ; boolean isNameUnique = ( ( java.lang.Boolean ) ( returnValue ) ) ; templateListModel.PostNameUniqueCheck ( isNameUnique ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel templateListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel ) ( target ) ) ; boolean isNameUnique = ( ( java.lang.Boolean ) ( returnValue ) ) ; templateListModel.PostNameUniqueCheck ( isNameUnique ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel profile ) { driver.edit ( profile ) ; initCustomPropertySheet ( profile ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel profile ) { driver.edit ( profile ) ; }
Source:
public void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.AddExternalStepParameters ( org.ovirt.engine.core.bll.AddExternalStepCommandTest.jobId , "step 1" , org.ovirt.engine.core.common.job.StepEnum.VALIDATING , org.ovirt.engine.core.common.job.JobExecutionStatus.STARTED ) ; }

Target:
public void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.AddExternalStepParameters ( org.ovirt.engine.core.bll.AddExternalStepCommandTest.jobId , "step 1" , org.ovirt.engine.core.common.job.StepEnum.VALIDATING ) ; }
Source:
public boolean handshakeInProgress ( ) { final javax.net.ssl.SSLEngineResult.HandshakeStatus hs = this . engine.getHandshakeStatus ( ) ; final java.util.EnumSet < javax.net.ssl.SSLEngineResult.HandshakeStatus > handshakeEndStates = java.util.EnumSet.of ( javax.net.ssl.SSLEngineResult.HandshakeStatus.FINISHED , javax.net.ssl.SSLEngineResult.HandshakeStatus.NOT_HANDSHAKING ) ; return ! ( handshakeEndStates.contains ( hs ) ) ; }

Target:
public boolean handshakeInProgress ( ) { return ! ( javax.net.ssl.SSLEngineResult.HandshakeStatus.NOT_HANDSHAKING.equals ( this . engine.getHandshakeStatus ( ) ) ) ; }
Source:
public static void getAAAProfilesList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public static void getAAAProfilesList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery , true ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.AuditLog object ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.widget.footer.AlertsEventsFooterView.constants.dismissEvent ( ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.AuditLog object ) { return org.ovirt.engine.ui.webadmin.widget.footer.AlertsEventsFooterView.constants.dismissEvent ( ) ; }
Source:
private void mockNullVm ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseMockUtils.mockVmDao ( command , vmDAO ) ; org.powermock.api.mockito.PowerMockito.when ( vmDAO.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; cretaeVirtIODisk ( ) ; }

Target:
private void mockNullVm ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseMockUtils.mockVmDao ( command , vmDAO ) ; org.mockito.Mockito.when ( vmDAO.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; cretaeVirtIODisk ( ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) { return snapshot ( vmId , disks , null ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) { return snapshot ( vmId , disks , null , false ) ; }
Source:
public void syncSearch ( org.ovirt.engine.core.common.queries.VdcQueryType vdcQueryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase vdcQueryParametersBase ) { vdcQueryParametersBase.setRefresh ( getIsQueryFirstTime ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( vdcQueryType , vdcQueryParametersBase , new SetItemsAsyncQuery ( ) ) ; setIsQueryFirstTime ( false ) ; }

Target:
protected void syncSearch ( org.ovirt.engine.core.common.queries.VdcQueryType vdcQueryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase vdcQueryParametersBase ) { vdcQueryParametersBase.setRefresh ( getIsQueryFirstTime ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( vdcQueryType , vdcQueryParametersBase , new SetItemsAsyncQuery ( ) ) ; setIsQueryFirstTime ( false ) ; }
Source:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }

Target:
private void mockStorageDomainValidatorWithoutSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type ) { return getTreeForEntity ( id , type , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type ) { return getTreeForEntity ( id , type , ( - 1 ) , false ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.ArrayList < java.lang.String > pmTypes = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; updatePmTypeList ( pmTypes , getPmType ( ) ) ; updatePmTypeList ( pmTypes , getPmSecondaryType ( ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.ArrayList < java.lang.String > pmTypes = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; updatePmTypeList ( pmTypes , getPmType ( ) ) ; updatePmTypeList ( pmTypes , getPmSecondaryType ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatus getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getstatus ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatus getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getStatus ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , null , true , null , false , null , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , null , true , null , null , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworkResource ( "foo" , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworkResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private void mockDaos ( ) { mockVmDao ( ) ; mockDiskImageDao ( ) ; mockDiskDao ( ) ; }

Target:
public void mockDaos ( ) { mockVmDao ( ) ; mockDiskImageDao ( ) ; mockDiskDao ( ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( object ) ) . getStorageName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getStorageName ( ) ; }
Source:
private org.ovirt.engine.core.aaa.DirectoryGroup mapGroup ( org.ovirt.engine.core.common.businessentities.LdapGroup ldapGroup ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( this . getProfileName ( ) , ldapGroup.getid ( ) , ldapGroup.getname ( ) ) ; }

Target:
private org.ovirt.engine.core.aaa.DirectoryGroup mapGroup ( org.ovirt.engine.core.common.businessentities.LdapGroup ldapGroup ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( this . getName ( ) , ldapGroup.getid ( ) , ldapGroup.getname ( ) ) ; }
Source:
protected com.google.gwt.user.cellview.client.CellTree createDataDisplayWidget ( org.ovirt.engine.ui.webadmin.uicommon.model.TagModelProvider modelProvider ) { com.google.gwt.user.cellview.client.CellTree display = new org.ovirt.engine.ui.common.widget.tree.ElementIdCellTree < org.ovirt.engine.ui.webadmin.uicommon.model.TagModelProvider > ( modelProvider , null , org.ovirt.engine.ui.webadmin.widget.tags.TagList.res ) ; display.setAnimationEnabled ( true ) ; display.setKeyboardSelectionPolicy ( KeyboardSelectionPolicy.BOUND_TO_SELECTION ) ; return display ; }

Target:
protected com.google.gwt.user.cellview.client.CellTree createDataDisplayWidget ( org.ovirt.engine.ui.webadmin.uicommon.model.TagModelProvider modelProvider ) { com.google.gwt.user.cellview.client.CellTree display = new org.ovirt.engine.ui.common.widget.tree.ElementIdCellTree ( modelProvider , null , org.ovirt.engine.ui.webadmin.widget.tags.TagList.res ) ; display.setAnimationEnabled ( true ) ; display.setKeyboardSelectionPolicy ( KeyboardSelectionPolicy.BOUND_TO_SELECTION ) ; return display ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spmDefaultPriorityValue = ( ( java.lang.Integer ) ( returnValue ) ) ; updateSpmPriorityValues ( ) ; updateSpmPriority ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spmDefaultPriorityValue = ( ( java.lang.Integer ) ( returnValue ) ) ; updateSpmPriorityValues ( ) ; updateSpmPriority ( ) ; }
Source:
private void mockDbFacades ( ) { mockVdsGroupDao ( ) ; mockVmDao ( ) ; mockAuditLogDao ( ) ; mockVdsDao ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacadeLocator.setDbFacade ( dbFacade ) ; }

Target:
private void mockDbFacades ( ) { mockVdsGroupDao ( ) ; mockVmDao ( ) ; mockAuditLogDao ( ) ; mockVdsDao ( ) ; }
Source:
protected void saveDiskIfNotExists ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { if ( ! ( getBaseDiskDao ( ) . exists ( image.getId ( ) ) ) ) { getBaseDiskDao ( ) . save ( image ) ; } }

Target:
protected boolean saveDiskIfNotExists ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { if ( ! ( getBaseDiskDao ( ) . exists ( image.getId ( ) ) ) ) { getBaseDiskDao ( ) . save ( image ) ; return true ; } return false ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel ) ( model ) ) . getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel model ) { return model.getName ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Network createNetwork ( ) { network = new org.ovirt.engine.core.common.businessentities.Network ( ) ; network.setname ( "test network" ) ; return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( ) { network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setname ( "test network" ) ; return network ; }
Source:
public void setCpuPerSocket ( int value ) { this . vmStatic.setcpu_per_socket ( value ) ; }

Target:
public void setCpuPerSocket ( int value ) { this . vmStatic.setCpuPerSocket ( value ) ; }
Source:
public void cancel ( ) { setWindow ( null ) ; }

Target:
protected void cancel ( ) { setWindow ( null ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { if ( _isNode ) { _isLegacyNode = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE_HAS_OWN_BRIDGES ) ) ) ; } else { _parser.cliNoop ( ) ; } return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { if ( _isNode ) { _isLegacyNode = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE_HAS_OWN_BRIDGES ) ) ) ; } else { _parser.cliNoop ( ) ; } return true ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmNicServer getNicResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmNicServer ( delegate.getNicResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmNicServer getNicResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmNicServer ( vmId , delegate.getNicResource ( id ) ) ; }
Source:
public org.ovirt.engine.core.config.entity.ConfigKey generateBlankConfigKey ( java.lang.String keyName , java.lang.String keyType ) { return new org.ovirt.engine.core.config.entity.ConfigKey ( keyType , "" , "" , keyName , "" , null , "" , getHelperByType ( keyType ) , false ) ; }

Target:
public org.ovirt.engine.core.config.entity.ConfigKey generateBlankConfigKey ( java.lang.String keyName , java.lang.String keyType ) { return new org.ovirt.engine.core.config.entity.ConfigKey ( keyType , "" , "" , keyName , "" , null , "" , getHelperByType ( keyType ) , false , false ) ; }
Source:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( stoppedVolumeId , geoRepSessionId ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( stoppedVolumeId , geoRepSessionId ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; setWindow ( null ) ; setConfirmWindow ( null ) ; }

Target:
protected void cancel ( ) { setWindow ( null ) ; setConfirmWindow ( null ) ; }
Source:
public void store ( org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback ) { return ; }

Target:
public void store ( org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback ) { }
Source:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllDbUsers , getParameters ( ) , query ) ; }

Target:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllDbUsers , getParameters ( ) , query ) ; }
Source:
public void setEntity ( java.lang.Object value ) { super . setEntity ( value ) ; java.lang.Boolean enableManualMac = ( ( java.lang.Boolean ) ( value ) ) ; getMAC ( ) . setIsChangable ( enableManualMac ) ; }

Target:
public void setEntity ( java.lang.Boolean enableManualMac ) { super . setEntity ( enableManualMac ) ; getMAC ( ) . setIsChangable ( enableManualMac ) ; }
Source:
private java.util.ArrayList < java.lang.String > splitPreserveAllTokens ( java.lang.String str ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( str ) ) { return null ; } return new java.util.ArrayList < java.lang.String > ( java.util.Arrays.asList ( org.apache.commons.lang.StringUtils.splitPreserveAllTokens ( str , org.ovirt.engine.core.dao.SEPARATOR ) ) ) ; }

Target:
private java.util.ArrayList < java.lang.String > splitPreserveAllTokens ( java.lang.String str ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( str ) ) { return null ; } return new java.util.ArrayList ( java.util.Arrays.asList ( org.apache.commons.lang.StringUtils.splitPreserveAllTokens ( str , org.ovirt.engine.core.dao.SEPARATOR ) ) ) ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.test ( storageDomain ) ) ; }
Source:
public void processHardwareCapabilities ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . processOnCpuFlagsChange ( vds.getId ( ) ) ; }

Target:
public void processHardwareCapabilities ( org.ovirt.engine.core.common.businessentities.VDS vds ) { getEventListener ( ) . processOnCpuFlagsChange ( vds.getId ( ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData model , java.lang.Boolean value ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( model ) ) . getClone ( ) . setEntity ( value ) ; table.asEditor ( ) . edit ( importModel ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData model , java.lang.Boolean value ) { model.getClone ( ) . setEntity ( value ) ; table.asEditor ( ) . edit ( importModel ) ; }
Source:
public static boolean isMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.MixedDomainTypesInDataCenter , version.toString ( ) ) ) ) ; }

Target:
public boolean isMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.MixedDomainTypesInDataCenter , version.toString ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getStatus ( ) { return org.ovirt.engine.core.common.businessentities.NetworkStatus.forValue ( cluster.getstatus ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getStatus ( ) { return ( cluster ) == null ? null : org.ovirt.engine.core.common.businessentities.NetworkStatus.forValue ( cluster.getstatus ( ) ) ; }
Source:
java.lang.String diskNote ( java.lang.String diskAlias , java.lang.String formattedNote ) ;

Target:
java.lang.String diskNote ( ) ;
Source:
public void testEmptyKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.EMPTY_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 2 ) ; }

Target:
public void testEmptyKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.EMPTY_KEY_VAL ) ; org.junit.Assert.assertEquals ( 2 , map.size ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getDbFacade ( ) . getVdsDao ( ) . getHostsForStorageOperation ( org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getParameters ( ) . isLocalFsOnly ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getDbFacade ( ) . getVdsDao ( ) . getHostsForStorageOperation ( org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getParameters ( ) . isLocalFsOnly ( ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; }
Source:
private void validateClientAcceptHeader ( org.ovirt.engine.core.sso.utils.SsoSession ssoSession , javax.servlet.http.HttpServletRequest request ) { if ( ! ( org.ovirt.engine.core.sso.utils.SsoUtils.scopeAsList ( ssoSession.getScope ( ) ) . contains ( SsoConstants.OPENID_SCOPE ) ) ) { org.ovirt.engine.core.sso.utils.SsoUtils.validateClientAcceptHeader ( request ) ; } }

Target:
protected void validateClientAcceptHeader ( org.ovirt.engine.core.sso.utils.SsoSession ssoSession , javax.servlet.http.HttpServletRequest request ) { org.ovirt.engine.core.sso.utils.SsoUtils.validateClientAcceptHeader ( request ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( OpenStackEnv.NEUTRON_OPENVSWITCH_ENABLE , true ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( OpenStackEnv.NEUTRON_OPENVSWITCH_ENABLE , true ) ; return true ; }
Source:
public java.lang.Boolean Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( java.lang.Boolean ) ( source ) ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; }
Source:
protected void initBackendResource ( org.ovirt.engine.api.restapi.resource.BackendResource resource ) { resource.setBackend ( backend ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }

Target:
protected void initBackendResource ( org.ovirt.engine.api.restapi.resource.BackendResource resource ) { resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }
Source:
private java.lang.String getDomainDN ( javax.naming.directory.DirContext ctx ) throws javax.naming.NamingException { org.ovirt.engine.core.ldap.RootDSEData rootDSEData = new org.ovirt.engine.core.ldap.RootDSEData ( ctx ) ; return rootDSEData.getDomainDN ( ) ; }

Target:
private java.lang.String getDomainDN ( java.lang.String url ) throws javax.naming.NamingException { org.ovirt.engine.core.ldap.RootDSEData rootDSEData = new org.ovirt.engine.core.ldap.RootDSEData ( url ) ; return rootDSEData.getDomainDN ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { setChangeProhibitionReason ( null ) ; } } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value ) { return setIsChangeable ( value , null ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.VmInterfaceType getDefaultNicType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pv ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VmInterfaceType getDefaultNicType ( ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pv ; }
Source:
public boolean checkDestDomains ( ) { return ( super . checkDestDomains ( ) ) && ( validateSpaceRequirements ( ) ) ; }

Target:
public boolean checkDestDomains ( ) { return super . checkDestDomains ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.tasks.AsyncTaskManager.logAndFailTaskOfCommandWithEmptyVdsmId ( task , "Engine was restarted before all tasks of the command could be submitted to vdsm." ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { logAndFailTaskOfCommandWithEmptyVdsmId ( task , "Engine was restarted before all tasks of the command could be submitted to vdsm." ) ; return null ; }
Source:
public java.lang.String getData ( java.lang.String format ) { com.google.gwt.dom.client.DataTransfer dt = getDataTransfer ( ) ; return getDataTransfer ( ) . getData ( format ) ; }

Target:
public java.lang.String getData ( java.lang.String format ) { return getDataTransfer ( ) . getData ( format ) ; }
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 ( ) : 262144 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : - 1 ; }
Source:
public org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getVmPropertiesUtils ( ) { return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getVmPropertiesUtils ( ) { return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.getInstance ( ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.dummyTaskIdList ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return super . getTaskIdList ( ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return pool.getName ( ) ; }
Source:
public org.ovirt.engine.core.common.vdscommands.Guid getMasterDomainId ( ) { return privateMasterDomainId ; }

Target:
public org.ovirt.engine.core.compat.Guid getMasterDomainId ( ) { return privateMasterDomainId ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DisplayType > ( parseDisplayProtocols ( osId , version ) . keySet ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DisplayType > ( parseDisplayProtocols ( osId , version ) . keySet ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.bootableDisk ( ) ) ; } return null ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.isBoot ( ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.bootableDisk ( ) ; } return null ; }
Source:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { return org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( adaptUpdate ( getDelegate ( ) :: update , vm ) ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { vm = adaptUpdate ( getDelegate ( ) :: update , vm ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( vm ) ; return vm ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet object ) { return org.ovirt.engine.ui.uicompat.external.StringUtils.join ( object.getDnsServers ( ) , ", " ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet object ) { return java.lang.String.join ( ", " , object.getDnsServers ( ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _aborted = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( BaseEnv.ABORTED ) ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _aborted = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( BaseEnv.ABORTED ) ) ) ; return true ; }
Source:
private void writeJaxbClass ( org.ovirt.api.metamodel.tool.XmlWriter writer , java.lang.String value ) { writeJaxbCustomization ( writer , "class" , "name" , value ) ; }

Target:
private void writeJaxbClass ( java.lang.String value ) { writeJaxbCustomization ( "class" , "name" , value ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( getTemplate ( ) ) ; control.replay ( ) ; org.ovirt.engine.api.model.Cdrom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; verifyLinks ( cdrom ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( getTemplate ( ) ) ; org.ovirt.engine.api.model.Cdrom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; verifyLinks ( cdrom ) ; }
Source:
public java.lang.Void runInTransaction ( ) { hostDeviceDao.removeAllInBatch ( removedDevices ) ; hostDeviceDao.saveAllInBatch ( newDevices ) ; hostDeviceDao.updateAllInBatch ( changedDevices ) ; handleHostNicVfsConfigUpdate ( newDevices , changedDevices , removedDevices ) ; vmDeviceDao.removeAllInBatch ( removedVmDevices ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { hostDeviceDao.saveAllInBatch ( newDevices ) ; hostDeviceDao.updateAllInBatch ( changedDevices ) ; hostDeviceDao.removeAllInBatch ( removedDevices ) ; handleHostNicVfsConfigUpdate ( newDevices , changedDevices , removedDevices ) ; vmDeviceDao.removeAllInBatch ( removedVmDevices ) ; return null ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Provider getHostProvider ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getProviderDao ( ) . get ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getProviderId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getHostProvider ( ) { return org.ovirt.engine.core.bll.AddVdsCommand.getProviderDao ( ) . get ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getProviderId ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.HostNIC map ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface , java.util.List < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > ifaces ) { return map ( iface , null , ifaces ) ; }

Target:
protected org.ovirt.engine.api.model.HostNIC map ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ifaces ) { return map ( iface , null , ifaces ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getParameters ( ) . getContainerId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , org.ovirt.engine.core.bll.ImportVmCommand.getVmIsBeingImportedMessage ( ) ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getContainerId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , org.ovirt.engine.core.bll.ImportVmCommand.getVmIsBeingImportedMessage ( ) ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.getBroker ( ) . pause ( mVmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.ProceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getstatus ( ) ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.getBroker ( ) . pause ( mVmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.ProceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; prepareMocks ( ) ; setUpStorageServerConnectionLunMapDao ( ) ; setUpStorageServerConnectionDao ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; prepareMocks ( ) ; }
Source:
public void setup ( ) { helper = org.mockito.Mockito.spy ( org.ovirt.engine.core.vdsbroker.storage.StorageConnectionHelper.getInstance ( ) ) ; org.mockito.Mockito.doReturn ( connExtDaoMock ) . when ( helper ) . getConnectionExtensionDao ( ) ; }

Target:
public void setup ( ) { org.mockito.Mockito.doReturn ( connExtDaoMock ) . when ( helper ) . getConnectionExtensionDao ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; vmID = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; setUpDaoMocks ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; vmID = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
protected boolean handleDestStorageDomain ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { ensureDomainMap ( disksList , org.ovirt.engine.core.bll.ExportVmCommand.getStorageDomainId ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > dummiesDisksList = createDiskDummiesForSpaceValidations ( disksList ) ; dummiesDisksList.addAll ( getMemoryVolumes ( ) ) ; return validateSpaceRequirements ( dummiesDisksList ) ; }

Target:
private boolean handleDestStorageDomain ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { ensureDomainMap ( disksList , org.ovirt.engine.core.bll.ExportVmCommand.getStorageDomainId ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > dummiesDisksList = createDiskDummiesForSpaceValidations ( disksList ) ; dummiesDisksList.addAll ( getMemoryVolumes ( ) ) ; return validateSpaceRequirements ( dummiesDisksList ) ; }