auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getVdsGroupNameDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String n = b.getVdsGroupName ( ) ; org.junit.Assert.assertEquals ( "" , n ) ; }

Target:
public void getClusterNameDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String n = b.getClusterName ( ) ; org.junit.Assert.assertEquals ( "" , n ) ; }
Source:
private boolean CanFindAnyVds ( java.util.List < java.lang.String > messages , boolean isMigrate ) { return CanFindVdsToRun ( messages , isMigrate , 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 } ) ) ; }

Target:
private boolean CanFindAnyVds ( java.util.List < java.lang.String > messages , boolean isMigrate ) { return CanFindVdsToRun ( messages , isMigrate , 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:
public java.lang.String getConsoleCurentUserName ( ) { return this . vmDynamic.getConsole_current_user_name ( ) ; }

Target:
public void setSingleQxlPci ( boolean value ) { this . vmStatic.setSingleQxlPci ( value ) ; }
Source:
public void testCanDoActionNonExistingStorageDomain ( ) { org.junit.Assert.assertFalse ( "canDoActtion shouldn't be possible for a non-existant storage domain" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessages ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }

Target:
public void testCanDoActionNonExistingStorageDomain ( ) { org.junit.Assert.assertFalse ( "canDoAction shouldn't be possible for a non-existent storage domain" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessages ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }
Source:
public void persistCommandWithoutContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , null , enableCallBack ) ; }

Target:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.EngineMessage message , java.lang.String ... variableReplacements ) { addCanDoActionMessage ( message ) ; for ( java.lang.String variableReplacement : variableReplacements ) { addCanDoActionMessage ( variableReplacement ) ; } return false ; }
Source:
public void differentDataCenter ( ) { qos.setStoragePoolId ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.DEFAULT_GUID ) ; oldQos.setStoragePoolId ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.OTHER_GUID ) ; consistentDataCenterTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_INVALID_DC_ID ) ) ; }

Target:
public void differentDataCenter ( ) { qos.setStoragePoolId ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.DEFAULT_GUID ) ; oldQos.setStoragePoolId ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.OTHER_GUID ) ; consistentDataCenterTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_QOS_STORAGE_POOL_NOT_CONSISTENT ) ) ; }
Source:
public void testValidName ( ) { prepareVmToPassCanDoAction ( ) ; boolean c = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , c ) ; }

Target:
public void testValidName ( ) { prepareVmToPassCanDoAction ( ) ; mockVmValidator ( ) ; boolean c = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , c ) ; }
Source:
public javax.ws.rs.core.Response extend ( org.ovirt.engine.api.model.Action action ) { return performAction ( VdcActionType.UploadImageStatus , prepareStatusParams ( null ) ) ; }

Target:
public javax.ws.rs.core.Response extend ( org.ovirt.engine.api.model.Action action ) { return performAction ( VdcActionType.TransferImageStatus , prepareStatusParams ( null ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName.equals ( "Title" ) ) { mountOptionsEditor.setTitle ( object.getMountOptions ( ) . getTitle ( ) ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { if ( args.propertyName.equals ( "Title" ) ) { mountOptionsEditor.setTitle ( object.getMountOptions ( ) . getTitle ( ) ) ; } }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.CreateCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.EndAction ( ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllCanDoPass , false ) ; }
Source:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = org.ovirt.engine.api.model.StorageDomainType.fromValue ( storageDomain.getType ( ) ) ; return ( type != null ) && ( type == ( org.ovirt.engine.api.model.StorageDomainType.ISO ) ) ? true : false ; }

Target:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = storageDomain.getstorage_domain_type ( ) ; return ( type != null ) && ( type == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.StorageDomainType ) ? true : false ; }
Source:
public void testIsNetworkInSyncWhenIpv6BootProtocolEqual ( ) { initIpv6ConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6GatewayBothNull ( ) { initIpv6ConfigurationStaticBootProtocol ( Ipv6BootProtocol.STATIC_IP ) ; ipv6Address.setGateway ( null ) ; iface.setIpv6Gateway ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testConvertFieldEnumValueToActualValue ( ) { org.junit.Assert.assertEquals ( "MACE" , "MACE" , comp.convertFieldEnumValueToActualValue ( "MACE" ) ) ; org.junit.Assert.assertEquals ( "mace" , "MACE" , comp.convertFieldEnumValueToActualValue ( "mace" ) ) ; }

Target:
public void testConvertFieldEnumValueToActualValue ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "MACE" , comp.convertFieldEnumValueToActualValue ( "MACE" ) , "MACE" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "MACE" , comp.convertFieldEnumValueToActualValue ( "mace" ) , "mace" ) ; }
Source:
public void enableColumnResizing ( ) { if ( ! ( showDefaultHeader ) ) { table.enableColumnResizing ( ) ; tableHeader.enableColumnResizing ( ) ; } }

Target:
public void enableColumnResizing ( ) { if ( isTableHeaderVisible ( ) ) { table.enableColumnResizing ( ) ; tableHeader.enableColumnResizing ( ) ; } }
Source:
public static < T > boolean objectsEqual ( T obj1 , T obj2 ) { if ( obj1 == null ) { return obj2 == null ; } else { return obj1.equals ( obj2 ) ; } }

Target:
public static org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity findBrick ( java.util.Collection < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity searchBrick ) { return org.ovirt.engine.core.common.utils.gluster.GlusterCoreUtil.findBrick ( bricks , searchBrick.getServerId ( ) , searchBrick.getBrickDirectory ( ) ) ; }
Source:
public void testGetAllFromDisksIncludingSnapshotsForUnprivilegedUserWithFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshots ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( "wrong number of returned disks" , 0 , result.size ( ) ) ; }

