auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.dom.client.NativeEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE ) == ( event.getKeyCode ( ) ) ) { getView ( ) . hide ( ) ; unbind ( ) ; } }

Target:
protected void onBind ( ) { super . onBind ( ) ; roleModelProvider.getModel ( ) . Search ( ) ; systemPermissionModelProvider.getModel ( ) . Search ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.MainTabHostView view = ( ( org.ovirt.engine.ui.webadmin.section.main.view.tab.MainTabHostView ) ( target ) ) ; view.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { maxSpmPriority = returnValue ; InitSpmPriorities1 ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM createVmStatusDown ( org.ovirt.engine.core.common.businessentities.VM ... otherPluggedVMs ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( VMStatus.Down ) ; vm.setGuestOs ( "rhel6" ) ; vm.setId ( vmId ) ; vm.setVdsGroupCompatibilityVersion ( Version.v3_1 ) ; return vm ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM createVmStatusDown ( org.ovirt.engine.core.common.businessentities.VM ... otherPluggedVMs ) { return createVm ( VMStatus.Down ) ; }
Source:
protected org.ovirt.engine.core.dao.ImageTransferDao getImageTransferDao ( ) { return org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getDbFacade ( ) . getImageTransferDao ( ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.compat.Guid imageId = org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . getImageId ( ) ; if ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( imageId ) ) ) { return validateUploadToImage ( imageId ) ; } else { return validateCreateImage ( ) ; } }
Source:
public boolean isObjectInSetup ( java.lang.Object vmTemplate ) { if ( ( alreadyInSystem ) == null ) { return false ; } return alreadyInSystem.containsKey ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( vmTemplate ) ) . getId ( ) ) ; }

Target:
public void setEntity ( java.lang.Object value ) { super . setEntity ( ( value == null ? null : ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( value ) ) . getTemplate ( ) ) ) ; }
Source:
public void collectiontoStringOneElement ( ) { java.lang.String s = "abc" ; org.junit.Assert.assertEquals ( ( ( "[" + s ) + "]" ) , org.ovirt.engine.core.common.businessentities.Entities.collectionToString ( java.util.Arrays.asList ( s ) , "" ) ) ; }

