auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.common.businessentities.storage_pool findDc ( org.ovirt.engine.core.compat.Guid dcId , java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > dataCenters ) { for ( org.ovirt.engine.core.common.businessentities.storage_pool dc : dataCenters ) { if ( dcId.equals ( dc.getId ( ) ) ) { return dc ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool findDc ( org.ovirt.engine.core.compat.Guid dcId , java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > dataCenters ) { for ( org.ovirt.engine.core.common.businessentities.StoragePool dc : dataCenters ) { if ( dcId.equals ( dc.getId ( ) ) ) { return dc ; } } return null ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml lineChartWithoutImage ( int textWidth , java.lang.String textColor , java.lang.String fontWeight , int percentage ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml lineChartWithoutImage ( int textWidth , java.lang.String textColor , java.lang.String fontWeight ) ;
Source:
public java.lang.String findFreeVfForVnic ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.network.Network vnicNetwork ) ;

Target:
public java.lang.String findFreeVfForVnic ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.network.Network vnicNetwork , org.ovirt.engine.core.compat.Guid vmId ) ;
Source:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( getVmStatistics ( ) , disksUsages , xml ) ; }

Target:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVmStatistics ( ) , disksUsages , xml ) ; }
Source:
public void validateFailsOnVolumeWithoutRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , getBricks ( volumeWithoutRemoveBricksTask ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnVolumeWithoutRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , getBricks ( volumeWithoutRemoveBricksTask ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { initQuery ( getQuery ( ) ) ; for ( org.ovirt.engine.core.utils.MockConfigDescriptor < ? > mcd : getExtraConfigDescriptors ( ) ) { org.ovirt.engine.core.bll.AbstractQueryTest.mcr.mockConfigValue ( mcd ) ; } }

Target:
public void setUp ( ) throws java.lang.Exception { initQuery ( getQuery ( ) ) ; }
Source:
public static boolean supportedInConfig ( org.ovirt.engine.core.common.config.ConfigValues feature , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( feature , version.getValue ( ) ) ; }

Target:
public static boolean supportedInConfig ( org.ovirt.engine.core.common.config.ConfigValues feature , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( feature , version.getValue ( ) ) ; }
Source:
public final boolean isLinuxBridge ( ) { return OpenstackNetworkPluginType.LINUX_BRIDGE.name ( ) . equals ( getPluginType ( ) ) ; }

Target:
public final boolean isLinuxBridge ( ) { return false ; }
Source:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public void updateCommandData ( final org.ovirt.engine.core.compat.Guid commandId , final java.util.Map < java.lang.String , java.io.Serializable > data ) { commandsRepository.getCommandsCache ( ) . updateCommandData ( commandId , data ) ; }

Target:
public void updateCommandData ( final org.ovirt.engine.core.compat.Guid commandId , final java.util.Map < java.lang.String , java.io.Serializable > data ) { commandsRepository.updateCommandData ( commandId , data ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule getByVolumeId ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule schedule = getCallsHandler ( ) . executeRead ( "GetGlusterVolumeSnapshotScheduleByVolumeId" , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoImpl.snapshotScheduleRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "volume_id" , volumeId ) ) ; return schedule ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule getByVolumeId ( org.ovirt.engine.core.compat.Guid volumeId ) { return getCallsHandler ( ) . executeRead ( "GetGlusterVolumeSnapshotScheduleByVolumeId" , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoImpl.snapshotScheduleRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "volume_id" , volumeId ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return object.toString ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getName ( ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid RegisterQuery ( org.ovirt.engine.core.common.queries.VdcQueryType getallbookmarks , org.ovirt.engine.core.common.queries.VdcQueryParametersBase vdcQueryParametersBase , org.ovirt.engine.core.compat.RefObject < org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.core.common.businessentities.IVdcQueryable > > tempRefObject ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( "RegisterQuery is not implemented!" ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryParametersBase getParameters ( ) { return parameters ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , null , networkName , true , null , false , null ) ; }
Source:
public void vmNotDuringSnapshotReturnsValidForNoSnapshotInProgress ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid vmId = new org.ovirt.engine.core.compat.Guid ( ) ; org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( false ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateValidResult ( validator.vmNotDuringSnapshot ( vmId ) ) ; }

Target:
public void vmNotDuringSnapshotReturnsValidForNoSnapshotInProgress ( ) throws java.lang.Exception { org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( false ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateValidResult ( validator.vmNotDuringSnapshot ( vmId ) ) ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.Erratum erratum ) { return erratum.getTitle ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Erratum erratum ) { return erratum.getTitle ( ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; connection.setid ( id ) ; org.ovirt.engine.core.compat.Guid hostId = org.ovirt.engine.core.compat.Guid.Empty ; org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase parameters = new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) ; return performAction ( VdcActionType.RemoveStorageServerConnection , parameters ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; connection.setId ( id ) ; org.ovirt.engine.core.compat.Guid hostId = org.ovirt.engine.core.compat.Guid.Empty ; org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase parameters = new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) ; return performAction ( VdcActionType.RemoveStorageServerConnection , parameters ) ; }
Source:
public void utcDateStringToLocaDateNoDep ( ) { java.util.Date date = org.ovirt.engine.core.utils.ovf.OvfParser.utcDateStringToLocalDate ( "1984/06/19 14:25:11" ) ; org.junit.Assert.assertEquals ( 456503111000L , date.getTime ( ) ) ; }

Target:
public void utcDateStringToLocaDateNoDep ( ) { java.util.Date date = org.ovirt.engine.core.utils.ovf.OvfParser.utcDateStringToLocalDate ( "1984/06/19 14:25:11" ) ; org.junit.Assert.assertEquals ( new java.util.Date ( 456503111000L ) , date ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Network result = dao.getByName ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByName ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VMs list ( ) { org.ovirt.engine.api.v3.types.V3VMs vms = adaptList ( getDelegate ( ) :: list ) ; vms.getVMs ( ) . stream ( ) . forEach ( V3VmHelper :: addDisksLink ) ; return vms ; }

Target:
public org.ovirt.engine.api.v3.types.V3VMs list ( ) { org.ovirt.engine.api.v3.types.V3VMs vms = adaptList ( getDelegate ( ) :: list ) ; vms.getVMs ( ) . forEach ( V3VmHelper :: addDisksLink ) ; return vms ; }
Source:
public void shouldNotElectActiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME ) ; org.mockito.Mockito.when ( hostedEngineHelper.isHostedEngineStorageDomain ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageDomain.class ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( ) ) ; }

Target:
public void shouldNotElectActiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME , true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.UpdateVmPolicyVDSCommand.getBroker ( ) . updateVmPolicy ( build ( ) ) ; org.ovirt.engine.core.vdsbroker.UpdateVmPolicyVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.UpdateVmPolicyVDSCommand.getBroker ( ) . updateVmPolicy ( build ( ) ) ; org.ovirt.engine.core.vdsbroker.UpdateVmPolicyVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public static < T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version ) { return org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) . < T > getValue ( value , version ) ; }

Target:
public static < T > T getValue ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version ) { return org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) . < T > getValue ( value , version ) ; }
Source:
protected M getMainModel ( ) { return mainModelProvider.get ( ) ; }

Target:
public M getMainModel ( ) { return mainModelProvider.get ( ) ; }
Source:
private void setupNetworkDao ( ) { org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getNetworkDao ( ) ) . thenReturn ( networkDaoMocked ) ; org.mockito.Mockito.when ( networkDaoMocked.get ( networkId ) ) . thenReturn ( networkMocked ) ; }

Target:
private void setupNetworkDao ( ) { org.mockito.Mockito.when ( networkDaoMocked.get ( networkId ) ) . thenReturn ( networkMocked ) ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.storage_pool source ) { return ( source.getstatus ( ) ) == ( status ) ; }

Target:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StoragePool source ) { return ( source.getstatus ( ) ) == ( status ) ; }
Source:
public void testSave ( ) { dao.save ( dummyPolicyUnit ) ; org.ovirt.engine.core.common.scheduling.PolicyUnit result = dao.get ( dummyPolicyUnit.getId ( ) ) ; org.junit.Assert.assertTrue ( result.equals ( dummyPolicyUnit ) ) ; }

Target:
public void testSave ( ) { dao.save ( dummyPolicyUnit ) ; org.ovirt.engine.core.common.scheduling.PolicyUnit result = dao.get ( dummyPolicyUnit.getId ( ) ) ; org.junit.Assert.assertEquals ( result , dummyPolicyUnit ) ; }
Source:
private void mockBackend ( ) { org.ovirt.engine.core.common.action.VdcReturnValueBase addClusterReturnValue = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.action.VdcReturnValueBase.class ) ; org.mockito.Mockito.when ( backend.runAction ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.CpuProfileParameters.class ) ) ) . thenReturn ( addClusterReturnValue ) ; }

