auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getSnapshotsDummiesForStorageAllocations ( ) { return org.ovirt.engine.core.bll.ImagesHandler.getSnapshotsDummiesForStorageAllocations ( getSourceImages ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDisksListForStorageAllocations ( ) { if ( ( getSnapshotActionType ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDiskLive ) ) { return org.ovirt.engine.core.bll.ImagesHandler.getDisksDummiesForStorageAllocations ( getSourceImages ( ) ) ; } return org.ovirt.engine.core.bll.ImagesHandler.getSnapshotsDummiesForStorageAllocations ( getSourceImages ( ) ) ; }
Source:
org.ovirt.engine.ui.userportal.uicommon.model.vm.VmSessionsModelProvider getVmSessionsModelProvider ( ) ;

Target:
org.ovirt.engine.ui.userportal.uicommon.model.UserPortalDetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmGuestInfoModel > getVmGuestInfoModelProvider ( ) ;
Source:
public int getHeartbeat ( ) { return this . heartbeat ; }

Target:
public final void setOutgoingHeartbeat ( int outgoingHeartbeat ) { this . outgoingHeartbeat = outgoingHeartbeat ; if ( outgoingHeartbeat != 0 ) { this . isOutgoingHeartbeat.set ( true ) ; } else { this . isOutgoingHeartbeat.set ( false ) ; } }
Source:
public boolean isFatalEnabled ( ) { return log.isFatalEnabled ( ) ; }

Target:
public boolean isFatalEnabled ( ) { return log.isErrorEnabled ( ) ; }
Source:
org.ovirt.engine.core.compat.Guid getIsoStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid pool ) ;

Target:
org.ovirt.engine.core.compat.Guid getIsoStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) ;
Source:
protected void compensate ( ) { if ( hasTaskHandlers ( ) ) { getCurrentTaskHandler ( ) . compensate ( ) ; revertPreviousHandlers ( ) ; } else { internalCompensate ( ) ; } }

Target:
protected void compensate ( ) { if ( hasTaskHandlers ( ) ) { getParameters ( ) . setExecutionReason ( CommandExecutionReason.ROLLBACK_FLOW ) ; getCurrentTaskHandler ( ) . compensate ( ) ; revertPreviousHandlers ( ) ; } else { internalCompensate ( ) ; } }
Source:
public void setTicket ( java.lang.String ticket ) { this . ticket = ticket ; }

Target:
public void setVncPort ( java.lang.String vncPort ) { consoleOptions.setPort ( ( vncPort == null ? null : java.lang.Integer.parseInt ( vncPort ) ) ) ; }
Source:
public void storageDomainWithIdNullPool ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }

Target:
public void storageDomainDefault ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }
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 ) ; initializeOsRepository ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskInterfaceNotSupportedByOs ( ) { 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_NO_SUPPORTED_INTERFACES ) ; initializeInterfaceValidation ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_DISK_INTERFACE_UNSUPPORTED ) ) ; }
Source:
public void setValue ( java.lang.Object value , boolean fireEvents ) { }

