auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void sendMessage ( byte [ ] message ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { waitForConnect ( ) ; send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.REQUEST_QUEUE ) . withContent ( message ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { waitForConnect ( ) ; send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.REQUEST_QUEUE ) . withContent ( message ) . build ( ) ) ; }
Source:
protected boolean checkCanBeMoveInVm ( ) { return validate ( new org.ovirt.engine.core.bll.validator.DiskValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) ) . isDiskPluggedToVmsThatAreNotDown ( false , getVmsWithVmDeviceInfoForDiskId ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.DiskValidator createDiskValidator ( ) { return new org.ovirt.engine.core.bll.validator.DiskValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.gluster.BrickAdvancedDetailsModel object ) { driver.edit ( object ) ; clientsTable.edit ( object.getClients ( ) ) ; memoryPoolsTable.edit ( object.getMemoryPools ( ) ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.gluster.BrickAdvancedDetailsModel object ) { driver.edit ( object ) ; clientsTable.asEditor ( ) . edit ( object.getClients ( ) ) ; memoryPoolsTable.asEditor ( ) . edit ( object.getMemoryPools ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand spyCommand ( ) { return new org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand ( new org.ovirt.engine.core.common.action.UploadDiskImageParameters ( ) , null ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand spyCommand ( ) { return new org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand ( new org.ovirt.engine.core.common.action.TransferDiskImageParameters ( ) , null ) ; }
Source:
public void setKsmState ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; }

Target:
public java.lang.Long getKsmPages ( ) { return this . mVdsStatistics.getKsmPages ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult parentEntityExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult parentEntityExists ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( getProfile ( ) . getClusterId ( ) ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void changeVolumeInfo ( org.ovirt.engine.core.common.businessentities.DiskImage clonedDiskImage , org.ovirt.engine.core.common.businessentities.DiskImage diskImageFromClient ) { clonedDiskImage.setvolume_format ( diskImageFromClient.getvolume_format ( ) ) ; clonedDiskImage.setvolume_type ( diskImageFromClient.getvolume_type ( ) ) ; }

Target:
protected void changeVolumeInfo ( org.ovirt.engine.core.common.businessentities.DiskImage clonedDiskImage , org.ovirt.engine.core.common.businessentities.DiskImage diskImageFromClient ) { clonedDiskImage.setvolumeFormat ( diskImageFromClient.getVolumeFormat ( ) ) ; clonedDiskImage.setVolumeType ( diskImageFromClient.getVolumeType ( ) ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 0 , true ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 0 , true ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private java.lang.String getImageDaemonUri ( java.lang.String daemonHostname ) { java.lang.String port = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.ImageDaemonPort ) ; return ( ( ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.HTTPS_SCHEME ) + daemonHostname ) + ":" ) + port ; }

Target:
private java.lang.String getImageDaemonUri ( java.lang.String daemonHostname ) { java.lang.String port = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.ImageDaemonPort ) ; return ( ( ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.HTTPS_SCHEME ) + daemonHostname ) + ":" ) + port ; }
Source:
public void storagePoolNotFound ( ) { checkStoragePoolFails ( ) ; }

Target:
public void storagePoolNotFound ( ) { org.mockito.Mockito.when ( storagePoolDao.get ( storagePool.getId ( ) ) ) . thenReturn ( null ) ; checkStoragePoolFails ( ) ; }
Source:
public boolean Validate ( ) { return Validate ( true ) ; }

Target:
public boolean Validate ( boolean validateCpu ) { return Validate ( true , validateCpu ) ; }
Source:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsDynamic.getcpu_over_commit_time_stamp ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.SELinuxMode getSELinuxEnforceMode ( ) { return mVdsDynamic.getSELinuxEnforceMode ( ) ; }
Source:
public void passwordNotProvidedForHostInstallation ( ) { org.mockito.Mockito.when ( host.getVdsType ( ) ) . thenReturn ( VDSType.VDS ) ; validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.passwordProvidedForHostInstallation ( AuthenticationMethod.Password , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_EMPTY_PASSWORD ) ) ; }

Target:
public void passwordNotProvidedForHostInstallation ( ) { org.mockito.Mockito.when ( host.getVdsType ( ) ) . thenReturn ( VDSType.VDS ) ; validator = createValidatorForHostInstallation ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passwordProvidedForHostInstallation ( AuthenticationMethod.Password , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_EMPTY_PASSWORD ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.storage.Disk source ) { return source.isAllowSnapshot ( ) ; }

Target:
public boolean match ( T source ) { return source.isAllowSnapshot ( ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateAlerts ( ) ; UpdateMemory ( ) ; UpdateSwapUsed ( ) ; UpdateProperties ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateAlerts ( ) ; updateMemory ( ) ; updateSwapUsed ( ) ; updateProperties ( ) ; } }
Source:
public org.ovirt.engine.api.model.Network lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.Network > getNetworks ( ) { return getBackendCollection ( VdcQueryType.GetNetworksByDataCenterId , getQueryParameters ( ) ) ; }
Source:
protected boolean isBlankTemplateSelected ( ) { return ( ( getSelectedItem ( ) ) != null ) && ( org.ovirt.engine.core.compat.Guid.OpEquality ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( getSelectedItem ( ) ) ) . getId ( ) , NGuid.Empty ) ) ; }

Target:
private boolean isBlankTemplate ( java.lang.Object selectedItem ) { return ( ( selectedItem != null ) && ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) ) && ( org.ovirt.engine.core.compat.Guid.OpEquality ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( selectedItem ) ) . getId ( ) , NGuid.Empty ) ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , true ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , true ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
java.lang.String invalidIconFormat ( java.lang.String s ) ;

Target:
java.lang.String errorConnectingToConsole ( java.lang.String name , java.lang.String s ) ;
Source:
public void validateLunSizeDifferentOnOneHostFails ( ) { org.junit.Assert.assertFalse ( cmd.getFailedLuns ( createLunMap ( false ) ) . isEmpty ( ) ) ; }

Target:
public void validateLunSizeDifferentOnOneHostFails ( ) { org.junit.jupiter.api.Assertions.assertFalse ( cmd.getFailedLuns ( createLunMap ( false ) ) . isEmpty ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllUsingQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllRunningOnOrMigratingToVds ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVmsRunningOnOrMigratingToVds" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ) ; }
Source:
protected void emptyRoot ( com.google.gwt.user.client.ui.TreeItem rootItem ) { super . emptyRoot ( rootItem ) ; rootItem.addItem ( new com.google.gwt.user.client.ui.Label ( "Loading..." ) ) ; }

Target:
protected com.google.gwt.user.client.ui.TreeItem getEmptyRoot ( ) { return new com.google.gwt.user.client.ui.TreeItem ( new com.google.gwt.user.client.ui.Label ( constants.loadingLabel ( ) ) ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . mVmDynamic.setstatus ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . vmDynamic.getstatus ( ) ; }
Source:
public java.lang.String getPmPassword ( ) { return mVdsStatic.getPmPassword ( ) ; }

Target:
public java.lang.String getOnlineCpus ( ) { return this . mVdsDynamic.getOnlineCpus ( ) ; }
Source:
public void OnCollapseSnapshotsChanged ( org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { this . onCollapseSnapshotsChangedFinish = _asyncQuery ; OnCollapseSnapshotsChanged ( ) ; }

Target:
public void setStoragePool ( org.ovirt.engine.core.common.businessentities.storage_pool storagePool ) { this . storagePool = storagePool ; }
Source:
public void testNetworkNotChangedWhenOldAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( null , null ) . networkNotChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNetworkIpAddressWasSameAsHostnameAndChangedWhenIpConfigurationIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . networkIpAddressWasSameAsHostnameAndChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , boolean present , java.lang.String width ) { table.ensureColumnPresent ( column , header , present , width ) ; tableHeader.ensureColumnPresent ( column , header , present , width ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , boolean visible , java.lang.String width ) { table.ensureColumnVisible ( column , header , visible , width ) ; tableHeader.ensureColumnVisible ( column , header , visible , width ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; getBrickListModel ( ) . setVolumeEntity ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( provideDetailModelEntity ( getSelectedItem ( ) ) ) ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { ExecuteCommand ( command , new java.lang.Object [ 0 ] ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { executeCommand ( command , new java.lang.Object [ 0 ] ) ; }
Source:
public void testGetFilteredByPermissions ( ) { checkResults ( dao.getAllForCluster ( FixturesTool.VDS_GROUP_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.PRIVILEGED_USER_ID , true ) ) ; }

Target:
public void testGetFilteredByPermissions ( ) { checkResults ( dao.getAllForCluster ( FixturesTool.CLUSTER_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.PRIVILEGED_USER_ID , true ) ) ; }
Source:
public void validateRanges ( ) { org.junit.Assert.assertEquals ( expectedResult , validator.validate ( org.ovirt.engine.core.config.entity.ConfigKeyFactory.getInstance ( ) . generateBlankConfigKey ( ConfigurationValues.DefaultMTU.name ( ) , "Mtu" ) , values ) . isOk ( ) ) ; }

Target:
public void validateRanges ( ) { org.junit.Assert.assertEquals ( expectedResult , validator.validate ( org.ovirt.engine.core.config.entity.ConfigKeyFactory.getInstance ( ) . generateBlankConfigKey ( ConfigValues.DefaultMTU.name ( ) , "Mtu" ) , values ) . isOk ( ) ) ; }
Source:
protected boolean CheckStorageDomainNotInPool ( ) { return isStorageDomainNotInPool ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) ) ; }

Target:
protected boolean checkStorageDomainNotInPool ( ) { return isStorageDomainNotInPool ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) ) ; }
Source:
protected void onRemove ( T value , V widget ) { }

Target:
protected void onRemove ( T value , V widget ) { modelItems.remove ( value ) ; }
Source:
private void setClusterEmulatedMachine ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.String matchedEmulatedMachine ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . setEmulatedMachine ( vds.getVdsGroupId ( ) , matchedEmulatedMachine , false ) ; }

Target:
private void setClusterEmulatedMachine ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.String matchedEmulatedMachine ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterDao ( ) . setEmulatedMachine ( vds.getClusterId ( ) , matchedEmulatedMachine , false ) ; }
Source:
public void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTasks task = coco.getAsyncTaskFromDb ( asyncTaskId ) ; if ( task != null ) { logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; } }

Target:
public void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTask task = coco.getAsyncTaskFromDb ( asyncTaskId ) ; if ( task != null ) { logAndFailPartiallySubmittedTaskOfCommand ( task , message ) ; } }
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.AuditLog , org.ovirt.engine.ui.uicommonweb.models.users.UserListModel , org.ovirt.engine.ui.uicommonweb.models.users.UserEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.userEventSubTabLabel ( ) , 5 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.users.UserListModel , org.ovirt.engine.ui.uicommonweb.models.users.UserEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.user.SubTabUserEventPresenter.constants.userEventSubTabLabel ( ) , 5 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public static org.ovirt.vdsm.jsonrpc.client.JsonRpcClient createStompClient ( java.lang.String hostname , int port , int connectionTimeout , int clientTimeout , int connectionRetry , boolean isSecure ) { return org.ovirt.engine.core.vdsbroker.jsonrpc.JsonRpcUtils.createClient ( hostname , port , connectionTimeout , clientTimeout , connectionRetry , isSecure , ReactorType.STOMP ) ; }

Target:
public static org.ovirt.vdsm.jsonrpc.client.JsonRpcClient createStompClient ( java.lang.String hostname , int port , int connectionTimeout , int clientTimeout , int connectionRetry , int heartbeat , boolean isSecure ) { return org.ovirt.engine.core.vdsbroker.jsonrpc.JsonRpcUtils.createClient ( hostname , port , connectionTimeout , clientTimeout , connectionRetry , heartbeat , isSecure , ReactorType.STOMP ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , null , 0 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsWithForceNotSupported ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , true ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_VOLUME_ADD_BRICK_FORCE_NOT_SUPPORTED ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { getView ( ) . spiceSelected ( false ) ; getView ( ) . setWanOptionsVisible ( false ) ; getView ( ) . rdpSelected ( false ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . showSpicePanel ( event.getValue ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; getView ( ) . getTestButton ( ) . getCommand ( ) . execute ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { if ( "IsAvailable" . equals ( args.propertyName ) ) { getView ( ) . setHostProviderVisibility ( model.getProviderSearchFilter ( ) . getIsAvailable ( ) ) ; } }
Source:
public void setLibvirtVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( libvirtVersion , value ) ) { libvirtVersion = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LibvirtVersion" ) ) ; } }

Target:
public void setLibvirtVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( libvirtVersion , value ) ) ) { libvirtVersion = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LibvirtVersion" ) ) ; } }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; org.ovirt.engine.ui.userportal.section.main.presenter.SearchableModelActivationEvent.fire ( this , modelProvider.getModel ( ) ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; org.ovirt.engine.ui.uicommonweb.models.SearchableListModel currentModel = modelProvider.getModel ( ) ; currentModel.getSearchCommand ( ) . execute ( ) ; }
Source:
public void testForValue ( ) { org.junit.Assert.assertEquals ( "wrong value" , org.ovirt.engine.core.common.queries.VdcQueryType.forValue ( VdcQueryType.GetAgentFenceOptions2.getValue ( ) ) , VdcQueryType.GetAgentFenceOptions2 ) ; }

Target:
public void testForValue ( ) { org.junit.Assert.assertEquals ( "wrong value" , org.ovirt.engine.core.common.queries.VdcQueryType.forValue ( VdcQueryType.GetAgentFenceOptions.getValue ( ) ) , VdcQueryType.GetAgentFenceOptions ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { java.lang.String tooltipContent = object.getSecond ( ) . getFqdn ( ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { java.lang.String tooltipContent = object.getSecond ( ) . getFqdn ( ) ; return tooltipContent == null ? com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( "" ) : com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , null , "255.255.255.0" ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressIsNull ( ) throws java.lang.Exception { doTestIpConfiguredForStaticBootProtocol ( null , "255.255.255.0" ) ; }
Source:
public void setManagedDeviceMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > map ) { this . vmManagedDeviceMap = map ; }

Target:
public void setManagedDeviceMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > map ) { this . managedDeviceMap = map ; }
Source:
public void setQos ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS qos ) { this . qos = qos ; }

Target:
public void setQos ( org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos ) { if ( qos != null ) { assert ( qos.getName ( ) ) == null : "Overriding QoS entity must not be named!" ; assert ( qos.getStoragePoolId ( ) ) == null : "Overriding QoS entity must not be linked to a specific DC!" ; } this . qos = qos ; }
Source:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.USER_PARAMETER_NAME , user ) ; persistEngineSession ( sessionId ) ; }

Target:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.USER_PARAMETER_NAME , user ) ; setSessionValid ( sessionId , true ) ; persistEngineSession ( sessionId ) ; }
Source:
public void getVdsGroupWithId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setVdsGroupId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.VDSGroup g = b.getVdsGroup ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g.getId ( ) ) ; }

Target:
public void getClusterWithId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setClusterId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.Cluster g = b.getCluster ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g.getId ( ) ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , false ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , false ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private void initExpander ( ) { expander.initWithContent ( expanderContent ) ; }

Target:
private void initExpander ( ) { expander.initWithContent ( expanderContent.getElement ( ) ) ; }
Source:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { mainTabContainer.getElement ( ) . removeChild ( tabWidget.asWidget ( ) . getElement ( ) ) ; }

Target:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { mainTabContainer.appendChild ( tabWidget.asWidget ( ) . getElement ( ) ) ; }
Source:
public void canRebalanceOnDistributeReplicateVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedReplicatedVolume ( volumeId1 , 12 , 4 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.junit.Assert.assertTrue ( validationResult.isValid ( ) ) ; }

Target:
public void canRebalanceOnDistributeReplicateVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedReplicatedVolume ( volumeId1 , 12 , 4 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.junit.Assert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable exception ) { }

Target:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable exception ) { com.google.gwt.core.client.GWT.log ( ( "Error while requesting " + filePath ) , exception ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.storage_domains sd = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; sd.setstatus ( StorageDomainStatus.Active ) ; sd.setavailable_disk_size ( 10 ) ; return sd ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage_domains getSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.storage_domains sd = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; sd.setstorage_domain_type ( StorageDomainType.ImportExport ) ; sd.setstatus ( StorageDomainStatus.Active ) ; return sd ; }
Source:
protected void InitAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( ( ( getVmType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmType.Server ) ) ) ; }

Target:
protected void initAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( ( ( getVmType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmType.Server ) ) ) ; }
Source:
public void testLogEntryDoesntLogWhenLogLevelInactive ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.log.Log log = org.mockito.Mockito.mock ( org.ovirt.engine.core.utils.log.Log.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logEntry ( log , "" , new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedOverridingSubclass ( ) ) ; org.ovirt.engine.core.utils.log.LoggedUtilsTest.verifyNoLogging ( log ) ; }

