auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isNewerThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return ( getVersion ( ) . compareTo ( os.getVersion ( ) ) ) > 0 ; }

Target:
public boolean isNewerThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return getVersion ( ) . greater ( os.getVersion ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Network get ( ) { return performGet ( VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.api.model.Network entity = getNetwork ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }
Source:
public static boolean hasCdDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getCdDevices ( vmId ) . isEmpty ( ) ) ; }

Target:
public boolean hasSoundDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( getSoundDevices ( vmId ) . isEmpty ( ) ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { if ( ( this . mVdsDynamic.getstatus ( ) ) != value ) { this . mVdsDynamic.setstatus ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "status" ) ) ; } }

Target:
public java.lang.String getlibvirt_version ( ) { return this . mVdsDynamic.getlibvirt_version ( ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.addCustomValue ( "DiskAlias" , getImageAlias ( ) ) ; return ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getActionState ( ) ) == ( org.ovirt.engine.core.bll.CommandActionState.EXECUTE ) ? org.ovirt.engine.core.common.AuditLogType.UPLOAD_IMAGE_INITIATED : org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . getAuditLogType ( ) ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.addCustomValue ( "DiskAlias" , getImageAlias ( ) ) ; return ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getActionState ( ) ) == ( org.ovirt.engine.core.bll.CommandActionState.EXECUTE ) ? org.ovirt.engine.core.common.AuditLogType.TRANSFER_IMAGE_INITIATED : org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getAuditLogType ( ) ; }
Source:
private java.lang.String createShortMacAddress ( ) { return org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.substring ( ( ( random.nextInt ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.length ( ) ) - 2 ) ) ) + 1 ) ) ; }

Target:
private java.lang.String createShortMacAddress ( ) { return org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.substring ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.random.nextInt ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.length ( ) ) - 2 ) ) ) + 1 ) ) ; }
Source:
private boolean networkNotAttachedToCluster ( ) { if ( networkExists ( ) ) { return failCanDoAction ( VdcBllMessages.NETWORK_ALREADY_ATTACHED_TO_CLUSTER ) ; } return true ; }

Target:
private boolean networkNotAttachedToCluster ( ) { if ( networkExists ( ) ) { return failCanDoAction ( EngineMessage.NETWORK_ALREADY_ATTACHED_TO_CLUSTER ) ; } return true ; }
Source:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper.NetworkType determineNetworkType ( java.lang.Integer vlanId , boolean vmNetwork ) { return vlanId != null ? org.ovirt.engine.core.bll.network.host.SetupNetworksHelper.NetworkType.VLAN : vmNetwork ? org.ovirt.engine.core.bll.network.host.SetupNetworksHelper.NetworkType.VM : org.ovirt.engine.core.bll.network.host.SetupNetworksHelper.NetworkType.NON_VM ; }

Target:
private org.ovirt.engine.core.bll.validator.network.NetworkType determineNetworkType ( java.lang.Integer vlanId , boolean vmNetwork ) { return vlanId != null ? org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN : vmNetwork ? org.ovirt.engine.core.bll.validator.network.NetworkType.VM : org.ovirt.engine.core.bll.validator.network.NetworkType.NON_VM ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { helpCommand.Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { helpCommand.execute ( ) ; }
Source:
public java.lang.String getVdsGroupName ( ) { if ( ( getVdsGroup ( ) ) != null ) { return getVdsGroup ( ) . getName ( ) ; } return "" ; }

Target:
public java.lang.String getClusterName ( ) { if ( ( getCluster ( ) ) != null ) { return getCluster ( ) . getName ( ) ; } return "" ; }
Source:
public void testIpv4AddressNegative ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( "1.2.3.4" ) . test ( "1.2.3.5" ) ) ; }