Target:
public void collectiontoStringOneElement ( ) { java.lang.String s = "abc" ; org.junit.Assert.assertEquals ( ( ( "[" + s ) + "]" ) , org.ovirt.engine.core.common.businessentities.Entities.collectionToString ( java.util.Collections.singletonList ( s ) , "" ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmRngDevice.Source getSource ( ) { try { return org.ovirt.engine.core.common.businessentities.VmRngDevice.Source.valueOf ( ( ( java.lang.String ) ( getSpecParams ( ) . get ( org.ovirt.engine.core.common.businessentities.VmRngDevice.SOURCE_STRING ) ) ) . toUpperCase ( ) ) ; } catch ( java.lang.Exception e ) { return org.ovirt.engine.core.common.businessentities.VmRngDevice.Source.RANDOM ; } }

Target:
public org.ovirt.engine.core.common.businessentities.VmRngDevice.Source getSource ( ) { try { return org.ovirt.engine.core.common.businessentities.VmRngDevice.Source.valueOf ( ( ( java.lang.String ) ( getSpecParams ( ) . get ( org.ovirt.engine.core.common.businessentities.VmRngDevice.SOURCE_STRING ) ) ) . toUpperCase ( ) ) ; } catch ( java.lang.Exception e ) { return org.ovirt.engine.core.common.businessentities.VmRngDevice.Source.URANDOM ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult labelNotInVfsConfig ( java.lang.String label ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_LABEL_ALREADY_IN_VFS_CONFIG , getNicNameReplacement ( ) , java.lang.String.format ( org.ovirt.engine.core.bll.validator.VfsConfigValidator.LABEL_REPLACEMENT , label ) ) . when ( oldVfsConfig.getLabels ( ) . contains ( label ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult labelNotInVfsConfig ( java.lang.String label ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_LABEL_ALREADY_IN_VFS_CONFIG , getNicNameReplacement ( ) , java.lang.String.format ( org.ovirt.engine.core.bll.validator.VfsConfigValidator.LABEL_REPLACEMENT , label ) ) . when ( oldVfsConfig.getNetworkLabels ( ) . contains ( label ) ) ; }
Source:
public void validateNoDirectLunIdAndRandomStoragePoolId ( ) { setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void validateNoDirectLunIdAndInvalidStoragePool ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateStoragePool ( ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }
Source:
public void setavailable_disk_size ( java.lang.Integer value ) { this . availableDiskSize = value ; }

Target:
public void setAvailableDiskSize ( java.lang.Integer availableDiskSize ) { this . availableDiskSize = availableDiskSize ; }
Source:
private void cancelConfirmation ( ) { setConfirmWindow ( null ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { getWindow ( ) . stopProgress ( ) ; setWindow ( null ) ; }
Source:
private static org.ovirt.engine.core.sso.utils.Credentials translateUser ( java.lang.String user , java.lang.String password , org.ovirt.engine.core.sso.utils.SSOConfig config ) { org.ovirt.engine.core.sso.utils.Credentials credentials = null ; int separator = user.lastIndexOf ( "@" ) ; if ( separator != ( - 1 ) ) { java.lang.String profile = user.substring ( ( separator + 1 ) ) ; if ( ( org.apache.commons.lang.StringUtils.isNotEmpty ( profile ) ) && ( config.getSsoProfiles ( ) . contains ( profile ) ) ) { credentials = new org.ovirt.engine.core.sso.utils.Credentials ( ) ; credentials.setPassword ( password ) ; credentials.setProfile ( profile ) ; credentials.setUsername ( user.substring ( 0 , separator ) ) ; } } return credentials ; }

Target:
public static org.ovirt.engine.core.sso.utils.Credentials translateUser ( java.lang.String user , java.lang.String password , org.ovirt.engine.core.sso.utils.SSOContext ssoContext ) { org.ovirt.engine.core.sso.utils.Credentials credentials = new org.ovirt.engine.core.sso.utils.Credentials ( ) ; java.lang.String username = user ; int separator = user.lastIndexOf ( "@" ) ; if ( separator != ( - 1 ) ) { username = user.substring ( 0 , separator ) ; java.lang.String profile = user.substring ( ( separator + 1 ) ) ; if ( org.apache.commons.lang.StringUtils.isNotEmpty ( profile ) ) { credentials.setProfile ( profile ) ; credentials.setProfileValid ( ssoContext.getSsoProfiles ( ) . contains ( profile ) ) ; } } credentials.setUsername ( username ) ; credentials.setPassword ( password ) ; return credentials ; }
Source:
public java.lang.Integer getusage_mem_percent ( ) { return this . mVmStatistics.getusage_mem_percent ( ) ; }

Target:
public void setVmtOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmtOs = value ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return constants.rebootVm ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.rebootVm ( ) ) ; }
Source:
org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createManagementNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( managementNetworkCluster , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createManagementNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( interfaceDao , networkDao , managementNetworkCluster , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
private void verifyDomainForMemory ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StorageDomain expectedStorageDomain ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = memoryStorageHandler.findStorageDomainForMemory ( storageDomains , memoryDisks , vmDisks ) ; org.junit.Assert.assertEquals ( expectedStorageDomain , storageDomain ) ; }

Target:
private void verifyDomainForMemory ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StorageDomain expectedStorageDomain ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = memoryStorageHandler.findStorageDomainForMemory ( storageDomains , memoryDisks , vmDisks ) ; org.junit.jupiter.api.Assertions.assertEquals ( expectedStorageDomain , storageDomain ) ; }
Source:
public java.lang.String getguest_os ( ) { return this . mVmDynamic.getguest_os ( ) ; }

Target:
public java.lang.String getDisplayIp ( ) { return this . vmDynamic.getdisplay_ip ( ) ; }
Source:
private void addFeatureStorageServerConnections ( org.ovirt.engine.api.model.Features features ) { org.ovirt.engine.api.model.Feature feature = new org.ovirt.engine.api.model.Feature ( ) ; feature.setName ( "Storage server connections" ) ; feature.setDescription ( "Ability to manage storage server connections" ) ; }

Target:
private void addFeatureStorageServerConnections ( org.ovirt.engine.api.model.Features features ) { org.ovirt.engine.api.model.Feature feature = new org.ovirt.engine.api.model.Feature ( ) ; feature.setName ( "Storage server connections" ) ; feature.setDescription ( "Ability to manage storage server connections" ) ; features.getFeature ( ) . add ( feature ) ; }
Source:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.Disk a ) { return a.getId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.storage.Disk a ) { return a.getId ( ) ; }
Source:
public org.ovirt.engine.core.common.errors.VdcBllMessages getNetworkInUse ( int numberOfEntities ) { return singularOrPlural ( numberOfEntities , VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE , VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES ) ; }

Target:
public org.ovirt.engine.core.common.errors.EngineMessage getNetworkInUse ( int numberOfEntities ) { return singularOrPlural ( numberOfEntities , EngineMessage.ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE , EngineMessage.ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES ) ; }
Source:
public void setapp_list ( java.lang.String value ) { this . mVmDynamic.setapp_list ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "app_list" ) ) ; }

Target:
public java.util.Date getGuestLastLoginTime ( ) { return this . vmDynamic.getguest_last_login_time ( ) ; }
Source:
public boolean isEnabled ( ) { return getLabel ( ) . isEnabled ( ) ; }

Target:
public boolean isEnabled ( ) { return label.isEnabled ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return ( getNetwork ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator ( getNetwork ( ) ) . networkIsSet ( ) ; }
Source:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidAdElement ( ) { org.ovirt.engine.core.common.businessentities.permissions result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidAdElement ( ) { org.ovirt.engine.core.common.businessentities.permissions result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , context.clone ( ) . withExecutionContext ( executionContext ) ) ; }
Source:
private void doTestIpConfiguredForStaticBootProtocol ( java.lang.String address , java.lang.String netmask , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , address , netmask ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , matcher ) ; }

Target:
public void testBootProtocolSetForRoleNetworkWhenIpConfigurationNullAndNotRoleNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = createNetwork ( ) ; doTestBootProtocolSetForRoleNetworkWhenNullValuedIpConfiguration ( true , network , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_ROLE_NETWORK_HAS_NO_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentValidator.VAR_ACTION_TYPE_FAILED_ROLE_NETWORK_HAS_NO_BOOT_PROTOCOL_ENTITY , network.getName ( ) ) ) ) ; }
Source:
public void testValidateFieldValueWithEnum ( ) { org.ovirt.engine.core.searchbackend.IConditionFieldAutoCompleter comp = new org.ovirt.engine.core.searchbackend.DiskConditionFieldAutoCompleter ( ) ; org.junit.Assert.assertTrue ( comp.validateFieldValue ( "FORMAT" , "RAW" ) ) ; }

Target:
public void testValidateFieldValueWithEnum ( ) { org.ovirt.engine.core.searchbackend.IConditionFieldAutoCompleter comp = new org.ovirt.engine.core.searchbackend.DiskConditionFieldAutoCompleter ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( comp.validateFieldValue ( "FORMAT" , "RAW" ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getHostProvider ( ) { return org.ovirt.engine.core.bll.AddVdsCommand.getProviderDao ( ) . get ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getProviderId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getHostProvider ( ) { return org.ovirt.engine.core.bll.AddVdsCommand.getProviderDao ( ) . get ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getVdsStaticData ( ) . getHostProviderId ( ) ) ; }
Source:
public void setMemoryVolumes ( java.lang.String memoryVolumes ) { this . memoryVolumes = memoryVolumes ; }

Target:
public void setSnapshot ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { this . snapshot = snapshot ; }
Source:
public void testDomainWithNotEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mockStorageDomain ( 3 , 756 , StorageType.NFS ) ) ; org.junit.Assert.assertEquals ( "Wrong failure for not enough space" , EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN , validator.isDomainWithinThresholds ( ) . getMessage ( ) ) ; }

Target:
public void testDomainWithNotEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mockStorageDomain ( 3 , 756 , StorageType.NFS ) ) ; org.junit.Assert.assertThat ( "Wrong failure for not enough space" , validator.isDomainWithinThresholds ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; }
Source:
protected void executeCommand ( ) { setQuotaParameter ( ) ; getQuotaDAO ( ) . save ( getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
private java.lang.Void executeAddQutoa ( ) { getQuotaDAO ( ) . save ( getQuota ( ) ) ; if ( getParameters ( ) . isCopyPermissions ( ) ) { copyQuotaPermissions ( ) ; } getReturnValue ( ) . setSucceeded ( true ) ; return null ; }
Source:
public void checkNotValidEmptyStringAllowed ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , true ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( NOT_VALID ) ; org.junit.Assert.assertEquals ( failureValidationResultEmptyAllowed , validationResult ) ; }

Target:
public void checkNotValidEmptyStringAllowed ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , true ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.NOT_VALID ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyAllowed , validationResult ) ; }
Source:
public void hostProviderDoesNotExist ( ) { org.mockito.Mockito.when ( host.getHostProviderId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( validator.hostProviderExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) ) ; }

