auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetSessionByInvalidId ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterGeoRepDaoTest.NONEXIST_SESSION_ID ) ; org.junit.Assert.assertNull ( session ) ; }

Target:
public void testGetSessionByInvalidId ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterGeoRepDaoTest.NONEXIST_SESSION_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( session ) ; }
Source:
public void setDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( domain , value ) ) ) { domain = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Domain" ) ) ; } }

Target:
public void setDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( domain , value ) ) ) { domain = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Domain" ) ) ; } }
Source:
protected void cancel ( ) { StopProgress ( ) ; ( ( org.ovirt.engine.ui.uicommonweb.models.ListModel ) ( getEntity ( ) ) ) . setWindow ( null ) ; }

Target:
protected void cancel ( ) { stopProgress ( ) ; ( ( org.ovirt.engine.ui.uicommonweb.models.ListModel ) ( getEntity ( ) ) ) . setWindow ( null ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { cachedCommandsCompatibilityVersions = ( ( java.util.HashMap < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.queries.CommandVersionsInfo > ) ( source ) ) ; return isCommandCompatible ( vdcActionType , cluster , dc ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { cachedCommandsCompatibilityVersions = ( ( java.util.HashMap < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.queries.CommandVersionsInfo > ) ( source ) ) ; return isCommandCompatible ( vdcActionType , cluster , dc ) ; }
Source:
private void asyncResultChanging ( org.ovirt.engine.ui.frontend.RegistrationResult newValue , org.ovirt.engine.ui.frontend.RegistrationResult oldValue ) { if ( oldValue != null ) { oldValue.getRetrievedEvent ( ) . removeListener ( this ) ; } if ( newValue != null ) { newValue.getRetrievedEvent ( ) . addListener ( this ) ; } }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.List < T > items = returnValue.getReturnValue ( ) ; java.util.Collections.sort ( items , comparator ) ; setItems ( items ) ; }
Source:
protected void writeHeader ( ) { super . writeHeader ( ) ; _writer.writeDefaultNamespace ( org.ovirt.engine.core.utils.ovf.OVF_URI ) ; _writer.setPrefix ( org.ovirt.engine.core.utils.ovf.OVIRT_PREFIX , org.ovirt.engine.core.utils.ovf.OVIRT_URI ) ; _writer.writeNamespace ( org.ovirt.engine.core.utils.ovf.OVIRT_PREFIX , org.ovirt.engine.core.utils.ovf.OVIRT_URI ) ; }

Target:
protected void writeHeader ( ) { super . writeHeader ( ) ; _writer.writeDefaultNamespace ( getOvfUri ( ) ) ; _writer.setPrefix ( org.ovirt.engine.core.utils.ovf.OVIRT_PREFIX , org.ovirt.engine.core.utils.ovf.OVIRT_URI ) ; _writer.writeNamespace ( org.ovirt.engine.core.utils.ovf.OVIRT_PREFIX , org.ovirt.engine.core.utils.ovf.OVIRT_URI ) ; }
Source:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { runOnceModel.sysPrepListBoxChanged ( ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { runOnceModel.sysPrepListBoxChanged ( ) ; }
Source:
public org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKeys list ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters parameters = new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( providerId ) ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetAllLibvirtSecretsByProviderId , parameters ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKeys list ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters parameters = new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( providerId ) ) ; return mapCollection ( getBackendCollection ( QueryType.GetAllLibvirtSecretsByProviderId , parameters ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
private void assertCompareTo ( org.ovirt.engine.core.common.businessentities.VmDevice device1 , org.ovirt.engine.core.common.businessentities.VmDevice device2 ) { assertTrue ( ( ( device2.compareTo ( device1 ) ) > 0 ) ) ; assertTrue ( ( ( device1.compareTo ( device2 ) ) < 0 ) ) ; }

Target:
private void assertCompareTo ( org.ovirt.engine.core.common.businessentities.VmDevice device1 , org.ovirt.engine.core.common.businessentities.VmDevice device2 ) { org.junit.Assert.assertTrue ( ( ( device2.compareTo ( device1 ) ) > 0 ) ) ; org.junit.Assert.assertTrue ( ( ( device1.compareTo ( device2 ) ) < 0 ) ) ; }
Source:
public void nullNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) , false , null ) ; }

Target:
public void nullNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , null ) ; }
Source:
public void InitAsyncTaskManager ( ) { org.ovirt.engine.core.bll.AsyncTaskManager.log.info ( "AsyncTaskManager: Initialization of AsyncTaskManager completed successfully." ) ; }

Target:
public void InitAsyncTaskManager ( ) { org.ovirt.engine.core.bll.AsyncTaskManager.log.info ( "Initialization of AsyncTaskManager completed successfully." ) ; }
Source:
protected int getMaxNameLength ( ) { return isWindows ( ) ? org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getMaxVmNameLengthWin ( ) : org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getMaxVmNameLengthNonWin ( ) ; }

Target:
protected int getMaxNameLength ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getMaxVmNameLength ( ) ; }
Source:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( ) ) ; }