Target:
public void testIpv4AddressNegative ( ) { org.junit.jupiter.api.Assertions.assertFalse ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( "1.2.3.4" ) . test ( "1.2.3.5" ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getAllInterfaces ( ) { return dbFacade.getVmNetworkInterfaceDao ( ) . getAllForVm ( org.ovirt.engine.core.dao.network.VmNetworkStatisticsDaoTest.VM_ID ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getAllInterfaces ( ) { return vmNetworkInterfaceDao.getAllForVm ( org.ovirt.engine.core.dao.network.VmNetworkStatisticsDaoTest.VM_ID ) ; }
Source:
public void canDoAction_vdsGroupNull_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getVdsGroup ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_CLUSTER_FOR_AFFINITY_GROUP ) ; }

Target:
public void validate_vdsGroupNull_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getVdsGroup ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_CLUSTER_FOR_AFFINITY_GROUP ) ; }
Source:
public java.lang.String render ( java.util.Date object ) { return org.ovirt.engine.ui.webadmin.widget.renderer.GeneralDateTimeRenderer.format.format ( object ) ; }

Target:
public java.lang.String render ( java.util.Date object ) { if ( object != null ) { return org.ovirt.engine.ui.webadmin.widget.renderer.GeneralDateTimeRenderer.format.format ( object ) ; } return "" ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , mockNetworkExclusivenessValidatorResolver , mockNetworkAttachmentIpConfigurationValidator , new org.ovirt.engine.core.bll.network.host.UnmanagedNetworkValidator ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , networkClusterDaoMock , networkDaoMock , vdsDaoMock , findActiveVmsUsingNetwork , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , mockNetworkExclusivenessValidatorResolver , mockNetworkAttachmentIpConfigurationValidator , new org.ovirt.engine.core.bll.network.host.UnmanagedNetworkValidator ( ) ) ; }
Source:
private void waitForConnect ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { try { this . connected.await ( policy.getRetryTimeOut ( ) , policy.getTimeUnit ( ) ) ; } catch ( java.lang.InterruptedException e ) { disconnect ( ) ; throw new java.lang.IllegalStateException ( "Communication interrupted" ) ; } }

Target:
private void waitForConnect ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { try { this . connected.await ( policy.getRetryTimeOut ( ) , policy.getTimeUnit ( ) ) ; } catch ( java.lang.InterruptedException e ) { disconnect ( "Waiting for connect interrupted" ) ; throw new java.lang.IllegalStateException ( "Communication interrupted" ) ; } }
Source:
private void handleFinishedFailure ( ) { log.error ( "Upload to failed" , getUploadDescription ( ) ) ; setCommandStatus ( CommandStatus.FAILED ) ; }

Target:
private void handleFinishedFailure ( ) { log.error ( "Transfer failed. {}" , getTransferDescription ( ) ) ; setCommandStatus ( CommandStatus.FAILED ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private void setSubnetIpVersion ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion > subnetIpVersion ) { this . subnetIpVersion = subnetIpVersion ; }

Target:
private void setSubnetModel ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalSubnetModel subnetModel ) { this . subnetModel = subnetModel ; }
Source:
public void macAddressFormatValidForUpdate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , false ) ; }

Target:
public void macAddressFormatValidForUpdate ( ) 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.UpdateEntity.class , false ) ; }
Source:
void disable ( java.util.List < java.lang.String > disabilityHints ) ;

Target:
void disable ( java.lang.String disabilityHint ) ;
Source:
public boolean canOpenRDPConsole ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) ;

Target:
public java.lang.String getRemapCtrlAltDelHotkey ( ) ;
Source:
public void testDumpRepoToString ( ) { java.lang.String actual = OsRepositoryImpl.INSTANCE.toString ( ) ; java.lang.String expected = OsRepositoryImpl.INSTANCE.name ( ) ; junit.framework.Assert.assertNotSame ( expected , actual ) ; java.lang.System.out.println ( actual ) ; }