Target:
public void testGetAllFromDisksIncludingSnapshotsForUnprivilegedUserWithFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshots ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , result.size ( ) , "wrong number of returned disks" ) ; }
Source:
public void setdisplay_secure_port ( java.lang.Integer value ) { this . mVmDynamic.setdisplay_secure_port ( value ) ; }

Target:
public java.lang.Boolean getKvmEnable ( ) { return this . vmDynamic.getkvm_enable ( ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VM get ( ) { return adaptGet ( delegate :: get ) ; }

Target:
public javax.ws.rs.core.Response freezeFilesystems ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: freezeFilesystems , action ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkVmSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkVmPresenter.constants.networkVmSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { consoleModelsCache.updateVmCache ( value ) ; super . setItems ( value ) ; }

Target:
public void setItems ( java.util.Collection value ) { consoleModelsCache.updateVmCache ( value ) ; super . setItems ( value ) ; }
Source:
protected void addErrorMessages ( org.ovirt.engine.core.common.errors.EngineMessage messageActionTypeParameter , org.ovirt.engine.core.common.errors.EngineMessage messageReason ) { addCanDoActionMessage ( EngineMessage.VAR__TYPE__BOOKMARK ) ; addCanDoActionMessage ( messageActionTypeParameter ) ; addCanDoActionMessage ( messageReason ) ; }

Target:
protected void addErrorMessages ( org.ovirt.engine.core.common.errors.EngineMessage messageActionTypeParameter , org.ovirt.engine.core.common.errors.EngineMessage messageReason ) { addValidationMessage ( EngineMessage.VAR__TYPE__BOOKMARK ) ; addValidationMessage ( messageActionTypeParameter ) ; addValidationMessage ( messageReason ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return runActionImpl ( actionType , parameters , true , context ) ; }

Target:
public org.ovirt.engine.core.common.action.ActionReturnValue runInternalAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return runActionImpl ( actionType , parameters , true , context ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setBricks ( getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( org.ovirt.engine.core.common.businessentities.ImageStatus status ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; disk.setimageStatus ( status ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( org.ovirt.engine.core.common.businessentities.ImageStatus status ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; disk.setImageStatus ( status ) ; return disk ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.ServiceInfo entity ) { return java.lang.String.valueOf ( entity.getPid ( ) ) ; }

Target:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService entity ) { return java.lang.String.valueOf ( entity.getPid ( ) ) ; }
Source:
public void updateUsbFilter ( ) { fetchFile ( ( ( getSpiceBaseURL ( ) ) + "consoles/spice/usbfilter.txt" ) , usbFilterFileFetchedEvent ) ; }

Target:
public void updateUsbFilter ( ) { fetchFile ( ( ( getSpiceBaseURL ( ) ) + "usbfilter.txt" ) , usbFilterFileFetchedEvent ) ; }
Source:
public void execute ( ) { placeManager.revealPlace ( new com.gwtplatform.mvp.shared.proxy.PlaceRequest.Builder ( ) . nameToken ( placeToken ) . build ( ) ) ; }

Target:
public void execute ( ) { placeManager.revealPlace ( new com.gwtplatform.mvp.client.proxy.PlaceRequest.Builder ( ) . nameToken ( historyToken ) . build ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return new org.ovirt.engine.core.bll.validator.RunVmValidator ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) , org.ovirt.engine.core.bll.RunVmCommand.isInternalExecution ( ) , getActiveIsoDomainId ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.validator.RunVmValidator ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) , org.ovirt.engine.core.bll.RunVmCommand.isInternalExecution ( ) , getActiveIsoDomainId ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage map ( org.ovirt.engine.api.model.Disk entity , org.ovirt.engine.core.common.businessentities.DiskImage template ) { return ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getMapper ( org.ovirt.engine.api.model.Disk.class , org.ovirt.engine.api.model.Disk.class ) . map ( entity , template ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage map ( org.ovirt.engine.api.model.Disk entity , org.ovirt.engine.core.common.businessentities.storage.DiskImage template ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getMapper ( org.ovirt.engine.api.model.Disk.class , org.ovirt.engine.api.model.Disk.class ) . map ( entity , template ) ) ) ; }
Source:
public void checkKeyValuePairBadSeparator ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "a-a" ) ; org.junit.Assert.assertEquals ( failureValidationResultEmptyNotAllowed , validationResult ) ; }

Target:
public void checkKeyValuePairBadSeparator ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "a-a" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllJobsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllJobsQuery.getDbFacade ( ) . getJobDao ( ) . getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllJobsQuery.getQueryReturnValue ( ) . setReturnValue ( jobDao.getAll ( ) ) ; }
Source:
private void verifyActionResponse ( javax.ws.rs.core.Response r ) throws java.lang.Exception { verifyActionResponse ( r , ( ( ( "vms/" + ( org.ovirt.engine.api.restapi.resource.AbstractBackendDisksResourceTest.PARENT_ID ) ) + "/disks/" ) + ( org.ovirt.engine.api.restapi.resource.AbstractBackendDisksResourceTest.PARENT_ID ) ) , false ) ; }

Target:
private void verifyActionResponse ( javax.ws.rs.core.Response r ) throws java.lang.Exception { verifyActionResponse ( r , ( ( ( "vms/" + ( org.ovirt.engine.api.restapi.resource.BackendVmDiskResourceTest.VM_ID ) ) + "/disks/" ) + ( org.ovirt.engine.api.restapi.resource.BackendVmDiskResourceTest.DISK_ID ) ) , false ) ; }
Source:
private java.lang.String getPrincipalName ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , false ) ) ) ; }