Target:
public void testLogEntryDoesntLogWhenLogLevelInactive ( ) throws java.lang.Exception { org.slf4j.Logger log = org.mockito.Mockito.mock ( org.slf4j.Logger.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logEntry ( log , "" , new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedOverridingSubclass ( ) ) ; org.ovirt.engine.core.utils.log.LoggedUtilsTest.verifyNoLogging ( log ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > searchStorageDomain ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getStorageDomainDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchImageTypes ( ) { return genericSearch ( vmTemplateDao , true ) ; }
Source:
java.lang.String getSessionId ( ) { return restApiSessionId ; }

Target:
public void releaseSession ( ) { setSessionId ( null , true ) ; }
Source:
public void Cancel ( ) { CancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; UpdateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public static java.lang.Object [ ] [ ] namesParams ( ) { return new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { "a.a.a.a" , false , false } , new java.lang.Object [ ] { "//32" , false , false } , new java.lang.Object [ ] { "33" , false , false } , new java.lang.Object [ ] { "253.0.0.32" , true , false } , new java.lang.Object [ ] { "255.255.255.0" , true , true } , new java.lang.Object [ ] { "15" , true , true } } ; }

Target:
public static java.util.stream.Stream < org.junit.jupiter.params.provider.Arguments > namesParams ( ) { return java.util.stream.Stream.of ( org.junit.jupiter.params.provider.Arguments.of ( "a.a.a.a" , false , false ) , org.junit.jupiter.params.provider.Arguments.of ( "//32" , false , false ) , org.junit.jupiter.params.provider.Arguments.of ( "33" , false , false ) , org.junit.jupiter.params.provider.Arguments.of ( "253.0.0.32" , true , false ) , org.junit.jupiter.params.provider.Arguments.of ( "255.255.255.0" , true , true ) , org.junit.jupiter.params.provider.Arguments.of ( "15" , true , true ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.compat.Guid diskId : diskIds ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( diskId , status ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.compat.Guid diskId : diskIds ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; } compensationContext.stateChanged ( ) ; return null ; }
Source:
public org.ovirt.engine.api.resource.TemplateDiskResource getDeviceResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResource ( asGuidOr404 ( id ) , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.TemplateDiskResource getDiskResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResource ( id , templateId ) ) ; }
Source:
private boolean validateDestStorage ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.compat.Guid destDomainId ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = getValidator ( destDomainId , org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getStoragePoolId ( ) ) ; return ( validate ( validator.isDomainExistAndActive ( ) ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getImageSourceDomain ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; org.ovirt.engine.core.compat.Guid domainId = diskImage.getStorageIds ( ) . get ( 0 ) ; return getStorageDomainById ( domainId , org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getStoragePoolId ( ) ) ; }
Source:
protected boolean checkImageConfiguration ( ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImageConfiguration ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) . getStorageStaticData ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Command ) ; }
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.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkHostListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkHostSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkHostListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkHostSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
public static java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > createFenceExclusiveLocksMap ( org.ovirt.engine.core.compat.Guid vdsId ) { return java.util.Collections.singletonMap ( vdsId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS_FENCE , EngineMessage.POWER_MANAGEMENT_ACTION_ON_ENTITY_ALREADY_IN_PROGRESS ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return hostLocking.getPowerManagementLock ( org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsId ( ) ) ; }
Source:
protected void itemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { super . itemsCollectionChanged ( sender , e ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }

Target:
protected void itemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { super . itemsCollectionChanged ( sender , e ) ; resetIsEmpty ( ) ; updatePagingAvailability ( ) ; }
Source:
public java.lang.Void call ( ) { proxy.extendVolume ( cinderDisk.getImageId ( ) . toString ( ) , newSize ) ; return null ; }

Target:
public java.lang.Void extendDisk ( final org.ovirt.engine.core.common.businessentities.storage.CinderDisk cinderDisk , final int newSize ) { return execute ( ( ) -> { proxy.extendVolume ( cinderDisk.getImageId ( ) . toString ( ) , newSize ) ; return null ; } ) ; }
Source:
public void setSmartcardEnabled ( boolean smartcardEnabled ) { this . smartcardEnabled = smartcardEnabled ; }

Target:
public void setSpiceProxy ( java.lang.String spiceProxy ) { this . consoleOptions.setSpiceProxy ( spiceProxy ) ; }
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.core.common.businessentities.network entity = lookupNetwork ( asGuidOr404 ( id ) ) ; if ( entity == null ) { notFound ( ) ; return null ; } return performAction ( removeAction , getActionParameters ( null , entity ) ) ; }

Target:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.api.model.Network entity = lookupNetwork ( asGuidOr404 ( id ) ) ; if ( entity == null ) { notFound ( ) ; return null ; } return performAction ( removeAction , getActionParameters ( null , entity ) ) ; }
Source:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , java.lang.Object value ) { SetDefaultNames7 ( ) ; }

Target:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , java.lang.Object value ) { setDefaultNames7 ( ) ; }
Source:
public void testGetByNameForUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getByName ( existingCluster.getName ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameForUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getByName ( existingCluster.getName ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getstorage_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getStorageName ( ) ; }
Source:
public abstract java.util.Map < java.lang.String , java.lang.Object > getVideoDeviceSpecParams ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) ;

Target:
public abstract java.util.Map < java.lang.String , java.lang.Integer > getVideoDeviceSettings ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) ;
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; }

