auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setLabelTooltip ( java.lang.String tooltipText ) { labelConfiguredTooltip = tooltipText ; labelTooltip.setText ( tooltipText ) ; labelTooltip.reconfigure ( ) ; }

Target:
public void setLabelTooltip ( java.lang.String tooltipText ) { labelConfiguredTooltip = tooltipText ; labelTooltip.setText ( tooltipText ) ; labelTooltip.reconfigure ( ) ; setLabelTooltipStyle ( tooltipText ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.HostNetworkQos getQos ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment , org.ovirt.engine.core.common.businessentities.network.Network network ) { java.util.Objects.requireNonNull ( network ) ; return ( networkAttachment != null ) && ( networkAttachment.isQosOverridden ( ) ) ? networkAttachment.getHostNetworkQos ( ) : getHostNetworkQosFromNetwork ( network ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.HostNetworkQos getQos ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment , org.ovirt.engine.core.common.businessentities.network.Network network ) { java.util.Objects.requireNonNull ( network ) ; return ( networkAttachment != null ) && ( networkAttachment.isQosOverridden ( ) ) ? org.ovirt.engine.core.common.businessentities.network.HostNetworkQos.fromAnonymousHostNetworkQos ( networkAttachment.getHostNetworkQos ( ) ) : getHostNetworkQosFromNetwork ( network ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.resources.ResourcesModel model ) { vmTable.edit ( model ) ; org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedResourceView.Driver.driver.edit ( model ) ; this . model = model ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.resources.ResourcesModel model ) { vmTable.edit ( model ) ; driver.edit ( model ) ; this . model = model ; }
Source:
private void onSave ( ) { if ( ! ( validate ( ) ) ) { return ; } flush ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( action , new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ) ; cancel ( ) ; }

Target:
private void onSave ( ) { if ( ! ( validate ( ) ) ) { return ; } preSave ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID , org.ovirt.engine.core.common.VdcObjectType.System , org.ovirt.engine.core.common.businessentities.ActionGroup.CONFIGURE_ENGINE ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( getMacPoolId ( ) , org.ovirt.engine.core.common.VdcObjectType.MacPool , org.ovirt.engine.core.common.businessentities.ActionGroup.DELETE_MAC_POOL ) ) ; }
Source:
protected void removeTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget ) { tabContainer.getElement ( ) . removeChild ( tabWidget.getElement ( ) ) ; }

Target:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { tabContainer.getElement ( ) . removeChild ( tabWidget.asWidget ( ) . getElement ( ) ) ; }
Source:
public org.ovirt.engine.api.model.AffinityGroups list ( ) { java.util.List < org.ovirt.engine.api.model.AffinityGroup > entities = getBackendCollection ( VdcQueryType.GetAffinityGroupsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) ) ; return mapCollection ( entities ) ; }

Target:
public org.ovirt.engine.api.model.AffinityGroups list ( ) { java.util.List < org.ovirt.engine.api.model.AffinityGroup > entities = getBackendCollection ( QueryType.GetAffinityGroupsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) ) ; return mapCollection ( entities ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( fencingEnabled , skipFencingIfSDActive , skipFencingIfConnectivityBroken , hostsWithBrokenConnectivityThreshold ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( fencingEnabled , skipFencingIfSDActive , skipFencingIfConnectivityBroken , hostsWithBrokenConnectivityThreshold , skipFencingIfGlusterBricksUp , skipFencingIfGlusterQuorumNotMet ) ; }
Source:
public int extractOsType ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel item ) { return item.getOsId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getIconId ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel itemModel ) { return itemModel.getSmallIconId ( ) ; }
Source:
public static boolean isStatusUpOrPaused ( org.ovirt.engine.core.common.businessentities.VMStatus st ) { return ( ( ( org.ovirt.engine.core.common.businessentities.VM.isStatusUp ( st ) ) || ( st == ( VMStatus.Paused ) ) ) || ( st == ( VMStatus.SavingState ) ) ) || ( st == ( VMStatus.RestoringState ) ) ; }