Target:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( getNicType ( ) . getItems ( ) ) ) ; }
Source:
public void getClusterNotNull ( ) { final org.ovirt.engine.core.common.businessentities.Cluster g = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; b.setCluster ( g ) ; final org.ovirt.engine.core.common.businessentities.Cluster gr = b.getCluster ( ) ; org.junit.Assert.assertEquals ( g , gr ) ; }

Target:
public void getClusterNotNull ( ) { final org.ovirt.engine.core.common.businessentities.Cluster g = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; b.setCluster ( g ) ; final org.ovirt.engine.core.common.businessentities.Cluster gr = b.getCluster ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( g , gr ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createNic ( java.lang.String name , java.lang.String bondName , org.ovirt.engine.core.common.businessentities.NetworkBootProtocol bootProtocol , java.lang.String network ) { return createVdsInterface ( name , false , bondName , null , bootProtocol , network , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String name , java.lang.String bondName , org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol , java.lang.String network ) { return createVdsInterface ( name , false , bondName , null , bootProtocol , network , null ) ; }
Source:
private static int getNeededNumberOfUsbControllers ( int numberOfSlots ) { int numOfcontrollers = numberOfSlots / ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.SLOTS_PER_CONTROLLER ) ; if ( ( numberOfSlots % ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.SLOTS_PER_CONTROLLER ) ) != 0 ) { numOfcontrollers ++ ; } return numOfcontrollers ; }

Target:
private static int getNeededNumberOfUsbControllers ( int numberOfSlots ) { int numberOfControllers = numberOfSlots / ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.SLOTS_PER_CONTROLLER ) ; if ( ( numberOfSlots % ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.SLOTS_PER_CONTROLLER ) ) != 0 ) { numberOfControllers ++ ; } return numberOfControllers ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.storage.connection.UpdateStorageServerConnectionExtensionCommand.getDbFacade ( ) . getStorageServerConnectionExtensionDao ( ) . update ( org.ovirt.engine.core.bll.storage.connection.UpdateStorageServerConnectionExtensionCommand.getParameters ( ) . getStorageServerConnectionExtension ( ) ) ; org.ovirt.engine.core.bll.storage.connection.UpdateStorageServerConnectionExtensionCommand.getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { storageServerConnectionExtensionDao.update ( org.ovirt.engine.core.bll.storage.connection.UpdateStorageServerConnectionExtensionCommand.getParameters ( ) . getStorageServerConnectionExtension ( ) ) ; org.ovirt.engine.core.bll.storage.connection.UpdateStorageServerConnectionExtensionCommand.getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public java.lang.String serializeUnformattedJson ( java.io.Serializable payload ) throws org.ovirt.engine.core.utils.SerializationExeption { org.codehaus.jackson.map.ObjectMapper mapper = new org.codehaus.jackson.map.ObjectMapper ( ) ; return writeJsonAsString ( payload , mapper ) ; }

Target:
public java.lang.String serializeUnformattedJson ( java.io.Serializable payload ) throws org.ovirt.engine.core.utils.SerializationExeption { return writeJsonAsString ( payload , org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer.unformattedMapper ) ; }
Source:
protected abstract org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( T value ) ;

Target:
protected abstract org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( C value ) ;
Source:
public void validateFailedVMNotFound ( ) throws java.lang.Exception { mockNullVm ( ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND.toString ( ) ) ) ; }