Target:
protected void onAdd ( org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType value , org.ovirt.engine.ui.common.widget.profile.ProfileInstanceTypeEditor widget ) { super . onAdd ( value , widget ) ; vnics.add ( value.getNetworkInterface ( ) ) ; if ( isGhost ( value ) ) { ++ ( realEntryCount ) ; } updateHeaderLabel ( ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendAssignedTagResource ( "foo" , null ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendAssignedTagsResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.getAssignedTagSubResource ( "foo" ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendAssignedTagsResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private static boolean isDisplayNetwork ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel logicalNetworkModel ) { return logicalNetworkModel.getEntity ( ) . getCluster ( ) . isDisplay ( ) ; }

Target:
private static boolean isDisplayNetwork ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel logicalNetworkModel ) { return logicalNetworkModel.getNetwork ( ) . getCluster ( ) . isDisplay ( ) ; }
Source:
protected void onReset ( ) { super . onReset ( ) ; org.ovirt.engine.ui.common.presenter.main.AbstractHeaderPresenterWidget.getView ( ) . setUserName ( user.getUserName ( ) ) ; }

Target:
protected void onReset ( ) { super . onReset ( ) ; org.ovirt.engine.ui.common.presenter.AbstractHeaderPresenterWidget.getView ( ) . setUserName ( user.getUserName ( ) ) ; }
Source:
public void canDoActionFailsOnVolumeWithoutAsyncTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutAsyncTask , getBricks ( volumeWithoutAsyncTask ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnVolumeWithoutAsyncTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutAsyncTask , getBricks ( volumeWithoutAsyncTask ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public java.io.File getCacheDir ( ) { return getFile ( "ENGINE_CACHE" ) ; }

Target:
public long getLong ( java.lang.String key ) { return getLong ( key , null ) ; }
Source:
public org.ovirt.engine.sdk.Api build ( ) throws java.io.IOException , org.ovirt.engine.sdk.exceptions.ServerException , org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError { return new org.ovirt.engine.sdk.Api ( url , user , password , sessionId , null , requestTimeout , sessionTimeout , persistentAuth , noHostVerification , keyStorePath , keyStorePassword , filter , debug ) ; }

Target:
public org.ovirt.engine.sdk.Api build ( ) throws java.io.IOException , org.ovirt.engine.sdk.exceptions.ServerException , org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError { return new org.ovirt.engine.sdk.Api ( url , user , password , sessionId , null , requestTimeout , sessionTimeout , persistentAuth , noHostVerification , keyStorePath , keyStorePassword , filter , debug , kerberos ) ; }
Source:
private int parseIntVdsProperty ( java.lang.Object vdsProperty ) { if ( vdsProperty instanceof java.lang.Integer ) { return ( ( java.lang.Integer ) ( vdsProperty ) ) ; } else { return java.lang.Integer.parseInt ( ( ( java.lang.String ) ( vdsProperty ) ) ) ; } }

Target:
public void addVmGuestAgentNics ( org.ovirt.engine.core.compat.Guid id , java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces ) { vmGuestAgentNics.put ( id , vmGuestAgentInterfaces ) ; }
Source:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; setActive ( user.isActive ( ) ) ; }

Target:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; setActive ( user.isActive ( ) ) ; }
Source:
public java.lang.String getLabel ( ) { return getButtonWidget ( ) . getText ( ) ; }

Target:
public java.lang.String getLabel ( ) { com.google.gwt.user.client.ui.Widget widget = getButtonWidget ( ) ; java.lang.String result = null ; if ( widget instanceof com.google.gwt.user.client.ui.HasText ) { result = ( ( com.google.gwt.user.client.ui.HasText ) ( widget ) ) . getText ( ) ; } return result ; }
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getStatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { switch ( object.getStatus ( ) ) { case PreparingForHibernate : return org.ovirt.engine.core.common.businessentities.VMStatus.SavingState ; default : return object.getStatus ( ) ; } }
Source:
private java.lang.String connectErrorMessage ( ) { return canConnectToConsole ( ) ? "" : org.ovirt.engine.ui.uicommonweb.models.VmConsolesImpl.messages.errorConnectingToConsole ( getVm ( ) . getName ( ) , getSelectedProcotol ( ) . toString ( ) ) ; }

Target:
private java.lang.String connectErrorMessage ( ) { return canConnectToConsole ( ) ? "" : messages.errorConnectingToConsole ( getVm ( ) . getName ( ) , getSelectedProcotol ( ) . toString ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null , false , null ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; }
Source:
protected boolean canDoAction ( ) { return CanMaintenanceVds ( org.ovirt.engine.core.bll.MaintenanceVdsCommand.getVdsId ( ) , org.ovirt.engine.core.bll.MaintenanceVdsCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return canMaintenanceVds ( org.ovirt.engine.core.bll.MaintenanceVdsCommand.getVdsId ( ) , org.ovirt.engine.core.bll.MaintenanceVdsCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.DiskImage disk , java.lang.String value ) { object.DestinationStorage_SelectedItemChanged ( disk , value ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.DiskImage disk , java.lang.String value ) { object.getDiskImportData ( disk.getId ( ) ) . setSelectedStorageDomainString ( value ) ; diskTable.edit ( object.getImportDiskListModel ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.quota.QuotaVdsGroupConsumptionParameter clone ( ) throws java.lang.CloneNotSupportedException { return new org.ovirt.engine.core.bll.quota.QuotaVdsGroupConsumptionParameter ( getQuotaGuid ( ) , getQuota ( ) , getQuotaAction ( ) , vdsGroupId , requestedCpu , requestedMemory ) ; }

Target:
public org.ovirt.engine.core.bll.quota.QuotaClusterConsumptionParameter clone ( ) throws java.lang.CloneNotSupportedException { return new org.ovirt.engine.core.bll.quota.QuotaClusterConsumptionParameter ( getQuotaGuid ( ) , getQuota ( ) , getQuotaAction ( ) , clusterId , requestedCpu , requestedMemory ) ; }
Source:
public void setup ( ) { final org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.SearchResultsLimit , Config.DefaultConfigurationVersion ) ) . thenReturn ( 100 ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }

Target:
public void setup ( ) { final org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.SearchResultsLimit , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( 100 ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_VOLUME_SNAPSHOT ) ; addCanDoActionMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterSnapshotCommandBase.getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , org.ovirt.engine.core.bll.gluster.GlusterSnapshotCommandBase.getVdsGroupName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_VOLUME_SNAPSHOT ) ; addValidationMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterSnapshotCommandBase.getGlusterVolumeName ( ) ) ; addValidationMessageVariable ( "vdsGroup" , org.ovirt.engine.core.bll.gluster.GlusterSnapshotCommandBase.getVdsGroupName ( ) ) ; }
Source:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , result.getName ( ) ) ; }

Target:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , FixturesTool.DATA_CENTER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , result.getName ( ) ) ; }
Source:
protected void enableDisableByBootProtocol ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceModel model ) { boolean bootProtocolsAvailable = model.getBootProtocolsAvailable ( ) ; bootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; bootProtocol.setEnabled ( bootProtocolsAvailable ) ; bootProtocol.setEnabled ( NetworkBootProtocol.NONE , model.getNoneBootProtocolAvailable ( ) ) ; }