Target:
public boolean isRunningOrPaused ( ) { return getStatus ( ) . isRunningOrPaused ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { return getNetworkValidator ( ) . notManagementNetwork ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return getNetworkValidator ( ) . notManagementNetwork ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.util.Map < java.lang.String , java.lang.String > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostHooksListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostHookPresenter.constants.hostHookSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostHookPresenter.constants.hostHookSubTabLabel ( ) , 3 ) ; }
Source:
public void testGetAllForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . getUuid ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVm ( vm.getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
private void NewDesktop ( ) { NewInternal ( VmType.Desktop ) ; }

Target:
private void newServer ( ) { newInternal ( VmType.Server ) ; }
Source:
protected void logExceptionAndCompensate ( java.lang.Exception e ) { log.error ( "Exception while wrapping-up compensation in endAction: {}." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( e ) ) ; log.error ( "Exception" , e ) ; compensate ( ) ; }

Target:
protected void logExceptionAndCompensate ( java.lang.Exception e ) { log.error ( "Exception while wrapping-up compensation in endAction" , e ) ; compensate ( ) ; }
Source:
public void setTimeout ( int timeout ) { this . timeout = timeout ; }

Target:
public void setSsoTokenName ( java.lang.String ssoTokenName ) { this . ssoTokenName = ssoTokenName ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap map ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , map.getLunId ( ) ) . addValue ( "storage_server_connection" , map.getstorage_server_connection ( ) ) ; getCallsHandler ( ) . executeModification ( "InsertLUN_storage_server_connection_map" , parameterSource ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap map ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , map.getLunId ( ) ) . addValue ( "storage_server_connection" , map.getStorageServerConnection ( ) ) ; getCallsHandler ( ) . executeModification ( "InsertLUN_storage_server_connection_map" , parameterSource ) ; }
Source:
public void setvds_group_description ( java.lang.String value ) { this . vds_group_descriptionField = value ; }

Target:
public void setHibernationVolHandle ( java.lang.String value ) { this . vmDynamic.sethibernation_vol_handle ( value ) ; }
Source:
protected void updateTemplateInSpm ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate vmt = org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmTemplate ( ) ; org.ovirt.engine.core.bll.VmTemplateCommand.UpdateTemplateInSpm ( vmt.getstorage_pool_id ( ) . getValue ( ) , java.util.Arrays.asList ( vmt ) ) ; }

Target:
protected void incrementDbGeneration ( ) { org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmStaticDAO ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }
Source:
public void snapshotEntityStatus ( org.ovirt.engine.core.common.businessentities.BusinessEntity < ? > entity , java.lang.Enum < ? > status ) { }

Target:
public < T extends java.lang.Enum < ? > > void snapshotEntityStatus ( org.ovirt.engine.core.common.businessentities.BusinessEntityWithStatus < ? , T > entity , T status ) { }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData setInterfaceStatistics ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaceStatistics ) { this . interfaceStatistics = interfaceStatistics ; return this ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VdsmVm setInterfaceStatistics ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaceStatistics ) { this . interfaceStatistics = interfaceStatistics ; return this ; }
Source:
public static org.ovirt.engine.core.common.queries.SearchParameters eqSearchParams ( org.ovirt.engine.core.common.queries.SearchParameters expected ) { org.easymock.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.SearchParametersEquals ( expected ) ) ; return null ; }