Target:
private void mockBackend ( ) { org.mockito.Mockito.when ( backend.runAction ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.CpuProfileParameters.class ) ) ) . thenReturn ( new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null , true ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null ) ; }
Source:
public void checkCinderStorageDomainContainDisks ( ) { setCinderStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; cinderStorageDomainContainsDisks ( false ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertFalse ( cmd.canDetachDomain ( false , false ) ) ; }

Target:
public void checkCinderStorageDomainContainDisks ( ) { setCinderStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; cinderStorageDomainContainsDisks ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertFalse ( cmd.canDetachDomain ( false , false ) ) ; }
Source:
public void mockCluster ( org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setCompatibilityVersion ( version ) ; org.mockito.Mockito.when ( clusterDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( cluster ) ; }

Target:
public void mockCluster ( org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setCompatibilityVersion ( version ) ; org.mockito.Mockito.when ( clusterDao.get ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( cluster ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.CommandBase < ? > commandBase = getCommand ( cmdId ) ; commandBase.getParameters ( ) . setTaskGroupSuccess ( false ) ; endAction ( commandBase , childCmdIds , false ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.CommandBase < ? > commandBase = getCommand ( cmdId ) ; commandBase.getParameters ( ) . setTaskGroupSuccess ( false ) ; endAction ( commandBase , false ) ; }
Source:
public void testExecuteQueryAdminConfigNotFiltered ( ) { assertQueryExecution ( ConfigValues.DiscardAfterDeleteSupported , false , true ) ; }

Target:
public void testExecuteQueryAdminConfigNotFiltered ( ) { assertQueryExecution ( ConfigValues.DiscardAfterDeleteSupported , false ) ; }
Source:
public synchronized void startPollingTask ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) { if ( _tasks.containsKey ( vdsmTaskId ) ) { _tasks.get ( vdsmTaskId ) . StartPollingTask ( ) ; } }

Target:
public synchronized void startPollingTask ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) { if ( _tasks.containsKey ( vdsmTaskId ) ) { _tasks.get ( vdsmTaskId ) . startPollingTask ( ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.async_tasks get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "task_id" , id ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskRowMapper mapper = new org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskRowMapper ( ) ; return getCallsHandler ( ) . executeRead ( "Getasync_tasksBytask_id" , mapper , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.async_tasks get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "task_id" , id ) ; return getCallsHandler ( ) . executeRead ( "Getasync_tasksBytask_id" , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskRowMapper.instance , parameterSource ) ; }
Source:
public java.lang.String getReplacementStringNullSafe ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView profile ) { return profile == VnicProfileView.EMPTY ? org.ovirt.engine.ui.common.widget.profile.ProfileEditor.messages.emptyProfile ( ) . asString ( ) : org.ovirt.engine.ui.common.widget.profile.ProfileEditor.messages.profileAndNetworkSelected ( profile.getName ( ) , profile.getNetworkName ( ) ) . asString ( ) ; }

Target:
public java.lang.String getReplacementStringNullSafe ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView profile ) { return profile == VnicProfileView.EMPTY ? org.ovirt.engine.ui.common.widget.profile.ProfileEditor.messages.emptyProfile ( ) . asString ( ) : org.ovirt.engine.ui.common.widget.profile.ProfileEditor.messages.profileAndNetworkSelected ( profile.getName ( ) , profile.getNetworkName ( ) ) ; }
Source:
private java.lang.String getPublicCollection ( java.lang.String collectionName ) { if ( this . entitiesMap.containsKey ( collectionName.toLowerCase ( ) ) ) { return this . entitiesMap.get ( collectionName.toLowerCase ( ) ) . getSimpleName ( ) ; } return null ; }

Target:
private java.lang.String getPublicCollection ( java.lang.String collectionName ) { if ( this . entitiesMap.containsKey ( collectionName.toLowerCase ( ) ) ) { return this . entitiesMap.get ( collectionName.toLowerCase ( ) ) ; } return null ; }
Source:
protected void executeCommand ( ) { setQuotaParameter ( ) ; org.ovirt.engine.core.bll.AddQuotaCommand.getQuotaDAO ( ) . save ( org.ovirt.engine.core.bll.AddQuotaCommand.getQuota ( ) ) ; org.ovirt.engine.core.bll.AddQuotaCommand.getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { setQuotaParameter ( ) ; getQuotaDAO ( ) . save ( getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.sdk.entities.Balance getBalances ( ) { return balances ; }

Target:
public java.util.List < org.ovirt.engine.sdk.entities.Balance > getBalances ( ) { if ( ( balances ) == null ) { balances = new java.util.ArrayList < org.ovirt.engine.sdk.entities.Balance > ( ) ; } return this . balances ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > getSubnets ( ) { org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters ( ) ; parameters.setProviderId ( asGuid ( providerId ) ) ; parameters.setNetworkId ( networkId ) ; return getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.class , VdcQueryType.GetExternalSubnetsOnProviderByExternalNetwork , parameters ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > getSubnets ( ) { org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters ( ) ; parameters.setProviderId ( asGuid ( providerId ) ) ; parameters.setNetworkId ( networkId ) ; return getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.class , VdcQueryType.GetExternalSubnetsOnProviderByExternalNetwork , parameters ) ; }
Source:
public static java.lang.Integer tryParse ( java.lang.String text ) { try { return new java.lang.Integer ( text ) ; } catch ( java.lang.NumberFormatException e ) { return null ; } }

Target:
public static java.lang.Integer tryParse ( java.lang.String text ) { try { return java.lang.Integer.valueOf ( text ) ; } catch ( java.lang.NumberFormatException e ) { return null ; } }
Source:
private void mockVmDaoGetVm ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }

Target:
private void mockVmDaoGetVm ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( vm ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value , java.lang.String reason ) { setIsChangeable ( value ) ; if ( ! value ) { setChangeProhibitionReason ( reason ) ; } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value ) { return setIsChangeable ( value , null ) ; }
Source:
public static void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getIrsImageList ( aQuery , storagePoolId , false ) ; }

Target:
public void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { getIrsImageList ( aQuery , storagePoolId , false ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getVmSnapshotIdForType ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType type ) { return getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.RestoreStatelessVmCommand.getVmId ( ) , type ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getVmSnapshotIdForType ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType type ) { return org.ovirt.engine.core.bll.RestoreStatelessVmCommand.getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.RestoreStatelessVmCommand.getVmId ( ) , type ) ; }
Source:
private boolean runVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.utils.lock.EngineLock lock ) { boolean succeeded = org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.RunVm , new org.ovirt.engine.core.common.action.RunVmParams ( vmId ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( lock ) ) . getSucceeded ( ) ; return succeeded ; }

Target:
private boolean runVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.RunVm , new org.ovirt.engine.core.common.action.RunVmParams ( vmId ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( lock ) ) . getSucceeded ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getCurrentVdsId ( ) { if ( ( getVdsDestinationId ( ) ) != null ) { return getVdsDestinationId ( ) ; } else { return super . getCurrentVdsId ( ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid getCurrentVdsId ( ) { return ( getVdsDestinationId ( ) ) != null ? getVdsDestinationId ( ) : super . getCurrentVdsId ( ) ; }
Source:
public static void getGlusterVolumeBrickDetails ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.compat.Guid brickId ) { org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters ( clusterId , volumeId , brickId , true ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeAdvancedDetails , parameters , aQuery ) ; }

Target:
public void getGlusterVolumeBrickDetails ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.compat.Guid brickId ) { org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters ( clusterId , volumeId , brickId , true ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeAdvancedDetails , parameters , aQuery ) ; }
Source:
public void Run ( ) { target.run ( context ) ; }

Target:
public void run ( ) { target.run ( context ) ; }
Source:
protected void cancel ( ) { setWindow ( null ) ; setConfirmWindow ( null ) ; }

Target:
public void cancel ( ) { setWindow ( null ) ; setConfirmWindow ( null ) ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomain ( int idx ) { org.ovirt.engine.api.model.StorageDomain dom = new org.ovirt.engine.api.model.StorageDomain ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }

Target:
private org.ovirt.engine.api.model.StorageDomain getStorageDomain ( int idx ) { org.ovirt.engine.api.model.StorageDomain dom = new org.ovirt.engine.api.model.StorageDomain ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpGetCertificateInfo ( NAMES.length ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
private static void addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) , true , false , null ) ; }

Target:
private static void addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) , true , false , null , false ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleAction ( actionType , parameters , null , null ) ; return null ; }

Target:
public static void RunMultipleAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleAction ( actionType , parameters , null , null ) ; }
Source:
private java.lang.String getPrincipalName ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , false ) ) ) ; }