Target:
protected void enableDisableByBootProtocol ( org.ovirt.engine.ui.uicommonweb.models.hosts.NetworkAttachmentModel model ) { boolean bootProtocolsAvailable = model.getBootProtocolsAvailable ( ) ; bootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; bootProtocol.setEnabled ( bootProtocolsAvailable ) ; bootProtocol.setEnabled ( NetworkBootProtocol.NONE , model.getNoneBootProtocolAvailable ( ) ) ; }
Source:
public void externalNetworkNameChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setName ( "aaa" ) ; network.setName ( "bbb" ) ; org.junit.Assert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_DETAILS_CANNOT_BE_EDITED ) ) ; }

Target:
public void externalNetworkNameChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setName ( "aaa" ) ; network.setName ( "bbb" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_DETAILS_CANNOT_BE_EDITED ) ) ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase.class , new java.lang.String [ ] { "StorageDomainId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase.class , new java.lang.String [ ] { "StorageDomainId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.model.StorageDomain ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmStatic getVmStatic ( ) { org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; vmStatic.setOs ( VmOsType.Unassigned ) ; vmStatic.setMemSizeMb ( 300 ) ; vmStatic.setStateless ( false ) ; vmStatic.setVmtGuid ( vmTemplateId ) ; return vmStatic ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmStatic getVmStatic ( ) { org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; vmStatic.setOsId ( OsRepository.DEFAULT_OS ) ; vmStatic.setMemSizeMb ( 300 ) ; vmStatic.setStateless ( false ) ; vmStatic.setVmtGuid ( vmTemplateId ) ; return vmStatic ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getClusterPolicyDao ( ) ; existingPolicy = dao.get ( FixturesTool.CLUSTER_POLICY_EVEN_DISTRIBUTION ) ; createDummyPolicy ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getClusterPolicyDao ( ) ; existingPolicy = dao.get ( FixturesTool.CLUSTER_POLICY_EVEN_DISTRIBUTION , java.util.Collections.emptyMap ( ) ) ; createDummyPolicy ( ) ; }
Source:
public void testGetAllForNetworkSameNetworkName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.contains ( existingVds ) ) ; }