Target:
public static org.ovirt.engine.core.common.queries.SearchParameters eqSearchParams ( org.ovirt.engine.core.common.queries.SearchParameters expected ) { return org.mockito.Matchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.SearchParametersEquals ( expected ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult settingSpecificNetworksAllowed ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_SET_SPECIFIC_NETWORKS , getNicNameReplacement ( ) ) . when ( oldVfsConfig.isAllNetworksAllowed ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult settingSpecificNetworksAllowed ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_SET_SPECIFIC_NETWORKS , getNicNameReplacement ( ) ) . when ( oldVfsConfig.isAllNetworksAllowed ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.Network getEntity ( int index , boolean isDisplay , boolean isRequired ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , isDisplay , isRequired , index ) ; }

Target:
protected org.ovirt.engine.api.model.Network getEntity ( int index , boolean isDisplay , boolean isMigration , boolean isRequired ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , isDisplay , isMigration , isRequired , index ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DisplayType getDisplayType ( ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.DisplayType > entityModel = getDisplayProtocol ( ) . getSelectedItem ( ) ; if ( entityModel == null ) { return null ; } return entityModel.getEntity ( ) ; }

Target:
public static org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.GraphicsTypes fromGraphicsType ( org.ovirt.engine.core.common.businessentities.GraphicsType type ) { switch ( type ) { case SPICE : return org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.GraphicsTypes.SPICE ; case VNC : return org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.GraphicsTypes.VNC ; } return null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgrade ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) . unless ( org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( host ) , org.ovirt.engine.core.common.businessentities.VDS.class , VdcActionType.UpgradeHost ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgrade ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) . unless ( org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( host ) , org.ovirt.engine.core.common.businessentities.VDS.class , VdcActionType.UpgradeHost ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStaticEntity ( ) { org.ovirt.engine.api.restapi.resource.StorageDomainStatic entity = control.createMock ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class ) ; return org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStaticEntity ( ) { org.ovirt.engine.api.restapi.resource.StorageDomainStatic entity = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class ) ; return org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , StorageType.NFS ) ; }
Source:
static org.ovirt.engine.api.model.CdRom getModelWithCurrentCd ( ) { org.ovirt.engine.api.model.CdRom model = new org.ovirt.engine.api.model.CdRom ( ) ; model.setFile ( new org.ovirt.engine.api.model.File ( ) ) ; model.getFile ( ) . setId ( org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.CURRENT_ISO_PATH ) ; return model ; }

Target:
static org.ovirt.engine.api.model.Cdrom getModelWithCurrentCd ( ) { org.ovirt.engine.api.model.Cdrom model = new org.ovirt.engine.api.model.Cdrom ( ) ; model.setFile ( new org.ovirt.engine.api.model.File ( ) ) ; model.getFile ( ) . setId ( org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.CURRENT_ISO_PATH ) ; return model ; }
Source:
private org.ovirt.engine.ui.uicommonweb.UICommand createOKCommand ( java.lang.String commandName ) { org.ovirt.engine.ui.uicommonweb.UICommand command = new org.ovirt.engine.ui.uicommonweb.UICommand ( commandName , this ) ; command.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . ok ( ) ) ; command.setIsDefault ( true ) ; return command ; }

Target:
private void checkFileDomainAttachedToDc ( java.lang.String commandName , org.ovirt.engine.core.common.businessentities.StorageServerConnections storageServerConnections ) { checkDomainAttachedToDc ( commandName , null , storageServerConnections ) ; }
Source:
protected void setVdsStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { runVdsCommand ( VDSCommandType.SetVdsStatus , new org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters ( org.ovirt.engine.core.bll.VdsCommand.getVdsId ( ) , status ) ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue setVdsStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters parameters = new org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters ( org.ovirt.engine.core.bll.VdsCommand.getVdsId ( ) , status ) ; return invokeSetHostStatus ( parameters ) ; }
Source:
public void testGetToken ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.bll.provider.network.openstack.ExternalNetworkTokenProviderTest.TOKEN_ID , tokenProvider.getToken ( ) ) ; org.mockito.Mockito.verify ( mockTokensResource ) . authenticate ( usernamePasswordCaptor.capture ( ) ) ; verifyUsernamePassword ( ) ; }

