auphong2707/dl4se-code-review-dataset huggingface dataset:
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 ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.services.VmDisksService disksService = vmsService.vmService ( vm.id ( ) ) . disksService ( ) ; org.ovirt.engine.sdk4.types.Disk disk = disksService.add ( ) . disk ( org.ovirt.engine.sdk4.builders.Builders.disk ( ) . name ( "mydisk" ) . description ( "My disk" ) . interface_ ( DiskInterface.VIRTIO ) . format ( DiskFormat.COW ) . provisionedSize ( ( 1 * ( ( int ) ( java.lang.Math.pow ( 2 , 20 ) ) ) ) ) . storageDomains ( org.ovirt.engine.sdk4.builders.Builders.storageDomain ( ) . name ( "myadata" ) ) ) . send ( ) . disk ( ) ; org.ovirt.engine.sdk4.services.VmDiskService diskService = disksService.diskService ( disk.id ( ) ) ; for ( ; ; ) { java.lang.Thread.sleep ( ( 5 * 1000 ) ) ; disk = diskService.get ( ) . send ( ) . disk ( ) ; java.lang.String state = disk.status ( ) . state ( ) ; if ( "unattached" . equals ( state ) ) { break ; } } 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 ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.services.VnicProfilesService profilesService = connection.systemService ( ) . vnicProfilesService ( ) ; java.lang.String profileId = null ; java.util.List < org.ovirt.engine.sdk4.types.VnicProfile > profiles = profilesService.list ( ) . send ( ) . profiles ( ) ; for ( org.ovirt.engine.sdk4.types.VnicProfile profile : profiles ) { if ( java.util.Objects.equals ( profile.name ( ) , "mynetwork" ) ) { profileId = profile.id ( ) ; break ; } } org.ovirt.engine.sdk4.services.VmNicsService nicsService = vmsService.vmService ( vm.id ( ) ) . nicsService ( ) ; nicsService.add ( ) . nic ( org.ovirt.engine.sdk4.builders.Builders.nic ( ) . name ( "mynic" ) . description ( "My network interface card" ) . vnicProfile ( org.ovirt.engine.sdk4.builders.Builders.vnicProfile ( ) . id ( profileId ) ) ) . send ( ) ; connection.close ( ) ; }
Source:
public void UpdateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( dynamicData ) ; }

Target:
public void updateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( dynamicData ) ; }
Source:
public org.ovirt.engine.api.model.StorageDomain get ( ) { org.ovirt.engine.api.model.StorageDomain storageDomain = performGet ( VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return addLinks ( storageDomain , org.ovirt.engine.api.restapi.resource.BackendStorageDomainResource.getLinksToExclude ( storageDomain ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageDomain get ( ) { org.ovirt.engine.api.model.StorageDomain storageDomain = performGet ( QueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return addLinks ( storageDomain , org.ovirt.engine.api.restapi.resource.BackendStorageDomainResource.getLinksToExclude ( storageDomain ) ) ; }
Source:
public void testHostLinks ( ) { org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( host ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_HREF , host.getHref ( ) ) ; }

Target:
public void testHostLinks ( ) { org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( host ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_HREF , host.getHref ( ) ) ; }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; } }

Target:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.startPollingTask ( taskID ) ; } }
Source:
public void testLondMessage ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEcho ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClientTestCase.generateRandomMessage ( 524288 ) , 60626 ) ; }