Target:
public void validateFailedVMNotFound ( ) throws java.lang.Exception { mockNullVm ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getModel ( int index ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment model = super . getModel ( index ) ; model.setHostNic ( new org.ovirt.engine.api.model.HostNIC ( ) ) ; model.getHostNic ( ) . setId ( org.ovirt.engine.api.restapi.resource.BackendHostNicNetworkAttachmentResourceTest.HOST_NIC_ID.toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getModel ( int index ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment model = super . getModel ( index ) ; model.setHostNic ( new org.ovirt.engine.api.model.HostNic ( ) ) ; model.getHostNic ( ) . setId ( org.ovirt.engine.api.restapi.resource.BackendHostNicNetworkAttachmentResourceTest.HOST_NIC_ID.toString ( ) ) ; return model ; }
Source:
public void testExecuteQueryWithFilteringLUNsEnabled ( ) { org.ovirt.engine.core.bll.storage.GetDeviceListQueryTest.mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1 , true ) ; lunsExpected = java.util.Collections.emptyList ( ) ; internalExecuteQuery ( ) ; }

Target:
public void testExecuteQueryWithFilteringLUNsEnabled ( ) { mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1 , true ) ; lunsExpected = java.util.Collections.emptyList ( ) ; internalExecuteQuery ( ) ; }
Source:
public void canDoActionFailsBlockIso ( ) { sd.setStorageDomainType ( StorageDomainType.ISO ) ; sd.setStorageType ( StorageType.FCP ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_TYPE_ILLEGAL ) ; }

Target:
public void canDoActionFailsExportOnLocal ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DOMAIN_TYPE_CAN_BE_CREATED_ONLY_ON_SPECIFIC_STORAGE_DOMAINS ) ; }
Source:
public T Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) ;

Target:
public T convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) ;
Source:
protected abstract boolean showTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;

Target:
protected abstract boolean editTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
public void setElementType ( org.ovirt.api.metamodel.concepts.Type elementType ) { this . elementType = elementType ; }

Target:
public void setElementType ( org.ovirt.api.metamodel.concepts.Type elementType ) { this . elementType = elementType ; setModule ( elementType.getModule ( ) ) ; }
Source:
public void detachedClusterMovesToDcWithNonExistentManagementNetwork ( ) { managementNetworkNotFoundById ( ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; canDoActionFailedWithReason ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; }

Target:
public void detachedClusterMovesToDcWithNonExistentManagementNetwork ( ) { managementNetworkNotFoundById ( ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; canDoActionFailedWithReason ( EngineMessage.NETWORK_NOT_EXISTS ) ; }
Source:
protected org.ovirt.engine.api.model.BootProtocol map ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , org.ovirt.engine.api.model.BootProtocol params ) { return getMapper ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.class , org.ovirt.engine.api.model.BootProtocol.class ) . map ( ipv4BootProtocol , params ) ; }

Target:
protected org.ovirt.engine.api.model.BootProtocol map ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol ) { return org.ovirt.engine.api.restapi.types.Ipv4BootProtocolMapper.map ( ipv4BootProtocol ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDataProvider ( ) . getModel ( ) . getRemoveCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getRemoveCommand ( ) ; }
Source:
public void testDefaultPoolFlagIsNotSetInvalidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( true ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) . defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_SETTING_DEFAULT_MAC_POOL_IS_NOT_SUPPORTED ) ) ; }

Target:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( false ) ; org.junit.Assert.assertThat ( macPoolValidator.defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean isReadOnlyAware ( ) { return isAuthUrlAware ; }

Target:
public boolean isReadOnlyAware ( ) { return isReadOnlyAware ; }
Source:
public void testGetNumberOfImagesInExistingDomain ( ) { long numOfImages = dao.getNumberOfImagesInStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.Assert.assertEquals ( "Number of images on storage domain different than expected" , org.ovirt.engine.core.dao.StorageDomainDaoTest.NUMBER_OF_IMAGES_ON_EXISTING_DOMAIN , numOfImages ) ; }

Target:
public void testGetNumberOfImagesInExistingDomain ( ) { long numOfImages = dao.getNumberOfImagesInStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.StorageDomainDaoTest.NUMBER_OF_IMAGES_ON_EXISTING_DOMAIN , numOfImages , "Number of images on storage domain different than expected" ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
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.network.Network > ( ) ; } return source ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult protocolIsNotXmlrpc ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NOT_SUPPORTED_PROTOCOL_FOR_CLUSTER_VERSION ) . when ( ( ( org.ovirt.engine.core.common.businessentities.VdsProtocol.XML ) == ( host.getProtocol ( ) ) ) ) ; }