Target:
public void testGetToken ( ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.bll.provider.network.openstack.ExternalNetworkTokenProviderTest.TOKEN_ID , tokenProvider.getToken ( ) ) ; org.mockito.Mockito.verify ( mockTokensResource ) . authenticate ( usernamePasswordCaptor.capture ( ) ) ; verifyUsernamePassword ( ) ; }
Source:
public void testGetFilteredByPermissionsForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAllForCluster ( FixturesTool.VDS_GROUP_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetFilteredByPermissionsForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAllForCluster ( FixturesTool.VDS_GROUP_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.UNPRIVILEGED_USER_ID , true , ActionGroup.ASSIGN_CPU_PROFILE ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void activated ( ) { if ( ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) && ( ! ( getBehavior ( ) . basedOnCustomInstanceType ( ) ) ) ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFildsAfterOsChanged ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { numaSupport ( ) ; }
Source:
public void canDoActionNonExistingStepFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExistingStepId ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.canDoAction ( ) ) ) ) ; }

Target:
public void validateNonExistingStepFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExistingStepId ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics CloneVdsNetworkStatistics ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics instance ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics obj = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics ( ) ; org.ovirt.engine.ui.uicommonweb.Cloner.CloneNetworkStatisticss ( instance , obj ) ; obj.setVdsId ( instance.getVdsId ( ) ) ; return obj ; }

Target:
private static org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics cloneVdsNetworkStatistics ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics instance ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics obj = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics ( ) ; org.ovirt.engine.ui.uicommonweb.Cloner.cloneNetworkStatisticss ( instance , obj ) ; obj.setVdsId ( instance.getVdsId ( ) ) ; return obj ; }
Source:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue fence ( ) { return fence ( FenceAgentOrder.Primary ) ; }

Target:
public org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue checkAgentStatus ( org.ovirt.engine.core.common.businessentities.FenceAgent agent ) { org.ovirt.engine.core.common.businessentities.VDS proxyHost = proxyLocator.findProxyHost ( ) ; if ( proxyHost == null ) { return proxyNotFound ( ) ; } else { return checkAgentStatus ( agent , proxyHost ) ; } }
Source:
public final void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.cell.Context context , com.google.gwt.dom.client.Element parent , C value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < C > valueUpdater ) { onBrowserEvent ( context , parent , value , null , event , valueUpdater ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value ) { return tooltipFallback ; }
Source:
private void setUpGetEntityExpectations ( boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetErratumByIdForVm , org.ovirt.engine.core.common.queries.HostErratumQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , ( notFound ? null : getEntity ( 0 ) ) ) ; }

Target:
private void setUpGetEntityExpectations ( boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetErratumByIdForVm , org.ovirt.engine.core.common.queries.HostErratumQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , ( notFound ? null : getEntity ( 0 ) ) ) ; }
Source:
public static java.net.URI buildSsoRevokeUrl ( java.lang.String url , java.lang.String ssoToken ) { try { java.net.URI uri = new java.net.URI ( url ) ; org.apache.http.client.utils.URIBuilder uriBuilder = new org.apache.http.client.utils.URIBuilder ( java.lang.String.format ( "%1$s://%2$s/ovirt-engine/services/sso-logout" , uri.getScheme ( ) , uri.getAuthority ( ) ) ) ; uriBuilder.addParameter ( "scope" , org.ovirt.engine.sdk4.internal.SsoUtils.SCOPE ) ; uriBuilder.addParameter ( "token" , ssoToken ) ; return uriBuilder.build ( ) ; } catch ( java.net.URISyntaxException ex ) { throw new java.lang.Error ( "Failed to build SSO revoke URL" , ex ) ; } }

Target:
public static java.net.URI buildSsoRevokeUrl ( java.lang.String url ) { try { java.net.URI uri = new java.net.URI ( url ) ; org.apache.http.client.utils.URIBuilder uriBuilder = new org.apache.http.client.utils.URIBuilder ( java.lang.String.format ( "%1$s://%2$s/ovirt-engine/services/sso-logout" , uri.getScheme ( ) , uri.getAuthority ( ) ) ) ; return uriBuilder.build ( ) ; } catch ( java.net.URISyntaxException ex ) { throw new java.lang.Error ( "Failed to build SSO revoke URL" , ex ) ; } }
Source:
public void testEvalPositive ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockVdsNetworkInterface.getNetworkName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; final org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; org.junit.Assert.assertTrue ( underTest.eval ( mockVdsNetworkInterface ) ) ; }