Target:
public java.lang.String getUserName ( java.lang.String sessionId ) { return java.lang.String.format ( "%s@%s" , getPrincipalName ( sessionId ) , ( ( getProfile ( sessionId ) ) != null ? getProfile ( sessionId ) . getName ( ) : "N/A" ) ) ; }
Source:
public void validateWithPinnedHostOnVm ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.assertj.core.api.Assertions.assertThat ( command.validate ( ) ) . isTrue ( ) ; }

Target:
public void validateWithPinnedHostOnVm ( ) { mockCommandWithVmFromDb ( ) ; org.assertj.core.api.Assertions.assertThat ( command.validate ( ) ) . isTrue ( ) ; }
Source:
protected void setDetails ( javax.servlet.http.HttpServletRequest request , org.springframework.security.providers.UsernamePasswordAuthenticationToken authRequest ) { authRequest.setDetails ( authenticationDetailsSource.buildDetails ( request ) ) ; }

Target:
protected void setDetails ( javax.servlet.http.HttpServletRequest request , org.springframework.security.authentication.UsernamePasswordAuthenticationToken authRequest ) { authRequest.setDetails ( authenticationDetailsSource.buildDetails ( request ) ) ; }
Source:
public java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { long usedDiskSize = ( ( object.getused_disk_size ( ) ) != null ) ? object.getused_disk_size ( ) : 0 ; return ( ( long ) ( usedDiskSize ) ) ; }

Target:
public java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { long usedDiskSize = ( ( object.getUsedDiskSize ( ) ) != null ) ? object.getUsedDiskSize ( ) : 0 ; return ( ( long ) ( usedDiskSize ) ) ; }
Source:
public void setvm_ip ( java.lang.String value ) { this . vm_ip = value ; }