Target:
public void testGetAllForNetworkSameNetworkName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.contains ( existingVds ) ) ; }
Source:
private java.lang.String getHostId ( java.lang.String hostName ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VdsStatic.class , VdcQueryType.GetVdsStaticByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( hostName ) , ( "Hosts: name=" + hostName ) ) . getId ( ) . toString ( ) ; }

Target:
public org.ovirt.engine.api.resource.VmHostDevicesResource getVmHostDevicesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmHostDevicesResource ( guid ) ) ; }
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 ) { optimizationForServerFormatter ( object ) ; }

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 ) { optimizationForDesktopFormatter ( object ) ; }
Source:
public void moreWithMissingVersionButWithColonIsNotValid ( ) { org.junit.Assert.assertEquals ( helper.validate ( null , "a:;b:" ) . isOk ( ) , false ) ; org.junit.Assert.assertEquals ( helper.validate ( null , ":a;b:c" ) . isOk ( ) , false ) ; }

Target:
public void moreWithMissingVersionButWithColonIsNotValid ( ) { org.junit.Assert.assertFalse ( helper.validate ( null , "a:;b:" ) . isOk ( ) ) ; org.junit.Assert.assertFalse ( helper.validate ( null , ":a;b:c" ) . isOk ( ) ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { boolean previousSpicePreference = getView ( ) . getSpiceProxy ( ) ; selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Html5 ) ; spiceProxyUserPreference = previousSpicePreference ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectVncImplementation ( VncConsoleModel.ClientConsoleMode.NoVnc ) ; }
Source:
public void testUrlWithEmptyFilter ( ) { org.ovirt.engine.core.common.queries.ErrataFilter errataFilter = new org.ovirt.engine.core.common.queries.ErrataFilter ( ) ; org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = new org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder ( org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilderTest.HOST_ID , errataFilter ) ; org.junit.Assert.assertEquals ( "/katello/api/v2/systems/xxx/errata" , underTest.build ( ) ) ; }

Target:
public void testUrlWithEmptyFilter ( ) { org.ovirt.engine.core.common.queries.ErrataFilter errataFilter = new org.ovirt.engine.core.common.queries.ErrataFilter ( ) ; org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = createFilteredErrataRelativeUrlBuilder ( errataFilter ) ; org.junit.Assert.assertEquals ( "/katello/api/v2/systems/xxx/errata" , underTest.build ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map get ( org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map_id id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lUN_id" , id.lunId ) . addValue ( "storage_server_connection" , id.storageServerConnection ) ; return getCallsHandler ( ) . executeRead ( "GetLUN_storage_server_connection_mapByLUNBystorage_server_conn" , org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAODbFacadeImpl.StorageServerConnectionLunMapRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map get ( org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map_id id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , id.lunId ) . addValue ( "storage_server_connection" , id.storageServerConnection ) ; return getCallsHandler ( ) . executeRead ( "GetLUN_storage_server_connection_mapByLUNBystorage_server_conn" , org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAODbFacadeImpl.StorageServerConnectionLunMapRowMapper.instance , parameterSource ) ; }
Source:
private void memSize_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.updateMinAllocatedMemory ( ) ; }

Target:
private void memSize_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.updateMinAllocatedMemory ( ) ; behavior.updateMaxMemory ( ) ; }
Source:
protected java.lang.String getINVALID ( ) { return org.ovirt.engine.core.utils.network.predicate.AbstractVdsNetworkInterfacePredicateTest.INVALID ; }

Target:
public void checkInvalidAddress ( ) { org.junit.Assert.assertFalse ( underTest.test ( generateVdsNetworkInterface ( org.ovirt.engine.core.utils.network.predicate.AbstractVdsNetworkInterfacePredicateTest.INVALID ) ) ) ; }
Source:
public java.lang.String toString ( java.lang.Object dateFormat ) { return null ; }

Target:
public java.lang.String toString ( java.lang.Object dateFormat ) { if ( dateFormat instanceof com.google.gwt.i18n.client.DateTimeFormat ) { return ( ( com.google.gwt.i18n.client.DateTimeFormat ) ( dateFormat ) ) . format ( this ) ; } return null ; }
Source:
protected boolean performImagesChecks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > diskImagesToCheck = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getImagesList ( ) , true , false , true ) ; org.ovirt.engine.core.bll.validator.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( diskImagesToCheck ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) ) ; }