Target:
public void hostProviderDoesNotExist ( ) { org.mockito.Mockito.when ( host.getHostProviderId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.hostProviderExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) ) ; }
Source:
protected void updateBootOrderInVmDevice ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.bll.AttachDiskToVmCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void updateBootOrderInVmDevice ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrder ( org.ovirt.engine.core.bll.AttachDiskToVmCommand.getVm ( ) . getId ( ) ) ; }
Source:
protected void refreshBootParameters ( org.ovirt.engine.core.common.action.RunVmParams runVmParameters ) { if ( runVmParameters == null ) { return ; } org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . setboot_sequence ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getdefault_boot_sequence ( ) ) ; }

Target:
protected void refreshBootParameters ( org.ovirt.engine.core.common.action.RunVmParams runVmParameters ) { if ( runVmParameters == null ) { return ; } org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . setBootSequence ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDefaultBootSequence ( ) ) ; }
Source:
public void setOsType ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { setos ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getOsType ( ) { return getOs ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( int idx ) { org.ovirt.engine.core.common.businessentities.storage_domains dom = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; dom.setId ( GUIDS [ idx ] ) ; dom.setstorage_name ( NAMES [ idx ] ) ; return dom ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomain ( int idx ) { org.ovirt.engine.api.model.StorageDomain dom = new org.ovirt.engine.api.model.StorageDomain ( ) ; dom.setId ( GUIDS [ idx ] ) ; dom.setstorage_name ( NAMES [ idx ] ) ; return dom ; }
Source:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return true ; }

Target:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return connectStorageToDomainByVdsIdDetails ( storageDomain , vdsId ) . getFirst ( ) ; }
Source:
org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterPolicyModel > getSubTabClusterPolicyModelProvider ( ) ;

Target:
org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.NetworkQoS , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterNetworkQoSListModel > getSubTabDataCenterNetworkQoSModelProvider ( ) ;
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.gin.ClientGinjector ginjector ) { return new com.gwtplatform.mvp.client.TabDataBasic ( ginjector.getApplicationConstants ( ) . extendedTemplateGeneralSubTabLabel ( ) , 0 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants ) { return new com.gwtplatform.mvp.client.TabDataBasic ( applicationConstants.extendedTemplateGeneralSubTabLabel ( ) , 0 ) ; }
Source:
public void removeAllCommandsBeforeDate ( org.ovirt.engine.core.compat.DateTime cutoff ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . removeAllBeforeDate ( cutoff ) ; cacheInitialized = false ; initializeCache ( ) ; }

Target:
public void removeAllCommandsBeforeDate ( org.ovirt.engine.core.compat.DateTime cutoff ) { commandEntityDao.removeAllBeforeDate ( cutoff ) ; cacheInitialized = false ; initializeCache ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , sysPrepDomainName , sysPrepUserName , sysPrepPassword , vmInit , destinationVdsId , customEmulatedMachine , customCpuName ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , sysPrepDomainName , sysPrepUserName , sysPrepPassword , vmInit , destinationVdsId , customEmulatedMachine , customCpuName , initrdUrl , kernelUrl , kernelParams , bootMenuEnabled , spiceFileTransferEnabled , spiceCopyPasteEnabled ) ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig hostNicVfsConfig ) { return getCustomMapSqlParameterSource ( ) . addValue ( "id" , hostNicVfsConfig.getId ( ) ) . addValue ( "nic_id" , hostNicVfsConfig.getNicId ( ) ) . addValue ( "all_networks_allowed" , hostNicVfsConfig.isAllNetworksAllowed ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig getByNicId ( org.ovirt.engine.core.compat.Guid nicId ) { return getCallsHandler ( ) . executeRead ( "GetVfsConfigByNicId" , createEntityRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "nic_id" , nicId ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getBalloonDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.String address ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , true , false , address , false ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , entitiesMap ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.BookmarkDAOTest.BOOKMARK_COUNT , result.size ( ) ) ; }

Target:
protected int getAllEntitiesCount ( ) { return org.ovirt.engine.core.dao.BookmarkDAOTest.BOOKMARK_COUNT ; }
Source:
public org.ovirt.engine.api.model.Nic addParents ( org.ovirt.engine.api.model.Nic nic ) { org.ovirt.engine.api.model.InstanceType parent = new org.ovirt.engine.api.model.InstanceType ( ) ; parent.setId ( parentId.toString ( ) ) ; nic.setInstanceType ( parent ) ; return nic ; }

Target:
public org.ovirt.engine.api.model.Nic addParents ( org.ovirt.engine.api.model.Nic nic ) { org.ovirt.engine.api.model.InstanceType instanceType = new org.ovirt.engine.api.model.InstanceType ( ) ; instanceType.setId ( instanceTypeId.toString ( ) ) ; nic.setInstanceType ( instanceType ) ; return nic ; }
Source:
public void persistCommandWithoutContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , null , enableCallBack ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallback ) { persistCommand ( parentCommand , getContext ( ) , enableCallback ) ; }
Source:
public void testGetAllForQuotaId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getConsumedPermissionsForQuotaId ( FixturesTool.QUOTA_GENERAL ) ; org.junit.Assert.assertEquals ( result.get ( 0 ) . getad_element_id ( ) , FixturesTool.USER_EXISTING_ID ) ; }

