auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void GetConfigFromCache ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( configValue ) , aQuery ) ; }

Target:
public static void GetConfigFromCache ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.core.common.queries.GetConfigurationValueParameters parameters = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( configValue , version ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( parameters , aQuery ) ; }
Source:
private void closeChannel ( ) { try { if ( ( this . channel ) != null ) { this . channel.close ( ) ; } } catch ( java.io.IOException e ) { } finally { this . channel = null ; } }

Target:
protected void closeChannel ( ) { try { if ( ( this . channel ) != null ) { this . channel.close ( ) ; } } catch ( java.io.IOException e ) { } finally { this . channel = null ; } }
Source:
protected void updateCurrentCd ( java.lang.String cdPath ) { cdPath = ( org.apache.commons.lang.StringUtils.isEmpty ( cdPath ) ) ? null : cdPath ; vmHandler.updateCurrentCd ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , cdPath ) ; }

Target:
protected void updateCurrentCd ( java.lang.String cdPath ) { cdPath = ( org.apache.commons.lang.StringUtils.isEmpty ( cdPath ) ) ? null : cdPath ; vmHandler.updateCurrentCd ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , cdPath ) ; }
Source:
protected void buildVmSoundDevices ( ) { if ( ( vm.getVmType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmType.Desktop ) ) { createInfo.add ( VdsProperties.soundDevice , getSoundDevice ( vm.getStaticData ( ) , vm.getVdsGroupCompatibilityVersion ( ) ) ) ; } }

Target:
protected void buildVmSoundDevices ( ) { if ( ( vm.getVmType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmType.Desktop ) ) { createInfo.put ( VdsProperties.soundDevice , getSoundDevice ( vm.getStaticData ( ) , vm.getVdsGroupCompatibilityVersion ( ) ) ) ; } }
Source:
public void testGetAllByStoragePoolAndConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public static boolean interfaceBasedOn ( java.lang.String proposedIface , java.lang.String iface ) { return ( ( iface != null ) && ( proposedIface != null ) ) && ( iface.equals ( org.ovirt.engine.core.utils.NetworkUtils.stripVlan ( proposedIface ) ) ) ; }