Target:
protected boolean performImagesChecks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > diskImagesToCheck = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getImagesList ( ) , true , false , true ) ; org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImagesToCheck ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { RemoveVdsStatisticsFromDb ( ) ; RemoveVdsDynamicFromDb ( ) ; RemoveVdsStaticFromDb ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { removeVdsStatisticsFromDb ( ) ; removeVdsDynamicFromDb ( ) ; removeVdsStaticFromDb ( ) ; return null ; }
Source:
protected org.ovirt.engine.api.model.HostNIC deprecatedPopulate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { java.util.Set < java.lang.String > details = org.ovirt.engine.api.common.util.DetailHelper.getDetails ( httpHeaders , uriInfo ) ; if ( details.contains ( "statistics" ) ) { addStatistics ( model , entity ) ; } return model ; }

Target:
protected org.ovirt.engine.api.model.HostNic deprecatedPopulate ( org.ovirt.engine.api.model.HostNic model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { java.util.Set < java.lang.String > details = org.ovirt.engine.api.common.util.DetailHelper.getDetails ( httpHeaders , uriInfo ) ; if ( details.contains ( "statistics" ) ) { addStatistics ( model , entity ) ; } return model ; }
Source:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( getEntity ( ) . getName ( ) ) ) ; }

Target:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( template.getdedicated_vm_for_vds ( ) ) ; }

Target:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( template.getDedicatedVmForVds ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , mockNetworkExclusivenessValidatorResolver ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , mockNetworkExclusivenessValidatorResolver , mockNetworkAttachmentIpConfigurationValidator , new org.ovirt.engine.core.bll.network.host.UnmanagedNetworkValidator ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; getView ( ) . getTestButton ( ) . getCommand ( ) . execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbProvisionedHost.getValue ( ) ) { model.getIsDiscorveredHosts ( ) . setEntity ( false ) ; } }
Source:
void vdsMovedToMaintanance ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;

Target:
void vdsMovedToMaintenance ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
public void onPowerringUp ( ) { decreasePendingVms ( getCurrentVdsId ( ) ) ; }

Target:
public void onPowerringUp ( ) { org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = org.ovirt.engine.core.bll.RunVmCommandBase.getVmStaticDAO ( ) . get ( org.ovirt.engine.core.bll.RunVmCommandBase.getVmId ( ) ) ; decreasePendingVms ( getCurrentVdsId ( ) , vmStatic.getNumOfCpus ( ) , vmStatic.getMinAllocatedMem ( ) , vmStatic.getName ( ) ) ; }
Source:
public java.lang.Integer getused_disk_size ( ) { return this . usedDiskSize ; }

Target:
public java.lang.Integer getUsedDiskSize ( ) { return usedDiskSize ; }
Source:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.getProvider ( this , id ) ; org.ovirt.engine.core.common.action.ProviderParameters parameters = new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ; return performAction ( VdcActionType.RemoveProvider , parameters ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.getProvider ( this , id ) ; org.ovirt.engine.core.common.action.ProviderParameters parameters = new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ; return performAction ( ActionType.RemoveProvider , parameters ) ; }
Source:
public void happyPath ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void happyPath ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
protected void setStatus ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVdsStatus , new org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVdsId ( ) , org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ) ) ; org.ovirt.engine.core.bll.FenceVdsBaseCommand.RunSleepOnReboot ( ) ; }