Target:
public java.lang.String getPrincipalName ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , false ) ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.storage_pool item , java.lang.Object value ) { context.clusterListByDataCenterMap.put ( item , ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( value ) ) ) ; return false ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.StoragePool item , java.lang.Object value ) { context.clusterListByDataCenterMap.put ( item , ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( value ) ) ) ; return false ; }
Source:
protected void mockSingleAgentResult ( org.ovirt.engine.core.bll.pm.SingleAgentFenceActionExecutor executor , org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult result ) { org.mockito.Mockito.doReturn ( result ) . when ( executor ) . fence ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.pm.FenceActionType.class ) ) ; }

Target:
protected void mockSingleAgentResult ( org.ovirt.engine.core.bll.pm.SingleAgentFenceActionExecutor executor , org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult result ) { org.mockito.Mockito.doReturn ( result ) . when ( executor ) . fence ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { boolean visible = checkBox.getValue ( ) ; controller.setColumnVisible ( column , visible ) ; }

Target:
void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { controller.setColumnVisible ( column , checkBox.getValue ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; }
Source:
private void cancel ( ) { sourceModel.setWindow ( null ) ; }

Target:
protected void cancel ( ) { sourceModel.setWindow ( null ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( args instanceof org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) { updateMessages ( object ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { updateMessages ( object ) ; }
Source:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) , getClusterVersion ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) ) ; }
Source:
private void cleanupModelItems ( ) { if ( ( modelItems ) != null ) { for ( T item : modelItems ) { if ( item instanceof org.ovirt.engine.ui.uicommonweb.HasCleanup ) { ( ( org.ovirt.engine.ui.uicommonweb.HasCleanup ) ( item ) ) . cleanup ( ) ; } } } }

Target:
protected void cleanupModelItems ( ) { if ( ( modelItems ) != null ) { for ( T item : modelItems ) { if ( item instanceof org.ovirt.engine.ui.uicommonweb.HasCleanup ) { ( ( org.ovirt.engine.ui.uicommonweb.HasCleanup ) ( item ) ) . cleanup ( ) ; } } } }
Source:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.AddVdsSpmIdCommand.getVds ( ) . getstorage_pool_id ( ) . toString ( ) , LockingGroup.REGISTER_VDS.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.AddVdsSpmIdCommand.getVds ( ) . getStoragePoolId ( ) . toString ( ) , LockingGroup.REGISTER_VDS.name ( ) ) ; }
Source:
private void initSize ( ) { setBrickSize ( new org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit , java.lang.Double > ( org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit.BYTES , 0.0 ) ) ; }

