auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testValidName ( ) { prepareVmToPassCanDoAction ( ) ; mockVmValidator ( ) ; boolean c = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , c ) ; }

Target:
public void testValidName ( ) { prepareVmToPassValidate ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; boolean c = command.validate ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , c ) ; }
Source:
public void setHeartbeat ( boolean isHeartbeat ) { this . isHeartbeat.set ( isHeartbeat ) ; }

Target:
public int getIncomingHeartbeat ( ) { return this . incomingHeartbeat ; }
Source:
public void testGetByNameAndVersionWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( "farkle" , existingOption.getVersion ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameAndVersionWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( "farkle" , existingOption.getVersion ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void setConsoleCurrentUserName ( java.lang.String value ) { this . vmDynamic.setConsole_current_user_name ( value ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getLastVdsRunOn ( ) { return this . vmDynamic.getLastVdsRunOn ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MultipleHostsModel object ) { hostsTable.asEditor ( ) . edit ( object.getHosts ( ) ) ; driver.edit ( object ) ; applyPasswordButton.setCommand ( object.getApplyPasswordCommand ( ) ) ; }

Target:
public void onClick ( com.google.gwt.user.client.ui.Widget sender ) { object.setConfigureFirewall ( configureFirewallEditor.asCheckBox ( ) . isChecked ( ) ) ; }
Source:
public void testAdjustLegacySecureChannelsWithNullChannels ( ) throws java.lang.Exception { java.lang.String legacyChannels = null ; java.lang.String correctChannels = null ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.ui.common.uicommon.AbstractSpice.adjustLegacySecureChannels ( legacyChannels ) ) ; }

Target:
public void testAdjustLegacySecureChannelsWithNullChannels ( ) throws java.lang.Exception { java.lang.String legacyChannels = null ; java.lang.String correctChannels = null ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }
Source:
public java.lang.String toString ( ) { return ( "Host[" + ( ( mVdsStatic ) == null ? "null" : mVdsStatic.getName ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( "Host[" + ( ( mVdsStatic ) == null ? "null" : ( ( mVdsStatic.getName ( ) ) + "," ) + ( mVdsStatic.getId ( ) ) ) ) + "]" ; }
Source:
public void testGoodKeyIsPublicKeyValid ( ) { for ( java.lang.String [ ] key : org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.isPublicKeyValid ( key [ 3 ] ) ) ; } }

Target:
public void testGoodKeyIsPublicKeyValid ( ) { for ( java.lang.String [ ] key : org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS ) { org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.isPublicKeyValid ( key [ 3 ] ) ) ; } }
Source:
public void vmTemplateIdRefWithVm ( ) { final org.ovirt.engine.core.common.businessentities.VM v = new org.ovirt.engine.core.common.businessentities.VM ( ) ; b.setVm ( v ) ; final org.ovirt.engine.core.compat.Guid g = b.getVmTemplateIdRef ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }

Target:
public void vmTemplateIdRefWithVm ( ) { final org.ovirt.engine.core.common.businessentities.VM v = new org.ovirt.engine.core.common.businessentities.VM ( ) ; b.setVm ( v ) ; final org.ovirt.engine.core.compat.Guid g = b.getVmTemplateIdRef ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmPools , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmPools , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "url" , url ) . append ( "username" , username ) . append ( "originType" , originType ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "url" , url ) . append ( "username" , username ) . append ( "originType" , originType ) . append ( "namesOfVms" , namesOfVms ) ; }
Source:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; org.junit.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }

Target:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; org.junit.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }
Source:
public void setRngDevice ( org.ovirt.engine.core.common.businessentities.VmRngDevice rngDevice ) { this . rngDevice = rngDevice ; if ( ( this . rngDevice ) != null ) { this . rngDevice.setVmId ( getVmId ( ) ) ; } }

Target:
public void setRngDevice ( org.ovirt.engine.core.common.businessentities.VmRngDevice rngDevice ) { this . rngDevice.setValue ( rngDevice ) ; if ( ( this . rngDevice.getValue ( ) ) != null ) { this . rngDevice.getValue ( ) . setVmId ( getVmId ( ) ) ; } }
Source:
public org.ovirt.engine.core.ldap.DnsSRVResult getLdapServers ( java.lang.String [ ] records ) { return getSRVResult ( records ) ; }