Target:
public void testEvalPositive ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockVdsNetworkInterface.getNetworkName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; final org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; org.junit.Assert.assertTrue ( underTest.test ( mockVdsNetworkInterface ) ) ; }
Source:
public java.lang.String getVdcUserDomainController ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getDomainControler ( ) ; }

Target:
public java.lang.String getUserDomainController ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getDomain ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( null , null , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.NFS , org.ovirt.engine.core.common.constants.gluster.GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setServiceType ( ServiceType.NFS ) ; cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void scheduleJob ( ) { scheduler.scheduleAFixedDelayJob ( this , "checkCertificationValidity" , new java.lang.Class [ 0 ] , new java.lang.Object [ 0 ] , 0 , org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.CertificationValidityCheckTimeInHours ) , java.util.concurrent.TimeUnit.HOURS ) ; }

Target:
public void scheduleJob ( ) { scheduler.scheduleAFixedDelayJob ( this , "checkCertificationValidity" , new java.lang.Class [ 0 ] , new java.lang.Object [ 0 ] , 10 , java.util.concurrent.TimeUnit.HOURS.toMinutes ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.CertificationValidityCheckTimeInHours ) ) , java.util.concurrent.TimeUnit.MINUTES ) ; }
Source:
public void testKeyStrings ( ) throws java.lang.Exception { for ( java.lang.String [ ] key : org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS ) { org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.testKeyString ( key [ 0 ] , key [ 2 ] ) ; } }

Target:
public void testKeyStrings ( ) throws java.lang.Exception { for ( java.lang.String [ ] key : org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS ) { org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.testKeyString ( key [ 0 ] , key [ 3 ] ) ; } }
Source:
public void setvds_group_name ( java.lang.String value ) { this . vds_group_nameField = value ; }

Target:
public void setVmType ( org.ovirt.engine.core.common.businessentities.VmType value ) { this . vmStatic.setvm_type ( value ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession getSession ( java.lang.String masterVolumeName , java.util.Map < java.lang.String , java.lang.Object > innerMap ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession geoRepSession = new org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession ( ) ; java.lang.String sessionKey = ( ( java.lang.String ) ( innerMap.get ( org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc.SESSION_SLAVE ) ) ) ; java.lang.String [ ] sessSplit = sessionKey.split ( "([://]+)" ) ; java.lang.String slaveNode = sessSplit [ ( ( sessSplit.length ) - 2 ) ] ; java.lang.String slaveVolume = sessSplit [ ( ( sessSplit.length ) - 1 ) ] ; geoRepSession.setSlaveHostName ( slaveNode ) ; geoRepSession.setSlaveVolumeName ( slaveVolume ) ; geoRepSession.setSessionKey ( sessionKey ) ; geoRepSession.setMasterVolumeName ( masterVolumeName ) ; return geoRepSession ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession getSession ( java.lang.String masterVolumeName , java.util.Map < java.lang.String , java.lang.Object > innerMap ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession geoRepSession = new org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession ( ) ; java.lang.String sessionKey = ( ( java.lang.String ) ( innerMap.get ( org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc.SESSION_KEY ) ) ) ; java.lang.String [ ] sessSplit = sessionKey.split ( "([://]+)" ) ; java.lang.String slaveNode = sessSplit [ ( ( sessSplit.length ) - 2 ) ] ; java.lang.String slaveVolume = ( ( java.lang.String ) ( innerMap.get ( org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc.REMOTE_VOL_NAME ) ) ) ; geoRepSession.setSlaveHostName ( slaveNode ) ; geoRepSession.setSlaveVolumeName ( slaveVolume ) ; geoRepSession.setSessionKey ( sessionKey ) ; geoRepSession.setMasterVolumeName ( masterVolumeName ) ; return geoRepSession ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , boot , passDiscard , diskInterface , usingScsiReservation ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , boot , passDiscard , diskInterface , usingScsiReservation , plugged , logicalName , readOnly ) ; }
Source:
public void interfaceBasedOnNotAVlanOfIface ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( generateVlanName ( ( ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) + "1" ) ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOnNotAVlanOfIface ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createVlan ( ( ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) + "1" ) ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc hotplugDisk ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct info ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterHookContentInfoReturnForXmlRpc glusterHookRead ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
protected org.ovirt.engine.core.common.job.StepEnum getCommandStep ( ) { return org.ovirt.engine.core.common.job.StepEnum.PREPARE_MERGE ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.prepareMerge ; }
Source:
protected org.ovirt.engine.core.dao.ImageStorageDomainMapDao getImageStorageDomainMapDao ( ) { return org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommand.getDbFacade ( ) . getImageStorageDomainMapDao ( ) ; }

Target:
private void lockDisk ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( getDisk ( ) . getId ( ) , ImageStatus.LOCKED , ImageStatus.ILLEGAL , org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommand.getCompensationContext ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.MacPool getMacPool ( ) { return getParameters ( ) . getMacPool ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.MacPool getMacPoolEntity ( ) { return getParameters ( ) . getMacPool ( ) ; }
Source:
private void UpdateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.debugFormat ( "domain {0} still in problem. vds: {1}" , domainId , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; UpdateVdsInProblem ( domainId , vdsId ) ; }

Target:
private void UpdateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.debugFormat ( "domain {0} still in problem. vds: {1}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.IrsProxyData.getDomainIdTuple ( domainId ) , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; UpdateVdsInProblem ( domainId , vdsId ) ; }
Source:
public void testGetRelevantStorageQuotaForUserWithoutPrivileges ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForStorage ( FixturesTool.STORAGE_DOAMIN_NFS_MASTER , FixturesTool.UNPRIVILEGED_SESSION_ID , true ) ; org.junit.Assert.assertEquals ( "Unprivileged user is not allowed to fetch for quota" , 0 , quotas.size ( ) ) ; }

Target:
public void testGetRelevantStorageQuotaForUserWithoutPrivileges ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForStorage ( FixturesTool.STORAGE_DOMAIN_NFS_MASTER , FixturesTool.UNPRIVILEGED_SESSION_ID , true ) ; org.junit.Assert.assertEquals ( "Unprivileged user is not allowed to fetch for quota" , 0 , quotas.size ( ) ) ; }
Source:
protected void beforeUiCommonInitEvent ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.init ( eventBus ) ; }

Target:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void itemsChanged ( ) { super . itemsChanged ( ) ; resetIsEmpty ( ) ; updatePagingAvailability ( ) ; }
Source:
public void testNoCpuProfileAssigned ( ) { diskImage.setDiskProfileId ( null ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder.handleIoTune ( vmDevice , org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder.loadStorageQos ( diskImage ) ) ; org.junit.Assert.assertNull ( vmDevice.getSpecParams ( ) ) ; }

Target:
public void testNoCpuProfileAssigned ( ) { diskImage.setDiskProfileId ( null ) ; underTest.handleIoTune ( vmDevice , underTest.loadStorageQos ( diskImage ) ) ; org.junit.Assert.assertNull ( vmDevice.getSpecParams ( ) ) ; }
Source:
public void testGetAllForUserIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForUsersWithIds ( "d3ec3e01-ca89-48e1-8b43-a9b38f873b0c" ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForUsersWithIds ( "d3ec3e01-ca89-48e1-8b43-a9b38f873b0c" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
types.SeLinux selinux ( ) ;

Target:
types.SeLinux seLinux ( ) ;
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.QuotaVdsGroup , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.quotaClusterSubTabLabel ( ) , 0 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.quota.SubTabQuotaClusterPresenter.constants.quotaClusterSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public static java.lang.String getDefaultConfigurationVersion ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider._defaultConfigurationVersion ; }

Target:
public java.lang.String getDefaultConfigurationVersion ( ) { return _defaultConfigurationVersion ; }
Source:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.vms.TimeZoneModel source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getTimeZoneKey ( ) , timeZone ) ; }

Target:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.vms.TimeZoneModel source ) { return org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( source.getTimeZoneKey ( ) , timeZone ) ; }
Source:
public org.ovirt.engine.api.resource.StorageDomainContentsResource < org.ovirt.engine.api.model.Vms , org.ovirt.engine.api.model.Vm > getStorageDomainVmsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmsResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.StorageDomainVmsResource getVmsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmsResource ( guid ) ) ; }
Source:
private void mockGlobalParameters ( ) { testVm = mockVm ( ) ; vmPools = mockVmPools ( ) ; vdsGroup = mockVdsGroup ( ) ; vmTemplate = mockVmTemplate ( ) ; }