Target:
public void testLongMessage ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEcho ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClientTestCase.generateRandomMessage ( 524288 ) , 60626 ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; Cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }
Source:
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 ) ; }

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.assertNull ( quotaGeneralToSpecific ) ; }
Source:
protected void executeCommand ( ) { super . executeCommand ( ) ; getLibvirtSecretDAO ( ) . update ( getParameters ( ) . getLibvirtSecret ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { super . executeCommand ( ) ; getLibvirtSecretDAO ( ) . update ( getParameters ( ) . getLibvirtSecret ( ) ) ; registerLibvirtSecret ( ) ; setSucceeded ( true ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.gluster.StopGlusterVolumeVDSCommand.getBroker ( ) . glusterVolumeStop ( org.ovirt.engine.core.vdsbroker.gluster.StopGlusterVolumeVDSCommand.getParameters ( ) . getVolumeName ( ) , org.ovirt.engine.core.vdsbroker.gluster.StopGlusterVolumeVDSCommand.getParameters ( ) . isForceAction ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.StopGlusterVolumeVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.gluster.StopGlusterVolumeVDSCommand.getBroker ( ) . glusterVolumeStop ( org.ovirt.engine.core.vdsbroker.gluster.StopGlusterVolumeVDSCommand.getParameters ( ) . getVolumeName ( ) , org.ovirt.engine.core.vdsbroker.gluster.StopGlusterVolumeVDSCommand.getParameters ( ) . isForceAction ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.StopGlusterVolumeVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public boolean performNextOperation ( int completedChildCount ) { if ( ( org.ovirt.engine.core.bll.storage.ovfstore.ProcessOvfUpdateForStorageDomainCommand.getParameters ( ) . getOvfUpdateStep ( ) ) == ( org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters.OvfUpdateStep.OVF_STORES_CREATION ) ) { setOvfUpdateStep ( OvfUpdateStep.OVF_UPLOAD ) ; updateOvfStoreContent ( ) ; return true ; } return false ; }

Target:
public boolean performNextOperation ( int completedChildCount ) { if ( ( org.ovirt.engine.core.bll.storage.ovfstore.ProcessOvfUpdateForStorageDomainCommand.getParameters ( ) . getOvfUpdateStep ( ) ) == ( org.ovirt.engine.core.common.action.ProcessOvfUpdateParameters.OvfUpdateStep.OVF_STORES_CREATION ) ) { setOvfUpdateStep ( OvfUpdateStep.OVF_UPLOAD ) ; updateOvfStoreContent ( ) ; return true ; } return false ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateMinimumVersionSupport ( ) { return org.ovirt.engine.core.common.FeatureSupported.momPolicyOnHost ( getVdsGroup ( ) . getCompatibilityVersion ( ) ) ? ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_MOM_UPDATE_VDS_VERSION ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateMinimumVersionSupport ( ) { return org.ovirt.engine.core.common.FeatureSupported.momPolicyOnHost ( getVdsGroup ( ) . getCompatibilityVersion ( ) ) ? ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_MOM_UPDATE_VDS_VERSION ) ; }
Source:
private void updateEditorStyle ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel editor , java.lang.String contentStyle ) { editor.setContentWidgetStyleName ( contentStyle ) ; editor.addWrapperStyleName ( style.editorWrapper ( ) ) ; editor.setLabelStyleName ( style.editorLabel ( ) ) ; }

Target:
private void updateEditorStyle ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel editor , java.lang.String contentStyle ) { editor.setContentWidgetStyleName ( contentStyle ) ; editor.addContentWidgetStyleName ( "avw_contentWidget_pfly_fix" ) ; editor.addWrapperStyleName ( style.editorWrapper ( ) ) ; editor.setLabelStyleName ( style.editorLabel ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getConsoleCurentUserName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ! ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( vm.getClientIp ( ) ) ) ? vm.getConsoleCurentUserName ( ) : null ; }
Source:
protected org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters createParameters ( ) { return new org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( diskImageGuid , vmId ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VmDiskOperationParameterBase createParameters ( ) { return new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( diskImageGuid , vmId ) ) ; }
Source:
private void allocateCustomValues ( ) { if ( java.util.Collections.EMPTY_MAP.equals ( customValues ) ) { customValues = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; } }

Target:
private void allocateCustomValues ( ) { if ( java.util.Collections.emptyMap ( ) . equals ( customValues ) ) { customValues = new java.util.HashMap < > ( ) ; } }
Source:
public void writeStartDocument ( java.lang.String encoding , java.lang.String version ) { try { writer.writeStartDocument ( encoding , version ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( "Can't write start of document" , exception ) ; } }

Target:
public void writeStartDocument ( java.lang.String encoding , java.lang.String version ) { try { writer.writeStartDocument ( encoding , version ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( "Can't write start of document" , exception ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( ) ) ; vds.sethost_name ( org.ovirt.engine.core.bll.gluster.GetGlusterServersForImportQueryTest.NEW_SERVER ) ; return java.util.Collections.singletonList ( vds ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( ) ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.GetGlusterServersForImportQueryTest.NEW_SERVER ) ; return java.util.Collections.singletonList ( vds ) ; }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }

Target:
public org.ovirt.engine.api.resource.NetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkResource ( id , this ) ) ; }
Source:
private boolean targetClusterSupportsSetupNetworks ( ) { return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.setupNetworkSupported ( getTargetCluster ( ) . getcompatibility_version ( ) ) ; }

Target:
private boolean targetClusterSupportsSetupNetworks ( ) { return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.setupNetworkSupported ( getTargetCluster ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public int getAnonymousHugePages ( ) { return this . mVdsDynamic.getAnonymousHugePages ( ) ; }

Target:
public void setAnonymousHugePages ( int value ) { this . mVdsStatistics.setAnonymousHugePages ( value ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.VM ) ; tempVar.setRefresh ( getIsQueryFirstTime ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.VM ) ; tempVar.setRefresh ( getIsQueryFirstTime ( ) ) ; super . syncSearch ( QueryType.Search , tempVar ) ; }
Source:
protected org.ovirt.engine.core.dao.VmStaticDAO getVmStaticDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStaticDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VmDynamicDAO getVmDynamicDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map > getLunConnections ( java.lang.String lunId ) { return org.ovirt.engine.core.bll.GetLunsByVgIdQuery.getDbFacade ( ) . getStorageServerConnectionLunMapDAO ( ) . getAll ( lunId ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map > getLunConnections ( java.lang.String lunId ) { return org.ovirt.engine.core.bll.GetLunsByVgIdQuery.getDbFacade ( ) . getStorageServerConnectionLunMapDao ( ) . getAll ( lunId ) ; }
Source:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { java.lang.String message = consoleManager.connectToConsole ( consoleUtils.determineDefaultProtocol ( model ) , model ) ; if ( message != null ) { errorPopupManager.show ( message ) ; } }

Target:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { java.lang.String message = consoleManager.connectToConsole ( consoleUtils.determineConnectionProtocol ( model ) , model ) ; if ( message != null ) { errorPopupManager.show ( message ) ; } }
Source:
public java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > getVmDeviceUnitMapForVirtioScsiDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return getVmDeviceUnitMapForScsiDisks ( vm , DiskInterface.VirtIO_SCSI , false ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > getVmDeviceUnitMapForSpaprScsiDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return getVmDeviceUnitMapForScsiDisks ( vm , DiskInterface.SPAPR_VSCSI , true ) ; }
Source:
protected void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable , org.ovirt.engine.core.common.AuditLogType auditLogType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , auditLogType ) ; }

Target:
protected void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable , org.ovirt.engine.core.common.AuditLogType auditLogType ) { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , auditLogType ) ; }
Source:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue Fence ( ) { return Fence ( FenceAgentOrder.Primary ) ; }

Target:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue fence ( ) { return fence ( FenceAgentOrder.Primary ) ; }
Source:
public static void initConfigurator ( ) { try { org.ovirt.engine.core.notifier.utils.NotificationConfiguratorTest.config = new org.ovirt.engine.core.notifier.utils.NotificationConfigurator ( "src/test/resources/conf/error-notifier.conf" ) ; } catch ( org.ovirt.engine.core.notifier.NotificationServiceException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertNotNull ( org.ovirt.engine.core.notifier.utils.NotificationConfiguratorTest.config ) ; }

Target:
public static void initConfigurator ( ) { java.io.File c = new java.io.File ( "src/test/resources/conf/notifier.conf" ) ; org.ovirt.engine.core.notifier.utils.NotificationProperties.setDefaults ( c.getAbsolutePath ( ) , null ) ; org.ovirt.engine.core.notifier.utils.NotificationConfiguratorTest.config = new org.ovirt.engine.core.notifier.utils.NotificationConfigurator ( ) ; org.junit.Assert.assertNotNull ( org.ovirt.engine.core.notifier.utils.NotificationConfiguratorTest.config ) ; }
Source:
public void testSaveGroupWithoutExternalIdFails ( ) { newGroup.setExternalId ( null ) ; dao.save ( newGroup ) ; }

Target:
public void testSaveGroupWithoutExternalIdFails ( ) { newGroup.setExternalId ( null ) ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.RuntimeException.class , ( ) -> org.ovirt.engine.core.dao.dao.save ( newGroup ) ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Event event ) { validateParameters ( event , "origin" , "severity" , "customId" , "description" ) ; return performCreate ( ActionType.AddExternalEvent , getParameters ( event ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < java.lang.Long > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetAuditLogById , org.ovirt.engine.core.common.queries.GetAuditLogByIdParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Event event ) { validateParameters ( event , "origin" , "severity" , "customId" , "description" ) ; return performCreate ( ActionType.AddExternalEvent , getParameters ( event ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < java.lang.Long > ( org.ovirt.engine.core.common.queries.QueryType.GetAuditLogById , org.ovirt.engine.core.common.queries.GetAuditLogByIdParameters.class ) ) ; }
Source:
public void testParseAllAction ( ) { parser.parse ( new java.lang.String [ ] { "-a" } ) ; org.junit.Assert.assertEquals ( ConfigActionType.ACTION_ALL , parser.getConfigAction ( ) ) ; }

Target:
public void testParseAllAction ( ) { parser.parse ( new java.lang.String [ ] { "-a" } ) ; org.junit.jupiter.api.Assertions.assertEquals ( ConfigActionType.ACTION_ALL , parser.getConfigAction ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }

Target:
private static org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }
Source:
public void setvm_name ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . mVmStatic.getvm_name ( ) , value ) ) ) { this . mVmStatic.setvm_name ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_name" ) ) ; } }

Target:
public int getVmMemSizeMb ( ) { return this . vmStatic.getMemSizeMb ( ) ; }
Source:
private void setUpMockUser ( ) { userID = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; user = org.ovirt.engine.core.bll.AbstractUserQueryTest.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ; org.mockito.Mockito.when ( user.getId ( ) ) . thenReturn ( userID ) ; }

Target:
private void setUpMockUser ( ) { userID = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; user = org.ovirt.engine.core.bll.AbstractUserQueryTest.mock ( org.ovirt.engine.core.common.businessentities.aaa.DbUser.class ) ; org.mockito.Mockito.when ( user.getId ( ) ) . thenReturn ( userID ) ; }
Source:
public void dispose ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.info ( "vdsManager::disposing" ) ; for ( java.lang.String jobId : registeredJobs ) { getSchedulUtil ( ) . deleteJob ( jobId ) ; } vmsRefresher.stopMonitoring ( ) ; vdsProxy.close ( ) ; }

Target:
public void dispose ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.info ( "vdsManager::disposing" ) ; for ( java.lang.String jobId : registeredJobs ) { getSchedulUtil ( ) . deleteJob ( jobId ) ; } vmsRefresher.stopMonitoring ( ) ; hostRefresher.stop ( ) ; vdsProxy.close ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { Cancel ( ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { Cancel ( ) ; } }
Source:
public void vmNotHavingPassthroughVnicsNotValid ( ) { vmNotHavingPassthroughVnicsCommon ( vm.getId ( ) , 2 , 3 ) ; org.junit.Assert.assertThat ( validator.vmNotHavingPassthroughVnics ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_OF_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ; }

Target:
private void setVmCpuValues ( int numOfSockets , int cpuPerSocket , int threadsPerCpu ) { vm.setNumOfSockets ( numOfSockets ) ; vm.setCpuPerSocket ( cpuPerSocket ) ; vm.setThreadsPerCpu ( threadsPerCpu ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol getSelectedProtocol ( ) { return resolveSelectedProtocol ( this ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol getUserSelectedProtocol ( ) { return resolveSelectedProtocol ( this ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVdsGroup ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVdsGroup ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return true ; }
Source:
protected boolean isDiskExists ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.ImportVmCommand.getBaseDiskDao ( ) . exists ( id ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Command ) ; }
Source:
public static boolean isOldClusterVersion ( org.ovirt.engine.core.compat.Version version ) { return ! ( ( ( version.getMajor ( ) ) >= 3 ) && ( ( version.getMinor ( ) ) >= 1 ) ) ; }

Target:
public static boolean isOldClusterVersion ( org.ovirt.engine.core.compat.Version version ) { return ( version.compareTo ( Version.v3_1 ) ) < 0 ; }
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.StorageDomain > ( ) ; } return source ; }

Target:
public void getStorageDomainList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > > aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStorageDomainsByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceNetworkNameNotEmpty ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getNetworkName ( ) ) ) ) { return i ; } } return null ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getNetworkName ( ) ) ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.network.NetworkView value ) { super . setEntity ( value ) ; }

Target:
public void remove ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.vms.RemoveExternalSubnetModel model = new org.ovirt.engine.ui.uicommonweb.models.vms.RemoveExternalSubnetModel ( this , getSelectedItems ( ) ) ; setWindow ( model ) ; }
Source:
public java.util.List < T > getSelectedItems ( ) { return org.ovirt.engine.ui.common.widget.action.SimpleActionPanel.getDataProvider ( ) . getModel ( ) . getSelectedObjects ( ) ; }

Target:
public java.util.List < T > getSelectedItems ( ) { return org.ovirt.engine.ui.common.widget.action.SimpleActionPanel.getDataProvider ( ) . getModel ( ) . getSelectionModel ( ) . getSelectedObjects ( ) ; }
Source:
public void setSSOSessionUtils ( org.ovirt.engine.core.bll.aaa.SessionDataContainer.SSOSessionUtils ssoSessionUtils ) { this . ssoSessionUtils = ssoSessionUtils ; }

Target:
public final java.util.Date getSessionStartTime ( java.lang.String sessionId ) { return ( ( java.util.Date ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SESSION_START_TIME , false ) ) ) ; }
Source:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertTrue ( validator.isPosixSupportedInDC ( ) . isValid ( ) ) ; }

Target:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.StoragePoolValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertTrue ( validator.isPosixSupportedInDC ( ) . isValid ( ) ) ; }
Source:
public void setNiceLevel ( int value ) { this . vmStatic.setnice_level ( value ) ; }

Target:
public int getNiceLevel ( ) { return this . vmStatic.getNiceLevel ( ) ; }
Source:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType ) ; }