Target:
public org.ovirt.engine.core.ldap.DnsSRVResult getLdapServers ( java.lang.String [ ] records , java.lang.String domainName ) { return getSRVResult ( domainName , records ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setExistingAttachments ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > existingAttachments ) { this . existingAttachments = existingAttachments ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingInterfaces ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { if ( existingInterfaces == null ) { return this ; } this . existingInterfaces.addAll ( existingInterfaces ) ; return this ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskImage getDiskImage ( ) { return new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskImage getDiskImage ( ) { return new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; }
Source:
public org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return dbFacade ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < java.lang.String > ( ( ( java.util.ArrayList < java.lang.String > ) ( source ) ) ) : new java.util.ArrayList < java.lang.String > ( ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Collection < org.ovirt.engine.core.aaa.ProfileEntry > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.aaa.ProfileEntry > ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getStoragesNames ( ) . get ( 0 ) ; }

Target:
protected java.lang.Long getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getActualSizeInBytes ( ) ; }
Source:
protected void disableLoginScreen ( ) { getUserName ( ) . setIsChangable ( false ) ; getPassword ( ) . setIsChangable ( false ) ; getProfile ( ) . setIsChangable ( false ) ; getLoginCommand ( ) . setIsExecutionAllowed ( false ) ; }

Target:
protected void disableLoginScreen ( ) { getUserName ( ) . setIsChangeable ( false ) ; getPassword ( ) . setIsChangeable ( false ) ; getProfile ( ) . setIsChangeable ( false ) ; getLoginCommand ( ) . setIsExecutionAllowed ( false ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , null ) ; }

Target:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , isWaitForResult , null ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity object ) { return java.lang.Integer.toString ( object.getBricks ( ) . size ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport object ) { return object ; }
Source:
public static < R extends org.ovirt.engine.api.model.BaseResource > javax.ws.rs.core.UriBuilder getUriBuilder ( javax.ws.rs.core.UriInfo uriInfo , R model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getUriBuilder ( uriInfo , model , null ) ; }

Target:
public static java.lang.String getPath ( org.ovirt.engine.api.model.BaseResource object ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getPath ( object , null ) ; }
Source:
private org.ovirt.engine.api.model.RSDL addSystemVersion ( org.ovirt.engine.api.model.RSDL rsdl ) { rsdl.setVersion ( org.ovirt.engine.api.restapi.util.VersionHelper.parseVersion ( getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdcVersion , null ) ) ) ; return rsdl ; }

Target:
private org.ovirt.engine.api.model.RSDL addSystemVersion ( org.ovirt.engine.api.model.RSDL rsdl ) { rsdl.setVersion ( org.ovirt.engine.api.restapi.util.VersionHelper.parseVersion ( getConfigurationValueDefault ( java.lang.String.class , ConfigurationValues.VdcVersion ) ) ) ; return rsdl ; }
Source:
protected java.lang.String generateOvfConfig ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.bll.storage.ovfstore.OvfHelper ( ) . generateOvfConfigurationForVm ( vm ) ; }

Target:
protected java.lang.String generateOvfConfig ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ovfHelper.generateOvfConfigurationForVm ( vm ) ; }
Source:
protected boolean isHotPlugDiskSnapshotSupported ( ) { if ( ! ( org.ovirt.engine.core.common.FeatureSupported.hotPlugDiskSnapshot ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) ) ) ) { return failCanDoAction ( EngineMessage.HOT_PLUG_DISK_SNAPSHOT_IS_NOT_SUPPORTED ) ; } return true ; }

Target:
protected boolean isHotPlugDiskSnapshotSupported ( ) { if ( ! ( org.ovirt.engine.core.common.FeatureSupported.hotPlugDiskSnapshot ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVds ( ) . getClusterCompatibilityVersion ( ) ) ) ) { return failValidation ( EngineMessage.HOT_PLUG_DISK_SNAPSHOT_IS_NOT_SUPPORTED ) ; } return true ; }
Source:
private void prepareMocks ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . findConnectionWithSameDetails ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class ) ) ; }