Target:
private void mockGlobalParameters ( ) { testVm = mockVm ( ) ; vmPools = mockVmPools ( ) ; vdsGroup = mockVdsGroup ( ) ; vmTemplate = mockVmTemplate ( ) ; storage_pool = mockStoragePool ( ) ; }
Source:
public void clusterServiceDefined ( ) { org.mockito.Mockito.when ( cluster.supportsGlusterService ( ) ) . thenReturn ( true ) ; validator = new org.ovirt.engine.core.bll.validator.ClusterValidator ( dbFacade , cluster ) ; org.junit.Assert.assertThat ( validator.clusterServiceDefined ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void clusterServiceDefined ( ) { org.mockito.Mockito.when ( cluster.supportsGlusterService ( ) ) . thenReturn ( true ) ; validator = new org.ovirt.engine.core.bll.validator.ClusterValidator ( dbFacade , cluster , cpuFlagsManagerHandler ) ; org.junit.Assert.assertThat ( validator.clusterServiceDefined ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getBroker ( ) . getTaskStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; ProceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskStatus ( _result.TaskStatus ) ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getBroker ( ) . getTaskStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; proceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskStatus ( _result.TaskStatus ) ) ; }
Source:
private java.util.List < org.ovirt.engine.api.model.PowerManagement > getPowerManagers ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( getFenceConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionMapping , version ) , getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionTypes , version ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.api.model.PowerManagement > getPowerManagers ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( getFenceConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionMapping , version ) , getConfigurationValueDefault ( java.lang.String.class , ConfigurationValues.VdsFenceOptionTypes ) , true ) ; }
Source:
public void setPmSecondaryConcurrent ( boolean value ) { mVdsStatic.setPmSecondaryConcurrent ( value ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getHostProviderId ( ) { return mVdsStatic.getHostProviderId ( ) ; }
Source:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { parent.setConsoleDevice ( model ) ; return model ; }
Source:
protected void finalize ( ) { try { close ( ) ; } catch ( java.io.IOException e ) { org.ovirt.engine.core.bll.OVirtNodeUpgrade.log.error ( "Exception during finalize" , e ) ; } }

Target:
protected void finalize ( ) { try { close ( ) ; } catch ( java.io.IOException e ) { org.ovirt.engine.core.bll.OVirtNodeUpgrade.log.error ( "Exception during finalize: {}" , e.getMessage ( ) ) ; org.ovirt.engine.core.bll.OVirtNodeUpgrade.log.debug ( "Exception" , e ) ; } }
Source:
private org.ovirt.engine.core.dao.network.VnicProfileViewDao getVnicProfileViewDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVnicProfileViewDao ( ) ; }

Target:
private org.ovirt.engine.core.dao.network.VnicProfileViewDao getVnicProfileViewDao ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.VnicProfileViewDao.class ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return CreateTask ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase getReturnValue ( ) { if ( ( _returnValue ) == null ) { _returnValue = createReturnValue ( ) ; } return _returnValue ; }
Source:
java.lang.String getValidationTitle ( java.util.List < java.lang.String > validationHints ) { return ( validationHints != null ) && ( ( validationHints.size ( ) ) > 0 ) ? validationHints.get ( 0 ) : null ; }

Target:
protected java.lang.String getValidationTooltipText ( java.util.List < java.lang.String > validationHints ) { return ( validationHints != null ) && ( ( validationHints.size ( ) ) > 0 ) ? validationHints.get ( 0 ) : null ; }
Source:
protected void selectExternalProvider ( ) { getExternalProviders ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( getExternalProviders ( ) . getItems ( ) ) ) ; }