Target:
public java.lang.Integer getVmPid ( ) { return this . vmPid ; }
Source:
public static org.ovirt.engine.ui.frontend.ErrorTranslator getAppErrorsTranslator ( ) { return org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator ; }

Target:
public static org.ovirt.engine.ui.frontend.ErrorTranslator getAppErrorsTranslator ( ) { if ( ( org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator ) == null ) { org.ovirt.engine.ui.frontend.Frontend.setAppErrorsTranslator ( new org.ovirt.engine.ui.frontend.ErrorTranslator ( ( ( org.ovirt.engine.ui.frontend.AppErrors ) ( com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.frontend.AppErrors.class ) ) ) ) ) ; } return org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator ; }
Source:
public void setFocus ( boolean focused ) { asSuggestBox ( ) . setFocus ( focused ) ; }

Target:
public void setFocus ( boolean focused ) { asSuggestBox ( ) . getValueBox ( ) . setFocus ( focused ) ; }
Source:
public void testGetByNameAndVersionWithInvalidVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getoption_name ( ) , "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameAndVersionWithInvalidVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getOptionName ( ) , "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void setstorage_name ( java.lang.String value ) { name = value ; }

Target:
public void setStorageName ( java.lang.String name ) { this . name = name ; }
Source:
public static org.ovirt.engine.core.compat.Guid createGuidFromStringDefaultEmpty ( java.lang.String candidate ) { if ( candidate == null ) { return org.ovirt.engine.core.compat.Guid.Empty ; } return new org.ovirt.engine.core.compat.Guid ( candidate ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid createGuidFromStringDefaultEmpty ( java.lang.String candidate ) { return org.ovirt.engine.core.compat.Guid.createGuidFromStringWithDefault ( candidate , org.ovirt.engine.core.compat.Guid.Empty ) ; }
Source:
public void setUp ( ) { base = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; }

Target:
public void setUp ( ) { base = new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ; }
Source:
public org.ovirt.engine.api.model.HostDevice lookupEntity ( java.lang.Void ignored ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { for ( org.ovirt.engine.api.model.HostDevice device : getCollection ( ) ) { if ( device.getDeviceName ( ) . equals ( deviceName ) ) { return device ; } } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.HostDeviceView lookupEntity ( java.lang.Void ignored ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { for ( org.ovirt.engine.core.common.businessentities.HostDeviceView device : getCollection ( ) ) { if ( device.getDeviceName ( ) . equals ( deviceName ) ) { return device ; } } return null ; }
Source:
public org.ovirt.engine.core.common.businessentities.ServerCpu findMaxServerCpuByFlags ( java.lang.String flags , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.findMaxServerCpuByFlags ( flags ) ; } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.ServerCpu findMaxServerCpuByFlags ( java.lang.String flags , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler.managersDictionary.get ( ver ) ; return cpuFlagsManager != null ? cpuFlagsManager.findMaxServerCpuByFlags ( flags ) : null ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionCreate ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String remoteUserName , java.lang.Boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public org.ovirt.engine.api.resource.ActionResource getActionResource ( java.lang.String action ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , "" ) ) ; }

Target:
public org.ovirt.engine.api.resource.ActionResource getActionResource ( java.lang.String action , java.lang.String oid ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , oid ) ) ; }
Source:
public void testGetNetworkDiskTypeForV42 ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setClusterCompatibilityVersion ( Version.v4_2 ) ; vm.setClusterId ( org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuildUtilsTest.CLUSTER_ID ) ; org.junit.Assert.assertEquals ( VdsProperties.NETWORK , underTest.getNetworkDiskType ( vm , StorageType.GLUSTERFS ) . get ( ) ) ; }

Target:
public void testGetNetworkDiskTypeForV42 ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setClusterCompatibilityVersion ( Version.v4_2 ) ; vm.setClusterId ( org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuildUtilsTest.CLUSTER_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( VdsProperties.NETWORK , underTest.getNetworkDiskType ( vm , StorageType.GLUSTERFS ) . get ( ) ) ; }
Source:
public void testLoadOverridingFiles ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( false , OsInfoPreferencesLoader.INSTANCE.getPreferences ( ) . node ( "/os/default/spiceSupport" ) . getBoolean ( "value" , true ) ) ; }