Target:
public void testGetAllForQuotaId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > result = dao.getConsumedPermissionsForQuotaId ( FixturesTool.QUOTA_GENERAL ) ; org.junit.Assert.assertEquals ( result.get ( 0 ) . getAdElementId ( ) , FixturesTool.USER_EXISTING_ID ) ; }
Source:
protected void addNetworkImportData ( java.lang.String macAddr , java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData data = new org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData ( ) ; data.setNetworks ( networks ) ; networkImportDataMap.put ( macAddr , data ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData getNetworkImportData ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { return networkImportDataMap.get ( ( ( ( iface.getVmName ( ) ) + "$" ) + ( iface.getName ( ) ) ) ) ; }
Source:
protected void ExecuteVDSCommand ( ) { if ( ( _vdsManager ) != null ) { synchronized ( _vdsManager.getLockObj ( ) ) { ExecuteVdsIdCommand ( ) ; } } else { ExecuteVdsIdCommand ( ) ; } }

Target:
protected void executeVDSCommand ( ) { if ( ( _vdsManager ) != null ) { synchronized ( _vdsManager.getLockObj ( ) ) { ExecuteVdsIdCommand ( ) ; } } else { ExecuteVdsIdCommand ( ) ; } }
Source:
protected int getMaxClonedNameLength ( java.lang.Object object ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vm.getOs ( ) ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ; }

Target:
protected int getMaxClonedNameLength ( java.lang.Object object ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vm.getOs ( ) ) ? org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getMaxVmNameLengthWin ( ) : org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getMaxVmNameLengthNonWin ( ) ; }
Source:
public java.util.List < java.lang.String > getAllHostNamesPinnedToVm ( org.ovirt.engine.core.compat.Guid vm ) { return getCallsHandler ( ) . executeReadList ( "GetNamesOfHostsDedicatedToVm" , getStringMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , vm ) ) ; }

Target:
public java.util.List < java.lang.String > getAllHostNamesPinnedToVm ( org.ovirt.engine.core.compat.Guid vm ) { return getCallsHandler ( ) . executeReadList ( "GetNamesOfHostsDedicatedToVm" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.String.class ) , getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , vm ) ) ; }
Source:
public void testGetLocaleFromRequest_Path ( ) { org.mockito.Mockito.when ( mockRequest.getPathInfo ( ) ) . thenReturn ( "/ja/index.html" ) ; java.util.Locale result = testServlet.getLocaleFromRequest ( mockRequest ) ; org.junit.Assert.assertEquals ( "The locale should be fr" , java.util.Locale.JAPANESE , result ) ; }

Target:
public void testGetLocaleFromRequest_Path ( ) { org.mockito.Mockito.when ( mockRequest.getPathInfo ( ) ) . thenReturn ( "/ja/index.html" ) ; java.util.Locale result = testServlet.getLocaleFromRequest ( mockRequest ) ; org.junit.Assert.assertEquals ( "The locale should be ja" , java.util.Locale.JAPANESE , result ) ; }
Source:
private void markHostDevicesAsUsed ( ) { if ( needsHostDevices ) { hostDeviceManager.allocateVmHostDevices ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ; } }

Target:
private void acquireHostDevicesLock ( ) { if ( needsHostDevices ) { hostDeviceManager.acquireHostDevicesLock ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVdsList ( ) . get ( 0 ) ) ; } }
Source:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { setId ( value ) ; }