Target:
public void testDumpRepoToString ( ) { java.lang.String actual = OsRepositoryImpl.INSTANCE.toString ( ) ; java.lang.String expected = OsRepositoryImpl.INSTANCE.name ( ) ; org.junit.Assert.assertNotSame ( expected , actual ) ; java.lang.System.out.println ( actual ) ; }
Source:
public void testSave ( ) { dao.save ( newStaticDomain ) ; org.ovirt.engine.core.common.businessentities.storage_domain_static result = dao.get ( newStaticDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }

Target:
public void testSave ( ) { dao.save ( newStaticDomain ) ; org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.get ( newStaticDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }
Source:
public void validateVmMemoryCanRunOnVds ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCanRunOnVds ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
private void initDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = mockDiskImage ( diskImageId ) ; org.mockito.Mockito.when ( diskImageDao.get ( diskImageId ) ) . thenReturn ( diskImage ) ; }

Target:
private void initDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = mockDiskImage ( diskImageId ) ; org.mockito.Mockito.when ( diskImageDao.get ( diskImageId ) ) . thenReturn ( diskImage ) ; }
Source:
public static java.lang.String createSetVariableString ( java.lang.String propertyName , java.lang.Object value ) { return java.text.MessageFormat.format ( org.ovirt.engine.core.utils.ReplacementUtils.SET_VARIABLE_VALUE_FORMAT , propertyName , value ) ; }

Target:
public static java.lang.String createSetVariableString ( java.lang.String propertyName , java.lang.Object value ) { final java.lang.String setVariableValueFormat = "$%s %s" ; return java.lang.String.format ( setVariableValueFormat , propertyName , value ) ; }
Source:
public int getTasksCountCurrentActionType ( ) { int returnValue = 0 ; synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = GetCurrentActionTypeTasks ( ) ; returnValue = CurrentActionTypeTasks.size ( ) ; } return returnValue ; }