Target:
public void testLoadOverridingFiles ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "qxl/qxl" , OsInfoPreferencesLoader.INSTANCE.getPreferences ( ) . node ( "/os/default/devices/display/protocols" ) . get ( "value" , "qxl/qxl" ) ) ; }
Source:
public void setElapsedTime ( java.lang.Double value ) { this . elapsed_timeField = value ; setRoundedElapsedTime ( value ) ; }

Target:
public void setElapsedTime ( java.lang.Double elapsedTime ) { this . elapsedTime = elapsedTime ; setRoundedElapsedTime ( elapsedTime ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; java.util.List < org.ovirt.engine.sdk4.types.Vm > vms = vmsService.list ( ) . send ( ) . vms ( ) ; for ( org.ovirt.engine.sdk4.types.Vm vm : vms ) { java.lang.System.out.printf ( "%s: %s" , vm.name ( ) , vm.id ( ) ) ; } connection.close ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; java.util.List < org.ovirt.engine.sdk4.types.Vm > vms = vmsService.list ( ) . send ( ) . vms ( ) ; for ( org.ovirt.engine.sdk4.types.Vm vm : vms ) { java.lang.System.out.printf ( "%s: %s\n" , vm.name ( ) , vm.id ( ) ) ; } connection.close ( ) ; }
Source:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
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 ) { updatePmModels ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; initSpmPriorities1 ( ) ; }
Source:
public void macAddressEmptyForCreate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( "" , org.ovirt.engine.core.common.validation.group.CreateEntity.class , false ) ; }

Target:
public void macAddressFormatValidForCreate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , org.ovirt.engine.core.common.validation.group.CreateEntity.class , false ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( disksList ) ) ; }

Target:
protected void unlockSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.bll.VmCommand.getSnapshotDao ( ) . updateStatus ( snapshotId , Snapshot.SnapshotStatus.OK ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , VdcBllMessages.VAR__ENTITIES__VMS , VdcBllMessages.VAR__ENTITIES__VM ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , EngineMessage.VAR__ENTITIES__VMS , EngineMessage.VAR__ENTITIES__VM ) ; }
Source:
public void testGetNetworkAttachmentByNicIdAndNetworkId ( ) { final org.ovirt.engine.core.compat.Guid nicId = org.ovirt.engine.core.dao.FixturesTool.VDS_NETWORK_INTERFACE2 ; final org.ovirt.engine.core.compat.Guid networkId = org.ovirt.engine.core.dao.FixturesTool.NETWORK_ENGINE_2 ; final org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachmentByNicIdAndNetworkId = dao.getNetworkAttachmentByNicIdAndNetworkId ( nicId , networkId ) ; org.junit.Assert.assertNotNull ( networkAttachmentByNicIdAndNetworkId ) ; assertNetworkAttachmentEquals ( networkAttachmentFromFixtures ( ) , networkAttachmentByNicIdAndNetworkId ) ; }

Target:
public void testGetNetworkAttachmentByNicIdAndNetworkId ( ) { final org.ovirt.engine.core.compat.Guid nicId = org.ovirt.engine.core.dao.FixturesTool.VDS_NETWORK_INTERFACE2 ; final org.ovirt.engine.core.compat.Guid networkId = org.ovirt.engine.core.dao.FixturesTool.NETWORK_ENGINE_2 ; final org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachmentByNicIdAndNetworkId = dao.getNetworkAttachmentByNicIdAndNetworkId ( nicId , networkId ) ; org.junit.jupiter.api.Assertions.assertNotNull ( networkAttachmentByNicIdAndNetworkId ) ; assertNetworkAttachmentEquals ( networkAttachmentFromFixtures ( ) , networkAttachmentByNicIdAndNetworkId ) ; }
Source:
private void initTabAvailabilityListeners ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vm ) { highAvailabilityTab.setVisible ( false ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; allowConsoleReconnectEditor.setVisible ( true ) ; }

Target:
private void initTabAvailabilityListeners ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vm ) { highAvailabilityTab.setVisible ( false ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; allowConsoleReconnectEditor.setVisible ( true ) ; expander.setVisible ( true ) ; }
Source:
public org.ovirt.engine.api.resource.ClusterNetworksResource getNetworksResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworksResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedNetworksResource getNetworksResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworksResource ( id ) ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion > getExternalSubnetIpVerionList ( ) { return java.util.Arrays.asList ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion.values ( ) ) ; }