Target:
public void setClusterId ( org.ovirt.engine.core.compat.Guid value ) { setId ( value ) ; }
Source:
public void testGetByNameAndVersionWithInvalidVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getoption_name ( ) , "farkle" ) ; assertNull ( result ) ; }

Target:
public void testGetByNameAndVersionWithInvalidVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getoption_name ( ) , "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private void mockStorageDomainDAOGetForStoragePool ( ) { mockStorageDomainDAOGetForStoragePool ( org.ovirt.engine.core.bll.AddVmCommandTest.AVAILABLE_SPACE_GB ) ; }

Target:
private void mockStorageDomainDaoGetForStoragePool ( ) { mockStorageDomainDaoGetForStoragePool ( org.ovirt.engine.core.bll.AddVmCommandTest.AVAILABLE_SPACE_GB ) ; }
Source:
public void setIsoPath ( java.lang.String value ) { vmStatic.setiso_path ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.OriginType getOrigin ( ) { return vmStatic.getOrigin ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel entity = control.createMock ( org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel.class ) ; org.easymock.EasyMock.expect ( entity.getId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResourceTest.LABELS [ index ] ) . anyTimes ( ) ; return entity ; }

Target:
protected org.ovirt.engine.api.model.NetworkLabel getEntity ( int index ) { org.ovirt.engine.api.model.NetworkLabel entity = control.createMock ( org.ovirt.engine.api.model.NetworkLabel.class ) ; org.easymock.EasyMock.expect ( entity.getId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResourceTest.LABELS [ index ] ) . anyTimes ( ) ; return entity ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public void validateNoDirectLunIdAndRandomStoragePoolId ( ) { setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void validateNoDirectLunIdAndValidStoragePool ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateStoragePool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }
Source:
public void clearSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; }

Target:
public void clearSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "session" ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.BaseDisk getDisk ( ) { return org.ovirt.engine.core.bll.storage.disk.image.AllocateImageGroupVolumeCommand.getBaseDiskDao ( ) . get ( org.ovirt.engine.core.bll.storage.disk.image.AllocateImageGroupVolumeCommand.getParameters ( ) . getImageGroupID ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.BaseDisk getDisk ( ) { return baseDiskDao.get ( org.ovirt.engine.core.bll.storage.disk.image.AllocateImageGroupVolumeCommand.getParameters ( ) . getImageGroupID ( ) ) ; }
Source:
java.lang.String numberValidationNumberLessInvalidReason ( java.lang.String prefixMsg , java.lang.String max ) ;

Target:
java.lang.String numberValidationNumberBetweenInvalidReason ( java.lang.String prefixMsg , java.lang.String min , java.lang.String max ) ;
Source:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol ) { this . bootProtocol = bootProtocol ; }

Target:
public void setIpv4BootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol ipv4BootProtocol ) { this . ipv4BootProtocol = ipv4BootProtocol ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByName ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByName ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getName ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getId ( ) . equals ( nc.getnetwork_id ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getId ( ) . equals ( nc.getnetwork_id ( ) ) ; }
Source:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { setSearchString ( ( "Events:event_template=" + ( template.getname ( ) ) ) ) ; }

Target:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { setSearchString ( ( "Events:event_template=" + ( template.getName ( ) ) ) ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getVdsName ( ) , ex ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getName ( ) , ex ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 2 ) , isPostZero ( ) , false ) ; }

Target:
protected abstract org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) ;
Source:
protected void removeMemoryVolume ( java.lang.String memoryVolumes ) { if ( isMemoryStateRemovable ( memoryVolumes ) ) { removeMemoryVolumes ( memoryVolumes ) ; } }

Target:
protected boolean removeMemoryVolume ( java.lang.String memoryVolumes ) { if ( isMemoryStateRemovable ( memoryVolumes ) ) { return removeMemoryVolumes ( memoryVolumes ) ; } return true ; }
Source:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createShareableDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setShareable ( true ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createShareableDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setShareable ( true ) ; return image ; }
Source:
protected void endMoveOrCopyCommand ( ) { org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( getVmTemplateId ( ) ) ; endActionOnAllImageGroups ( ) ; updateTemplateInSpm ( ) ; setSucceeded ( true ) ; }

Target:
protected void endMoveOrCopyCommand ( ) { org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( getVmTemplateId ( ) ) ; endActionOnAllImageGroups ( ) ; setSucceeded ( true ) ; }
Source:
protected void onHide ( ) { super . onHide ( ) ; pluginManager.disablePluginInvocation ( ) ; alertManager.setCanShowAlerts ( false ) ; }

Target:
protected void onHide ( ) { super . onHide ( ) ; alertManager.setCanShowAlerts ( false ) ; }
Source:
public java.lang.String getVdsDestination ( ) { if ( ( getDestinationVds ( ) ) != null ) { return getDestinationVds ( ) . getName ( ) ; } else { return null ; } }

Target:
public java.lang.String getVdsDestination ( ) { return ( getDestinationVds ( ) ) != null ? getDestinationVds ( ) . getName ( ) : null ; }
Source:
void vdsMovedToMaintanance ( org.ovirt.engine.core.compat.Guid vdsId ) ;

Target:
void vdsMovedToMaintanance ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
public org.ovirt.engine.core.compat.NGuid getStorageDomainId ( ) { if ( ( _storageDomain ) != null ) { return _storageDomain.getId ( ) ; } else { return _storageDomainId ; } }

Target:
public org.ovirt.engine.core.compat.NGuid getStorageDomainId ( ) { if ( ( _storageDomain ) != null ) { return _storageDomain.getId ( ) ; } return _storageDomainId ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains mockSecondStorageDomain ( int availabeDiskSize ) { org.ovirt.engine.core.common.businessentities.storage_domains storageDomain = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; storageDomain.setavailable_disk_size ( availabeDiskSize ) ; storageDomain.setstatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( secondStorageDomainId ) ; storageDomain.setstorage_domain_type ( StorageDomainType.Data ) ; return storageDomain ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockSecondStorageDomain ( int availabeDiskSize ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setavailable_disk_size ( availabeDiskSize ) ; storageDomain.setstatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( secondStorageDomainId ) ; storageDomain.setstorage_domain_type ( StorageDomainType.Data ) ; return storageDomain ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { osNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; initOsIds ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { osNames = returnValue.getReturnValue ( ) ; initOsIds ( ) ; }
Source:
public void legalArchitectureChange ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; architectureIsUpdatable ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void legalArchitectureChange ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; architectureIsUpdatable ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
protected boolean checkStoragePoolNameLengthValid ( ) { boolean result = true ; if ( ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) . getname ( ) . length ( ) ) > ( getStoragePoolNameSizeLimit ( ) ) ) { result = false ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; } return result ; }

Target:
protected boolean checkStoragePoolNameLengthValid ( ) { boolean result = true ; if ( ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) . getName ( ) . length ( ) ) > ( getStoragePoolNameSizeLimit ( ) ) ) { result = false ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; } return result ; }
Source:
public static org.ovirt.engine.core.common.job.Step addSubStep ( org.ovirt.engine.core.bll.job.ExecutionContext context , org.ovirt.engine.core.common.job.Step parentStep , org.ovirt.engine.core.common.job.StepEnum newStepName , java.lang.String description ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.addSubStep ( context , parentStep , newStepName , description , false ) ; }

Target:
public org.ovirt.engine.core.common.job.Step addSubStep ( org.ovirt.engine.core.bll.job.ExecutionContext context , org.ovirt.engine.core.common.job.Step parentStep , org.ovirt.engine.core.common.job.StepEnum newStepName , java.lang.String description ) { return addSubStep ( context , parentStep , newStepName , description , false ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains createSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.storage_domains sd = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; sd.setstorage_domain_type ( StorageDomainType.ImportExport ) ; sd.setstatus ( StorageDomainStatus.Active ) ; return sd ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setstorage_domain_type ( StorageDomainType.ImportExport ) ; sd.setstatus ( StorageDomainStatus.Active ) ; return sd ; }
Source:
protected org.ovirt.engine.core.bll.context.CompensationContext getCompensationContext ( ) { return context.getCompensationContext ( ) ; }

Target:
public org.ovirt.engine.core.bll.context.CompensationContext getCompensationContext ( ) { return context.getCompensationContext ( ) ; }