Target:
public void Repoll ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.setState ( AsyncTaskState.Ended ) ; } } }
Source:
public void testGetWithNonExistingId ( ) { org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter parameter = new org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter ( ) ; parameter.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; parameter.setName ( "IP" ) ; parameter.setValue ( "192.168.122.2" ) ; parameter.setVmInterfaceId ( FixturesTool.VM_NETWORK_INTERFACE ) ; return parameter ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate getTemplateByName ( org.ovirt.engine.api.model.VM vm ) { return lookupTemplateByName ( vm.getTemplate ( ) . getName ( ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getTemplateId ( org.ovirt.engine.api.model.Template template ) { return template.isSetId ( ) ? asGuid ( template.getId ( ) ) : getTemplateByName ( template ) . getId ( ) ; }
Source:
public java.util.ArrayList < java.util.Map.Entry < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > > > getBondingOptionList ( org.ovirt.engine.core.compat.RefObject < java.util.Map.Entry < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > > > defaultItem ) { return getBondingOptionListDependingOnNetwork ( defaultItem , false ) ; }

Target:
public java.util.List < java.lang.String > getMigrationPoliciesSupportedVersions ( ) { return getSupportedVersions ( ConfigurationValues.MigrationPoliciesSupported ) ; }
Source:
public void versionSupported ( ) { org.mockito.Mockito.when ( cluster.getCompatibilityVersion ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; org.junit.Assert.assertThat ( validator.versionSupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void versionSupported ( ) { org.mockito.Mockito.when ( cluster.getCompatibilityVersion ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.versionSupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getDetailModel ( ) . ExecuteCommand ( getDetailModel ( ) . getFilterServicesCommand ( ) ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getDetailModel ( ) . executeCommand ( getDetailModel ( ) . getFilterServicesCommand ( ) ) ; }
Source:
public boolean getIsRoleListHidden ( ) { return isEveryoneSelected ; }

Target:
public boolean getIsRoleListHidden ( ) { return ( isEveryoneSelected ) || ( isMyGroupsSelected ) ; }
Source:
private boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( user.getusername ( ) ) ? false : true ; }

Target:
private static boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return ( user != null ) && ( ! ( user.getIsGroup ( ) ) ) ; }
Source:
org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData > build ( ) { return pairOf ( createDbVm ( ) , null ) ; }

Target:
org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VdsmVm > build ( ) { return pairOf ( createDbVm ( ) , null ) ; }
Source:
public void validateLunSizeSimilarOnAllHostsSucceeds ( ) { org.junit.Assert.assertTrue ( cmd.getFailedLuns ( createLunMap ( true ) ) . isEmpty ( ) ) ; }

Target:
public void validateLunSizeSimilarOnAllHostsSucceeds ( ) { org.junit.jupiter.api.Assertions.assertTrue ( cmd.getFailedLuns ( createLunMap ( true ) ) . isEmpty ( ) ) ; }
Source:
public int Compare ( org.ovirt.engine.core.common.businessentities.VM x , org.ovirt.engine.core.common.businessentities.VM y ) { return ( x.getpriority ( ) ) - ( y.getpriority ( ) ) ; }

Target:
public int Compare ( org.ovirt.engine.core.common.businessentities.VM x , org.ovirt.engine.core.common.businessentities.VM y ) { return ( x.getPriority ( ) ) - ( y.getPriority ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.errors.VdcBllMessages getUnsupportedVersionMessage ( ) { return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED ; }

Target:
public static org.ovirt.engine.core.common.errors.EngineMessage getUnsupportedVersionMessage ( ) { return org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED ; }
Source:
public static java.lang.String getRootURL ( ) { java.lang.String moduleURL = com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ; java.lang.String separator = "://" ; int index = moduleURL.indexOf ( separator ) ; if ( index == ( - 1 ) ) { throw new java.lang.RuntimeException ( ) ; } index = moduleURL.indexOf ( "/" , ( index + ( separator.length ( ) ) ) ) ; if ( index == ( - 1 ) ) { return moduleURL ; } return moduleURL.substring ( 0 , index ) ; }

Target:
public static java.lang.String getRootURL ( ) { java.lang.String moduleURL = com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ; java.lang.String separator = "://" ; int index = moduleURL.indexOf ( separator ) ; index = moduleURL.indexOf ( "/" , ( index + ( separator.length ( ) ) ) ) ; java.lang.String result = ( index != ( - 1 ) ) ? moduleURL.substring ( 0 , ( index + 1 ) ) : moduleURL ; if ( ! ( result.endsWith ( "/" ) ) ) { result += "/" ; } return result ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.add ( BrowserEvents.CLICK ) ; set.add ( BrowserEvents.MOUSEMOVE ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.add ( BrowserEvents.CLICK ) ; set.add ( BrowserEvents.MOUSEMOVE ) ; set.add ( BrowserEvents.CHANGE ) ; return set ; }
Source:
public java.lang.String getgroups ( ) { return this . groups ; }

Target:
public java.lang.String getFirstName ( ) { return firstName ; }
Source:
public void onHostSelectionChange ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.HostSelectionChangeEvent event ) { manager.invokePluginsNow ( "HostSelectionChange" , org.ovirt.engine.ui.webadmin.plugin.entity.BaseEntity.arrayFrom ( event.getSelectedItems ( ) ) ) ; }

Target:
public void onHostSelectionChange ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.HostSelectionChangeEvent event ) { manager.invokePluginsNow ( "HostSelectionChange" , org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( event.getSelectedItems ( ) ) ) ; }
Source:
protected void removeVmNetwork ( ) { if ( ( getInterfaces ( ) ) != null ) { for ( org.ovirt.engine.core.common.businessentities.network.VmNic iface : getInterfaces ( ) ) { org.ovirt.engine.core.bll.network.MacPoolManager.getInstance ( ) . freeMac ( iface.getMacAddress ( ) ) ; } } }

Target:
protected void removeVmNetwork ( ) { if ( ( getInterfaces ( ) ) != null ) { for ( org.ovirt.engine.core.common.businessentities.network.VmNic iface : getInterfaces ( ) ) { org.ovirt.engine.core.bll.VmCommand.getMacPool ( ) . freeMac ( iface.getMacAddress ( ) ) ; } } }
Source:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setStatus ( status ) ; update ( entity ) ; }

Target:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getStatusSqlParameterSource ( id , status ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicStatus" , parameterSource ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return super . getTaskIdList ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getClusterDao ( ) . get ( clusterId ) ; }
Source:
public void onUiCommonInit ( org.ovirt.engine.ui.common.uicommon.model.UiCommonInitEvent event ) { initializeHandlers ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.Object entity = modelProvider.getModel ( ) . getEntity ( ) ; if ( entity != null ) { onDetailModelEntityChange ( entity ) ; } }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue createImageDoesNotExistInDomainReturnValue ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue vdsRetValue = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; vdsRetValue.setSucceeded ( false ) ; vdsRetValue.setVdsError ( new org.ovirt.engine.core.common.errors.VDSError ( org.ovirt.engine.core.common.errors.VdcBllErrors.ImageDoesNotExistInDomainError , "" ) ) ; return vdsRetValue ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue createImageDoesNotExistInDomainReturnValue ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue vdsRetValue = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; vdsRetValue.setSucceeded ( false ) ; vdsRetValue.setVdsError ( new org.ovirt.engine.core.common.errors.VDSError ( org.ovirt.engine.core.common.errors.EngineError.ImageDoesNotExistInDomainError , "" ) ) ; return vdsRetValue ; }
Source:
public void testIsSoundDeviceEnabled ( ) { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.isSoundDeviceEnabled ( 777 , null ) ) ; org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getSoundDeviceSupportMap ( ) . get ( 777 ) . get ( null ) ) ; }

Target:
public void testIsSoundDeviceEnabled ( ) { org.junit.jupiter.api.Assertions.assertTrue ( OsRepositoryImpl.INSTANCE.isSoundDeviceEnabled ( 777 , null ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( OsRepositoryImpl.INSTANCE.getSoundDeviceSupportMap ( ) . get ( 777 ) . get ( null ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__ADD ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; }

Target:
private boolean isExternalVM ( ) { return ( org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . getVmStaticData ( ) . getOrigin ( ) ) == ( org.ovirt.engine.core.common.businessentities.OriginType.EXTERNAL ) ; }
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 ( ) . virtualMachineApplicationSubTabLabel ( ) , 5 , ginjector.getSubTabVirtualMachineApplicationModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineApplicationSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getOldNetworkCluster ( ) { if ( ( oldNetworkCluster ) == null ) { oldNetworkCluster = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDao ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getId ( ) ) ; } return oldNetworkCluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getOldNetworkCluster ( ) { if ( ( oldNetworkCluster ) == null ) { oldNetworkCluster = networkClusterDao.get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getId ( ) ) ; } return oldNetworkCluster ; }
Source:
private java.lang.Long toMegaByte ( java.lang.Long kilobytes ) { if ( ( kilobytes != null ) && ( kilobytes > 0 ) ) { return kilobytes / ( org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.TO_MEGA_BYTES ) ; } return 0L ; }

Target:
protected org.ovirt.engine.core.vdsbroker.ResourceManager getResourceManager ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) ; }
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 ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ( ) ; }
Source:
public void testGetQuotaWithNoExistingName ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Quota quotaGeneralToSpecific = dao.getQuotaByQuotaName ( "Any name" ) ; org.junit.Assert.assertEquals ( null , quotaGeneralToSpecific ) ; }

Target:
public void testGetQuotaWithNoExistingName ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Quota quotaGeneralToSpecific = dao.getQuotaByQuotaName ( "Any name" , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertEquals ( null , quotaGeneralToSpecific ) ; }
Source:
public void testIsMatch ( ) { org.junit.Assert.assertTrue ( "A number should match" , org.ovirt.engine.core.compat.Regex.isMatch ( "1" , "[0-9]" ) ) ; org.junit.Assert.assertFalse ( "A letter should not match" , org.ovirt.engine.core.compat.Regex.isMatch ( "a" , "[0-9]" ) ) ; }

Target:
public void testIsMatch ( ) { org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.compat.Regex.isMatch ( "1" , "[0-9]" ) , "A number should match" ) ; org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.compat.Regex.isMatch ( "a" , "[0-9]" ) , "A letter should not match" ) ; }
Source:
public void testIsUsingScsiReservationValidWhenAddingFloatingDisk ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.UNFILTERED , true ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( null , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SCSI_RESERVATION_NOT_VALID_FOR_FLOATING_DISK ) ) ; }