Target:
public static org.ovirt.engine.core.bll.validator.HostValidator createInstance ( org.ovirt.engine.core.common.businessentities.VDS host ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.validator.HostValidator ( host ) ) ; }
Source:
protected abstract boolean checkImageConfiguration ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) ;

Target:
protected abstract org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) ;
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 ) { onLogin ( loginModel ) ; }

Target:
public void execute ( ) { performBootstrap ( ) ; }
Source:
public static org.ovirt.engine.core.bll.ValidationResult.ValidationResultBuilder failWith ( org.ovirt.engine.core.common.errors.VdcBllMessages expectedError ) { return new org.ovirt.engine.core.bll.ValidationResult.ValidationResultBuilder ( expectedError ) ; }

Target:
public static org.ovirt.engine.core.bll.ValidationResult.ValidationResultBuilder failWith ( org.ovirt.engine.core.common.errors.VdcBllMessages expectedError , java.lang.String ... replacements ) { return new org.ovirt.engine.core.bll.ValidationResult.ValidationResultBuilder ( expectedError , replacements ) ; }
Source:
public java.lang.String changeCaseDisplay ( java.lang.String text ) { for ( java.lang.String s : org.ovirt.engine.core.compat.EnumCompat.GetNames ( org.ovirt.engine.core.compat.DayOfWeek.class ) ) { if ( org.ovirt.engine.core.compat.StringHelper.EqOp ( text , s ) ) { return text ; } } return text.toLowerCase ( ) ; }

Target:
public java.lang.String changeCaseDisplay ( java.lang.String text ) { try { if ( ( org.ovirt.engine.core.compat.DayOfWeek.valueOf ( text ) ) != null ) { return text ; } } catch ( java.lang.Exception e ) { } return text.toLowerCase ( ) ; }
Source:
private org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > createCommand ( org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters params ) { org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand ( params , null ) ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( command ) . getVdsDao ( ) ; return command ; }

Target:
public static void setUpClass ( ) { org.ovirt.engine.core.bll.hostdeploy.OVirtNodeInfo.clearInstance ( ) ; }
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status , org.ovirt.engine.core.common.businessentities.VmExitStatus exitStatus ) { InternalSetVmStatus ( vm , status , exitStatus , StringUtils.EMPTY , VmExitReason.Unknown ) ; }

Target:
public void internalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status , org.ovirt.engine.core.common.businessentities.VmExitStatus exitStatus ) { internalSetVmStatus ( vm , status , exitStatus , StringUtils.EMPTY , VmExitReason.Unknown ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) ) . contains ( UPGRADE_ERROR.VM_CPUS_PINNED ) ; }

Target:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_CPUS_PINNED ) ; }
Source:
public void replaceWithEmptyCollection ( ) { java.lang.String [ ] messageItems = org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , java.util.Collections.emptyList ( ) ) ; validateMessageContainsProperties ( messageItems ) ; }

Target:
public void replaceWithEmptyCollection ( ) { java.util.Collection < java.lang.String > replacements = org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , java.util.Collections.emptyList ( ) ) ; validateReplacementsContainsExpectedProperties ( replacements , java.util.Collections.emptyList ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase validate ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , commandContext ) . validateOnly ( ) ; }

