auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . setTestResultImage ( ( ( java.lang.String ) ( model.getTestResult ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . setTestResultImage ( model.getTestResult ( ) . getEntity ( ) ) ; }
Source:
protected void setId ( org.ovirt.engine.core.compat.Guid id ) { Id = id ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { Id = id ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap getStoragePoolIsoMap ( ) { return getStoragePoolIsoMapDAO ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStoragePoolId ( ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap getStoragePoolIsoMap ( ) { return org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStoragePoolIsoMapDAO ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStoragePoolId ( ) ) ) ; }
Source:
protected boolean canDoAction ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__NETWORK ) ; return org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.CommonNetworkValidation ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) , org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.CommonNetworkValidation ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) , org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.Bond createBond ( java.lang.String bondName ) { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setName ( bondName ) ; bond.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return bond ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.Bond createBond ( java.lang.String bondName ) { return createBond ( bondName , null , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = createTestCommand ( volumeId2 ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = createTestCommand ( volumeId2 , 0 ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.DiskInterface forValue ( int value ) { return org.ovirt.engine.core.common.businessentities.DiskInterface.mappings.get ( value ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.DiskInterface forValue ( java.lang.String name ) { return org.ovirt.engine.core.common.businessentities.DiskInterface.mappings.get ( name ) ; }
Source:
private void setupForLun ( ) { lunDisk = org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createLunDisk ( ) ; lunValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( lunDisk ) ) ; org.mockito.Mockito.doReturn ( vmDao ) . when ( lunValidator ) . getVmDao ( ) ; }

Target:
private void setupForLun ( ) { lunDisk = org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createLunDisk ( ) ; lunValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( lunDisk ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isDirectLunDiskAvaialable = ( ( java.lang.Boolean ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.EntityModel ) ( sender ) ) . getEntity ( ) ) ) ; externalDiskPanel.setVisible ( isDirectLunDiskAvaialable ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isDirectLunDiskAvaialable = ( ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > ) ( sender ) ) . getEntity ( ) ; externalDiskPanel.setVisible ( isDirectLunDiskAvaialable ) ; }
Source:
protected abstract java.lang.Object GetValue ( org.ovirt.engine.core.common.config.DataType type , java.lang.String name , java.lang.String defaultValue ) ;

Target:
protected abstract java.lang.Object getValue ( org.ovirt.engine.core.common.config.DataType type , java.lang.String name , java.lang.String defaultValue ) ;
Source:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return diskImage.getId ( ) . getValue ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return diskImage.getId ( ) ; }
Source:
static org.ovirt.engine.api.model.Nic getModel ( int index ) { org.ovirt.engine.api.model.Nic model = new org.ovirt.engine.api.model.Nic ( ) ; model.setName ( NAMES [ index ] ) ; model.setInterface ( NicInterface.RTL8139_VIRTIO.value ( ) ) ; return model ; }

Target:
static org.ovirt.engine.api.model.Nic getModel ( int index ) { org.ovirt.engine.api.model.Nic model = new org.ovirt.engine.api.model.Nic ( ) ; model.setName ( NAMES [ index ] ) ; model.setInterface ( NicInterface.RTL8139_VIRTIO ) ; return model ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { populateDomains ( ( ( java.util.List < java.lang.String > ) ( result ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { populateDomains ( ( ( java.util.List < java.lang.String > ) ( result ) ) ) ; }
Source:
protected javax.ws.rs.core.Response actionFailure ( org.ovirt.engine.api.model.Action action , javax.ws.rs.WebApplicationException wae ) { action.setStatus ( org.ovirt.engine.api.common.util.StatusUtils.create ( CreationStatus.FAILED ) ) ; return javax.ws.rs.core.Response.fromResponse ( wae.getResponse ( ) ) . entity ( action ) . build ( ) ; }

Target:
protected javax.ws.rs.core.Response actionFailure ( org.ovirt.engine.api.model.Action action , javax.ws.rs.WebApplicationException wae ) { action.setStatus ( CreationStatus.FAILED.value ( ) ) ; return javax.ws.rs.core.Response.fromResponse ( wae.getResponse ( ) ) . entity ( action ) . build ( ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.StoragePool source ) { return ( source.getstatus ( ) ) != ( status ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.StoragePool source ) { return ( source.getStatus ( ) ) != ( status ) ; }
Source:
public void overrideEngineManagedAttributes ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface sourceNic ) { setLabels ( sourceNic.getLabels ( ) ) ; setQosOverridden ( sourceNic.isQosOverridden ( ) ) ; setCustomProperties ( sourceNic.getCustomProperties ( ) ) ; }

Target:
public void overrideEngineManagedAttributes ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface sourceNic ) { setLabels ( sourceNic.getLabels ( ) ) ; setCustomProperties ( sourceNic.getCustomProperties ( ) ) ; }
Source:
private void edit ( ) { if ( ( getWindow ( ) ) != null ) { return ; } setWindow ( new org.ovirt.engine.ui.uicommonweb.models.providers.EditProviderModel ( this , ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( getSelectedItem ( ) ) ) ) ) ; }

Target:
private void edit ( ) { if ( ( getWindow ( ) ) != null ) { return ; } setWindow ( new org.ovirt.engine.ui.uicommonweb.models.providers.EditProviderModel ( this , getSelectedItem ( ) ) ) ; }
Source:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message.name ( ) ) ; }

Target:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.EngineMessage message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message.name ( ) ) ; }
Source:
public void testGetDataAndSetDataWithEmptySession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "" ) ; org.junit.Assert.assertFalse ( "Set should fail with an empty session" , container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testGetDataAndSetDataWithEmptySession ( ) { org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.getData ( "" , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . remove ( getParameters ( ) . getMacPoolId ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getParameters ( ) . getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getMacPoolId ( ) { return getParameters ( ) . getMacPoolId ( ) ; }
Source:
void processOnVmPoweringUp ( org.ovirt.engine.core.compat.Guid vds_id , org.ovirt.engine.core.compat.Guid vmid , java.lang.String display_ip , int display_port ) ;

Target:
void processOnVmPoweringUp ( org.ovirt.engine.core.compat.Guid vmId ) ;
Source:
public java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > getSelectableModels ( ) { java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > items = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > cast ( getModel ( ) . getStorageModels ( ) ) ; return getSelectableModels ( items ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > getSelectableModels ( ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > items = getModel ( ) . getStorageModels ( ) ; return getSelectableModels ( items ) ; }
Source:
protected boolean validate ( ) { org.ovirt.engine.core.bll.validator.IscsiBondValidator validator = new org.ovirt.engine.core.bll.validator.IscsiBondValidator ( ) ; return validate ( validator.isIscsiBondExist ( getIscsiBond ( ) ) ) ; }

Target:
protected boolean validate ( ) { return validate ( validator.isIscsiBondExist ( getIscsiBond ( ) ) ) ; }
Source:
protected void performLogout ( ) { getLoginModel ( ) . resetAfterLogout ( ) ; user.onUserLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent.fire ( eventBus ) ; }

Target:
protected void performLogout ( ) { getLoginModel ( ) . resetAfterLogout ( ) ; user.onUserLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . clearCache ( ) ; org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent.fire ( eventBus ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > GetTagsAttachedToObject ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDAO ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > GetTagsAttachedToObject ( ) { return getTagDAO ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureFromItem ( java.lang.Object item ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( item ) ) ; return template.getClusterArch ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureFromItem ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { return template.getClusterArch ( ) ; }
Source:
private org.ovirt.engine.core.dao.VmTemplateDaoImpl.VMTemplateWithPlugInfo getVMTemplatesWithPlugInfo ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.dao.VmTemplateDaoImpl.VMTemplateWithPlugInfo plugInfo = getCallsHandler ( ) . executeRead ( "GetVmTemplatesByImageId" , org.ovirt.engine.core.dao.VmTemplateDaoImpl.VMTemplateWithPlugInfoRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "image_guid" , imageId ) ) ; return plugInfo ; }

Target:
private org.ovirt.engine.core.dao.VmTemplateDaoImpl.VMTemplateWithPlugInfo getVMTemplatesWithPlugInfo ( org.ovirt.engine.core.compat.Guid imageId ) { return getCallsHandler ( ) . executeRead ( "GetVmTemplatesByImageId" , org.ovirt.engine.core.dao.VmTemplateDaoImpl.VMTemplateWithPlugInfoRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "image_guid" , imageId ) ) ; }
Source:
public void validateFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }

Target:
public void validateFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }
Source:
public void stopRefresh ( ) { getTimer ( ) . stop ( ) ; }

Target:
public void stopRefresh ( ) { if ( ( getTimer ( ) ) != null ) { getTimer ( ) . stop ( ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( java.lang.String networkName , boolean vmNetwork , int mtu , java.lang.Integer vlanId ) { org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setVmNetwork ( vmNetwork ) ; network.setMtu ( mtu ) ; network.setVlanId ( vlanId ) ; return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( boolean vmNetwork , int mtu , java.lang.Integer vlanId ) { org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setVmNetwork ( vmNetwork ) ; network.setMtu ( mtu ) ; network.setVlanId ( vlanId ) ; return network ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSType getVdsType ( ) { return this . vdsType ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSType getVdsType ( ) { return vdsType ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain2 ) { return storageDomain.getAvailableDiskSize ( ) . compareTo ( storageDomain2.getAvailableDiskSize ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain2 ) { return ( - 1 ) * ( storageDomain.getAvailableDiskSize ( ) . compareTo ( storageDomain2.getAvailableDiskSize ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( getGlusterHook ( ) ) != null ) { setVdsGroupId ( getGlusterHook ( ) . getClusterId ( ) ) ; } return super . getVdsGroup ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( getGlusterHook ( ) ) != null ) { setVdsGroupId ( getGlusterHook ( ) . getClusterId ( ) ) ; } return super . getVdsGroup ( ) ; }
Source:
public void overrideEngineManagedAttributes ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface sourceNic ) { setLabels ( sourceNic.getLabels ( ) ) ; setCustomProperties ( sourceNic.getCustomProperties ( ) ) ; }

Target:
public void overrideEngineManagedAttributes ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface sourceNic ) { setLabels ( sourceNic.getLabels ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( ( source != null ) && ( ( ( ( java.util.List ) ( source ) ) . size ( ) ) > 0 ) ) { return true ; } return false ; }
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 , true ) ; }

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 , true , null ) ; }
Source:
public void remove ( org.ovirt.engine.core.compat.NGuid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , id ) ; getCallsHandler ( ) . executeModification ( "DeleteVm_pools" , parameterSource ) ; }

Target:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , id ) ; getCallsHandler ( ) . executeModification ( "DeleteVm_pools" , parameterSource ) ; }
Source:
public void setStorageDomainType ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType ) { getStorageStaticData ( ) . setstorage_domain_type ( storageDomainType ) ; }

Target:
public void setStorageDomainType ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType ) { getStorageStaticData ( ) . setStorageDomainType ( storageDomainType ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters buildCreateVmParameters ( ) { org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters parameters = new org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; parameters.setVmInit ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getVmInit ( ) ) ; return parameters ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters buildCreateVmParameters ( ) { org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters parameters = new org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; return parameters ; }
Source:
public org.ovirt.engine.api.model.NIC update ( org.ovirt.engine.api.model.NIC device ) { validateEnums ( org.ovirt.engine.api.model.NIC.class , device ) ; if ( ( device.isSetPortMirroring ( ) ) || ( device.isSetNetwork ( ) ) ) { validatePortMirroring ( device ) ; } return super . update ( device ) ; }

Target:
public org.ovirt.engine.api.model.NIC update ( org.ovirt.engine.api.model.NIC device ) { validateEnums ( org.ovirt.engine.api.model.NIC.class , device ) ; return super . update ( device ) ; }
Source:
org.ovirt.engine.core.common.businessentities.AuditLog createAuditLog ( org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.common.AuditLogSeverity severity , java.lang.String message ) ;

Target:
org.ovirt.engine.core.common.businessentities.AuditLog createAuditLog ( org.ovirt.engine.core.common.AuditLogType logType , java.lang.String message ) ;
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase doWith ( final org.ovirt.engine.core.common.businessentities.StorageDomain arg ) { final org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase params = new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( arg.getId ( ) , new org.ovirt.engine.core.compat.Guid ( arg.getStoragePoolId ( ) . getUuid ( ) ) ) ; params.setRunSilent ( true ) ; return params ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase doWith ( final org.ovirt.engine.core.common.businessentities.StorageDomain arg ) { final org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase params = new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( arg.getId ( ) , arg.getStoragePoolId ( ) ) ; params.setRunSilent ( true ) ; return params ; }
Source:
public static java.lang.String toPlural ( java.lang.String candidate ) { if ( ! ( candidate.endsWith ( "s" ) ) ) { return candidate + "s" ; } return candidate ; }

Target:
public static java.lang.String toPlural ( java.lang.String candidate ) { if ( ( ( candidate.length ( ) ) >= 1 ) && ( ! ( candidate.endsWith ( "s" ) ) ) ) { return candidate + "s" ; } return candidate ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setProviders ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > returnValue ) { setProviders ( ( ( java.util.List ) ( returnValue ) ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.VmTemplate template , java.lang.String value ) { transitionHandler.handlePlaceTransition ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.VmTemplate template , java.lang.String value ) { transitionHandler.handlePlaceTransition ( true ) ; }
Source:
public static java.lang.String getVmwareUrl ( java.lang.String username , java.lang.String vcenter , java.lang.String dataCenter , java.lang.String esx , boolean verify ) { if ( username != null ) { username = username.replace ( "@" , "%40" ) ; } return ( ( ( ( ( ( "vpx://" + ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( username ) ? "" : username + "@" ) ) + vcenter ) + "/" ) + dataCenter ) + "/" ) + esx ) + ( verify ? "" : "?no_verify=1" ) ; }

Target:
public static java.lang.String getVmwareUrl ( java.lang.String username , java.lang.String vcenter , java.lang.String dataCenter , java.lang.String cluster , java.lang.String esx , boolean verify ) { if ( username != null ) { username = username.replace ( "@" , "%40" ) ; } return ( ( ( ( ( ( "vpx://" + ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( username ) ? "" : username + "@" ) ) + vcenter ) + "/" ) + ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmsModel.mergeDcAndCluster ( dataCenter , cluster ) ) ) + "/" ) + esx ) + ( verify ? "" : "?no_verify=1" ) ; }
Source:
private void setDisksToBeAttached ( org.ovirt.engine.core.common.businessentities.VM vmFromConfiguration ) { vmDisksToAttach = vmFromConfiguration.getDiskMap ( ) . values ( ) ; clearVmDisks ( vmFromConfiguration ) ; org.ovirt.engine.core.bll.ImportVmFromConfigurationCommand.getParameters ( ) . setCopyCollapse ( true ) ; }

Target:
private void setDisksToBeAttached ( org.ovirt.engine.core.common.businessentities.VM vmFromConfiguration ) { vmDisksToAttach = vmFromConfiguration.getDiskMap ( ) . values ( ) ; org.ovirt.engine.core.bll.ImportVmFromConfigurationCommand.clearVmDisks ( vmFromConfiguration ) ; org.ovirt.engine.core.bll.ImportVmFromConfigurationCommand.getParameters ( ) . setCopyCollapse ( true ) ; }
Source:
public org.ovirt.engine.api.model.StorageConnectionExtension update ( org.ovirt.engine.api.model.StorageConnectionExtension incoming ) { org.ovirt.engine.api.restapi.resource.QueryIdResolver resolver = new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionExtensionById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ; return performUpdate ( incoming , resolver , VdcActionType.UpdateStorageServerConnectionExtension , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionExtensionResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageConnectionExtension update ( org.ovirt.engine.api.model.StorageConnectionExtension incoming ) { org.ovirt.engine.api.restapi.resource.QueryIdResolver resolver = new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionExtensionById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ; return performUpdate ( incoming , resolver , VdcActionType.UpdateStorageServerConnectionExtension , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionExtensionResource.UpdateParametersProvider ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { connect ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Boolean returnValue ) { connect ( returnValue ) ; }
Source:
private void createTables ( org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel model ) { createEntityTable ( model ) ; createInfoPanel ( ) ; entityTable.asEditor ( ) . edit ( model.getEntities ( ) ) ; }

Target:
private void createTables ( org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel model ) { createEntityTable ( model ) ; createInfoPanel ( model ) ; entityTable.asEditor ( ) . edit ( model.getEntities ( ) ) ; }
Source:
protected void removeCustomizationCondition ( java.lang.String cond ) { _customizationConditions.remove ( cond ) ; }

Target:
public void removeCustomizationCondition ( java.lang.String cond ) { _customizationConditions.remove ( cond ) ; }
Source:
public org.ovirt.engine.api.model.VmPool get ( ) { return performGet ( VdcQueryType.GetVmPoolById , new org.ovirt.engine.core.common.queries.GetVmPoolByIdParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.VmPool get ( ) { return performGet ( VdcQueryType.GetVmPoolById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.StoragePool storagePool , java.lang.String value ) { transitionHandler.handlePlaceTransition ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.StoragePool storagePool , java.lang.String value ) { transitionHandler.handlePlaceTransition ( true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getStatus ( ) ; }
Source:
public static void addDiskImage ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImage ( image , image.getactive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getstorage_ids ( ) . get ( 0 ) ) ) ; }

Target:
public static void addDiskImage ( org.ovirt.engine.core.common.businessentities.DiskImage image , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImage ( image , image.getactive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getstorage_ids ( ) . get ( 0 ) ) , vmId ) ; }
Source:
org.ovirt.engine.ui.webadmin.widget.host.VLanPanel createVLanPanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.VLanPanel panel = new org.ovirt.engine.ui.webadmin.widget.host.VLanPanel ( ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; panel.addVLans ( lineModel ) ; addClickHandlerToPanel ( panel , lineModel ) ; return panel ; }

Target:
org.ovirt.engine.ui.webadmin.widget.host.VLanPanel createVLanPanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.VLanPanel panel = new org.ovirt.engine.ui.webadmin.widget.host.VLanPanel ( ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; panel.addVLans ( lineModel ) ; return panel ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( org.ovirt.engine.ui.uicompat.external.StringUtils.join ( diskImage.getStoragesNames ( ) , ", " ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) ; return org.ovirt.engine.ui.uicompat.external.StringUtils.join ( diskImage.getStoragesNames ( ) , ", " ) ; }
Source:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move ) ; initVmDiskImage ( ) ; command.getImage ( ) . setOvfStore ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }

Target:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setOvfStore ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }
Source:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForAdElement ( org.ovirt.engine.core.compat.Guid id ) { return getAllForAdElement ( id , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForAdElement ( org.ovirt.engine.core.compat.Guid id ) { return getAllForAdElement ( id , ( - 1 ) , false ) ; }
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getDestinationVdsId ( ) ) != null ) { decreasePendingVms ( getDestinationVdsId ( ) ) ; } org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getDestinationVdsId ( ) ) != null ) { decreasePendingVms ( getDestinationVdsId ( ) ) ; } } }
Source:
public org.ovirt.engine.core.common.businessentities.VolumeType getSelectedVolumeType ( ) { if ( ( ( java.lang.Boolean ) ( collapseSnapshots.getEntity ( ) ) ) && ( ( selectedVolumeType ) != null ) ) { return selectedVolumeType ; } return getVolumeType ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VolumeType getSelectedVolumeType ( ) { if ( ! ( ( java.lang.Boolean ) ( collapseSnapshots.getEntity ( ) ) ) ) { return getVolumeType ( ) ; } return selectedVolumeType ; }
Source:
private void refreshEntityTable ( ) { entityTable.asEditor ( ) . edit ( entityTable.asEditor ( ) . flush ( ) ) ; entityTable.redraw ( ) ; }

Target:
protected void refreshEntityTable ( ) { entityTable.asEditor ( ) . edit ( entityTable.asEditor ( ) . flush ( ) ) ; entityTable.redraw ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getHookEntity ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = new org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity ( ) ; hook.setClusterId ( org.ovirt.engine.core.bll.gluster.GlusterHookCommandTest.CLUSTER_ID ) ; hook.setId ( org.ovirt.engine.core.bll.gluster.GlusterHookCommandTest.HOOK_ID ) ; hook.setServerHooks ( getGlusterServerHooks ( ) ) ; return hook ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getHookEntity ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = new org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity ( ) ; hook.setClusterId ( org.ovirt.engine.core.bll.gluster.GlusterHookCommandTest.CLUSTER_ID ) ; hook.setId ( org.ovirt.engine.core.bll.gluster.GlusterHookCommandTest.HOOK_ID ) ; hook.setServerHooks ( getGlusterServerHooks ( ) ) ; return hook ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getName ( ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; pluginManager.enablePluginInvocation ( ) ; alertManager.setCanShowAlerts ( true ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; alertManager.setCanShowAlerts ( true ) ; }
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.Integer returnValue ) { spmDefaultPriorityValue = returnValue ; updateSpmPriorityValues ( ) ; updateSpmPriority ( ) ; }
Source:
public boolean isNetworkInSync ( ) { return ( ( ( isNetworkMtuInSync ( ) ) && ( isNetworkVlanIdInSync ( ) ) ) && ( isNetworkBridgedFlagInSync ( ) ) ) && ( ( qosParametersEqual ( ) ) || ( iface.isQosOverridden ( ) ) ) ; }

Target:
public boolean isNetworkInSync ( ) { return ( ( ( isNetworkMtuInSync ( ) ) && ( isNetworkVlanIdInSync ( ) ) ) && ( isNetworkBridgedFlagInSync ( ) ) ) && ( qosParametersEqual ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM initializeMock ( final int domainSizeGB ) { mockVmTemplateDaoReturnVmTemplate ( ) ; mockDiskImageDaoGetSnapshotById ( ) ; mockStorageDomainDaoGetForStoragePool ( domainSizeGB ) ; mockStorageDomainDaoGet ( domainSizeGB ) ; mockConfig ( ) ; return org.ovirt.engine.core.bll.AddVmCommandTest.createVm ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM initializeMock ( final int domainSizeGB ) { mockVmTemplateDaoReturnVmTemplate ( ) ; mockStorageDomainDaoGetForStoragePool ( domainSizeGB ) ; mockStorageDomainDaoGet ( domainSizeGB ) ; mockConfig ( ) ; return org.ovirt.engine.core.bll.AddVmCommandTest.createVm ( ) ; }
Source:
protected void setupForStorageTests ( ) { org.mockito.Mockito.doReturn ( multipleSdValidator ) . when ( command ) . getStorageDomainsValidator ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.anySet ( ) ) ; }

Target:
protected void setupForStorageTests ( ) { org.mockito.Mockito.doReturn ( multipleSdValidator ) . when ( command ) . getStorageDomainsValidator ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { hostModel.setPmProxyPreferences ( ( ( java.lang.String ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { hostModel.setPmProxyPreferences ( ( ( java.lang.String ) ( returnValue ) ) ) ; }
Source:
protected boolean isWindows ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( osId ) ; }

Target:
protected boolean isWindows ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . isWindowsOsType ( osId ) ; }
Source:
private void validateNetworkQos ( ) { validateQosOverriddenInterfaces ( ) ; validateQosNotPartiallyConfigured ( ) ; validateQosCommitment ( ) ; }

Target:
private void validateNetworkQos ( ) { validateQosNotPartiallyConfigured ( ) ; validateQosCommitment ( ) ; }
Source:
public void setAddress ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( address , value ) ) ) { address = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Address" ) ) ; } }

Target:
public void setAddress ( java.lang.String value ) { address = value ; }
Source:
private boolean isHostAvailable ( org.ovirt.engine.core.common.businessentities.VDS host ) { boolean isStatusUp = ( host.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Up ) ; return isStatusUp ; }

Target:
private boolean isHostAvailable ( org.ovirt.engine.core.common.businessentities.VDS host ) { boolean isStatusUp = ( host.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Up ) ; return isStatusUp ; }
Source:
public void testUpdate ( ) { existingPool.setdescription ( "Farkle" ) ; existingPool.setStoragePoolFormatType ( StorageFormatType.V1 ) ; dao.update ( existingPool ) ; org.ovirt.engine.core.common.businessentities.storage_pool result = dao.get ( existingPool.getId ( ) ) ; assertGetResult ( result ) ; }

Target:
public void testUpdate ( ) { existingPool.setdescription ( "Farkle" ) ; existingPool.setStoragePoolFormatType ( StorageFormatType.V1 ) ; dao.update ( existingPool ) ; org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( existingPool.getId ( ) ) ; assertGetResult ( result ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.VnicProfile.class , org.ovirt.engine.core.common.VdcObjectType.VnicProfile ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return super . getPermissionsResource ( ) ; }
Source:
public void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTasks task = coco.getAsyncTaskFromDb ( asyncTaskId ) ; logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }

Target:
public void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTasks task = coco.getAsyncTaskFromDb ( asyncTaskId ) ; if ( task != null ) { logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; } }
Source:
public void setUserId ( final org.ovirt.engine.core.compat.NGuid value ) { mUserId = value.getValue ( ) ; }

Target:
public void setUserId ( final org.ovirt.engine.core.compat.Guid value ) { mUserId = value.getValue ( ) ; }
Source:
private java.lang.String createShortMacAddress ( ) { return org.ovirt.engine.core.common.businessentities.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.substring ( 0 , random.nextInt ( org.ovirt.engine.core.common.businessentities.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.length ( ) ) ) ; }

Target:
private java.lang.String createShortMacAddress ( ) { return org.ovirt.engine.core.common.businessentities.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.substring ( ( ( random.nextInt ( ( ( org.ovirt.engine.core.common.businessentities.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.length ( ) ) - 2 ) ) ) + 1 ) ) ; }
Source:
public void setOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { optionsMap = value ; options = org.ovirt.engine.core.common.businessentities.pm.FenceAgent.optionsMapToString ( value ) ; }

Target:
public void setOptionsMap ( java.util.Map < java.lang.String , java.lang.String > value ) { optionsMap = value ; options = org.ovirt.engine.core.common.businessentities.pm.FenceAgent.optionsMapToString ( value ) ; }
Source:
private boolean shouldTakeIpv4DataFromNic ( ) { if ( ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.DHCP ) == ( getIpv4BootProtocol ( ) ) ) { return true ; } return false ; }

Target:
private boolean shouldTakeIpv4DataFromNic ( ) { if ( ( ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.DHCP ) == ( getIpv4BootProtocol ( ) ) ) && ( ( nic ) != null ) ) { return true ; } return false ; }
Source:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidator ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator.class ) ; org.mockito.Mockito.when ( storageDomainValidator.isDomainExistAndActive ( ) ) . thenReturn ( ValidationResult.VALID ) ; org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidator ( ) { return org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator.class ) ; }
Source:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }
Source:
public java.lang.Boolean getIsPlugged ( ) { return ( isPlugged ) == null ? java.lang.Boolean.FALSE : isPlugged ; }

Target:
public boolean getIsPlugged ( ) { return isPlugged ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( object.getPolicyUnitType ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . get ( object.getPolicyUnitType ( ) ) ; }
Source:
protected void mockGetStorageDomainList ( int availableDiskSizeFirstDomain , int availableDiskSizeSecondDomain ) { storageDomainsList = getStorageDomainList ( availableDiskSizeFirstDomain , availableDiskSizeSecondDomain ) ; mockDiskImageDao ( ) ; mockStorageDomainDao ( storageDomainsList ) ; }

Target:
protected void mockGetStorageDomainList ( ) { storageDomainsList = getStorageDomainList ( ) ; mockDiskImageDao ( ) ; mockStorageDomainDao ( storageDomainsList ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) ; if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; context.removeVDSGroupReturnValue = returnValue ; rollback5 ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; rollback5 ( ) ; }