Target:
protected void setStatus ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVdsStatus , new org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVdsId ( ) , org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ) ) ; org.ovirt.engine.core.bll.FenceVdsBaseCommand.runSleepOnReboot ( ) ; }
Source:
private void setElementVisibility ( com.google.gwt.user.client.ui.UIObject object , boolean value ) { object.getElement ( ) . getStyle ( ) . setVisibility ( ( value ? Style.Visibility.VISIBLE : Style.Visibility.HIDDEN ) ) ; }

Target:
private void setElementVisibility ( com.google.gwt.user.client.ui.UIObject object , boolean value ) { object.getElement ( ) . getStyle ( ) . setDisplay ( ( value ? Style.Display.BLOCK : Style.Display.NONE ) ) ; }
Source:
protected void executeCommand ( ) { if ( IsUserAttachedToPool ( ) ) { DetachAllVmsFromUser ( ) ; } org.ovirt.engine.core.bll.DetachUserFromVmFromPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.DetachUserFromVmFromPoolCommand.getVmPoolId ( ) ) != null ) { DetachAllVmsFromUser ( ) ; } org.ovirt.engine.core.bll.DetachUserFromVmFromPoolCommand.setSucceeded ( true ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession object ) { return object.getPairList ( ) . get ( 0 ) . getSlaveVolume ( ) . getNodeHostName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession object ) { return object.getSlaveHostName ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.DISABLED ) ; }
Source:
public void testGetNotFound ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetNotExistingEntityExpectations ( ) ; try { resource.get ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetNotExistingEntityExpectations ( ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void addToHistoryOneValueBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 10 , 12 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 ) , 12 , 100 ) ) ; }

Target:
public void addToHistoryOneValueBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 10 , 12 ) , statistics.addToHistory ( java.util.Collections.singletonList ( 10 ) , 12 , 100 ) ) ; }
Source:
public void testSave ( ) { dao.save ( newVmTemplate ) ; org.ovirt.engine.core.common.businessentities.VmTemplate result = dbFacade.getVmTemplateDAO ( ) . get ( newVmTemplate.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newVmTemplate , result ) ; }

Target:
public void testSave ( ) { dao.save ( newVmTemplate ) ; org.ovirt.engine.core.common.businessentities.VmTemplate result = dbFacade.getVmTemplateDao ( ) . get ( newVmTemplate.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newVmTemplate , result ) ; }
Source:
public java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { return cmdExecutor.executeAsyncCommand ( actionType , parameters , cmdContext ) ; }

Target:
public java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.businessentities.SubjectEntity ... subjectEntities ) { return cmdExecutor.executeAsyncCommand ( actionType , parameters , cmdContext , subjectEntities ) ; }
Source:
public void setSelectedItem ( java.lang.Object value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }

Target:
public void setSelectedItem ( java.lang.Object value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; updatePortMirroringChangeability ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.HashMap < org.ovirt.engine.core.common.businessentities.VmTemplate , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > > ( ) ; }
Source:
protected void fetchDocumentationFile ( ) { fetchFile ( ( ( getHelpTagMappingBaseURL ( ) ) + "webadmin.json" ) , documentationFileFetchedEvent ) ; }

Target:
protected void prepareContextSensitiveHelp ( ) { fetchFile ( getCshMappingUrl ( org.ovirt.engine.ui.webadmin.uicommon.WebAdminConfigurator.APPLICATION_NAME ) , documentationFileFetchedEvent ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult canVDSConnectToGlusterfs ( org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( ! ( org.ovirt.engine.core.bll.storage.GLUSTERFSStorageHelper.canVDSConnectToGlusterfs ( vds ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAIL_VDS_CANNOT_CONNECT_TO_GLUSTERFS , java.lang.String.format ( org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator.VDS_NAME_REPLACEMENT , vds.getName ( ) ) ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult canVDSConnectToGlusterfs ( org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( ! ( org.ovirt.engine.core.bll.storage.connection.GLUSTERFSStorageHelper.canVDSConnectToGlusterfs ( vds ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAIL_VDS_CANNOT_CONNECT_TO_GLUSTERFS , java.lang.String.format ( org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator.VDS_NAME_REPLACEMENT , vds.getName ( ) ) ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void SyncSearch ( ) { updateAppList ( ) ; setIsQueryFirstTime ( false ) ; }

Target:
protected void syncSearch ( ) { updateAppList ( ) ; setIsQueryFirstTime ( false ) ; }
Source:
private org.apache.http.HttpResponse send ( org.apache.http.client.methods.HttpUriRequest request , boolean last ) { try { injectHeaders ( request , last ) ; return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void close ( ) throws java.lang.Exception { revokeAccessToken ( ) ; if ( ( client ) != null ) { client.close ( ) ; } }
Source:
private org.ovirt.engine.core.compat.Guid GetAnyVdsToRunOn ( ) { return getVdsToRunOn ( getVdsDAO ( ) . getVdsToRun ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } , getVm ( ) . getvds_group_id ( ) , VDSStatus.Up , getVm ( ) . getnum_of_cpus ( ) ) ) ; }

Target:
private org.ovirt.engine.core.compat.Guid GetAnyVdsToRunOn ( ) { return getVdsToRunOn ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
protected void AlertIfPowerManagementOperationFailed ( ) { Alert ( AuditLogType.VDS_ALERT_FENCING_OPERATION_FAILED ) ; }

Target:
protected void AlertIfPowerManagementOperationFailed ( ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_FAILED ) ; }
Source:
public void setusername ( java.lang.String value ) { this . username = value ; }

Target:
public void setDomain ( java.lang.String value ) { domain = value ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.storage_domains source = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; source.setstorage_domain_type ( StorageDomainType.ImportExport ) ; source.setstatus ( StorageDomainStatus.Active ) ; return source ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain source = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; source.setStorageDomainType ( StorageDomainType.ImportExport ) ; source.setStatus ( StorageDomainStatus.Active ) ; return source ; }
Source:
protected void postSave ( ) { super . postSave ( ) ; sourceModel.postAction ( ) ; }

Target:
protected void postSave ( ) { super . postSave ( ) ; sourceModel.updateOptions ( ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > createActionTable ( ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > ( modelProvider , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getClientStorage ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > createActionTable ( ) { return new org.ovirt.engine.ui.userportal.widget.table.column.UserPortalSimpleActionTable < T > ( modelProvider , getTableResources ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getClientStorage ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( ) ; }
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.ExternalDiscoveredHost > ( ) ; } return source ; }

Target:
public java.util.Set < T > convert ( java.lang.Object source ) { return source != null ? ( ( java.util.Set < T > ) ( source ) ) : new java.util.HashSet < T > ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.HostNetworkQos object ) { return ( object.getOutAverageLinkshare ( ) ) == null ? constants.unlimitedQos ( ) : object.getOutAverageLinkshare ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.HostNetworkQos object ) { return ( object.getOutAverageLinkshare ( ) ) == null ? org.ovirt.engine.ui.webadmin.section.main.view.tab.datacenter.SubTabDataCenterHostNetworkQosView.constants.noneQos ( ) : object.getOutAverageLinkshare ( ) . toString ( ) ; }
Source:
protected void SetSourceDomainId ( org.ovirt.engine.core.compat.Guid storageId ) { sourceDomainId = storageId ; }

Target:
protected void setSourceDomainId ( org.ovirt.engine.core.compat.Guid storageId ) { sourceDomainId = storageId ; }
Source:
public static java.lang.String getEngineNetwork ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.DefaultManagementNetwork ) ; }

Target:
public static java.lang.String getDefaultManagementNetworkName ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.DefaultManagementNetwork ) ; }
Source:
protected boolean IsUserAutorizedToRunAction ( ) { return true ; }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { return true ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.uniqueOsNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.uniqueOsNames ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { osNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; initOsIds ( ) ; }
Source:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }