auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static void checkStatusBeforeLock ( org.ovirt.engine.core.common.businessentities.VMStatus status ) { if ( status == ( org.ovirt.engine.core.common.businessentities.VMStatus.ImageLocked ) ) { org.ovirt.engine.core.bll.VmHandler.log.error ( "VM status cannot change to image locked, since it is already locked" ) ; throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.IRS_IMAGE_STATUS_ILLEGAL ) ; } }

Target:
private static void checkStatusBeforeLock ( org.ovirt.engine.core.common.businessentities.VMStatus status ) { if ( status == ( org.ovirt.engine.core.common.businessentities.VMStatus.ImageLocked ) ) { org.ovirt.engine.core.bll.VmHandler.log.error ( "VM status cannot change to image locked, since it is already locked" ) ; throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.IRS_IMAGE_STATUS_ILLEGAL ) ; } }
Source:
private org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator createNetworkClusterValidator ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; return new org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator ( networkCluster , org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator createNetworkClusterValidator ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; return new org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void sshUserNameIsEmpty ( ) { org.junit.Assert.assertThat ( validator.sshUserNameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_WITH_INVALID_SSH_USERNAME ) ) ; }

Target:
public void sshUserNameIsEmpty ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.sshUserNameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_WITH_INVALID_SSH_USERNAME ) ) ; }
Source:
void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { descriptionEditor.setLabel ( constants.virtualMachineSnapshotCreatePopupDescriptionLabel ( ) ) ; memoryEditor.setLabel ( constants.virtualMachineSnapshotCreatePopupMemoryLabel ( ) ) ; }

Target:
void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { descriptionEditor.setLabel ( constants.virtualMachineSnapshotCreatePopupDescriptionLabel ( ) ) ; memoryEditor.setLabel ( constants.virtualMachineSnapshotCreatePopupMemoryLabel ( ) ) ; disksTableLabel.setText ( constants.snapshotDisks ( ) ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) . isVmNetwork ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel model ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getValue ( java.util.Collections.singletonList ( ( model.isVmNetwork ( ) ? vmImage : emptyImage ) ) ) ; }
Source:
public void render ( org.ovirt.engine.ui.common.widget.table.column.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { if ( value != null ) { sb.appendHtmlConstant ( "<a href='javascript:;' style='display: inline-block'>" ) ; super . render ( context , value , sb ) ; sb.appendHtmlConstant ( "</a>" ) ; } }

Target:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { if ( value != null ) { sb.appendHtmlConstant ( "<a href='javascript:;' style='display: inline-block'>" ) ; super . render ( context , value , sb ) ; sb.appendHtmlConstant ( "</a>" ) ; } }
Source:
public void testValidateCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.AddQuotaCommand addQuotaCommand = createCommand ( ) ; addQuotaCommand.validate ( ) ; }

Target:
public void testValidateCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.AddQuotaCommand addQuotaCommand = createCommand ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( addQuotaCommand ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__FORCE_SELECT ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__SPM ) ; addCanDoActionMessage ( java.lang.String.format ( "$%1$s %2$s" , "VdsName" , org.ovirt.engine.core.bll.ForceSelectSPMCommand.getVds ( ) . getName ( ) ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__FORCE_SELECT ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__SPM ) ; addCanDoActionMessageVariable ( "VdsName" , org.ovirt.engine.core.bll.ForceSelectSPMCommand.getVds ( ) . getName ( ) ) ; }
Source:
public void onSelectionChange ( com.google.gwt.view.client.SelectionChangeEvent event ) { updateActionButtonCommand ( command , actionButtonInterface , table.getSelectedItems ( ) ) ; }

Target:
public void onClick ( java.util.List < T > selectedItems ) { actionButtonInterface.onClick ( ) . invoke ( org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( selectedItems ) , null ) ; }
Source:
public void setmethod_id ( int value ) { this . id.methodId = value ; }

Target:
public org.ovirt.engine.core.common.EventNotificationMethods getevent_notification_method ( ) { return this . id.eventNotificationMethod ; }
Source:
public java.lang.String getExternalNetworkProfileName ( ) { return externalVnicProfileMapping.getExternalNetworkProfileName ( ) ; }

Target:
public java.lang.String getExternalNetworkProfileName ( ) { return externalVnicProfileMapping.getSourceProfileName ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { setChangeProhibitionReason ( null ) ; } } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value , java.lang.String reason ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; } setChangeProhibitionReason ( ( value ? null : reason ) ) ; return this ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByVms ( ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getVmStaticDao ( ) . getAllByGroupAndNetworkName ( networkCluster.getClusterId ( ) , network.getName ( ) ) , EngineMessage.VAR__ENTITIES__VMS , EngineMessage.VAR__ENTITIES__VM ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByVms ( ) { return new org.ovirt.engine.core.bll.network.cluster.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VM , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VMS ) . getNetworkInUse ( getEntitiesNames ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getVmStaticDao ( ) . getAllByGroupAndNetworkName ( networkCluster.getClusterId ( ) , network.getName ( ) ) ) ) ; }
Source:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failCanDoAction ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }

Target:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failValidation ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }
Source:
protected void onTooltipSourceMouseOut ( ) { this . setWidget ( infoImage ) ; }

Target:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { setWidget ( infoImage ) ; infoPanel.hide ( true ) ; }
Source:
public void testGlusterDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_3 ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertTrue ( validator.isGlusterSupportedInDC ( ) . isValid ( ) ) ; }

Target:
public void testGlusterDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_3 ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isGlusterSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.Integer getdisplay ( ) { return this . mVmDynamic.getdisplay ( ) ; }

Target:
public java.lang.String getAppList ( ) { return this . vmDynamic.getapp_list ( ) ; }
Source:
public static void clearCache ( ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValues.clear ( ) ; }

Target:
public void clearCache ( ) { cachedConfigValues.clear ( ) ; }
Source:
public void testGetVmIdsForVersionUpdate ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > vmIdsToUpdate = dao.getVmIdsForVersionUpdate ( FixturesTool.VM_TEMPLATE_RHEL5 ) ; org.junit.Assert.assertTrue ( vmIdsToUpdate.contains ( org.ovirt.engine.core.dao.VmDAOTest.VM_TO_UPDATE_ID ) ) ; }