Target:
private void initSize ( ) { setBrickSize ( new org.ovirt.engine.core.common.utils.Pair ( org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit.BYTES , 0.0 ) ) ; }
Source:
public void testISCSIInvalidPortWithCharacters ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "abc" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_INVALID_PORT ) ; }

Target:
public void testISCSIInvalidPortWithCharacters ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "abc" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_INVALID_PORT ) ; }
Source:
public static java.util.Collection < java.lang.Object [ ] > data ( ) { return java.util.Arrays.asList ( new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { org.ovirt.engine.core.bll.storage.repoimage.GetImagesListByStoragePoolIdQuery.class , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.ISO } , new java.lang.Object [ ] { org.ovirt.engine.core.bll.storage.repoimage.GetImagesListByStoragePoolIdQuery.class , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.Floppy } } ) ; }

Target:
public static java.util.Collection < java.lang.Object [ ] > data ( ) { return java.util.Arrays.asList ( new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { org.ovirt.engine.core.common.businessentities.storage.ImageFileType.ISO } , new java.lang.Object [ ] { org.ovirt.engine.core.common.businessentities.storage.ImageFileType.Floppy } } ) ; }
Source:
public java.lang.String render ( org.ovirt.engine.core.compat.RpmVersion version ) { java.lang.String formattedVersion ; formattedVersion = version.getRpmName ( ) ; return new org.ovirt.engine.ui.common.widget.renderer.EmptyValueRenderer < java.lang.String > ( org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getApplicationConstants ( ) . unAvailablePropertyLabel ( ) ) . render ( formattedVersion ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.compat.RpmVersion version ) { java.lang.String formattedVersion ; formattedVersion = version.getRpmName ( ) ; return new org.ovirt.engine.ui.common.widget.renderer.EmptyValueRenderer < java.lang.String > ( org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getApplicationConstants ( ) . unAvailablePropertyLabel ( ) ) . render ( formattedVersion ) ; }
Source:
public void setEntity ( java.lang.Object value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; updateActionAvailability ( ) ; } }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; updateActionAvailability ( ) ; } }
Source:
public void setVmSnapshotId ( org.ovirt.engine.core.compat.NGuid snapshotId ) { getImage ( ) . setSnapshotId ( ( snapshotId == null ? null : snapshotId.getValue ( ) ) ) ; }