Target:
private void prepareMocks ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . findConnectionWithSameDetails ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class ) ) ; }
Source:
protected void configure ( ) { bind ( org.ovirt.engine.ui.uicommonweb.models.EngineErrataListModel.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
protected void configure ( ) { bind ( org.ovirt.engine.ui.uicommonweb.models.EngineErrataListModel.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.errata.ErrataMainTabSelectedItems.class ) . asEagerSingleton ( ) ; }
Source:
protected void assertSmallerThan ( org.ovirt.engine.core.common.businessentities.StorageDomain firstStorageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain secondStorageDomain ) { org.junit.Assert.assertTrue ( ( ( compareStorageDomains ( firstStorageDomain , secondStorageDomain ) ) < 0 ) ) ; }

Target:
protected void assertSmallerThan ( org.ovirt.engine.core.common.businessentities.StorageDomain firstStorageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain secondStorageDomain ) { org.junit.jupiter.api.Assertions.assertTrue ( ( ( compareStorageDomains ( firstStorageDomain , secondStorageDomain ) ) < 0 ) ) ; }
Source:
public void render ( org.ovirt.engine.ui.webadmin.widget.table.cell.Context context , com.google.gwt.safehtml.shared.SafeHtml data , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { if ( data != null ) { sb.appendHtmlConstant ( "<button type=\"button\" style=\"height:24px;\" tabindex=\"-1\">" ) ; sb.append ( data ) ; sb.appendHtmlConstant ( "</button>" ) ; } }

Target:
public void render ( org.ovirt.engine.ui.webadmin.widget.table.cell.Context context , com.google.gwt.safehtml.shared.SafeHtml data , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { if ( data != null ) { sb.appendHtmlConstant ( "<button type=\"button\" class=\"btn btn-default\" tabindex=\"-1\">" ) ; sb.append ( data ) ; sb.appendHtmlConstant ( "</button>" ) ; } }
Source:
public void setNetwork ( org.ovirt.engine.core.common.businessentities.Network network ) { this . network = network ; }

Target:
public org.ovirt.engine.core.common.businessentities.Network getNetwork ( ) { return this ; }
Source:
private java.lang.String formProfileUrl ( java.lang.String clusterId , java.lang.String volumeId , boolean isBrickProfileSelected ) { java.lang.String apiMatrixParam = ( ! isBrickProfileSelected ) ? ";nfsStatistics=true" : "" ; return org.ovirt.engine.core.compat.StringFormat.format ( "/ovirt-engine/api/clusters/%s/glustervolumes/%s/profilestatistics%s?accept=application/pdf" , clusterId , volumeId , apiMatrixParam ) ; }

Target:
private java.lang.String formProfileUrl ( java.lang.String clusterId , java.lang.String volumeId , boolean isBrickProfileSelected ) { java.lang.String apiMatrixParam = ( ! isBrickProfileSelected ) ? ";nfsStatistics=true" : "" ; return org.ovirt.engine.core.compat.StringFormat.format ( "/ovirt-engine/api/clusters/%s/glustervolumes/%s/profilestatistics%s?accept=application/json" , clusterId , volumeId , apiMatrixParam ) ; }
Source:
protected org.ovirt.engine.api.model.VM addParents ( org.ovirt.engine.api.model.VM vm ) { vm.setStorageDomain ( getStorageDomainModel ( ) ) ; return vm ; }

Target:
protected org.ovirt.engine.api.model.Vm addParents ( org.ovirt.engine.api.model.Vm vm ) { vm.setStorageDomain ( getStorageDomainModel ( ) ) ; return vm ; }
Source:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_SUSPENDED ) ) ; }

Target:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) , org.hamcrest.core.Is.is ( org.hamcrest.Matchers.empty ( ) ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; } return source ; }