Target:
public void testGetVmIdsForVersionUpdate ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > vmIdsToUpdate = dao.getVmIdsForVersionUpdate ( FixturesTool.VM_TEMPLATE_RHEL5 ) ; org.junit.Assert.assertTrue ( vmIdsToUpdate.contains ( FixturesTool.VM_RHEL5_POOL_52 ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.bll.GetVdsByNameQuery.getDbFacade ( ) . getVdsDao ( ) . getByName ( org.ovirt.engine.core.bll.GetVdsByNameQuery.getParameters ( ) . getName ( ) ) ; org.ovirt.engine.core.bll.GetVdsByNameQuery.getQueryReturnValue ( ) . setReturnValue ( vds ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = vdsDao.getByName ( org.ovirt.engine.core.bll.GetVdsByNameQuery.getParameters ( ) . getName ( ) ) ; org.ovirt.engine.core.bll.GetVdsByNameQuery.getQueryReturnValue ( ) . setReturnValue ( vds ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForHostname ( java.lang.String hostname ) { return getCallsHandler ( ) . executeReadList ( "GetVdsByHostName" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , hostname ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForHostname ( java.lang.String hostname ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = getCallsHandler ( ) . executeReadList ( "GetVdsByHostName" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , hostname ) ) ; return uniteAgents ( vdsList ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getDefaultImage ( ) { return resources.bootableDiskIcon ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.bootableDisk ( ) ) ; } return null ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeReplaceBrickStart ( java.lang.String volumeName , java.lang.String existingBrickDir , java.lang.String newBrickDir ) { try { return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( vdsServer.glusterVolumeReplaceBrickStart ( volumeName , existingBrickDir , newBrickDir ) ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeReplaceBrickCommitForce ( java.lang.String volumeName , java.lang.String existingBrickDir , java.lang.String newBrickDir ) { try { return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( vdsServer.glusterVolumeReplaceBrickCommitForce ( volumeName , existingBrickDir , newBrickDir ) ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
protected boolean canPerformDiskHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isOsSupportingHotPlug ( ) ) ; }

Target:
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 ( ) ) ; } } }
Source:
public int getAvailableMacsCount ( ) { int count = 0 ; for ( org.ovirt.engine.core.bll.network.macpoolmanager.Range range : ranges ) { count += range.getAvailableCount ( ) ; } return count ; }

Target:
public int getAvailableMacsCount ( ) { int count = 0 ; for ( org.ovirt.engine.core.bll.network.macpool.Range range : ranges ) { count += range.getAvailableCount ( ) ; } return count ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.VM > getCollection ( ) { return collection.list ( ) . getVMs ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.Vm > getCollection ( ) { return collection.list ( ) . getVms ( ) ; }
Source:
public void testDomainWithEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mockStorageDomain ( 6 , 756 , StorageType.NFS ) ) ; org.junit.Assert.assertThat ( "Domain should have more space then threshold" , validator.isDomainWithinThresholds ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testDomainWithEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mockStorageDomain ( 6 , 756 , StorageType.NFS ) ) ; org.hamcrest.MatcherAssert.assertThat ( "Domain should have more space then threshold" , validator.isDomainWithinThresholds ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void DecrementVdsPendingVmsCount ( ) { synchronized ( _vds_pending_vm_count ) { int i = _vds_pending_vm_count.get ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; _vds_pending_vm_count.put ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , ( i - 1 ) ) ; } }

Target:
private void decrementVdsPendingVmsCount ( ) { synchronized ( _vds_pending_vm_count ) { int i = _vds_pending_vm_count.get ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; _vds_pending_vm_count.put ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , ( i - 1 ) ) ; } }
Source:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ; }

Target:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACES_ALREADY_SPECIFIED , bond.getName ( ) ) ; }
Source:
private boolean volumeNameExists ( java.lang.String volumeName ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getGlusterVolumeDao ( ) . getByName ( getClusterId ( ) , volumeName ) ; return volumeEntity == null ? false : true ; }

Target:
private boolean volumeNameExists ( java.lang.String volumeName ) { return ( glusterVolumeDao.getByName ( getClusterId ( ) , volumeName ) ) != null ; }
Source:
private void initIpConfigurationWithBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol ) { initIpConfigurationWithPrimaryAddress ( ) ; getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getPrimaryAddress ( ) . setBootProtocol ( networkBootProtocol ) ; }

Target:
private void initIpConfigurationWithBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol ) { initIpConfigurationWithPrimaryAddress ( ) ; getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setBootProtocol ( networkBootProtocol ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getSourceVmFromDb ( ) { if ( ( sourceVmFromDb ) == null ) { sourceVmFromDb = org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmDAO ( ) . get ( getVmIdFromSnapshot ( ) ) ; } return sourceVmFromDb ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getSourceVmFromDb ( ) { if ( ( sourceVmFromDb ) == null ) { sourceVmFromDb = org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmDao ( ) . get ( getVmIdFromSnapshot ( ) ) ; } return sourceVmFromDb ; }
Source:
private boolean labelRemoved ( ) { return ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( getOldNetwork ( ) ) ) && ( ! ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) ) ) ) ; }

Target:
private static boolean labelRemoved ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.Network oldNetwork ) { return ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( oldNetwork ) ) && ( ! ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid lookupStorageDomainIdByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , SearchType.StorageDomain , ( "Storage: name=" + name ) ) . getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid lookupStorageDomainIdByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class , VdcQueryType.GetStorageDomainByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Storage: name=" + name ) ) . getId ( ) ; }
Source:
public boolean checkIfJobHasTasks ( org.ovirt.engine.core.compat.Guid jobId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) ; return getCallsHandler ( ) . executeRead ( "CheckIfJobHasTasks" , createBooleanMapper ( ) , parameterSource ) ; }

Target:
public boolean checkIfJobHasTasks ( org.ovirt.engine.core.compat.Guid jobId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) ; return getCallsHandler ( ) . executeRead ( "CheckIfJobHasTasks" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Boolean.class ) , parameterSource ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getRawValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return object.getCluster ( ) . getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getRawValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getCluster ( ) . getstatus ( ) ; }
Source:
public org.ovirt.engine.api.resource.gluster.GlusterVolumesResource getGlusterVolumesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumesResource ( this , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.gluster.GlusterVolumesResource getGlusterVolumesResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumesResource ( this , id ) ) ; }
Source:
protected void ExecuteIrsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getIrsProxy ( ) . setStorageDomainDescription ( org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getParameters ( ) . getDescription ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getIrsProxy ( ) . setStorageDomainDescription ( org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getParameters ( ) . getDescription ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
protected java.lang.String getINVALID ( ) { return INVALID ; }

Target:
protected java.lang.String getINVALID ( ) { return org.ovirt.engine.core.utils.network.predicate.AbstractVdsNetworkInterfacePredicateTest.INVALID ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
public java.util.Map < java.lang.Integer , java.util.Map < org.ovirt.engine.core.compat.Version , java.lang.Boolean > > getSpiceSupportMatrix ( ) ;
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmOs ( ) { return this . vmStatic.getOs ( ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.util.Map < java.lang.String , java.lang.String > > getRuntimeDeviceCustomProperties ( ) { return runtimeDeviceCustomProperties ; }
Source:
private org.ovirt.engine.core.common.action.RemoveCinderDiskParameters buildChildCommandParameters ( org.ovirt.engine.core.compat.Guid cinderDiskId ) { org.ovirt.engine.core.common.action.RemoveCinderDiskParameters removeDiskParams = new org.ovirt.engine.core.common.action.RemoveCinderDiskParameters ( cinderDiskId ) ; removeDiskParams.setShouldBeLogged ( false ) ; return removeDiskParams ; }

Target:
private org.ovirt.engine.core.common.action.RemoveCinderDiskParameters buildChildCommandParameters ( org.ovirt.engine.core.compat.Guid cinderDiskId ) { org.ovirt.engine.core.common.action.RemoveCinderDiskParameters removeDiskParams = new org.ovirt.engine.core.common.action.RemoveCinderDiskParameters ( cinderDiskId ) ; removeDiskParams.setLockVM ( false ) ; removeDiskParams.setShouldBeLogged ( false ) ; return removeDiskParams ; }
Source:
public void Dispose ( ) { synchronized ( syncObj ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.info ( "IrsProxyData::disposing" ) ; ResetIrs ( ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( storagePoolRefreshJobId ) ; _disposed = true ; } }

Target:
public void dispose ( ) { synchronized ( syncObj ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.info ( "IrsProxyData::disposing" ) ; resetIrs ( ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( storagePoolRefreshJobId ) ; _disposed = true ; } }
Source:
public static java.lang.Integer getMinMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getMinimumRam ( osId , version ) ; }

Target:
public static boolean isDisplayTypeSupported ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.DisplayType defaultDisplayType ) { return org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getDisplayTypes ( ) . get ( osId ) . get ( version ) . contains ( defaultDisplayType ) ; }
Source:
public int getAvailableMacsCount ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.readLock ( ) ) ) { int availableMacsSize = macsStorage.getAvailableMacsCount ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerRanges.log.debug ( "Number of available Mac addresses = {}" , availableMacsSize ) ; return availableMacsSize ; } }

Target:
public int getAvailableMacsCount ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.readLock ( ) ) ) { int availableMacsSize = macsStorage.getAvailableMacsCount ( ) ; org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Number of available Mac addresses = {}" , availableMacsSize ) ; return availableMacsSize ; } }
Source:
public void testConvertMegaBytesToTB ( ) { long mb = ( 5 * 1024 ) * 1024 ; int tbs = org.ovirt.engine.core.common.utils.SizeConverter.convert ( mb , SizeUnit.MB , SizeUnit.TB ) . intValue ( ) ; org.junit.Assert.assertEquals ( tbs , 5 ) ; }

Target:
public void testConvertMegaBytesToTB ( ) { long mb = ( 5 * 1024 ) * 1024 ; int tbs = org.ovirt.engine.core.common.utils.SizeConverter.convert ( mb , SizeUnit.MiB , SizeUnit.TiB ) . intValue ( ) ; org.junit.Assert.assertEquals ( tbs , 5 ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendClusterResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendClustersResource ( ) ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendClusterResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendClustersResource ( ) ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void editHost ( ) { getRequestEditEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
public void editHost ( ) { getRequestEditEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskImage cloneDiskImage ( org.ovirt.engine.core.compat.Guid newImageGuid ) { return cloneDiskImage ( newImageGuid , getDiskImage ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskImage cloneDiskImage ( org.ovirt.engine.core.compat.Guid newImageGuid ) { return cloneDiskImage ( newImageGuid , getDiskImage ( ) ) ; }
Source:
public boolean getAuthorizedKeysEnabled ( ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( ( ( java.lang.String ) ( getRootPassword ( ) . getEntity ( ) ) ) ) ) ; }

Target:
public boolean getRootPasswordEnabled ( ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getRootPassword ( ) . getEntity ( ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isEnabled = bootSequenceModel.getNetworkOption ( ) . getIsChangable ( ) ; java.lang.String itemName = bootSequenceModel.getNetworkOption ( ) . getTitle ( ) ; updateItemAvailability ( itemName , isEnabled ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateBootSequenceItems ( ) ; bootSequenceBox.setSelectedIndex ( bootSequenceModel.getSelectedItemIndex ( ) ) ; }
Source:
public void testInterfaceByNameExists ( ) { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( ) ) . interfaceHasNameSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testInterfaceByNameExists ( ) { org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( ) ) . interfaceHasNameSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public static void GetVmTemplatesWithPermittedAction ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters getEntitiesWithPermittedActionParameters = new org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters ( ) ; getEntitiesWithPermittedActionParameters.setActionGroup ( actionGroup ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesWithPermittedAction , getEntitiesWithPermittedActionParameters , aQuery ) ; }

Target:
public static void getVmTemplatesWithPermittedAction ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters getEntitiesWithPermittedActionParameters = new org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters ( ) ; getEntitiesWithPermittedActionParameters.setActionGroup ( actionGroup ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesWithPermittedAction , getEntitiesWithPermittedActionParameters , aQuery ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.CollectVdsNetworkDataAfterInstallation , new org.ovirt.engine.core.common.vdscommands.CollectHostNetworkDataVdsCommandParameters ( host ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getBackend ( ) . getResourceManager ( ) . runVdsCommand ( VDSCommandType.CollectVdsNetworkDataAfterInstallation , new org.ovirt.engine.core.common.vdscommands.CollectHostNetworkDataVdsCommandParameters ( host ) ) ; return null ; }
Source:
private org.ovirt.engine.core.aaa.DirectoryUser getDirectoryUser ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , NAMES [ index ] , NAMES [ index ] ) ; }

Target:
private org.ovirt.engine.core.aaa.DirectoryUser getDirectoryUser ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , NAMES [ index ] , NAMES [ index ] , "" ) ; }
Source:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.NIC nic = get ( ) ; nic.setPlugged ( true ) ; update ( nic ) ; return actionSuccess ( action ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.Nic nic = get ( ) ; nic.setPlugged ( true ) ; update ( nic ) ; return actionSuccess ( action ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) { return ( ( getQos ( ) ) != null ) && ( ( getQos ( ) . getOutAverageLinkshare ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) { return ( ( getQos ( ) ) != null ) && ( ( getQos ( ) . getOutAverageLinkshare ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testVmDiskWithPassDiscardAndWadExistsFails ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , false ) ; createVmDiskOnSd ( false , true ) ; org.junit.Assert.assertFalse ( discardHelper.vmDiskWithPassDiscardAndWadExists ( storageDomainDisks , storageDomainVmDisks ) ) ; }

Target:
public void testGetLunsThatBreakPassDiscardFunctionalityDiscardFunctionalityDoesntBreak ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( false , true ) ; assertGetLunsThatBreakPassDiscardFunctionalityContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.aaa.DbUser object ) { return org.ovirt.engine.ui.frontend.utils.FormatUtils.getFullLoginName ( object ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.aaa.DbUser object ) { return object.getLoginName ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment ) { return ! ( networkAttachment.getReportedConfigurations ( ) . isNetworkInSync ( ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment ) { return ! ( networkAttachment.getReportedConfigurations ( ) . isNetworkInSync ( ) ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; mockMaxPciSlots ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
public void setText ( com.google.gwt.safehtml.shared.SafeHtml text ) { setTooltipText ( text.asString ( ) ) ; tooltip.reconfigure ( ) ; }

Target:
public void setText ( com.google.gwt.safehtml.shared.SafeHtml text ) { tooltip.setHtml ( ( useItalic ? wrapItalic ( text ) : text ) ) ; }
Source:
protected void endSuccessfully ( ) { super . endSuccessfully ( ) ; if ( isLastTaskHandler ( ) ) { org.ovirt.engine.core.bll.job.ExecutionHandler.setAsyncJob ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getExecutionContext ( ) , false ) ; } }

Target:
protected void endSuccessfully ( ) { super . endSuccessfully ( ) ; updateImagesInfo ( ) ; unlockDisk ( ) ; org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.setSucceeded ( true ) ; }
Source:
public void testGetEntityPermissions ( ) { org.junit.Assert.assertNotNull ( dao.getEntityPermissions ( org.ovirt.engine.core.dao.PermissionDAOTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.VM_BASIC_OPERATIONS , org.ovirt.engine.core.dao.PermissionDAOTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VM ) ) ; org.junit.Assert.assertNull ( dao.getEntityPermissions ( org.ovirt.engine.core.dao.PermissionDAOTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.CREATE_TEMPLATE , org.ovirt.engine.core.dao.PermissionDAOTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VM ) ) ; }

Target:
public void testGetEntityPermissions ( ) { org.junit.Assert.assertNotNull ( dao.getEntityPermissions ( org.ovirt.engine.core.dao.PermissionDAOTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.RUN_VM , org.ovirt.engine.core.dao.PermissionDAOTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VM ) ) ; org.junit.Assert.assertNull ( dao.getEntityPermissions ( org.ovirt.engine.core.dao.PermissionDAOTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.CREATE_TEMPLATE , org.ovirt.engine.core.dao.PermissionDAOTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VM ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml twoLinesRadioButtonLabel ( java.lang.String firstLine , java.lang.String secondLine ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml volumeActivityMenu ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator getDiskImagesValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImageInList = new java.util.ArrayList < > ( ) ; diskImageInList.add ( diskImage ) ; return new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImageInList ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( diskImage ) ; }
Source:
public void nameNotUsed ( ) { org.junit.Assert.assertThat ( validator.nameNotUsed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nameNotUsed ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.nameNotUsed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getQuotaByAdElementId ( org.ovirt.engine.core.compat.Guid adElementId , org.ovirt.engine.core.compat.Guid storagePoolId ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getQuotaByAdElementId ( org.ovirt.engine.core.compat.Guid adElementId , org.ovirt.engine.core.compat.Guid storagePoolId , boolean recursive ) ;
Source:
protected void beforeUiCommonInitEvent ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.init ( eventBus , user , loginModel ) ; }

Target:
protected void beforeUiCommonInitEvent ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.init ( eventBus , user , loginModel , frontendFailureEventListener ) ; }
Source:
public org.ovirt.engine.api.model.Cluster update ( org.ovirt.engine.api.model.Cluster incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVdsGroupById , org.ovirt.engine.core.common.queries.GetVdsGroupByIdParameters.class ) , VdcActionType.UpdateVdsGroup , new org.ovirt.engine.api.restapi.resource.BackendClusterResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Cluster update ( org.ovirt.engine.api.model.Cluster incoming ) { validateEnums ( org.ovirt.engine.api.model.Cluster.class , incoming ) ; return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVdsGroupById , org.ovirt.engine.core.common.queries.GetVdsGroupByIdParameters.class ) , VdcActionType.UpdateVdsGroup , new org.ovirt.engine.api.restapi.resource.BackendClusterResource.UpdateParametersProvider ( ) ) ; }
Source:
public void MoveItemUp ( ) { if ( ( getSelectedItemIndex ( ) ) > 0 ) { getItems ( ) . Move ( getSelectedItemIndex ( ) , ( ( getSelectedItemIndex ( ) ) - 1 ) ) ; } }

Target:
public void moveItemUp ( ) { if ( ( getSelectedItemIndex ( ) ) > 0 ) { getItems ( ) . Move ( getSelectedItemIndex ( ) , ( ( getSelectedItemIndex ( ) ) - 1 ) ) ; } }
Source:
public void validWhenConditionDoesntOccur ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR ) . when ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validWhenConditionDoesntOccur ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR ) . when ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult diskProfileIsSet ( ) { return ( diskProfile ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.common.businessentities.profiles.DiskProfile getDiskProfile ( ) { if ( ( diskProfile ) == null ) { diskProfile = getDiskProfileDao ( ) . get ( diskProfileId ) ; } return diskProfile ; }
Source:
protected void lockImage ( ) { imagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getId ( ) , ImageStatus.LOCKED , org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getImageStatus ( ) , org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getCompensationContext ( ) ) ; }

Target:
protected void lockImage ( ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getId ( ) , ImageStatus.LOCKED , org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getImageStatus ( ) , org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getCompensationContext ( ) ) ; }
Source:
public void init ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { super . init ( model ) ; initListeners ( model ) ; swithAccordingToMode ( model ) ; }

Target:
public void init ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { super . init ( model ) ; initAdvancedModeFromLocalStorage ( model ) ; swithAccordingToMode ( model ) ; initListeners ( model ) ; }
Source:
private boolean vmDeviceChanged ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceType , boolean deviceEnabled ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > vmDevices = org.ovirt.engine.core.bll.UpdateVmCommand.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getVmId ( ) , deviceType ) ; return deviceEnabled == ( vmDevices.isEmpty ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }
Source:
public void testNetworkLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Network network = new org.ovirt.engine.api.model.Network ( ) ; network.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( network ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_HREF , network.getHref ( ) ) ; }

Target:
public void testNetworkLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Network network = new org.ovirt.engine.api.model.Network ( ) ; network.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( network ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_HREF , network.getHref ( ) ) ; }
Source:
private void totalCPUCores_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { removeCPUListeners ( ) ; behavior.totalCpuCoresChanged ( ) ; addCPUListeners ( ) ; }

Target:
private void totalCPUCores_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { removeCPUListeners ( ) ; behavior.totalCpuCoresChanged ( ) ; setNumaChanged ( true ) ; addCPUListeners ( ) ; }
Source:
public void loadAttachableDisks ( org.ovirt.engine.core.common.businessentities.storage.Disk prevSelected ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( Disk.DiskStorageType.IMAGE , prevSelected ) , new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( Disk.DiskStorageType.LUN , prevSelected ) ) ; }

Target:
public void loadAttachableDisks ( org.ovirt.engine.core.common.businessentities.storage.Disk prevSelected ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE , prevSelected ) , new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN , prevSelected ) ) ; }
Source:
public boolean checkDBConnection ( ) { return ( new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "CheckDBConnection" ) . execute ( ) ) != null ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.DbEngineDialect getDbEngineDialect ( ) { return dbEngineDialect ; }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( getDelegate ( ) :: remove ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { return remove ( new org.ovirt.engine.api.v3.types.V3Action ( ) ) ; }
Source:
public void setSessionTimeout ( java.lang.String engineSessionTimeout ) { try { setSessionTimeout ( java.lang.Integer.valueOf ( engineSessionTimeout ) ) ; } catch ( java.lang.NumberFormatException ex ) { setSessionTimeout ( org.ovirt.engine.ui.common.restapi.RestApiSessionManager.DEFAULT_ENGINE_SESSION_TIMEOUT ) ; } }

Target:
public void setSessionTimeout ( java.lang.String engineSessionTimeout ) { try { setSessionTimeout ( java.lang.Integer.parseInt ( engineSessionTimeout ) ) ; } catch ( java.lang.NumberFormatException ex ) { setSessionTimeout ( org.ovirt.engine.ui.common.restapi.RestApiSessionManager.DEFAULT_ENGINE_SESSION_TIMEOUT ) ; } }