Target:
public void setVmSnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { getImage ( ) . setSnapshotId ( ( snapshotId == null ? null : snapshotId.getValue ( ) ) ) ; }
Source:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.macpool.MacRangeModel value ) { return ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( value.getLeftBound ( ) . getEntity ( ) ) ) || ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( value.getRightBound ( ) . getEntity ( ) ) ) ; }

Target:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.macpool.MacRangeModel value ) { return ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( value.getLeftBound ( ) . getEntity ( ) ) ) && ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( value.getRightBound ( ) . getEntity ( ) ) ) ; }
Source:
protected void onLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { loginModel.updateIsENGINEUser ( loginModel.getLoggedUser ( ) ) ; }

Target:
protected void onLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { super . onLogin ( loginModel ) ; loginModel.updateIsENGINEUser ( loginModel.getLoggedUser ( ) ) ; }
Source:
private boolean networkLinkingSupported ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.NetworkLinkingSupported , version ) ; }

Target:
public static boolean networkLinkingSupported ( java.lang.String version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.NetworkLinkingSupported , version ) ; }
Source:
public void addAlert ( com.google.gwt.user.client.ui.Widget alertWidget ) { alertsList.add ( new org.ovirt.engine.ui.webadmin.widget.alert.InLineAlertWidget ( resources , alertWidget ) ) ; if ( ! ( alertsPanel.isVisible ( ) ) ) { alertsPanel.setVisible ( true ) ; } }