Target:
public static boolean interfaceBasedOn ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface proposedIface , java.lang.String iface ) { return ( ( iface != null ) && ( proposedIface != null ) ) && ( iface.equals ( org.ovirt.engine.core.utils.NetworkUtils.stripVlan ( proposedIface ) ) ) ; }
Source:
public void hostNameNotUsed ( ) { org.mockito.Mockito.when ( hostDao.getAllForHostname ( org.mockito.ArgumentMatchers.anyString ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertThat ( validator.hostNameNotUsed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void hostNameNotUsed ( ) { org.junit.Assert.assertThat ( validator.hostNameNotUsed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.graphicsDeviceEnabled ( org.ovirt.engine.core.vdsbroker.vdsbroker.SetVmTicketVDSCommand.getVds ( ) . getClusterCompatibilityVersion ( ) ) ) { setTicketUsingUpdateDevice ( ) ; } else { setTicketLegacy ( ) ; } org.ovirt.engine.core.vdsbroker.vdsbroker.SetVmTicketVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { setTicketUsingUpdateDevice ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SetVmTicketVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
protected T getOldQos ( ) { if ( ( oldQos ) == null ) { oldQos = getQosDao ( ) . get ( qos.getId ( ) ) ; } return oldQos ; }

Target:
protected T getOldQos ( ) { if ( ( ( oldQos ) == null ) && ( ( qos ) != null ) ) { oldQos = getQosDao ( ) . get ( qos.getId ( ) ) ; } return oldQos ; }
Source:
public void saveInterfaceForVds ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface stats ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createInterfaceParametersMapper ( stats ) ; getCallsHandler ( ) . executeModification ( "Insertvds_interface" , parameterSource ) ; }

Target:
public void saveInterfaceForVds ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createInterfaceParametersMapper ( nic ) ; getCallsHandler ( ) . executeModification ( "Insertvds_interface" , parameterSource ) ; }
Source:
public void updateFields ( ) { getModel ( ) . startProgress ( null ) ; doUpdateManagedFieldsFrom ( getSource ( ) ) ; }

Target:
public void updateFields ( ) { getModel ( ) . startProgress ( ) ; doUpdateManagedFieldsFrom ( getSource ( ) ) ; }
Source:
public void networkNotInCluster ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) , true , false , false , false ) ; }

Target:
public void networkNotInCluster ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) , true , false ) ; }
Source:
public org.ovirt.engine.core.bll.network.macpool.MacPool createMacPool ( org.ovirt.engine.core.bll.network.macpool.MacPool macPool ) { return new org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macPoolToRanges ( macPool ) , macPool.isAllowDuplicateMacAddresses ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.network.macpool.MacPool createMacPool ( org.ovirt.engine.core.bll.network.macpool.MacPool macPool ) { return new org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges ( macPool.getId ( ) , org.ovirt.engine.core.utils.MacAddressRangeUtils.macPoolToRanges ( macPool ) , macPool.isAllowDuplicateMacAddresses ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > createCommand ( org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters params ) { org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > ( params ) ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( command ) . getVdsDao ( ) ; return command ; }

Target:
private org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > createCommand ( org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters params ) { org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand ( params ) ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( command ) . getVdsDao ( ) ; return command ; }
Source:
protected org.ovirt.engine.core.vdsbroker.ResourceManager getResourceManager ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.ResourceManager getResourceManager ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.StorageDomain findStorageDomainForMemory ( org.ovirt.engine.core.compat.Guid storagePoolId , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > domainsInPool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getAllForStoragePool ( storagePoolId ) ; return org.ovirt.engine.core.bll.memory.MemoryStorageHandler.findStorageDomainForMemory ( domainsInPool , disksList ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain findStorageDomainForMemory ( org.ovirt.engine.core.compat.Guid storagePoolId , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > domainsInPool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getAllForStoragePool ( storagePoolId ) ; return findStorageDomainForMemory ( domainsInPool , disksList ) ; }
Source:
static org.ovirt.engine.ui.uicompat.UIConstants getConstants ( ) { if ( ( org.ovirt.engine.ui.frontend.Frontend.constants ) == null ) { org.ovirt.engine.ui.frontend.Frontend.constants = org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) ; } return org.ovirt.engine.ui.frontend.Frontend.constants ; }

Target:
private org.ovirt.engine.ui.uicompat.UIConstants getConstants ( ) { if ( ( constants ) == null ) { constants = org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) ; } return constants ; }
Source:
public void setTitle ( java.lang.String title ) { ( ( org.ovirt.engine.ui.common.widget.table.column.StyledImageResourceCell ) ( org.ovirt.engine.ui.common.widget.table.column.ImageResourceColumn.getCell ( ) ) ) . setTitle ( title ) ; }

Target:
public void setTitle ( java.lang.String title ) { getCell ( ) . setTitle ( title ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmGraphicsConsoleServer getConsoleResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmGraphicsConsoleServer ( ( ( org.ovirt.engine.api.resource.VmGraphicsConsoleResource ) ( getDelegate ( ) . getConsoleResource ( id ) ) ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmGraphicsConsoleServer getConsoleResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmGraphicsConsoleServer ( getDelegate ( ) . getConsoleResource ( id ) ) ; }
Source:
public boolean isInSync ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return details != null ? details.isInSync ( ) : true ; }

Target:
public boolean isInSync ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return ( details == null ) || ( details.isInSync ( ) ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { networkClusterModel.setRequired ( ( ! ( event.getValue ( ) ) ) ) ; refreshClustersTable ( ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { refreshClustersTable ( ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > getStoragePools ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.api.restapi.resource.AbstractBackendResource parent ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > ) ( parent.getEntity ( java.util.List.class , VdcQueryType.GetStoragePoolsByStorageDomainId , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( storageDomainId ) , "Datacenters" , true ) ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getStoragePools ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.api.restapi.resource.AbstractBackendResource parent ) { return parent.getEntity ( java.util.List.class , VdcQueryType.GetStoragePoolsByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , "Datacenters" , true ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index , java.lang.String networkName ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index , networkName ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index , java.lang.String networkName ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index , networkName ) ; }
Source:
public void setUserId ( final org.ovirt.engine.core.compat.Guid value ) { mUserId = value.getValue ( ) ; }

Target:
public void setUserId ( final org.ovirt.engine.core.compat.Guid value ) { mUserId = value ; }
Source:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) . getId ( ) ; } else { return super . getVmId ( ) ; } }

Target:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) . getId ( ) ; } return super . getVmId ( ) ; }
Source:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.storage.pool.RefreshStoragePoolAndDisconnectAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) ) ) ; }