Target:
protected void selectExternalProvider ( ) { getExternalProviders ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( getExternalProviders ( ) . getItems ( ) ) ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "VdsManager::refreshVdsRunTimeInfo::Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getvds_name ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getName ( ) , ex ) ; }
Source:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.VM_CANNOT_UPDATE_CLUSTER ) ; }

Target:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.VM_CANNOT_UPDATE_CLUSTER ) ; }
Source:
protected org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { if ( ( macPool ) == null ) { macPool = poolPerDc.poolForDataCenter ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getStoragePoolId ( ) ) ; } return macPool ; }

Target:
protected org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { if ( ( macPool ) == null ) { macPool = poolPerDc.getMacPoolForDataCenter ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getStoragePoolId ( ) ) ; } return macPool ; }
Source:
public org.ovirt.engine.core.bll.job.ExecutionContext getExecutionContext ( ) { return super . getExecutionContext ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase getReturnValue ( ) { return super . getReturnValue ( ) ; }
Source:
protected void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { super . localize ( constants ) ; mainLabel.setText ( constants.dataCenterNewNetworkPopupLabel ( ) ) ; }

Target:
protected void localize ( ) { super . localize ( ) ; mainLabel.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.NewNetworkPopupView.constants.dataCenterNewNetworkPopupLabel ( ) ) ; }
Source:
protected void RunSleepOnReboot ( ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { SleepOnReboot ( ) ; } } ) ; }

Target:
protected void RunSleepOnReboot ( final org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { SleepOnReboot ( status ) ; } } ) ; }
Source:
public java.util.Map getOKStatusNotImplemented ( ) { log.warn ( "The method is not fully implemented!" , new java.lang.Exception ( ) ) ; return getStatusMap ( "OK" , 0 ) ; }

Target:
public java.util.Map getOKStatusNotImplemented ( ) { log.warn ( "The method is not fully implemented!" , new java.lang.Exception ( ) ) ; return org.ovirt.vdsmfake.service.AbstractService.getStatusMap ( "OK" , 0 ) ; }
Source:
public static java.io.File loadFileFromPath ( java.lang.String relativePath ) { java.lang.String baseDir = java.lang.System.getProperty ( "basedir" ) ; org.junit.Assume.assumeNotNull ( baseDir ) ; return new java.io.File ( baseDir , relativePath ) ; }

Target:
public void loadFileFromPath ( ) { java.lang.String baseDir = java.lang.System.getProperty ( "basedir" ) ; org.junit.Assume.assumeNotNull ( baseDir ) ; file = new java.io.File ( baseDir , relativePath ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , new java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > ( ) ) ; }
Source:
public void testNoStoreFilterPatternMatches_PositiveMatch ( ) { org.mockito.Mockito.when ( mockRequest.getRequestURI ( ) ) . thenReturn ( "RPCService" ) ; org.junit.Assert.assertTrue ( testFilter.noStoreFilterPatternMatches ( mockRequest ) ) ; }

Target:
public void testNoStoreFilterPatternMatches_PositiveMatch ( ) { org.mockito.Mockito.when ( mockRequest.getRequestURI ( ) ) . thenReturn ( "GenericApiGWTService" ) ; org.junit.Assert.assertTrue ( testFilter.noStoreFilterPatternMatches ( mockRequest ) ) ; }
Source:
public java.lang.Boolean getValue ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model : getNetworksTableItems ( ) ) { if ( ! ( model.isPublicUse ( ) ) ) { return false ; } } return true ; }

Target:
public java.lang.Boolean getValue ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model : getAllImportedNetworks ( ) ) { if ( ! ( model.isPublicUse ( ) ) ) { return false ; } } return true ; }