Target:
public void getTemplateDiskList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > > aQuery , org.ovirt.engine.core.compat.Guid templateId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( templateId ) , aQuery ) ; }
Source:
private void initialize ( ) { org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerRanges.log.info ( "Start initializing {}" , getClass ( ) . getSimpleName ( ) ) ; this . macsStorage = createMacsStorage ( rangesBoundaries ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerRanges.log.info ( "Finished initializing. Available MACs in pool: {}" , macsStorage.getAvailableMacsCount ( ) ) ; }

Target:
private void initialize ( ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.info ( "Start initializing {}" , getClass ( ) . getSimpleName ( ) ) ; this . macsStorage = createMacsStorage ( rangesBoundaries ) ; org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.info ( "Finished initializing. Available MACs in pool: {}" , macsStorage.getAvailableMacsCount ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { org.ovirt.engine.core.compat.RpmVersion version = ( ( org.ovirt.engine.core.compat.RpmVersion ) ( object ) ) ; return ( ( version.getMajor ( ) ) + "." ) + ( version.getMinor ( ) ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { org.ovirt.engine.core.compat.RpmVersion version = ( ( org.ovirt.engine.core.compat.RpmVersion ) ( object ) ) ; return version.getRpmName ( ) ; }
Source:
private void initSrcStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain stDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; stDomain.setStatus ( StorageDomainStatus.Active ) ; org.mockito.Mockito.when ( storageDomainDao.getForStoragePool ( org.mockito.Matchers.any ( ) , org.mockito.Matchers.any ( ) ) ) . thenReturn ( stDomain ) ; }

Target:
private void initSrcStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain stDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; stDomain.setStatus ( StorageDomainStatus.Active ) ; org.mockito.Mockito.when ( storageDomainDao.getForStoragePool ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( stDomain ) ; }
Source:
private void removeVdsFromUnseenDomainsReport ( java.util.List < org.ovirt.engine.core.compat.Guid > nonOpVdss ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.infoFormat ( "Removing host(s) {0} from hosts unseen domain report cache" , nonOpVdss ) ; for ( org.ovirt.engine.core.compat.Guid id : nonOpVdss ) { clearVdsReportInfoOnUnseenDomain ( id ) ; } }

Target:
public void dispose ( ) { synchronized ( syncObj ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "IrsProxyData::disposing" ) ; resetIrs ( ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( storagePoolRefreshJobId ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( domainRecoverOnHostJobId ) ; _disposed = true ; } }
Source:
public double getMinutes_in_status ( ) { return this . minutes_in_status ; }

Target:
public int getSeconds_in_status ( ) { return this . seconds_in_status ; }
Source:
public org.ovirt.engine.api.extensions.ExtMap getPrincipalRecord ( java.lang.String engineSessionId ) { return ( ( org.ovirt.engine.api.extensions.ExtMap ) ( getData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_RECORD_PARAMETER_NAME , false ) ) ) ; }

Target:
public void setPrincipalName ( java.lang.String engineSessionId , java.lang.String name ) { setData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , name ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DisplayType > ( parseDisplayProtocols ( osId , version ) . keySet ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.DisplayType > > getGraphicsAndDisplays ( int osId , org.ovirt.engine.core.compat.Version version ) { return parseDisplayProtocols ( osId , version ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Server: RunPublicQuery invoked!" ) ; return getBackend ( ) . RunPublicQuery ( queryType , params ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( ( "Server: RunPublicQuery invoked! " + queryType ) ) ; debugQuery ( queryType , params ) ; return getBackend ( ) . RunPublicQuery ( queryType , params ) ; }
Source:
public int Compare ( org.ovirt.engine.core.common.businessentities.VmTemplate x , org.ovirt.engine.core.common.businessentities.VmTemplate y ) { return ( ( int ) ( ( x.getActualDiskSize ( ) ) - ( y.getActualDiskSize ( ) ) ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VmTemplate x , org.ovirt.engine.core.common.businessentities.VmTemplate y ) { return ( ( int ) ( ( x.getActualDiskSize ( ) ) - ( y.getActualDiskSize ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM createVm ( org.ovirt.engine.core.common.businessentities.VMStatus status ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( status ) ; vm.setGuestOs ( "rhel6" ) ; vm.setId ( vmId ) ; vm.setVdsGroupCompatibilityVersion ( Version.v3_1 ) ; return vm ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM createVm ( org.ovirt.engine.core.common.businessentities.VMStatus status ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( status ) ; vm.setGuestOs ( "rhel6" ) ; vm.setId ( vmId ) ; vm.setClusterCompatibilityVersion ( Version.v3_1 ) ; return vm ; }
Source:
public void setVfsChangeability ( boolean isPathEditable ) { getVfsType ( ) . setIsChangable ( isPathEditable ) ; }

Target:
protected void prepareConnectionForEditing ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { getMountOptions ( ) . setEntity ( connection.getMountOptions ( ) ) ; getVfsType ( ) . setEntity ( connection.getVfsType ( ) ) ; }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_NAME ) ) ; } }

Target:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_NAME ) ) ; } }
Source:
protected void copyVmDevices ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) , srcDiskIdToTargetDiskIdMapping , _vmInterfaces , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isConsoleEnabled ( ) ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.compat.Guid > getSrcDeviceIdToTargetDeviceIdMapping ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.compat.Guid > srcDeviceIdToTargetDeviceIdMapping = new java.util.HashMap < > ( ) ; srcDeviceIdToTargetDeviceIdMapping.putAll ( srcVmNicIdToTargetVmNicIdMapping ) ; srcDeviceIdToTargetDeviceIdMapping.putAll ( srcDiskIdToTargetDiskIdMapping ) ; return srcDeviceIdToTargetDeviceIdMapping ; }
Source:
protected boolean isVmWithSameNameExists ( java.lang.String name , org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( name , storagePoolId ) ; }

Target:
protected boolean isVmWithSameNameExists ( java.lang.String name , org.ovirt.engine.core.compat.Guid storagePoolId ) { return vmHandler.isVmWithSameNameExistStatic ( name , storagePoolId ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getDetailModel ( ) . executeCommand ( getDetailModel ( ) . getClearFilterServicesCommand ( ) ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getDetailModel ( ) . executeCommand ( getDetailModel ( ) . getFilterServicesCommand ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByExternalId ( org.ovirt.engine.core.compat.Guid externalId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Step.getStepsByExternalId" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "externalId" , externalId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobId ( org.ovirt.engine.core.compat.Guid jobId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByJobId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
public void setFullScreen ( boolean fullScreen ) { this . fullScreen = fullScreen ; }

Target:
public void setSecurePort ( int securePort ) { this . consoleOptions.setSecurePort ( securePort ) ; }
Source:
public void diskInterfaceSupportedByOs ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_SUPPORTED_INTERFACES ) ; initializeInterfaceValidation ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskInterfaceSupportedByOs ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_SUPPORTED_INTERFACES ) ; initializeInterfaceValidation ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters params = new org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters ( guid , parent.storageDomainId , getDataCenterId ( parent.storageDomainId ) ) ; return performAction ( VdcActionType.RemoveVmFromImportExport , params ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters params = new org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters ( guid , parent.storageDomainId , getDataCenterId ( parent.storageDomainId ) ) ; return performAction ( ActionType.RemoveVmFromImportExport , params ) ; }
Source:
public void testLoadOverridingFiles ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "qxl/qxl" , OsInfoPreferencesLoader.INSTANCE.getPreferences ( ) . node ( "/os/default/devices/display/protocols" ) . get ( "value" , "qxl/qxl" ) ) ; }

Target:
public void testLoadOverridingFiles ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "spice/qxl" , OsInfoPreferencesLoader.INSTANCE.getPreferences ( ) . node ( "/os/default/devices/display/protocols" ) . get ( "value" , "spice/qxl" ) ) ; }
Source:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) ) . contains ( UPGRADE_ERROR.VM_NEEDS_PASSTHROUGH ) ; }

Target:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_SUSPENDED ) ; }
Source:
public void testUpdate ( ) { existingDynamic.setused_disk_size ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.USED_DISK_SIZE ) ; dao.update ( existingDynamic ) ; org.ovirt.engine.core.common.businessentities.StorageDomainDynamic result = dao.get ( existingDynamic.getId ( ) ) ; assertEquals ( existingDynamic , result ) ; }