Target:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.pool.RefreshStoragePoolAndDisconnectAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }
Source:
public boolean getTransparentHugepages ( ) { return this . transparentHugepages ; }

Target:
public boolean getTransparentHugepages ( ) { return transparentHugepages ; }
Source:
void buildVmNetworkInterfaces ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > passthroughVnicToVfMap ) ;

Target:
void buildVmNetworkInterfaces ( ) ;
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network n ) { return n.getname ( ) . equals ( bond.getName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getname ( ) . equals ( bond.getName ( ) ) ; }
Source:
public static java.util.List < java.lang.String > runAndAssertCanDoActionFailure ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.errors.VdcBllMessages message ) { return org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "" , command , message ) ; }

Target:
public static java.util.List < java.lang.String > runAndAssertCanDoActionFailure ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.errors.EngineMessage message ) { return org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "" , command , message ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkAttachment newNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface baseNic , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vlanDevice , java.util.Set < java.lang.String > networksToSync ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newNetworkAttachment ( network , baseNic , vlanDevice , null , networksToSync , null ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkAttachment newNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface baseNic , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vlanDevice , java.util.Set < java.lang.String > networksToSync ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newNetworkAttachment ( network , baseNic , vlanDevice , null , networksToSync , null , null ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( getConfirmWindow ( ) ) ) ; localModel.stopProgress ( ) ; setConfirmWindow ( null ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { model.stopProgress ( ) ; setConfirmWindow ( null ) ; }
Source:
public java.lang.String getAdGroupName ( ) { if ( ( ( mGroupName ) == null ) && ( ( getAdGroup ( ) ) != null ) ) { mGroupName = getAdGroup ( ) . getname ( ) ; } return mGroupName ; }

Target:
public java.lang.String getAdGroupName ( ) { if ( ( ( mGroupName ) == null ) && ( ( getAdGroup ( ) ) != null ) ) { mGroupName = getAdGroup ( ) . getName ( ) ; } return mGroupName ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return org.ovirt.engine.core.bll.VdsGroupOperationCommandBase.getParameters ( ) . getVdsGroup ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return org.ovirt.engine.core.bll.VdsGroupOperationCommandBase.getParameters ( ) . getVdsGroup ( ) ; }
Source:
public boolean getpm_enabled ( ) { return mVdsStatic.isPmEnabled ( ) ; }

Target:
public boolean isPmEnabled ( ) { return mVdsStatic.isPmEnabled ( ) ; }
Source:
protected void setModelProvider ( com.google.inject.Provider < org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel > importModelProvider ) { this . importModelProvider = importModelProvider ; }

Target:
protected void setModelProvider ( com.google.inject.Provider < ? extends org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel > importModelProvider ) { this . importModelProvider = importModelProvider ; }
Source:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { mainTabContainer.getElement ( ) . removeChild ( tabWidget.asWidget ( ) . getElement ( ) ) ; }

Target:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { mainTabContainer.removeChild ( tabWidget.asWidget ( ) . getElement ( ) ) ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.GetEventSubscribersBySubscriberIdParameters ( getEntity ( ) . getuser_id ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getuser_id ( ) ) ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendNetworkResource ( "foo" ) ; 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.BackendNetworkResource ( "foo" , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.storage_pool storagePool , boolean isNewSpm ) { if ( isNewSpm ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . StopStoragePoolTasks ( storagePool ) ; } else { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . AddStoragePoolExistingTasks ( storagePool ) ; } }

Target:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool , boolean isNewSpm ) { if ( isNewSpm ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . StopStoragePoolTasks ( storagePool ) ; } else { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . AddStoragePoolExistingTasks ( storagePool ) ; } }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { endAction ( getCommand ( cmdId ) , childCmdIds , true ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { endAction ( getCommand ( cmdId ) , true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain createDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainDynamic domainDynamic ) { org.ovirt.engine.core.common.businessentities.StorageDomain domain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; domain.setStorageName ( "mydomain" ) ; return domain ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainDynamic domainDynamic ) { org.ovirt.engine.core.common.businessentities.StorageDomain domain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; domain.setStorageName ( "mydomain" ) ; return domain ; }
Source:
public java.lang.Boolean isRequired ( ) { return cluster.isRequired ( ) ; }

Target:
public java.lang.Boolean isRequired ( ) { return ( cluster ) == null ? null : cluster.isRequired ( ) ; }
Source:
public void setupCommand ( ) { initSpyCommand ( ) ; mockBackend ( ) ; mockDaos ( ) ; mockVm ( ) ; mockIsValidVdsCommand ( ) ; }

Target:
public void setupCommand ( ) { initSpyCommand ( ) ; mockBackend ( ) ; mockDaos ( ) ; mockVm ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) , getManagementNetwork ( ) . getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) , getManagementNetwork ( ) . getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false , true ) ; }
Source:
public org.ovirt.engine.api.model.VmPools list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVmPoolsAttachedToUser , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmPools ) ) ; } }

Target:
public org.ovirt.engine.api.model.VmPools list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVmPoolsAttachedToUser , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VmPools ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmPools ) ) ; } }
Source:
private static org.ovirt.engine.core.common.businessentities.network.NetworkCluster createNetworkClusterWithDefaultValues ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.common.businessentities.network.Network net ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( clusterId , net.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.NON_OPERATIONAL , false , true , false , false , false ) ; }

Target:
private static org.ovirt.engine.core.common.businessentities.network.NetworkCluster createNetworkClusterWithDefaultValues ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.common.businessentities.network.Network net ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( clusterId , net.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.NON_OPERATIONAL , false , true , false , false , false , false ) ; }
Source:
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 ) ; }

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 , false ) ; }
Source:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.endActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.endActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }
Source:
public void tearDown ( ) { verifyAll ( ) ; org.ovirt.engine.api.restapi.invocation.CurrentManager.remove ( ) ; }

Target:
public void tearDown ( ) { org.ovirt.engine.api.restapi.invocation.CurrentManager.remove ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.DiskDaoDbFacadeImpl.DiskRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.DiskDaoDbFacadeImpl.DiskRowMapper.instance ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockVmNetworks ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
private org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase getAddParams ( org.ovirt.engine.core.common.businessentities.StorageServerConnections entity , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase params = new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( entity , hostId ) ; params.setVdsId ( hostId ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase getAddParams ( org.ovirt.engine.core.common.businessentities.StorageServerConnections entity , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase params = new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( entity , hostId , false ) ; params.setVdsId ( hostId ) ; return params ; }
Source:
private java.lang.String getPostUpdateOvfStoreDescription ( java.util.Date updateDate ) { if ( ( postUpdateDescription ) == null ) { postUpdateDescription = generateOvfStoreDescription ( updateDate , true ) ; } return postUpdateDescription ; }

Target:
private java.lang.String getPostUpdateOvfStoreDescription ( long size ) { if ( ( postUpdateDescription ) == null ) { postUpdateDescription = generateOvfStoreDescription ( updateDate , true , size ) ; } return postUpdateDescription ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > qoss = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > ) ( returnValue ) ) ; qosById = org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( qoss ) ; queryInterfaces ( ) ; }

Target:
public void onSuccess ( java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > qoss = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > ) ( returnValue ) ) ; qosById = org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( qoss ) ; queryInterfaces ( ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.StoragePoolValidator createStoragePoolValidator ( ) { return new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.StoragePoolValidator createStoragePoolValidator ( ) { return new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object listModel , java.lang.Object returnValue ) { cluster = ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) ; updateActionAvailability ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster returnValue ) { cluster = returnValue ; updateActionAvailability ( ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.storage_domains value ) { super . setEntity ( value ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain value ) { super . setEntity ( value ) ; }
Source:
public void testGetVolumesSupportedAsStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > vols = dao.getVolumesSupportedAsStorageDomain ( ) ; org.junit.Assert.assertEquals ( 1 , vols.size ( ) ) ; }

Target:
public void testGetVolumesSupportedAsStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > vols = dao.getVolumesSupportedAsStorageDomain ( ) ; org.junit.Assert.assertEquals ( 2 , vols.size ( ) ) ; }
Source:
protected boolean validateDestStorage ( java.util.ArrayList < java.lang.String > canDoActionMessages ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) ; return ( validator.isDomainExistAndActive ( canDoActionMessages ) ) && ( validator.domainIsValidDestination ( canDoActionMessages ) ) ; }

Target:
protected boolean validateDestStorage ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) ; return ( validate ( validator.isDomainExistAndActive ( ) ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }
Source:
private void initListBoxEditors ( ) { raidTypeEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < org.ovirt.engine.core.common.businessentities.RaidType > ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.RaidType > ( ) ) ; }

Target:
private void initListBoxEditors ( ) { raidTypeEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.RaidType > ( ) ) ; }
Source:
protected void initWidget ( T widget ) { this . widget = widget ; widget.setModal ( true ) ; widget.setGlassEnabled ( true ) ; widget.addStyleName ( resources.dialogBoxStyle ( ) . getName ( ) ) ; }

Target:
protected void initWidget ( T widget ) { super . initWidget ( widget ) ; widget.setModal ( true ) ; widget.setGlassEnabled ( true ) ; widget.addStyleName ( resources.dialogBoxStyle ( ) . getName ( ) ) ; }
Source:
protected javax.ws.rs.core.UriInfo setUpRestoreExpectations ( ) { return setUpActionExpectations ( VdcActionType.RestoreAllSnapshots , org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters.class , new java.lang.String [ ] { "VmId" , "SnapshotAction" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.VM_ID , org.ovirt.engine.core.common.businessentities.SnapshotActionEnum.COMMIT } , true , true , null , false ) ; }

Target:
protected javax.ws.rs.core.UriInfo setUpRestoreExpectations ( ) { return setUpActionExpectations ( VdcActionType.RestoreAllSnapshots , org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters.class , new java.lang.String [ ] { "VmId" , "SnapshotAction" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.VM_ID , org.ovirt.engine.core.common.businessentities.SnapshotActionEnum.COMMIT } , true , true , null ) ; }
Source:
protected void setSuperItems ( java.lang.Iterable value ) { super . setItems ( value ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VM > list = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > ) ( getItems ( ) ) ) ; }

Target:
public void setSuperItems ( java.lang.Iterable value ) { super . setItems ( value ) ; }
Source:
void mockSessionDataContainer ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQuery query ) { org.mockito.Mockito.doReturn ( sessionDataContainer ) . when ( query ) . getSessionDataContainer ( ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.SSO_TOKEN ) . when ( sessionDataContainer ) . getSsoAccessToken ( org.mockito.Matchers.anyString ( ) ) ; }