Target:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase validate ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , commandContext ) . validateOnly ( ) ; }
Source:
private void writeStartElement ( java.lang.String tag ) { try { writer.writeStartElement ( tag ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new java.lang.IllegalStateException ( ( ( "Can\'t write start element for tag \"" + tag ) + "\"" ) , exception ) ; } }

Target:
private void writeTypeRef ( org.ovirt.api.metamodel.concepts.Type type ) { writer.writeElement ( "type" , getTypeRef ( type ) ) ; }
Source:
public boolean IsVmUp ( ) { switch ( getEntity ( ) . getstatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }

Target:
public boolean IsVmConnectReady ( ) { if ( getForceVmStatusUp ( ) ) { return ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ; } return IsVmUp ( ) ; }
Source:
public void setTitle ( java.lang.String title ) { this . title = title ; }

Target:
public void setTitle ( java.lang.String title ) { consoleOptions.setTitle ( title ) ; }
Source:
public void validate ( ) { mockVMPoolDao ( ) ; setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validate ( ) { mockVMPoolDao ( ) ; setupForStorageTests ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
public void testGetAllOfTypeWithUnrepresentedType ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllOfType ( VDSType.oVirtNode ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }

Target:
public void testGetVdsToRun ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getVdsToRun ( VDSType.VDS , new org.ovirt.engine.core.compat.Guid ( "b399944a-81ab-4ec5-8266-e19ba7c3c9d1" ) , VDSStatus.Up , 0 ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; pluginManager.enablePluginInvocation ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; pluginManager.enablePluginInvocation ( ) ; alertManager.setCanShowAlerts ( true ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.UserSession , org.ovirt.engine.ui.uicommonweb.models.SessionListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabSessionPresenter.constants.sessionMainTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.UserSession , org.ovirt.engine.ui.uicommonweb.models.SessionListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabSessionPresenter.constants.activeUserSessionMainTabLabel ( ) , 1 , modelProvider ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . dataCenterEventSubTabLabel ( ) , 5 , ginjector.getSubTabDataCenterEventModelProvider ( ) , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

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.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterEventSubTabLabel ( ) , 6 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getname ( ) ; }
Source:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveNetwork , new org.ovirt.engine.core.common.action.RemoveNetworkParameters ( guid ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { Test ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { Test ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { refreshTable ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { createTables ( model ) ; }
Source:
protected org.ovirt.engine.api.model.VM getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmStatistics.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.VM getEntity ( int index ) { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( vm , vm.getStatisticsData ( ) , index ) ; }
Source:
public void testPatternBasedNameFails ( ) { vmStatic.setName ( "aa-??bb" ) ; junit.framework.Assert.assertFalse ( "Pattern-based name should not be supported for VM" , command.validateInputs ( ) ) ; }

Target:
public void testPatternBasedNameFails ( ) { vmStatic.setName ( "aa-??bb" ) ; org.junit.Assert.assertFalse ( "Pattern-based name should not be supported for VM" , command.validateInputs ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.Iterator < org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel > lineModelIterator = orderedDisksIterator ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( returnValue ) ) , vm ) ; storeNextDisk ( lineModelIterator , vm ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { java.util.Iterator < org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel > lineModelIterator = orderedDisksIterator ( disks , vm ) ; storeNextDisk ( lineModelIterator , vm ) ; }
Source:
public native java.lang.String getUserAgentString ( ) ;

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.ClientConsoleMode getClientConsoleMode ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigValuePreConverted ( ConfigurationValues.ClientConsoleModeDefault ) ) ) ) ; }
Source:
public void setvm_pool_name ( java.lang.String value ) { this . name = value ; }

Target:
public void setvds_group_name ( java.lang.String value ) { this . vdsGroupName = value ; }
Source:
protected boolean isVDSGroupCompatible ( ) { if ( ( getVdsGroup ( ) . getArchitecture ( ) ) != ( getVmTemplate ( ) . getClusterArch ( ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_ARCHITECTURE_NOT_SUPPORTED_BY_CLUSTER ) ; return false ; } return true ; }

Target:
protected boolean isVDSGroupCompatible ( ) { if ( ( getVdsGroup ( ) . getArchitecture ( ) ) != ( getVmTemplate ( ) . getClusterArch ( ) ) ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_ARCHITECTURE_NOT_SUPPORTED_BY_CLUSTER ) ; return false ; } return true ; }
Source:
public org.ovirt.engine.core.common.businessentities.RepoImage getImageAsRepoImage ( java.lang.String id ) { org.ovirt.engine.core.common.businessentities.RepoImage repoImage = org.ovirt.engine.core.bll.provider.OpenstackImageProviderProxy.imageToRepoImage ( getClient ( ) . images ( ) . show ( id ) . execute ( ) ) ; repoImage.setLastRefreshed ( java.lang.System.currentTimeMillis ( ) ) ; return repoImage ; }

Target:
public org.ovirt.engine.core.common.businessentities.RepoImage getImageAsRepoImage ( java.lang.String id ) { org.ovirt.engine.core.common.businessentities.RepoImage repoImage = org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy.imageToRepoImage ( getClient ( ) . images ( ) . show ( id ) . execute ( ) ) ; repoImage.setLastRefreshed ( java.lang.System.currentTimeMillis ( ) ) ; return repoImage ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSStatus getprevious_status ( ) { return this . previous_status ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSStatus getPreviousStatus ( ) { return previousStatus ; }
Source:
private boolean applyChangesToHostsRequired ( ) { return ( ! ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . isExternal ( ) ) ) && ( setupNetworkSupported ( ) ) ; }

Target:
private boolean applyChangesToHostsRequired ( ) { return ( ! ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . isExternal ( ) ) ) && ( org.ovirt.engine.core.bll.network.cluster.NetworkHelper.setupNetworkSupported ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getStoragePool ( ) . getcompatibility_version ( ) ) ) ; }
Source:
protected void unlockSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.bll.VmCommand.getSnapshotDao ( ) . updateStatus ( snapshotId , Snapshot.SnapshotStatus.OK ) ; }

Target:
protected void unlockSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { snapshotDao.updateStatus ( snapshotId , Snapshot.SnapshotStatus.OK ) ; }
Source:
java.util.List < org.ovirt.engine.core.compat.Guid > getAllStorageDomainsByImageGroup ( org.ovirt.engine.core.compat.Guid imageGroupId ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > getAllStorageDomainsByImageId ( org.ovirt.engine.core.compat.Guid imageId ) ;
Source:
public int getVlanId ( ) { java.lang.Integer vlanId = getEntity ( ) . getvlan_id ( ) ; return vlanId == null ? 0 : vlanId ; }

Target:
public java.lang.String getName ( ) { return getEntity ( ) . getname ( ) ; }
Source:
public void testStorageDomainForMemoryIsValidOnlyForActiveStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus storageDomainStatus ) { storageDomain.setStatus ( storageDomainStatus ) ; org.junit.Assert.assertEquals ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) , ( storageDomainStatus == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ) ; }

Target:
public void testStorageDomainForMemoryIsValidOnlyForActiveStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus storageDomainStatus ) { storageDomain.setStatus ( storageDomainStatus ) ; org.junit.Assert.assertEquals ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) , ( storageDomainStatus == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ) ; }
Source:
private boolean doesHostSupportAnyCluster ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusterList , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusterList ) { if ( host.getSupportedClusterVersionsSet ( ) . contains ( cluster.getCompatibilityVersion ( ) ) ) { return true ; } } return false ; }