Target:
public void addAlert ( com.google.gwt.user.client.ui.Widget alertWidget ) { alertsList.add ( new org.ovirt.engine.ui.webadmin.widget.alert.InLineAlertWidget ( alertWidget ) ) ; if ( ! ( alertsPanel.isVisible ( ) ) ) { alertsPanel.setVisible ( true ) ; } }
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.getstorage_pool_id ( ) . 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 ( ) , new org.ovirt.engine.core.compat.Guid ( arg.getStoragePoolId ( ) . getUuid ( ) ) ) ; params.setRunSilent ( true ) ; return params ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
private void mockValidators ( ) { mockStorageDomainValidator ( ) ; mockDiskValidator ( ) ; mockSnapshotsValidator ( ) ; }

Target:
private void mockValidators ( ) { mockStorageDomainValidator ( ) ; mockDiskValidator ( ) ; }
Source:
private org.gwtbootstrap3.client.ui.Anchor createTextAnchor ( java.lang.String title ) { return createTextAnchor ( title , null ) ; }

Target:
private org.gwtbootstrap3.client.ui.Anchor createTextAnchor ( java.lang.String id , java.lang.String title ) { return createTextAnchor ( id , title , null ) ; }
Source:
public void init ( java.util.List items , final org.ovirt.engine.core.compat.Guid storageDomainId ) { setItems ( items , storageDomainId ) ; }

Target:
public void init ( java.util.List < ? > value , final org.ovirt.engine.core.compat.Guid storageDomainId ) { setItems ( value , storageDomainId ) ; }
Source:
private boolean isIsoVersionSupported ( java.lang.String isoVersion ) { java.lang.String supported = org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.OvirtInitialSupportedIsoVersion ) ; return ( org.ovirt.engine.core.common.utils.RpmVersionUtils.compareRpmParts ( isoVersion , supported ) ) >= 0 ; }

Target:
private boolean isIsoVersionSupported ( java.lang.String isoVersion ) { java.lang.String supported = org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.OvirtInitialSupportedIsoVersion ) ; return ( org.ovirt.engine.core.common.utils.RpmVersionUtils.compareRpmParts ( isoVersion , supported ) ) >= 0 ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getCdImage ( ) . setIsChangable ( ( ( java.lang.Boolean ) ( getCdAttached ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getCdImage ( ) . setIsChangable ( getCdAttached ( ) . getEntity ( ) ) ; }
Source:
private void processVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getId ( ) ) ; } }

Target:
private void processVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getId ( ) ) ; } }
Source:
public void setDiskInfoList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > value ) { diskInfoList = value ; }

Target:
public void setDiskInfoList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > diskInfoList ) { this . diskInfoList = diskInfoList ; }