Target:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.auditLogDirector.log ( auditLogable , logType ) ; }
Source:
private void Login ( ) { getLoggedInEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
private void login ( ) { getLoggedInEvent ( ) . raise ( this , EventArgs.Empty ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.compat.Guid vdsId ) { return getVdsDao ( ) . get ( vdsId ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsDynamic getVdsDynamic ( org.ovirt.engine.core.compat.Guid vdsId ) { return getVdsDynamicDao ( ) . get ( vdsId ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getInterfaceDAO ( ) . massUpdateStatisticsForVds ( statistics ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getInterfaceDao ( ) . massUpdateStatisticsForVds ( statistics ) ; return null ; }
Source:
private java.util.List < java.lang.String > getDomainList ( ) { return getBackendCollection ( java.lang.String.class , VdcQueryType.GetDomainList , new org.ovirt.engine.core.common.queries.GetDomainListParameters ( ) ) ; }

Target:
private java.util.List < java.lang.String > getDomainList ( ) { return getBackendCollection ( java.lang.String.class , VdcQueryType.GetDomainList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }
Source:
private void updateAlerts ( ) { final org.ovirt.engine.core.common.businessentities.VDS host = org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getSelectedItem ( ) ; if ( host == null ) { return ; } generalModel.setHasUpgradeAlert ( host.isUpdateAvailable ( ) ) ; generalModel.setHasAnyAlert ( ) ; }

Target:
private void enrollCertificate ( ) { final org.ovirt.engine.core.common.businessentities.VDS host = org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getSelectedItem ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.HostEnrollCertificate , new org.ovirt.engine.core.common.action.VdsActionParameters ( host.getId ( ) ) ) ; }
Source:
public void shouldSetNumaPinning ( ) { assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldSetNumaPinning ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public void readKeysData ( java.io.ObjectInputStream dis ) { synchronized ( ovirt_engine_dwh.configurationsync_3_2.ConfigurationSync.row36Struct.commonByteArrayLock ) { try { int length = 0 ; this . cluster_join_id = readString ( dis ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } } }

Target:
public void readKeysData ( java.io.ObjectInputStream dis ) { synchronized ( ovirt_engine_dwh.configurationsync_3_2.ConfigurationSync.row36Struct.commonByteArrayLock_OVIRT_ENGINE_DWH_ConfigurationSync ) { try { int length = 0 ; this . cluster_join_id = readString ( dis ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } } }
Source:
protected boolean isUserAuthorizedToRunAction ( ) { return isSystemSuperUserPredicate.eval ( org.ovirt.engine.core.bll.aaa.TerminateSessionCommand.getCurrentUser ( ) . getId ( ) ) ; }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { if ( isSystemSuperUserPredicate.eval ( org.ovirt.engine.core.bll.aaa.TerminateSessionCommand.getCurrentUser ( ) . getId ( ) ) ) { return true ; } else { addCanDoActionMessage ( VdcBllMessages.USER_NOT_AUTHORIZED_TO_PERFORM_ACTION ) ; return false ; } }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineEventPresenter.constants.virtualMachineEventSubTabLabel ( ) , 8 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineEventPresenter.constants.virtualMachineEventSubTabLabel ( ) , 10 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
private void addVmInterfaceStatisticsToList ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > list ) { if ( list.isEmpty ( ) ) { return ; } vmInterfaceStatisticsToSave.put ( list.get ( 0 ) . getVmId ( ) , list ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmJob > getVmJobsToUpdate ( ) { return vmJobsToUpdate ; }
Source:
private void RemoveVdsFromCollection ( ) { runVdsCommand ( VDSCommandType.RemoveVds , new org.ovirt.engine.core.common.vdscommands.RemoveVdsVDSCommandParameters ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ) ; }

Target:
private void removeVdsFromCollection ( ) { runVdsCommand ( VDSCommandType.RemoveVds , new org.ovirt.engine.core.common.vdscommands.RemoveVdsVDSCommandParameters ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ) ; }
Source:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setOs ( value ) ; }

Target:
public void setTunnelMigration ( java.lang.Boolean value ) { vmStatic.setTunnelMigration ( value ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel model ) { providerNetworks.edit ( model.getProviderNetworks ( ) ) ; importedNetworks.edit ( model.getImportedNetworks ( ) ) ; dcColumn.edit ( model.getDataCenters ( ) ) ; driver.edit ( model ) ; }
Source:
public org.ovirt.engine.core.common.utils.VmDeviceType getDisplayDevice ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.DisplayType displayType ) { org.ovirt.engine.core.common.utils.VmDeviceType vmDeviceType = parseDisplayProtocols ( osId , version ) . get ( displayType ) ; return vmDeviceType == null ? displayType.getDefaultVmDeviceType ( ) : vmDeviceType ; }

Target:
public boolean isCpuSupported ( int osId , org.ovirt.engine.core.compat.Version version , java.lang.String cpuId ) { return ! ( getUnsupportedCpus ( osId , version ) . contains ( cpuId.toLowerCase ( ) ) ) ; }
Source:
public void setTitle ( java.lang.String title ) { button.setTitle ( title ) ; }

Target:
protected void initWidget ( com.google.gwt.user.client.ui.Widget widget ) { super . initWidget ( widget ) ; tooltipPanel.applyTo ( button ) ; }
Source:
public void writeEndDocument ( ) { try { writer.writeEndDocument ( ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( "Can't write end of document" , exception ) ; } }

Target:
public void writeEndDocument ( ) { try { writer.writeEndDocument ( ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( "Can't write end of document" , exception ) ; } }
Source:
public void onResize ( ) { super . onResize ( ) ; double currentWidth = westPanel.getOffsetWidth ( ) ; setStoredSplitterWidth ( currentWidth ) ; determineButtonVisiblity ( ) ; positionLeftCollapseButton ( ) ; }

Target:
public void onResize ( ) { super . onResize ( ) ; double currentWidth = westPanel.getOffsetWidth ( ) ; setStoredSplitterWidth ( org.ovirt.engine.ui.webadmin.widget.main.TabbedSplitLayoutPanel.WEST_SPLITTER_KEY , currentWidth ) ; determineButtonVisiblity ( ) ; positionLeftCollapseButton ( ) ; }
Source:
private java.lang.String getJsonDiskDescription ( ) { try { return org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getParameters ( ) . getDiskInfo ( ) ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }

Target:
private java.lang.String getJsonDiskDescription ( ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getJsonDiskDescription ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getParameters ( ) . getDiskInfo ( ) ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }
Source:
protected R performGet ( org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { return performGet ( query , params , null ) ; }

Target:
protected R performGet ( org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { return performGet ( query , params , null ) ; }
Source:
protected void onClose ( ) { hideAndUnbind ( ) ; }

Target:
protected boolean shouldDestroyOnClose ( ) { return true ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }
Source:
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 ) ; }

Target:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; 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 storagePoolDefault ( ) { final org.ovirt.engine.core.common.businessentities.StoragePool p = b.getStoragePool ( ) ; org.junit.Assert.assertNull ( p ) ; }

Target:
public void storagePoolDefault ( ) { final org.ovirt.engine.core.common.businessentities.StoragePool p = b.getStoragePool ( ) ; org.junit.jupiter.api.Assertions.assertNull ( p ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForVmPool ( org.ovirt.engine.core.compat.NGuid vmPoolId ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByVmPoolId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , vmPoolId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllMigratingToHost ( org.ovirt.engine.core.compat.Guid vdsId ) { return getCallsHandler ( ) . executeReadList ( "GetVmsMigratingToVds" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , vdsId ) ) ; }
Source:
public void illegalCpuChange ( ) { createSimpleCommand ( ) ; cpuExists ( ) ; cpuManufacturersDontMatch ( ) ; vdsGroupHasVds ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_ILLEGAL ) ; }

Target:
public void illegalCpuChange ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersDontMatch ( ) ; vdsGroupHasVds ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_ILLEGAL ) ; }
Source:
protected boolean validateVmArchitecture ( ) { return ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }

Target:
protected boolean validateVmArchitecture ( ) { return ( getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failValidation ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }
Source:
public void setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.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 ) { getChangeProhibitionReasons ( ) . clear ( ) ; } } }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { java.lang.String tooltipContent = object.getSecond ( ) . getVmFQDN ( ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { java.lang.String tooltipContent = object.getSecond ( ) . getFqdn ( ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }
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 ? ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( source ) ) : null ; }
Source:
public void setImportSourceValid ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > editingEnabled ) { this . importSourceValid = editingEnabled ; }

Target:
public void setInfoMessage ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > problemDescription ) { this . problemDescription = problemDescription ; }
Source:
public void testMacPoolExistsEntityNotExist ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( null ) . macPoolExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MAC_POOL_DOES_NOT_EXIST ) ) ; }

Target:
public void testMacPoolExistsEntityNotExist ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createMacPoolValidator ( null ) . macPoolExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MAC_POOL_DOES_NOT_EXIST ) ) ; }
Source:
public void AddError ( java.lang.String error ) { org.ovirt.engine.core.bll.VdsInstaller.log.errorFormat ( "Installation of {0}. Error: {1}. (Stage: {2})" , _serverName , error , getCurrentInstallStage ( ) ) ; _messages.AddMessage ( error ) ; }

Target:
public void addError ( java.lang.String error ) { org.ovirt.engine.core.bll.VdsInstaller.log.errorFormat ( "Installation of {0}. Error: {1}. (Stage: {2})" , _serverName , error , getCurrentInstallStage ( ) ) ; _messages.AddMessage ( error ) ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( super . canDoAction ( ) ) ) { return false ; } if ( ( org.ovirt.engine.core.bll.UpdateUserProfileCommand.getUserProfile ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_PROFILE_NOT_EXIST ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ! ( super . validate ( ) ) ) { return false ; } if ( ( org.ovirt.engine.core.bll.UpdateUserProfileCommand.getUserProfile ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_PROFILE_NOT_EXIST ) ; } return true ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneLUNReturnForXmlRpc getDeviceInfo ( java.lang.String devGUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.ImageSizeReturnForXmlRpc diskSizeExtend ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > diskParams , java.lang.String newSize ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc monitorCommand ( java.lang.String vmId , java.lang.String monitorCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn amendVolume ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > volInfo , java.util.Map < java.lang.String , java.lang.Object > volAttr ) ;
Source:
public void concreteStartPollingTask ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = GetCommandMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getVdsmTaskId ( ) ) ; }

Target:
public void concreteStartPollingTask ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = getCommandMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getVdsmTaskId ( ) ) ; }
Source:
public void endSuccessfully ( ) { enclosingCommand.getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
public void endWithFailure ( ) { enclosingCommand.getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
protected void executeCommand ( ) { super . executeCommand ( ) ; getLibvirtSecretDAO ( ) . remove ( getParameters ( ) . getLibvirtSecret ( ) . getId ( ) ) ; unregisterLibvirtSecret ( ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { super . executeCommand ( ) ; getLibvirtSecretDao ( ) . remove ( getParameters ( ) . getLibvirtSecret ( ) . getId ( ) ) ; unregisterLibvirtSecret ( ) ; setSucceeded ( true ) ; }
Source:
protected void configure ( ) { requestStaticInjection ( org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.class ) ; bindInfrastructure ( ) ; bindConfiguration ( ) ; }

Target:
protected void configure ( ) { requestStaticInjection ( org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.class ) ; requestStaticInjection ( org.ovirt.engine.ui.webadmin.gin.AssetProvider.class ) ; bindInfrastructure ( ) ; bindConfiguration ( ) ; }