Target:
public void testIsUsingScsiReservationValidWhenAddingFloatingDisk ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.UNFILTERED ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( null , org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createDiskVmElementUsingScsiReserevation ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SCSI_RESERVATION_NOT_VALID_FOR_FLOATING_DISK ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { try { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setCorrelationId ( correlationId ) ; return m.invoke ( obj , args ) ; } catch ( java.lang.Exception e ) { throw e ; } }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { try { org.ovirt.engine.core.utils.CorrelationIdTracker.setCorrelationId ( correlationId ) ; return m.invoke ( obj , args ) ; } catch ( java.lang.Exception e ) { throw e ; } }
Source:
public void setvds_group_name ( java.lang.String value ) { this . vds_group_nameField = value ; }

Target:
public void setHostName ( java.lang.String value ) { this . mVdsStatic.setHostName ( value ) ; }
Source:
public void canDoActionFailsConnectionAlreadyUsed ( ) { org.mockito.Mockito.when ( sdDao.getAllByConnectionId ( connId ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }

Target:
public void validateFailsConnectionAlreadyUsed ( ) { org.mockito.Mockito.when ( sdDao.getAllByConnectionId ( connId ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { int size = getEntity ( object ) . getMemSizeMb ( ) ; return size + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { int size = getEntity ( object ) . getMemSizeMb ( ) ; return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.RegisterTemplatePopupView.messages.megabytes ( java.lang.String.valueOf ( size ) ) ; }
Source:
protected boolean canDoAction ( ) { return canMaintenanceVds ( org.ovirt.engine.core.bll.MaintenanceVdsCommand.getVdsId ( ) , org.ovirt.engine.core.bll.MaintenanceVdsCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean validate ( ) { return canMaintenanceVds ( org.ovirt.engine.core.bll.MaintenanceVdsCommand.getVdsId ( ) , org.ovirt.engine.core.bll.MaintenanceVdsCommand.getReturnValue ( ) . getValidationMessages ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvds_group_id ( ) { return this . mVmStatic.getvds_group_id ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return this . vmStatic.getvds_group_id ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VdsNumaNode > ( ) ; } 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.VM > ( ) ; } return source ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { Window.Location.reload ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { Window.Location.assign ( ( ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) + "sso/logout" ) ) ; }
Source:
public boolean getAllowConsoleReconnect ( ) { return allowConsoleReconnect ; }

Target:
public boolean isAllowConsoleReconnect ( ) { return allowConsoleReconnect ; }
Source:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { updateQueryGetResult ( entityManager.createNativeQuery ( "select cast(UpdateStartedExecutionEntitiesToUnknown as text) from UpdateStartedExecutionEntitiesToUnknown(?)" ) . setParameter ( 1 , updateTime ) ) ; }

Target:
public void deleteJobOlderThanDateWithStatus ( java.util.Date sinceDate , java.util.List < org.ovirt.engine.core.common.job.JobExecutionStatus > statusesList ) { updateQuery ( getEntityManager ( ) . createNamedQuery ( "Job.deleteJobOlderThanDateWithStatus" ) . setParameter ( "sinceDate" , sinceDate ) . setParameter ( "statuses" , statusesList ) ) ; }
Source:
public java.util.Map deleteImage ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgGUID , java.lang.String postZero ) { return getOKStatusNotImplemented ( ) ; }

Target:
public java.util.Map hostdevListByCaps ( ) { return hostService.getHostDeviceList ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleModelsCache getConsoleModelsCache ( ) { return consoleModelsCache ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getRebootCommand ( ) { return privateRebootCommand ; }
Source:
public org.ovirt.engine.ui.uicompat.UIConstants getConstants ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.constants ; }

Target:
public org.ovirt.engine.ui.uicompat.UIMessages getMessages ( ) { if ( ( org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.messages ) == null ) { org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.messages = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.uicompat.UIMessages.class ) ; } return org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.messages ; }
Source:
public boolean isCifsEnabled ( ) { return accessProtocols.contains ( AccessProtocol.CIFS ) ; }

Target:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_CIFS_DISABLE , GlusterConstants.ON ) ; }
Source:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
public void testGetEventMapByNameWithInvalidName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.EventMap > result = dao.getEventMapByName ( "farkle" ) ; assertNotNull ( result ) ; assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllEventMaps ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.EventMap > result = dao.getAllEventMaps ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.EventDAOTest.EVENT_MAP_COUNT , result.size ( ) ) ; }
Source:
public void addCustomValueDoesNotHandleNullKeys ( ) { final java.lang.String key = null ; final java.lang.String value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ; b.addCustomValue ( key , value ) ; final java.lang.String v = b.getCustomValue ( key ) ; org.junit.Assert.assertEquals ( value , v ) ; }

Target:
public void addCustomValueDoesNotHandleNullKeys ( ) { final java.lang.String key = null ; final java.lang.String value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.NullPointerException.class , ( ) -> b.addCustomValue ( key , value ) ) ; }
Source:
public void macAddressTooLongForUpdate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS ) + ":00" ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }

Target:
public void macAddressTooLongForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS ) + ":00" ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.storage_domains ) ( object ) ) . getstorage_name ( ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . isExistsInSystem ( ) ? getCommonResources ( ) . logNormalImage ( ) : null ; }
Source:
public org.ovirt.engine.sdk.web.ConnectionsPool build ( ) { return new org.ovirt.engine.sdk.web.ConnectionsPool ( createDefaultHttpClient ( url , username , password , key_file , cert_file , ca_file , port , timeout ) , this . urlobj , org.ovirt.engine.sdk.web.ConnectionsPoolBuilder.WAIT_IDLE_CHECK_TTL , org.ovirt.engine.sdk.web.ConnectionsPoolBuilder.WAIT_IDLE_CLOSE_TTL ) ; }

