auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getAllTimeLeasedUsersForVm ( int vmid ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , vmid ) ; return getCallsHandler ( ) . executeReadList ( "Gettime_leasedusers_by_vm_pool_id" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance ) ; }
Source:
public void Execute ( ) { Execute ( new java.lang.Object [ 0 ] ) ; }

Target:
public void execute ( ) { execute ( new java.lang.Object [ 0 ] ) ; }
Source:
protected java.lang.Integer getEngineSessionTimeout ( java.lang.String sessionId ) { return ( ( java.lang.Integer ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.UserSessionTimeOutInterval , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , sessionId ) ) ) ; }

Target:
protected java.lang.Integer getUserSessionTimeout ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.UserSessionTimeOutInterval ) ; }
Source:
public java.lang.String getlibvirt_version ( ) { return this . mVdsDynamic.getlibvirt_version ( ) ; }

Target:
public org.ovirt.engine.core.compat.RpmVersion getLibvirtVersion ( ) { return this . mVdsDynamic.getlibvirt_version ( ) ; }
Source:
public void reestablishConnection ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = hostDao.get ( vdsId ) ; RemoveVds ( vds.getId ( ) ) ; AddVds ( vds , false ) ; }

Target:
public void reestablishConnection ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = hostDao.get ( vdsId ) ; removeVds ( vds.getId ( ) ) ; addVds ( vds , false ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc createVG ( java.lang.String sdUUID , java.lang.String [ ] deviceList ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc isolateVolume ( java.lang.String sdUUID , java.lang.String srcImageID , java.lang.String dstImageID , java.lang.String volumeID ) ;
Source:
protected void updateVmDisksAndDevice ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void reloadDisks ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkAttachmentIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS , HostSetupNetworksValidator.VAR_NETWORK_ATTACHMENT_NOT_EXISTS_ENTITY , "null" ) . when ( ( ( attachment ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkAttachmentIsSet ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , null ) ) . when ( ( ( attachment ) == null ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . networkHostSubTabLabel ( ) , 2 , ginjector.getSubTabNetworkHostModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkHostListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkHostSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.VmBackupModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storageVmBackupSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.VmBackupModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageVmBackupPresenter.constants.storageVmBackupSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) ; }
Source:
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 ) { revealStorageView ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }
Source:
protected void localizeBootSequenceButtons ( ) { bootSequenceUpButton.setText ( constants.bootSequenceUpButtonLabel ( ) ) ; bootSequenceDownButton.setText ( constants.bootSequenceDownButtonLabel ( ) ) ; }

Target:
protected void localizeBootSequenceButtons ( ) { bootSequenceUpButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmRunOncePopupWidget.constants.bootSequenceUpButtonLabel ( ) ) ; bootSequenceDownButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmRunOncePopupWidget.constants.bootSequenceDownButtonLabel ( ) ) ; }
Source:
public void testGetCertificateSubject ( ) { final java.lang.String CERTIFICATE_SUBJECT = "O=ORG,CN=HOSTNAME" ; java.lang.String certificateSubject = org.ovirt.engine.core.utils.CertificateSubjectHelper.getCertificateSubject ( "HOSTNAME" ) ; org.junit.Assert.assertEquals ( CERTIFICATE_SUBJECT , certificateSubject ) ; }

Target:
public void testGetCertificateSubject ( ) { final java.lang.String CERTIFICATE_SUBJECT = "O=ORG,CN=HOSTNAME" ; java.lang.String certificateSubject = org.ovirt.engine.core.utils.CertificateSubjectHelper.getCertificateSubject ( "HOSTNAME" ) ; org.junit.jupiter.api.Assertions.assertEquals ( CERTIFICATE_SUBJECT , certificateSubject ) ; }
Source:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( stoppedVolumeId , geoRepSessionId ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( stoppedVolumeId , geoRepSessionId ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void update ( java.lang.String value ) { if ( value != null ) { configInRow.setValue ( value ) ; } }

Target:
public void update ( java.lang.String value ) { com.google.gwt.dom.client.SelectElement select = parent.getFirstChild ( ) . cast ( ) ; int selectedIndex = select.getSelectedIndex ( ) ; configInRow.setValue ( allowedValuesList.get ( selectedIndex ) ) ; }
Source:
public void testGetBaseNicWithNullNic ( ) { calculateBaseNic.getBaseNic ( null ) ; }

Target:
public void testGetBaseNicWithNullNic ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.NullPointerException.class , ( ) -> calculateBaseNic.getBaseNic ( null ) ) ; }
Source:
public void preventRollback ( ) { org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getParameters ( ) . setExecutionIndex ( 0 ) ; }