Target:
public void testUpdate ( ) { existingDynamic.setUsedDiskSize ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.USED_DISK_SIZE ) ; dao.update ( existingDynamic ) ; org.ovirt.engine.core.common.businessentities.StorageDomainDynamic result = dao.get ( existingDynamic.getId ( ) ) ; assertEquals ( existingDynamic , result ) ; }
Source:
protected void processVmPoolOnStopVm ( ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { runInternalActionWithTasksContext ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( getVm ( ) . getId ( ) ) ) ; } } ) ; }

Target:
protected void processVmOnDown ( ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { runInternalActionWithTasksContext ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( getVm ( ) . getId ( ) ) ) ; } } ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( "IsChangable" . equals ( propName ) ) { customPropertiesSheetEditor.setEnabled ( false ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ; if ( "IsChangable" . equals ( propName ) ) { customPropertiesSheetEditor.setEnabled ( false ) ; } }
Source:
public void setdisplay_type ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . mVmDynamic.setdisplay_type ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "display_type" ) ) ; }

Target:
public org.ovirt.engine.core.compat.NGuid getConsoleUserId ( ) { return this . vmDynamic.getConsoleUserId ( ) ; }
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.profiles.VnicProfileListModel , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.vnicProfileVmSubTabLabel ( ) , 0 , 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.profiles.VnicProfileListModel , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.profile.SubTabVnicProfileVmPresenter.constants.vnicProfileVmSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( null , "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( null , "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testGetAllMacsByStoragePool ( ) throws java.lang.Exception { java.util.List < java.lang.String > result = dao.getAllMacsByDataCenter ( FixturesTool.STORAGE_POOL_NFS_2 ) ; assertEquals ( FixturesTool.MAC_ADDRESS , result.get ( 0 ) ) ; }

Target:
public void testGetAllMacsByStoragePool ( ) throws java.lang.Exception { java.util.List < java.lang.String > result = dao.getAllMacsByDataCenter ( FixturesTool.STORAGE_POOL_NFS_2 ) ; org.junit.Assert.assertEquals ( FixturesTool.MAC_ADDRESS , result.get ( 0 ) ) ; }
Source:
protected void onHide ( ) { super . onHide ( ) ; pluginManager.disablePluginInvocation ( ) ; }

Target:
protected void onHide ( ) { super . onHide ( ) ; pluginManager.disablePluginInvocation ( ) ; alertManager.setCanShowAlerts ( false ) ; }
Source:
private com.google.gwt.safehtml.shared.SafeHtml listItem ( java.lang.String msg , org.ovirt.engine.ui.common.CommonApplicationTemplates templates ) { return templates.listItem ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( msg ) ) ; }