Target:
public org.ovirt.engine.sdk.web.ConnectionsPool build ( ) { this . keyStorePath = resolveKeyStorePath ( ) ; return new org.ovirt.engine.sdk.web.ConnectionsPool ( createDefaultHttpClient ( url , username , password , key_file , cert_file , ca_file , port , timeout ) , this . urlobj , org.ovirt.engine.sdk.web.ConnectionsPoolBuilder.WAIT_IDLE_CHECK_TTL , org.ovirt.engine.sdk.web.ConnectionsPoolBuilder.WAIT_IDLE_CLOSE_TTL ) ; }
Source:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( org.ovirt.engine.ui.frontend.Frontend.getAppErrorsTranslator ( ) . translateErrorText ( retVal.getCanDoActionMessages ( ) ) ) ; } }

Target:
private void translateErrors ( final java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( ( ( java.util.ArrayList < java.lang.String > ) ( translateError ( retVal ) ) ) ) ; } }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.DetachUserFromTag , new org.ovirt.engine.core.common.action.AttachEntityToTagParameters ( guid , asList ( userId ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.DetachUserFromTag , new org.ovirt.engine.core.common.action.AttachEntityToTagParameters ( guid , asList ( userId ) ) ) ; }
Source:
public org.ovirt.engine.core.common.TimeZoneType getTimeZoneType ( ) { org.ovirt.engine.core.common.businessentities.VmOsType vmOsType = ( ( org.ovirt.engine.core.common.businessentities.VmOsType ) ( getModel ( ) . getOSType ( ) . getSelectedItem ( ) ) ) ; return org.ovirt.engine.core.common.TimeZoneType.getTimeZoneByOs ( vmOsType ) ; }

Target:
public org.ovirt.engine.core.common.TimeZoneType getTimeZoneType ( ) { java.lang.Integer vmOsType = ( ( java.lang.Integer ) ( getModel ( ) . getOSType ( ) . getSelectedItem ( ) ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vmOsType ) ? org.ovirt.engine.core.common.TimeZoneType.WINDOWS_TIMEZONE : org.ovirt.engine.core.common.TimeZoneType.GENERAL_TIMEZONE ; }
Source:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.jupiter.api.Assertions.assertTrue ( filter.test ( storageDomain ) ) ; }
Source:
public void init ( ) { this . mapper = new org.codehaus.jackson.map.ObjectMapper ( ) ; }

Target:
public void init ( ) { this . mapper = new org.codehaus.jackson.map.ObjectMapper ( ) ; setBrandingManager ( new org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager ( ) ) ; }
Source:
public void setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { getChangeProhibitionReasons ( ) . clear ( ) ; } } }

Target:
public void setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { privateChangeProhibitionReason = null ; } } }
Source:
public void testGetCollectionGettter ( ) { java.lang.reflect.Method method = org.ovirt.engine.api.utils.EntityHelper.getCollectionGetter ( new org.ovirt.engine.api.model.Vms ( ) ) ; assertEquals ( "getVms" , method.getName ( ) ) ; }