Target:
public static boolean isMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.MixedDomainTypesInDataCenter , version.toString ( ) ) ) ) ; }
Source:
public static boolean isMatch ( java.lang.String string , java.lang.String expression , org.ovirt.engine.core.compat.RegexOptions options ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public static boolean isMatch ( java.lang.String string , java.lang.String expression , org.ovirt.engine.core.compat.RegexOptions options ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget , int index ) { getView ( ) . addTabWidget ( tabWidget , index ) ; }

Target:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { getView ( ) . addTabWidget ( tabWidget , index ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid clusterPolicyId ) { return getVdsGroupDao ( ) . getClustersByClusterPolicyId ( clusterPolicyId ) ; }

Target:
private void lockCluster ( org.ovirt.engine.core.compat.Guid cluster ) throws java.lang.InterruptedException { clusterLockMap.get ( cluster ) . acquire ( ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.gluster.CreateBrickModel object ) { deviceTable.asEditor ( ) . edit ( object.getStorageDevices ( ) ) ; driver.edit ( object ) ; deviceSelectionInfo.setText ( null ) ; setDeviceInfoVisibility ( false ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.gluster.CreateBrickModel object ) { deviceTable.asEditor ( ) . edit ( object.getStorageDevices ( ) ) ; driver.edit ( object ) ; deviceSelectionInfo.setText ( null ) ; setRaidParamsVisibility ( false ) ; }
Source:
public void updateSingleQxl ( boolean visible ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setIsAvailable ( visible ) ; }

Target:
public void enableSinglePCI ( boolean enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setIsChangable ( enabled ) ; getModel ( ) . getIsSingleQxlEnabled ( ) . setEntity ( enabled ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser initUser ( ) { return org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . getUser ( engineContext.getSessionId ( ) , parameters.getRefresh ( ) ) ; }

Target:
org.ovirt.engine.core.bll.aaa.SessionDataContainer getSessionDataContainer ( ) { return org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) ; }
Source:
protected void SyncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VM ) ; tempVar.setRefresh ( getIsQueryFirstTime ( ) ) ; super . SyncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public void managementNetworkAttachmentValid ( ) throws java.lang.Exception { networkCluster.setRequired ( true ) ; org.junit.Assert.assertThat ( validator.managementNetworkAttachment ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void managementNetworkAttachmentValid ( ) throws java.lang.Exception { org.mockito.Mockito.when ( networkCluster.isRequired ( ) ) . thenReturn ( java.lang.Boolean.TRUE ) ; org.junit.Assert.assertThat ( validator.managementNetworkAttachment ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void vnicProfileNameTakenBySameVnicProfile ( ) throws java.lang.Exception { vnicProfileAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , getSingletonNamedVnicProfileList ( DEFAULT_VNIC_PROFILE_NAME , DEFAULT_GUID ) ) ; }

Target:
public void networkChanged ( ) throws java.lang.Exception { mockVnicProfileNetworkChange ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }

Target:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }
Source:
public void execute ( ) { selectionModel.setSelected ( table.getVisibleItems ( ) . get ( 0 ) , true ) ; }

Target:
public void execute ( ) { if ( ( table.getVisibleItemCount ( ) ) > 0 ) { selectionModel.setSelected ( table.getVisibleItems ( ) . get ( 0 ) , true ) ; } }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__UPDATE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__UPDATE ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__HOST ) ; }
Source:
private void addFeatureVirtioScsi ( org.ovirt.engine.api.model.Features features ) { org.ovirt.engine.api.model.Feature feature = new org.ovirt.engine.api.model.Feature ( ) ; feature.setName ( "Virtio-SCSI Support" ) ; feature.setDescription ( "Support for paravirtualized SCSI controller device." ) ; features.getFeature ( ) . add ( feature ) ; }

Target:
private void addFeatureVirtioScsi ( org.ovirt.engine.api.model.Features features ) { org.ovirt.engine.api.model.Feature feature = new org.ovirt.engine.api.model.Feature ( ) ; feature.setName ( "VirtIO-SCSI Support" ) ; feature.setDescription ( "Support for paravirtualized SCSI controller device." ) ; features.getFeature ( ) . add ( feature ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getCommand ( ) . getDiskDao ( ) . get ( getDiskId ( ) ) ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand < org.ovirt.engine.core.common.action.UpdateVmDiskParameters > command ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( command.getDiskDao ( ) . get ( getDiskId ( command ) ) ) ) ; }
Source:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldDetectIndicesNotStartingWithZero ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 2 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 3 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_NON_CONTINUOUS_INDEX ) ; }
Source:
public void setguest_last_login_time ( java.util.Date value ) { this . mVmDynamic.setguest_last_login_time ( value ) ; }

Target:
public void setMigratingToVds ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setmigrating_to_vds ( value ) ; }
Source:
public void setTemplate ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( template , value ) ) ) { template = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Template" ) ) ; } }

Target:
public void setTemplate ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( template , value ) ) ) { template = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Template" ) ) ; } }
Source:
protected org.ovirt.engine.core.bll.snapshots.SnapshotsValidator createSnapshotsValidator ( ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsValidator ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.action.LiveMigrateVmDisksParameters > getLiveMigrateVmDisksParametersList ( ) { return liveMigrateVmDisksParametersList ; }
Source:
public void setIsDisksAvailable ( boolean value ) { if ( ( isDisksAvailable ) != value ) { isDisksAvailable = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsDisksAvailable" ) ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel getVncKeyboardLayout ( ) { return vncKeyboardLayout ; }
Source:
private void consoleAddressChanged ( ) { boolean enabled = getConsoleAddressEnabled ( ) . getEntity ( ) ; getConsoleAddress ( ) . setIsChangable ( enabled ) ; }

Target:
private void consoleAddressChanged ( ) { boolean enabled = getConsoleAddressEnabled ( ) . getEntity ( ) ; getConsoleAddress ( ) . setIsChangeable ( enabled ) ; }
Source:
public java.lang.Void call ( ) { disconnect ( message ) ; return null ; }

Target:
public java.lang.Void call ( ) { disconnect ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.CLIENT_CLOSED ) ; return null ; }
Source:
protected void onUpdateDocumentationBaseURL ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "UserPortalDocumentationPath.csv" ) , documentationFileFetchedEvent ) ; }