Target:
private boolean doesHostSupportAnyCluster ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusterList , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.Cluster cluster : clusterList ) { if ( host.getSupportedClusterVersionsSet ( ) . contains ( cluster.getCompatibilityVersion ( ) ) ) { return true ; } } return false ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Template.class , org.ovirt.engine.core.common.VdcObjectType.VmTemplate ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Template.class , org.ovirt.engine.core.common.VdcObjectType.VmTemplate ) ) ; }
Source:
public void setvm_mem_size_mb ( int value ) { this . mVmStatic.setmem_size_mb ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_mem_size_mb" ) ) ; }

Target:
public void setVmMemSizeMb ( int value ) { this . vmStatic.setMemSizeMb ( value ) ; }
Source:
protected org.ovirt.engine.api.model.GraphicsType asGraphicsType ( ) { java.lang.String consoleString = org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( consoleId ) ; org.ovirt.engine.api.model.GraphicsType type = org.ovirt.engine.api.model.GraphicsType.valueOf ( consoleString ) ; return getMappingLocator ( ) . getMapper ( org.ovirt.engine.api.model.GraphicsType.class , org.ovirt.engine.api.model.GraphicsType.class ) . map ( type , null ) ; }

Target:
protected org.ovirt.engine.api.model.GraphicsType asGraphicsType ( ) { java.lang.String consoleString = org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( consoleId ) ; org.ovirt.engine.api.model.GraphicsType type = org.ovirt.engine.api.model.GraphicsType.fromValue ( consoleString ) ; return getMappingLocator ( ) . getMapper ( org.ovirt.engine.api.model.GraphicsType.class , org.ovirt.engine.api.model.GraphicsType.class ) . map ( type , null ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult snapshotExists ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid snapshotId ) { return createSnapshotExistsResult ( getSnapshotDao ( ) . exists ( vmId , snapshotId ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult snapshotExists ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid snapshotId ) { return org.ovirt.engine.core.bll.snapshots.SnapshotsValidator.createSnapshotExistsResult ( getSnapshotDao ( ) . exists ( vmId , snapshotId ) ) ; }
Source:
private void assertBondRemoved ( org.ovirt.engine.core.bll.SetupNetworksHelper helper , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface expectedBond ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected bond '{0}' to be removed but it wasn't. Removed bonds: {1}" , expectedBond , helper.getRemovedBonds ( ) ) , helper.getRemovedBonds ( ) . contains ( expectedBond ) ) ; }

Target:
private void assertBondRemoved ( org.ovirt.engine.core.bll.SetupNetworksHelper helper , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface expectedBond ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected bond ''{0}'' to be removed but it wasn''t. Removed bonds: {1}" , expectedBond , helper.getRemovedBonds ( ) ) , helper.getRemovedBonds ( ) . contains ( expectedBond ) ) ; }
Source:
public static void GetAllVmTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.VdcQueryParametersBase params = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllVmTemplates , params , aQuery ) ; }

Target:
public static void getAllVmTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.VdcQueryParametersBase params = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllVmTemplates , params , aQuery ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : "" ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByVms ( ) { return new org.ovirt.engine.core.bll.network.cluster.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VM , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VMS ) . getNetworkInUse ( getEntitiesNames ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getVmStaticDao ( ) . getAllByGroupAndNetworkName ( networkCluster.getClusterId ( ) , network.getName ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByVms ( ) { return new org.ovirt.engine.core.bll.network.cluster.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VM , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VMS ) . getNetworkInUse ( getEntitiesNames ( vmStaticDao.getAllByGroupAndNetworkName ( networkCluster.getClusterId ( ) , network.getName ( ) ) ) ) ; }
Source:
public void nameInUse ( ) { createSimpleCommand ( ) ; createCommandWithDifferentName ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_DO_ACTION_NAME_IN_USE ) ; }

Target:
public void nameInUse ( ) { createSimpleCommand ( ) ; createCommandWithDifferentName ( ) ; canDoActionFailedWithReason ( EngineMessage.VDS_GROUP_CANNOT_DO_ACTION_NAME_IN_USE ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.updateNetworkAttachment ( getVdsGroupId ( ) , getNetworkCluster ( ) , getNetwork ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.attachNetwork ( getVdsGroupId ( ) , getNetworkCluster ( ) , getNetwork ( ) ) ; return null ; }
Source:
protected void setStatus ( ) { 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:
public void testNullConsoleUserNameWhenNoUserSet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertNull ( command.getConsoleUserName ( ) ) ; }

Target:
public void testNullConsoleUserNameWhenNoUserSet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; command.setCurrentUser ( user ) ; org.junit.jupiter.api.Assertions.assertNull ( command.getConsoleUserName ( ) ) ; }
Source:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public void testValidModifiedBonds_whenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , null , true , true ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsDynamic.getcpu_over_commit_time_stamp ( ) ; }

Target:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsStatistics.setcpu_over_commit_time_stamp ( value ) ; }
Source:
private void setWarningStatus ( java.lang.String message ) { statusPanel.setTextAndStyle ( message , style.warningPanel ( ) , style.warningLabel ( ) ) ; }

Target:
private void setWarningStatus ( java.lang.String message ) { keepStatusText = true ; statusPanel.setTextAndStyle ( message , style.warningPanel ( ) , style.warningLabel ( ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAllForUserAndGroups ( org.ovirt.engine.core.compat.Guid userId , java.lang.String groupIds ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAnyAdminRoleForUserAndGroups ( org.ovirt.engine.core.compat.Guid userId , java.lang.String groupIds ) ;
Source:
public void compensate ( ) { for ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters : enclosingCommand.getParameters ( ) . getParametersList ( ) ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( parameters.getImageGroupID ( ) , ImageStatus.OK ) ; } }

Target:
private void unlockAllDiskSnapshots ( ) { for ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters : enclosingCommand.getParameters ( ) . getParametersList ( ) ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( parameters.getImageGroupID ( ) , ImageStatus.OK ) ; } }
Source:
public native void InstallNatively ( ) ;

Target:
public native void installNatively ( ) ;