Target:
protected java.util.function.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return ( storageDomain ) -> storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; }
Source:
private void removeAllNetworksByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createVfsConfigIdParameter ( vfsConfigId ) ; getCallsHandler ( ) . executeModification ( "DeleteAllvfsConfigNetworks" , parameterSource ) ; }

Target:
public void addLabel ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { getCallsHandler ( ) . executeModification ( "InsertVfsConfigLabel" , createLabelParametersMapper ( vfsConfigId , label ) ) ; }
Source:
public void canDoActionWrongVersion ( ) { sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_REFRESH_LUNS_UNSUPPORTED_ACTION ) ; sp.setCompatibilityVersion ( Version.v3_6 ) ; }

Target:
public void validateWrongVersion ( ) { sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_REFRESH_LUNS_UNSUPPORTED_ACTION ) ; sp.setCompatibilityVersion ( Version.v3_6 ) ; }
Source:
public void setLabelStyleName ( java.lang.String styleName ) { labelElement.setClassName ( styleName ) ; }

Target:
public void setContentWidgetStyleName ( java.lang.String styleName ) { if ( usePatternFly ) { getContentWidgetElement ( ) . setClassName ( styleName ) ; } else { contentWidgetContainer.setStyleName ( styleName ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getJobIdByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "entity_id" , entityId ) ; return getCallsHandler ( ) . executeReadList ( "GetAllJobIdsByEntityId" , createGuidMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getJobIdByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { return multipleResults ( entityManager.createNamedQuery ( "JobSubjectEntity.getJobIdByEntityId" ) . setParameter ( "entityId" , entityId ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getHostInterfaces ( ) { if ( ( hostNics ) == null ) { hostNics = org.ovirt.engine.core.bll.network.host.AddNetworkAttachmentCommand.getDbFacade ( ) . getInterfaceDao ( ) . getAllInterfacesForVds ( org.ovirt.engine.core.bll.network.host.AddNetworkAttachmentCommand.getVdsId ( ) ) ; } return hostNics ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getHostInterfaces ( ) { if ( ( hostNics ) == null ) { hostNics = interfaceDao.getAllInterfacesForVds ( org.ovirt.engine.core.bll.network.host.AddNetworkAttachmentCommand.getVdsId ( ) ) ; } return hostNics ; }
Source:
public void testRecieveInvalidDestination ( ) throws java.lang.Exception { client.receiveFile ( "/none/exist/path/file" , local2.getAbsolutePath ( ) ) ; }

Target:
public void testRecieveInvalidDestination ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.io.IOException.class , ( ) -> client.receiveFile ( "/none/exist/path/file" , local2.getAbsolutePath ( ) ) ) ; }
Source:
protected java.lang.Integer getApplicationMode ( java.lang.String sessionId ) { return ( ( java.lang.Integer ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.config.ConfigValues.ApplicationMode , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , sessionId ) ) ) ; }

Target:
protected java.lang.Integer getApplicationMode ( java.lang.String sessionId ) { return ( ( java.lang.Integer ) ( runPublicQuery ( QueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.config.ConfigValues.ApplicationMode , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , sessionId ) ) ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand1 ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNoBrick ( ) { cmd.setGlusterVolumeId ( volumeId4 ) ; cmd.getParameters ( ) . setNewBrick ( getBricks ( volumeId4 , "" , 1 ) . get ( 0 ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
private void setRngDeviceToParams ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model , org.ovirt.engine.core.common.action.VmManagementParametersBase parameters ) { parameters.setUpdateRngDevice ( true ) ; parameters.setRngDevice ( ( model.getIsRngEnabled ( ) . getEntity ( ) ? model.generateRngDevice ( ) : null ) ) ; }

Target:
protected void executeDiskModifications ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) . setId ( vmId ) ; model.getInstanceImages ( ) . executeDiskModifications ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) ) ; }
Source:
private org.ovirt.engine.api.model.Disk map ( org.ovirt.engine.core.common.businessentities.DiskImage entity , org.ovirt.engine.api.model.Disk template ) { return getMapper ( org.ovirt.engine.api.model.Disk.class , org.ovirt.engine.api.model.Disk.class ) . map ( entity , template ) ; }

Target:
private org.ovirt.engine.api.model.Disk map ( org.ovirt.engine.core.common.businessentities.storage.DiskImage entity , org.ovirt.engine.api.model.Disk template ) { return getMapper ( org.ovirt.engine.api.model.Disk.class , org.ovirt.engine.api.model.Disk.class ) . map ( entity , template ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.tags > getAllForVm ( java.lang.String ids ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_ids" , ids ) ; return getCallsHandler ( ) . executeReadList ( "GetTagsByVmId" , new org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.tags > getAllForVm ( java.lang.String ids ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_ids" , ids ) ; return getCallsHandler ( ) . executeReadList ( "GetTagsByVmId" , org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper.instance , parameterSource ) ; }
Source:
public void testAddWithCustomGlobalHeader ( ) { clustersService.add ( ) . cluster ( org.ovirt.engine.sdk4.builders.Builders.cluster ( ) ) . send ( ) ; org.junit.Assert.assertEquals ( getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) , "value" ) ; }

Target:
public void testAddWithCustomGlobalHeader ( ) { clustersService.add ( ) . cluster ( org.ovirt.engine.sdk4.builders.Builders.cluster ( ) ) . send ( ) ; org.junit.Assert.assertEquals ( "value" , getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) ) ; }
Source:
private void mockDAOForQuery ( ) throws java.lang.Exception { org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDao ( ) ) . thenReturn ( vmDAO ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getVmId ( ) ) . thenReturn ( vmId ) ; }

Target:
private void mockDAOForQuery ( ) throws java.lang.Exception { org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDao ( ) ) . thenReturn ( vmDAO ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getId ( ) ) . thenReturn ( vmId ) ; }
Source:
public void setbookmark_id ( org.ovirt.engine.core.compat.Guid id ) { this . id = id ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { this . id = id ; }