Target:
protected void fetchDocumentationFile ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "UserPortalDocumentationPath.csv" ) , documentationFileFetchedEvent ) ; }
Source:
public void testInitServletConfig_NoInitParams ( ) throws javax.servlet.ServletException { testServlet.init ( mockConfig ) ; org.junit.Assert.fail ( "Should not get here" ) ; }

Target:
public void testInitServletConfig_NoInitParams ( ) { org.junit.jupiter.api.Assertions.assertThrows ( javax.servlet.ServletException.class , ( ) -> testServlet.init ( mockConfig ) ) ; }
Source:
public void testGetEntityNameByIdAndTypeForCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = clusterDao.get ( org.ovirt.engine.core.dao.EntityDaoImplTest.CLUSTER_ID ) ; org.junit.Assert.assertNotNull ( cluster ) ; java.lang.String name = cluster.getName ( ) ; org.junit.Assert.assertEquals ( name , underTest.getEntityNameByIdAndType ( org.ovirt.engine.core.dao.EntityDaoImplTest.CLUSTER_ID , VdcObjectType.Cluster ) ) ; }

Target:
public void testGetEntityNameByIdAndTypeForCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = clusterDao.get ( FixturesTool.CLUSTER ) ; org.junit.Assert.assertNotNull ( cluster ) ; java.lang.String name = cluster.getName ( ) ; org.junit.Assert.assertEquals ( name , underTest.getEntityNameByIdAndType ( FixturesTool.CLUSTER , VdcObjectType.Cluster ) ) ; }
Source:
protected abstract void postCopyOrMoveInit ( ) ;

Target:
protected abstract java.lang.String getNoActiveTargetDomainMessage ( ) ;
Source:
private boolean isMemoryRemovable ( ) { return ( ( snapshotDao.getNumOfSnapshotsByMemory ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getMemoryVolumes ( ) ) ) == 1 ) || ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . isForceRemove ( ) ) ; }

Target:
private boolean isMemoryRemovable ( ) { return ( ( snapshotDao.getNumOfSnapshotsByDisks ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getSnapshot ( ) ) ) == 1 ) || ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . isForceRemove ( ) ) ; }
Source:
private boolean isTypeTenantAware ( ) { org.ovirt.engine.core.common.businessentities.ProviderType type = getType ( ) . getSelectedItem ( ) ; return ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_IMAGE ) ) ; }

Target:
private boolean isTypeTenantOrAuthUrlAware ( ) { org.ovirt.engine.core.common.businessentities.ProviderType type = getType ( ) . getSelectedItem ( ) ; return ( ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_IMAGE ) ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_VOLUME ) ) ; }