Target:
void mockSessionDataContainer ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQuery query ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.SSO_TOKEN ) . when ( sessionDataContainer ) . getSsoAccessToken ( org.mockito.Matchers.anyString ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.ResetGlusterVolumeOptionsCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.ResetGlusterVolumeOptionsCommand ( new org.ovirt.engine.core.common.action.gluster.ResetGlusterVolumeOptionsParameters ( volumeId , "" , false ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.ResetGlusterVolumeOptionsCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.ResetGlusterVolumeOptionsCommand ( new org.ovirt.engine.core.common.action.gluster.ResetGlusterVolumeOptionsParameters ( volumeId , null , false ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > getDevicesCollection ( org.ovirt.engine.core.compat.Guid vmId ) { return getBackendCollection ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface.class , VdcQueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( vmId ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > getDevicesCollection ( org.ovirt.engine.core.compat.Guid vmId ) { return getBackendCollection ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface.class , VdcQueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ; }
Source:
private boolean allowedNetworkLabelManipulation ( ) { boolean labelNotChanged = ! ( labelChanged ( ) ) ; boolean newLabelAssigned = ! ( labelAdded ( ) ) ; return ( ! ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . isExternal ( ) ) ) && ( labelNotChanged || newLabelAssigned ) ; }

Target:
private boolean allowedNetworkLabelManipulation ( ) { boolean labelNotChanged = ! ( labelChanged ( ) ) ; return ( ! ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . isExternal ( ) ) ) && ( labelNotChanged || ( labelAdded ( ) ) ) ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getuser_id ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
public org.ovirt.engine.api.resource.PermitsResource getPermitsResource ( ) ;

Target:
org.ovirt.engine.api.resource.PermitsResource getPermitsResource ( ) ;
Source:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap ) . validateNetworkExclusiveOnNics ( ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator validator = new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap ) ; return validator.validateNetworkExclusiveOnNics ( ) ; }
Source:
public static boolean isGlusterSwiftSupported ( org.ovirt.engine.core.compat.Version version ) { return ( Version.v3_3.compareTo ( version ) ) <= 0 ; }

Target:
public static boolean isGlusterSwiftSupported ( org.ovirt.engine.core.compat.Version version ) { return false ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; prepareMocks ( ) ; createInputLUNs ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; createInputLUNs ( ) ; }
Source:
void vdsNotResponding ( org.ovirt.engine.core.common.businessentities.VDS vds , boolean executeSshSoftFencing , long lastUpdate ) ;

Target:
void vdsNotResponding ( org.ovirt.engine.core.common.businessentities.VDS vds , long lastUpdate ) ;
Source:
public org.ovirt.engine.core.common.utils.SubnetUtils getsSubnetUtilsInstance ( ) { return org.ovirt.engine.core.common.utils.SubnetUtils.getInstance ( ) ; }

Target:
private org.ovirt.engine.core.common.utils.SubnetUtils getsSubnetUtilsInstance ( ) { return org.ovirt.engine.core.common.utils.SubnetUtils.getInstance ( ) ; }
Source:
public java.lang.String GetCustomValue ( final java.lang.String name ) { if ( customValues.containsKey ( name ) ) { return customValues.get ( name ) ; } else { return "" ; } }

Target:
public java.lang.String GetCustomValue ( final java.lang.String name ) { if ( customValues.containsKey ( name ) ) { return customValues.get ( name ) ; } return "" ; }
Source:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddVmFromTemplateCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.ArgumentMatchers.anyInt ( ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ; }

Target:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddVmFromTemplateCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.ArgumentMatchers.anyInt ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
protected void beforeTask ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getEnclosingCommand ( ) . getParameters ( ) . getDestinationImageId ( ) , ImageStatus.LOCKED ) ; }

Target:
protected void beforeTask ( ) { }
Source:
public static java.util.Collection < java.lang.Object [ ] > namesParams ( ) { return java.util.Arrays.asList ( new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { "a.a.a.a" , false , false } , new java.lang.Object [ ] { "//32" , false , false } , new java.lang.Object [ ] { "33" , false , false } , new java.lang.Object [ ] { "253.0.0.32" , true , false } , new java.lang.Object [ ] { "255.255.255.0" , true , true } , new java.lang.Object [ ] { "15" , true , true } } ) ; }

Target:
public static java.lang.Object [ ] [ ] namesParams ( ) { return new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { "a.a.a.a" , false , false } , new java.lang.Object [ ] { "//32" , false , false } , new java.lang.Object [ ] { "33" , false , false } , new java.lang.Object [ ] { "253.0.0.32" , true , false } , new java.lang.Object [ ] { "255.255.255.0" , true , true } , new java.lang.Object [ ] { "15" , true , true } } ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetAllNetworksByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
protected abstract void initSelectedNetwork ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > networks ) ;

Target:
protected abstract void initSelectedNetwork ( ) ;
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _resultError = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( BaseEnv.ERROR ) ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _resultError = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( BaseEnv.ERROR ) ) ) ; return true ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior ) ( target ) ) ; behavior.PostInitTemplate ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior ) ( target ) ) ; behavior.PostInitTemplate ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ) ; }
Source:
public void parseLunFromXmlRpcReturnsUnknownForNoField ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xlun = new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct ( ) ; org.ovirt.engine.core.common.businessentities.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.ParseLunFromXmlRpc ( xlun ) ; org.junit.Assert.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }

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

Target:
public java.util.Map < java.lang.String , java.lang.Object > getDeviceList ( int storageType ) ;
Source:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetSearchPanel , searchPanel ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetTabBar , tabBar ) ; configureFeedbackUrl ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetSearchPanel , searchPanel ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetTabBar , tabBar ) ; }
Source:
private void handleVdsMaintenanceTimeout ( ) { getVdsEventListener ( ) . handleVdsMaintenanceTimeout ( _vds ) ; _vdsManager.calculateNextMaintenanceAttemptTime ( ) ; }

Target:
private void handleVdsMaintenanceTimeout ( ) { getVdsEventListener ( ) . handleVdsMaintenanceTimeout ( _vds.getId ( ) ) ; _vdsManager.calculateNextMaintenanceAttemptTime ( ) ; }