Target:
private com.google.gwt.safehtml.shared.SafeHtml listItem ( java.lang.String msg ) { return org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmNextRunConfigurationWidget.templates.listItem ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( msg ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { addBrickButton.getCommand ( ) . execute ( ) ; clearSelections ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeBricksButton.getCommand ( ) . execute ( ) ; clearSelections ( ) ; bricksTable.flush ( ) ; bricksTable.redraw ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.OnFinish ( storageListModel.context , true , storageListModel.storageModel ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.OnFinish ( storageListModel.context , true , storageListModel.storageModel ) ; }
Source:
public void canDoActionSucceedsOnRemoveNotLastAdGroupWithSuperUserPrivileges ( ) throws java.lang.Exception { mockIsLastSuperUserGroup ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void validateSucceedsOnRemoveNotLastAdGroupWithSuperUserPrivileges ( ) throws java.lang.Exception { mockIsLastSuperUserGroup ( false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public void Cancel ( ) { setWindow ( null ) ; }

Target:
public void Cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; remoteLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; alertManager.showUncaughtExceptionAlert ( t ) ; }

Target:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; remoteLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; if ( org.ovirt.engine.ui.common.DisplayUncaughtUIExceptions.getValue ( ) ) { alertManager.showUncaughtExceptionAlert ( t ) ; } }
Source:
public java.lang.Object getContainerId ( ) { return getParameters ( ) . getEntityId ( ) ; }

Target:
public java.lang.Object getContainerId ( ) { return getParameters ( ) . getEntityInfo ( ) . getId ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getDeviceList ( int storageType ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > teardownImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
public void OnEntityChanged ( ) { UpdateProperties ( ) ; UpdateActionAvailability ( ) ; }

Target:
public void onEntityChanged ( ) { updateProperties ( ) ; updateActionAvailability ( ) ; }
Source:
public void setdisplay_secure_port ( java.lang.Integer value ) { this . mVmDynamic.setdisplay_secure_port ( value ) ; }

Target:
public void setDisplaySecurePort ( java.lang.Integer value ) { this . vmDynamic.setdisplay_secure_port ( value ) ; }
Source:
public final java.lang.Object GetData ( java.lang.String key ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId == null ) { return null ; } return GetData ( sessionId , key ) ; }

Target:
public final java.lang.Object GetData ( java.lang.String key , boolean refresh ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId == null ) { return null ; } return GetData ( sessionId , key , refresh ) ; }
Source:
public static org.ovirt.engine.core.utils.timer.SchedulerUtil getInstance ( ) { return org.ovirt.engine.core.utils.ejb.EjbUtils.findBean ( BeanType.SCHEDULER , BeanProxyType.LOCAL ) ; }

Target:
public static org.ovirt.engine.core.utils.timer.SchedulerUtil getInstance ( ) { return org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.instance ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { try { return m.invoke ( obj , args ) ; } catch ( java.lang.Exception e ) { throw e ; } }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { try { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setCorrelationId ( correlationId ) ; return m.invoke ( obj , args ) ; } catch ( java.lang.Exception e ) { throw e ; } }
Source:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ) ( super . getEntity ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.InterfaceStatus getStatus ( ) { return getIface ( ) . getStatistics ( ) . getStatus ( ) ; }
Source:
public void testParseStrayColons ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; org.junit.Assert.assertNotNull ( ret ) ; org.junit.Assert.assertEquals ( 0 , ret.size ( ) ) ; }

Target:
public void testParseStrayColons ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( ret ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , ret.size ( ) ) ; }
Source:
public void wrapperShutdown ( ) { wrapper.wrapperShutdown ( ) ; wrapper = null ; callback = null ; }

Target:
public void shutdown ( ) { wrapper.shutdown ( ) ; wrapper = null ; callback = null ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.ServiceInfo entity ) { return entity.getServiceType ( ) . name ( ) ; }

Target:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService entity ) { return entity.getServiceType ( ) . name ( ) ; }
Source:
public void testNotContainsUnregisteredEntities ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = dao.get ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.Assert.assertFalse ( storageDomain.isContainsUnregisteredEntities ( ) ) ; }

Target:
public void testNotContainsUnregisteredEntities ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = dao.get ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.jupiter.api.Assertions.assertFalse ( storageDomain.isContainsUnregisteredEntities ( ) ) ; }
Source:
private void initPanel ( ) { initStatitsticsTable ( ) ; initGuestAgentDataTable ( ) ; add ( new com.google.gwt.user.client.ui.ScrollPanel ( statisticsTable ) , constants.statistics ( ) ) ; add ( new com.google.gwt.user.client.ui.ScrollPanel ( guestAgentDataTable ) , constants.guestAgentData ( ) ) ; }