Target:
private void updateStage ( org.ovirt.engine.core.common.action.LiveMigrateVmDisksParameters.LiveMigrateStage stage ) { org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getParameters ( ) . setStage ( stage ) ; persistCommand ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getParameters ( ) . getParentCommand ( ) , ( ( getCallback ( ) ) != null ) ) ; }
Source:
public void defaultClusterInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }

Target:
public void defaultClusterInLocalFs ( ) { org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.scheduling.ClusterPolicy ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.ArchitectureType object ) { return object.toString ( ) ; }
Source:
private boolean hasTasksWithoutVdsmId ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks ) { for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { if ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.hasEmptyVdsmId ( task ) ) { return true ; } } return false ; }

Target:
private static boolean isPartiallyExecutedTask ( org.ovirt.engine.core.common.businessentities.AsyncTask task ) { return ! ( task.getChildCmdEntity ( ) . isExecuted ( ) ) ; }
Source:
public void testEmptyFilter ( ) { filter.clearFilterEntries ( ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.junit.Assert.assertTrue ( snmp.getEvents ( ) . isEmpty ( ) ) ; }

Target:
public void testEmptyFilter ( ) { filter.clearFilterEntries ( ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( snmp.getEvents ( ) . isEmpty ( ) ) ; }
Source:
public int getnum_of_sockets ( ) { return this . mVmStatic.getnum_of_sockets ( ) ; }

Target:
public void setNumOfSockets ( int value ) { this . vmStatic.setnum_of_sockets ( value ) ; }
Source:
void setCurrentSessionId ( java.lang.String sessionId ) { clientStorage.setLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; }

Target:
void setSessionId ( java.lang.String sessionId ) { clientStorage.setLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; }
Source:
public boolean isNetworkDevice ( org.ovirt.engine.core.common.businessentities.HostDevice device ) ;

Target:
boolean isSriovDevice ( org.ovirt.engine.core.common.businessentities.HostDevice device ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StorageDomainListReturnForXmlRpc reconstructMaster ( java.lang.String spUUID , int hostSpmId , java.lang.String msdUUID , java.lang.String masterVersion ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.ResizeStorageDomainPVMapReturnForXmlRpc resizeStorageDomainPV ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String device ) ;
Source:
void editProfiles ( org.ovirt.engine.ui.uicommonweb.models.ListModel profiles , org.ovirt.engine.core.compat.Version dcCompatibilityVersion , org.ovirt.engine.core.compat.Guid dcId , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel defaultProfile ) ;

Target:
void updateDc ( org.ovirt.engine.core.compat.Version dcCompatibilityVersion , org.ovirt.engine.core.compat.Guid dcId ) ;
Source:
private org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters buildRemoveVmParameters ( ) { return new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.getVmId ( ) , org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters buildRemoveVmParameters ( ) { return new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getVmId ( ) , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) ) ; }
Source:
protected org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( serverName ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setClusterId ( clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommandTest.serverName ) ; return vds ; }
Source:
public void testProperties ( ) { org.junit.Assert.assertEquals ( 60 , org.ovirt.engine.core.notifier.utils.NotificationPropertiesTest.prop.getLong ( NotificationProperties.INTERVAL_IN_SECONDS ) ) ; }

Target:
public void testProperties ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 60 , org.ovirt.engine.core.notifier.utils.NotificationPropertiesTest.prop.getLong ( NotificationProperties.INTERVAL_IN_SECONDS ) ) ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }

Target:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) != null ) { return true ; } addCanDoActionMessage ( EngineMessage.NETWORK_NOT_EXISTS ) ; return false ; }
Source:
public void setHelpTag ( org.ovirt.engine.ui.uicommonweb.help.HelpTag helpTag ) { this . helpTag = helpTag ; }

Target:
public void setHelpTag ( org.ovirt.engine.ui.uicommonweb.help.HelpTag helpTag ) { this . helpTag = helpTag ; setOpenDocumentationCommand ( new org.ovirt.engine.ui.uicommonweb.UICommand ( "OpenDocumentation" , this ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HelpTag" ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsType > getGraphicsTypesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource backendResource , org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.api.restapi.util.DisplayHelper.getGraphicsTypesForEntity ( backendResource , id , null ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsType > getGraphicsTypesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource backendResource , org.ovirt.engine.core.compat.Guid id , boolean nextRun ) { return org.ovirt.engine.api.restapi.util.DisplayHelper.getGraphicsTypesForEntity ( backendResource , id , null , nextRun ) ; }
Source:
public org.ovirt.engine.api.resource.GraphicsConsoleResource getGraphicsConsoleResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleResource ( this , getGuid ( ) , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.GraphicsConsoleResource getConsoleResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleResource ( this , getGuid ( ) , id ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { org.ovirt.engine.core.common.action.VnicProfileParameters parameters = new org.ovirt.engine.core.common.action.VnicProfileParameters ( getProfile ( ) ) ; parameters.setPublicUse ( getPublicUse ( ) . getEntity ( ) ) ; return parameters ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { org.ovirt.engine.core.common.action.AddVnicProfileParameters parameters = new org.ovirt.engine.core.common.action.AddVnicProfileParameters ( getProfile ( ) ) ; parameters.setPublicUse ( getPublicUse ( ) . getEntity ( ) ) ; return parameters ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getImageId ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getit_guid ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getImageId ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getImageTemplateId ( ) ) ; }
Source:
private void setButtonsEnabled ( V widget , boolean enabled ) { getEntry ( widget ) . setButtonsEnabled ( enabled ) ; }

Target:
private void setButtonsEnabled ( V widget , boolean enabled ) { org.ovirt.engine.ui.common.widget.AddRemoveRowWidget < M , T , V > . AddRemoveRowPanel parent = getEntry ( widget ) ; if ( parent != null ) { parent.setButtonsEnabled ( enabled ) ; } }
Source:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.ExternalProvider > collection ) throws java.lang.Exception { assertNotNull ( collection ) ; assertEquals ( 1 , collection.size ( ) ) ; verifyModel ( collection.get ( 0 ) , 0 ) ; }

Target:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.ExternalProvider > collection ) throws java.lang.Exception { org.junit.Assert.assertNotNull ( collection ) ; org.junit.Assert.assertEquals ( 1 , collection.size ( ) ) ; verifyModel ( collection.get ( 0 ) , 0 ) ; }
Source:
public abstract void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) ;

Target:
public org.ovirt.engine.core.compat.CommandStatus getCommandStatus ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > getExternalVMList ( java.lang.String url , java.lang.String username , java.lang.String password ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getExternalVMs ( java.lang.String uri , java.lang.String username , java.lang.String password ) ;
Source:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { this . sessionId = id ; }

Target:
public void setSessionId ( org.ovirt.engine.core.compat.Guid id ) { this . sessionId = id ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.NicLabelModel model ) { suggestions = model.getSuggestedLabels ( ) ; super . edit ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsNicLabelModel model ) { suggestions = model.getSuggestedLabels ( ) ; super . edit ( model ) ; }
Source:
protected org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getClusterId ( ) ) . getcompatibility_version ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getClusterId ( ) ) . getCompatibilityVersion ( ) ; }
Source:
protected void setUpGetEntityExpectations ( java.util.List < org.ovirt.engine.api.model.Snapshot > result ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAllVmSnapshotsByVmId , org.ovirt.engine.core.common.queries.GetAllVmSnapshotsByVmIdParameters.class , new java.lang.String [ ] { "VmId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.VM_ID } , result ) ; }

Target:
protected void setUpGetEntityExpectations ( java.util.List < org.ovirt.engine.api.model.Snapshot > result ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAllVmSnapshotsByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.VM_ID } , result ) ; }
Source:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.context.CommandContext getContext ( ) { if ( ( commandContext ) == null ) { commandContext = new org.ovirt.engine.core.bll.context.CommandContext ( org.ovirt.engine.core.bll.RestartVdsCommand.getExecutionContext ( ) , new org.ovirt.engine.core.utils.lock.EngineLock ( org.ovirt.engine.core.bll.RestartVdsCommand.getExclusiveLocks ( ) , null ) ) ; } return commandContext ; }
Source:
public void canDoActionFailedVMHasNotDisk ( ) throws java.lang.Exception { initializeCommand ( createParameters ( ) ) ; createNullDisk ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void validateFailedVMHasNotDisk ( ) throws java.lang.Exception { initializeCommand ( createParameters ( ) ) ; createNullDisk ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void setReleaseCursorHotKey ( java.lang.String releaseCursorHotKey ) { this . releaseCursorHotKey = releaseCursorHotKey ; }

Target:
public void setUsbAutoShare ( boolean usbAutoShare ) { this . consoleOptions.setUsbAutoShare ( usbAutoShare ) ; getUsbAutoShareChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
private void nextTerminationEntry ( ) throws java.lang.Exception { try { _terminationDialog [ ( ( _terminationIndex ) ++ ) ] . call ( ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new java.lang.RuntimeException ( "Protocol violation" , e ) ; } }

Target:
private void _nextTerminationEntry ( ) throws java.lang.Exception { try { _terminationDialog [ ( ( _terminationIndex ) ++ ) ] . call ( ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new java.lang.RuntimeException ( "Protocol violation" , e ) ; } }
Source:
public final void setEventBus ( com.google.gwt.event.shared.EventBus eventBus ) { this . eventBus = eventBus ; if ( eventBus == null ) { unregisterHandlers ( ) ; } else { registerHandlers ( ) ; } }

Target:
public final void unsetEventBus ( ) { unregisterHandlers ( ) ; this . eventBus = null ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskAlias ( ) ; }

Target:
private void localize ( ) { isPluggedEditor.setLabel ( constants.activateVmDiskPopup ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmRngDevice > getRngDevicesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid id ) { return resource.getEntity ( java.util.List.class , VdcQueryType.GetRngDevice , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetRngDevice" , true ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmRngDevice > getRngDevicesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid id ) { return resource.getEntity ( java.util.List.class , QueryType.GetRngDevice , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetRngDevice" , true ) ; }
Source:
protected com.google.gwt.user.client.ui.TreeItem getEmptyRoot ( ) { return new com.google.gwt.user.client.ui.TreeItem ( new com.google.gwt.user.client.ui.Label ( constants.loadingLabel ( ) ) ) ; }

Target:
protected com.google.gwt.user.client.ui.TreeItem getEmptyRoot ( ) { return new com.google.gwt.user.client.ui.TreeItem ( new com.google.gwt.user.client.ui.Label ( org.ovirt.engine.ui.webadmin.widget.footer.TasksTree.constants.loadingLabel ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , org.ovirt.engine.api.model.Nic nic ) { return new org.ovirt.engine.core.common.action.AddVmTemplateInterfaceParameters ( parentId , entity ) ; }

Target:
public org.ovirt.engine.api.model.Nic addParents ( org.ovirt.engine.api.model.Nic nic ) { org.ovirt.engine.api.model.Template template = new org.ovirt.engine.api.model.Template ( ) ; template.setId ( templateId.toString ( ) ) ; nic.setTemplate ( template ) ; return nic ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.selectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.getImageGroupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = selectNodes ( _document , "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.getImageGroupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > applyUserConfiguredNics ( ) { java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsToConfigureByName = getNicsToConfigureByNameWithoutLabelsUpdates ( ) ; updateLabelsOnNicsToConfigure ( nicsToConfigureByName ) ; return new java.util.ArrayList ( nicsToConfigureByName.values ( ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > applyUserConfiguredNics ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsToConfigure = getNicsToConfigureWithoutLabelsUpdates ( ) ; updateLabelsOnNicsToConfigure ( nicsToConfigure ) ; return nicsToConfigure ; }
Source:
public void setUp ( ) { disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; metadataDiskDescriptionHandler = org.mockito.Mockito.spy ( org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandler.getInstance ( ) ) ; org.mockito.Mockito.doReturn ( auditLogDirector ) . when ( metadataDiskDescriptionHandler ) . getAuditLogDirector ( ) ; }

Target:
private java.lang.String generateDiskAliasJsonEntry ( java.lang.String diskAlias ) { return metadataDiskDescriptionHandler.generateJsonField ( "DiskAlias" , diskAlias ) ; }
Source:
public void makeSortable ( java.lang.String sortBy ) { assert sortBy != null : "sortBy cannot be null" ; this . sortBy = sortBy ; this . comparator = null ; org.ovirt.engine.ui.common.widget.table.column.SortableColumn.setSortable ( true ) ; }

Target:
public void makeSortable ( java.lang.String sortBy ) { assert sortBy != null : "sortBy cannot be null" ; this . sortBy = sortBy ; this . comparator = null ; org.ovirt.engine.ui.common.widget.table.column.AbstractSortableColumn.setSortable ( true ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) ;
Source:
public void addParameters ( org.ovirt.api.metamodel.concepts.Parameter parameter ) { parameters.add ( parameter ) ; }

Target:
public java.util.List < org.ovirt.api.metamodel.concepts.Parameter > getParameters ( ) { return new java.util.concurrent.CopyOnWriteArrayList ( parameters ) ; }
Source:
private boolean isHealthy ( org.ovirt.engine.core.common.businessentities.FenceAgent agent , org.ovirt.engine.core.common.businessentities.VDS host ) { return new org.ovirt.engine.core.bll.FenceExecutor ( host ) . fence ( FenceActionType.Status , agent ) . getSucceeded ( ) ; }

Target:
private boolean isHealthy ( org.ovirt.engine.core.common.businessentities.FenceAgent agent , org.ovirt.engine.core.common.businessentities.VDS host ) { return new org.ovirt.engine.core.bll.FenceExecutor ( host ) . fence ( FenceActionType.STATUS , agent ) . getSucceeded ( ) ; }
Source:
public org.ovirt.engine.api.resource.LabelsResource getLabelsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkLabelsResource ( asGuid ( id ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.NetworkLabelsResource getNetworkLabelsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkLabelsResource ( asGuid ( id ) ) ) ; }
Source:
public com.google.gwt.view.client.SelectionModel < T > getSelectionModel ( ) { if ( isSingleSelectionOnly ( ) ) { return getSingleSelectionModel ( ) ; } else { return getOrderedMultiSelectionModel ( ) ; } }

Target:
public java.util.List < T > getSelectedObjects ( ) { if ( isSingleSelectionOnly ( ) ) { return java.util.Collections.singletonList ( singleSelectionModel.getSelectedObject ( ) ) ; } else { return multiSelectionModel.getSelectedList ( ) ; } }
Source:
private void verifyMethodPassedToHost ( ) { org.mockito.Mockito.verify ( server ) . setupNetworks ( networksCaptor.capture ( ) , bondingCaptor.capture ( ) , org.mockito.Matchers.any ( java.util.HashMap.class ) ) ; }

Target:
private void verifyMethodPassedToHost ( ) { org.mockito.Mockito.verify ( server ) . setupNetworks ( networksCaptor.capture ( ) , bondingCaptor.capture ( ) , org.mockito.Matchers.any ( java.util.HashMap.class ) , org.mockito.Matchers.any ( java.lang.Boolean.class ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.BusinessEntity < org.ovirt.engine.core.compat.Guid > entity ) { return ids.contains ( entity.getId ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.BusinessEntity < T > entity ) { return ids.contains ( entity.getId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setId ( storageDomainId ) ; sd.setStorageDomainType ( StorageDomainType.Data ) ; sd.setStatus ( StorageDomainStatus.Active ) ; sd.setStoragePoolId ( storagePoolId ) ; return sd ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setId ( org.ovirt.engine.core.bll.exportimport.ImportVMFromConfigurationCommandTest.storageDomainId ) ; sd.setStorageDomainType ( StorageDomainType.Data ) ; sd.setStatus ( StorageDomainStatus.Active ) ; sd.setStoragePoolId ( storagePoolId ) ; return sd ; }
Source:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BOND_NAME_EXISTS ) ; }

Target:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACES_ALREADY_SPECIFIED ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllWithIpAddress ( java.lang.String address ) { return multipleResults ( entityManager.createNativeQuery ( "select * from GetVdsStaticByIp(:ip)" , org.ovirt.engine.core.common.businessentities.VdsStatic.class ) . setParameter ( "ip" , address ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByHostName ( java.lang.String host ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByHostName" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , host ) ) ; }
Source:
protected org.ovirt.engine.core.bll.provider.network.AddNetworkValidator getNetworkValidator ( ) { return new AddNetworkOnProviderValidator ( org.ovirt.engine.core.bll.provider.network.AddNetworkOnProviderCommand.getNetwork ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.provider.network.AddNetworkValidator getNetworkValidator ( ) { return new AddNetworkOnProviderValidator ( vmDao , org.ovirt.engine.core.bll.provider.network.AddNetworkOnProviderCommand.getNetwork ( ) ) ; }
Source:
public void externalNetworkVlanIdChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( externalNetwork.getVlanId ( ) ) . thenReturn ( 0 ) ; org.mockito.Mockito.when ( network.getVlanId ( ) ) . thenReturn ( 1 ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void externalNetworkProvidedByChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setProvidedBy ( createProviderNetwork ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
protected void updateCurrentCd ( java.lang.String cdPath ) { cdPath = ( org.apache.commons.lang.StringUtils.isEmpty ( cdPath ) ) ? null : cdPath ; org.ovirt.engine.core.bll.VmHandler.updateCurrentCd ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , cdPath ) ; }

Target:
protected void updateCurrentCd ( java.lang.String cdPath ) { cdPath = ( org.apache.commons.lang.StringUtils.isEmpty ( cdPath ) ) ? null : cdPath ; vmHandler.updateCurrentCd ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , cdPath ) ; }
Source:
public void addToHistory_oneOverLimitValuesBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 11 , 12 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 , 11 , 12 ) , 13 , 3 ) ) ; }

Target:
public void addToHistoryOneOverLimitValuesBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 11 , 12 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 , 11 , 12 ) , 13 , 3 ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , sysPrepDomainName , sysPrepUserName , sysPrepPassword , vmInit , destinationVdsId , customEmulatedMachine , customCpuName , initrdUrl , kernelUrl , kernelParams , bootMenuEnabled , spiceFileTransferEnabled , spiceCopyPasteEnabled , bootSequence ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , sysPrepDomainName , sysPrepUserName , sysPrepPassword , vmInit , destinationVdsId , customEmulatedMachine , customCpuName , customProperties , initrdUrl , kernelUrl , kernelParams , bootMenuEnabled , spiceFileTransferEnabled , spiceCopyPasteEnabled , bootSequence ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmPoolType forValue ( int value ) { return org.ovirt.engine.core.common.businessentities.VmPoolType.values ( ) [ value ] ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmPoolType forValue ( int value ) { for ( org.ovirt.engine.core.common.businessentities.VmPoolType vmPoolType : org.ovirt.engine.core.common.businessentities.VmPoolType.values ( ) ) { if ( ( vmPoolType.getValue ( ) ) == value ) { return vmPoolType ; } } return null ; }
Source:
public boolean isDone ( ) { if ( callable.isDone ( ) ) { updateHeartbeatPolicy ( policy , true ) ; return true ; } return false ; }

Target:
public boolean isDone ( ) { if ( callable.isDone ( ) ) { if ( isPolicyReset ) { updateHeartbeatPolicy ( client.getClientRetryPolicy ( ) , true ) ; } return true ; } return false ; }
Source:
private void mockStepDao ( org.ovirt.engine.core.compat.Guid jobId ) { org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step ( ) ; step.setJobId ( jobId ) ; org.mockito.Mockito.when ( stepDao.getStepsByJobId ( org.mockito.Matchers.eq ( jobId ) ) ) . thenReturn ( java.util.Arrays.asList ( step ) ) ; }

Target:
private void mockStepDao ( org.ovirt.engine.core.compat.Guid jobId ) { org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step ( ) ; step.setJobId ( jobId ) ; org.mockito.Mockito.when ( stepDao.getStepsByJobId ( org.mockito.Matchers.eq ( jobId ) ) ) . thenReturn ( java.util.Collections.singletonList ( step ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepResume ( java.lang.String volumeName , java.lang.String slaveHostName , java.lang.String slaveVolumeName , boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionResume ( java.lang.String volumeName , java.lang.String slaveHostName , java.lang.String slaveVolumeName , boolean force ) ;
Source:
public void testIfExistsHostThatMissesNetworkInClusterRightNetwork ( ) { org.junit.Assert.assertFalse ( dao.checkIfExistsHostThatMissesNetworkInCluster ( FixturesTool.CLUSTER , "engine" , VDSStatus.Up ) ) ; }

Target:
public void testIfExistsHostThatMissesNetworkInClusterRightNetwork ( ) { org.junit.jupiter.api.Assertions.assertFalse ( dao.checkIfExistsHostThatMissesNetworkInCluster ( FixturesTool.CLUSTER , "engine" , VDSStatus.Up ) ) ; }
Source:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { systemTreeSelectedItem = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SystemTreeSelectedItem" ) ) ; }

Target:
public int getQueryCounter ( ) { return queryCounter ; }
Source:
public javax.ws.rs.core.Response updateOvfStore ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase params = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( guid ) ; return performAction ( VdcActionType.UpdateOvfStoreForStorageDomain , params ) ; }

Target:
public javax.ws.rs.core.Response updateOvfStore ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase params = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( guid ) ; return performAction ( ActionType.UpdateOvfStoreForStorageDomain , params ) ; }
Source:
private org.ovirt.engine.core.bll.network.macpoolmanager.Range getRangeWithAvailableMac ( ) { for ( org.ovirt.engine.core.bll.network.macpoolmanager.Range range : ranges ) { if ( ( range.getAvailableCount ( ) ) > 0 ) { return range ; } } return null ; }

Target:
org.ovirt.engine.core.bll.network.macpoolmanager.Range getRangeWithAvailableMac ( ) { int numberOfRanges = ranges.size ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.Range range = findRangeWithAvailableMac ( startIndexForEmptyRangeSearch , numberOfRanges , numberOfRanges ) ; if ( range != null ) { return range ; } return findRangeWithAvailableMac ( 0 , startIndexForEmptyRangeSearch , numberOfRanges ) ; }
Source:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetworkViolated ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , nonVmNetwork1 , nonVmNetwork2 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetworkViolated ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.NON_VM , NetworkType.NON_VM ) , nonVmNetwork1 , nonVmNetwork2 ) ; }
Source:
protected abstract void updateHosts ( ) ;

Target:
protected abstract boolean showTransportProperties ( ) ;
Source:
protected void fetchDocumentationFile ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "webadmin.json" ) , documentationFileFetchedEvent ) ; }

Target:
protected void fetchDocumentationFile ( ) { fetchFile ( ( ( getHelpTagMappingBaseURL ( ) ) + "webadmin.json" ) , documentationFileFetchedEvent ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { cancel ( ) ; }
Source:
private static void addConsoleDevice ( 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.CONSOLE , VmDeviceType.CONSOLE , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) , true , false , null ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return 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.CONSOLE , VmDeviceType.CONSOLE , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getConsoleDeviceSpecParams ( ) , true , false ) ; }