Target:
public void testGetCollectionGettter ( ) { java.lang.reflect.Method method = org.ovirt.engine.api.utils.EntityHelper.getCollectionGetter ( new org.ovirt.engine.api.model.Vms ( ) ) ; org.junit.Assert.assertEquals ( "getVms" , method.getName ( ) ) ; }
Source:
public void oneSequence_oneWrongSubsequence ( ) { org.junit.Assert.assertFalse ( BootSequence.C.containsSubsequence ( BootSequence.D ) ) ; }

Target:
public void oneSequenceOneWrongSubsequence ( ) { org.junit.Assert.assertFalse ( BootSequence.C.containsSubsequence ( BootSequence.D ) ) ; }
Source:
protected void executeCommand ( ) { try ( org.ovirt.engine.core.utils.lock.EngineLock monitoringLock = org.ovirt.engine.core.bll.RefreshHostCapabilitiesCommand.acquireMonitorLock ( "Refresh host capabilities" ) ) { resourceManager.getVdsManager ( org.ovirt.engine.core.bll.RefreshHostCapabilitiesCommand.getVdsId ( ) ) . refreshHost ( org.ovirt.engine.core.bll.RefreshHostCapabilitiesCommand.getVds ( ) ) ; org.ovirt.engine.core.bll.RefreshHostCapabilitiesCommand.setSucceeded ( true ) ; } }

Target:
protected void executeCommand ( ) { try ( org.ovirt.engine.core.utils.lock.EngineLock monitoringLock = org.ovirt.engine.core.bll.RefreshHostCapabilitiesCommand.acquireMonitorLock ( "Refresh host capabilities" ) ) { resourceManager.getVdsManager ( org.ovirt.engine.core.bll.RefreshHostCapabilitiesCommand.getVdsId ( ) ) . refreshHostSync ( org.ovirt.engine.core.bll.RefreshHostCapabilitiesCommand.getVds ( ) ) ; org.ovirt.engine.core.bll.RefreshHostCapabilitiesCommand.setSucceeded ( true ) ; } }
Source:
public void clearVdsFromCache ( org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.infoFormat ( "Clearing cache of pool: {0} for problematic entities of VDS: {1}." , _storagePoolId , vdsName ) ; clearDomainFromCache ( null , java.util.Arrays.asList ( vdsId ) ) ; }

Target:
public void clearVdsFromCache ( org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "Clearing cache of pool: '{}' for problematic entities of VDS: '{}'." , _storagePoolId , vdsName ) ; clearDomainFromCache ( null , java.util.Arrays.asList ( vdsId ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel networkLabel = control.createMock ( org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel.class ) ; org.easymock.EasyMock.expect ( networkLabel.getId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest.LABELS [ index ] ) . anyTimes ( ) ; return networkLabel ; }

Target:
protected org.ovirt.engine.api.model.NetworkLabel getEntity ( int index ) { org.ovirt.engine.api.model.NetworkLabel networkLabel = control.createMock ( org.ovirt.engine.api.model.NetworkLabel.class ) ; org.easymock.EasyMock.expect ( networkLabel.getId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest.LABELS [ index ] ) . anyTimes ( ) ; return networkLabel ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , VdcBllMessages.VAR__ENTITIES__VMS ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , VdcBllMessages.VAR__ENTITIES__VMS , VdcBllMessages.VAR__ENTITIES__VM ) ; }
Source:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }

Target:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( ActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getcpu_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getCpuName ( ) ; }
Source:
protected void setHostPort ( org.ovirt.engine.core.common.businessentities.VDS vds ) { getPort ( ) . setEntity ( vds.getPort ( ) ) ; }

Target:
protected void setPort ( org.ovirt.engine.core.common.businessentities.VDS vds ) { getPort ( ) . setEntity ( vds.getPort ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.userportal.ConsoleProtocol getSelectedProtocol ( ) { return userSelectedDisplayProtocolManager.resolveSelectedProtocol ( this ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol getSelectedProtocol ( ) { return userSelectedDisplayProtocolManager.resolveSelectedProtocol ( this ) ; }