Target:
private void initPanel ( ) { initStatitsticsTable ( ) ; initGuestAgentDataTable ( ) ; add ( new com.google.gwt.user.client.ui.ScrollPanel ( statisticsTable ) , org.ovirt.engine.ui.common.widget.uicommon.vm.VmInterfaceInfoPanel.constants.statistics ( ) ) ; add ( new com.google.gwt.user.client.ui.ScrollPanel ( guestAgentDataTable ) , org.ovirt.engine.ui.common.widget.uicommon.vm.VmInterfaceInfoPanel.constants.guestAgentData ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.HostDeviceId getExistingEntityId ( ) { return new org.ovirt.engine.core.common.businessentities.HostDeviceId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_HOST_ID , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.HostDeviceId getExistingEntityId ( ) { return new org.ovirt.engine.core.common.businessentities.HostDeviceId ( FixturesTool.VDS_RHEL6_NFS_SPM , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME ) ; }
Source:
private java.lang.String buildJson ( java.util.Map < java.lang.String , java.lang.Object > map ) { try { return org.ovirt.engine.core.utils.JsonHelper.mapToJson ( map ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( "Exception while generating json containing ovf store info" , e ) ; } }

Target:
private java.lang.String buildJson ( java.util.Map < java.lang.String , java.lang.Object > map , boolean prettyPrint ) { try { return org.ovirt.engine.core.utils.JsonHelper.mapToJson ( map , prettyPrint ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( "Exception while generating json containing ovf store info" , e ) ; } }
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 ) { getProviders ( ) . setIsChangable ( false ) ; providers_SelectedItemChanged ( ) ; updateHostList ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getProviders ( ) . setIsChangeable ( false ) ; providers_SelectedItemChanged ( ) ; updateHostList ( ) ; }
Source:
protected java.lang.Long asLong ( java.lang.String id ) { try { return new java.lang.Long ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.resource.BaseBackendResource.MalformedIdException ( e ) ; } }

Target:
protected java.lang.Long asLong ( java.lang.String id ) { try { return new java.lang.Long ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { endAction ( cmdId , false ) ; }
Source:
public void shouldSucceedIfHugepagesFit ( ) { vm.setCustomProperties ( "hugepages=512000" ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldSucceedIfHugepagesFit ( ) { vm.setCustomProperties ( "hugepages=512000" ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }