auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Map < java.lang.String , java.lang.Object > getStorageConnectionsList ( java.lang.String spUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > abortV2VJob ( java.lang.String jobUUID ) ;
Source:
protected org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { if ( doesUserHavePemissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDAO ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) ) ; } return null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { if ( doesUserHavePemissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) ) ; } return null ; }
Source:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice , boolean value ) { spice.setOverrideEnabledSmartcard ( value ) ; }

Target:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { return spice.getOptions ( ) . isSpiceProxyEnabled ( ) ; }
Source:
protected boolean isVirtioScsiEnabled ( ) { java.lang.Boolean virtioScsiEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isVirtioScsiEnabled ( ) ; return virtioScsiEnabled != null ? virtioScsiEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isVirtioScsiControllerAttached ( getVmId ( ) ) ; }

Target:
private boolean isBalloonEnabled ( ) { java.lang.Boolean balloonEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isBalloonEnabled ( ) ; return balloonEnabled != null ? balloonEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isBalloonEnabled ( getVmId ( ) ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , false ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , false ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.get ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend getBackendResourceManager ( ) { return org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.getBackend ( ) . getResourceManager ( ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getReplicateVolumes ( org.ovirt.engine.core.compat.Guid clusterId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType > volumeTypes ) { return org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.getGlusterVolumeDao ( ) . getVolumesByStatusAndTypes ( clusterId , GlusterStatus.UP , volumeTypes ) ; }
Source:
public java.lang.String getVmDescription ( ) { return this . vmStatic.getdescription ( ) ; }

Target:
public void setVmDescription ( java.lang.String value ) { this . vmStatic.setDescription ( value ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.HostSetupNetworksParameters parameters = new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( hostId ) ; parameters.setRemovedUnmanagedNetworks ( java.util.Collections.singleton ( id ) ) ; return performAction ( VdcActionType.HostSetupNetworks , parameters ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.HostSetupNetworksParameters parameters = new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( hostId ) ; parameters.setRemovedUnmanagedNetworks ( java.util.Collections.singleton ( id ) ) ; return performAction ( ActionType.HostSetupNetworks , parameters ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( getDisk ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_IMAGE_DOES_NOT_EXIST ) ; } return ( ( validateHostedEngineDisks ( ) ) && ( validateAllVmsForDiskAreDown ( ) ) ) && ( canRemoveDiskBasedOnStorageTypeCheck ( ) ) ; }

Target:
protected boolean validate ( ) { if ( ( getDisk ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_VM_IMAGE_DOES_NOT_EXIST ) ; } return ( ( validateHostedEngineDisks ( ) ) && ( validateAllVmsForDiskAreDown ( ) ) ) && ( canRemoveDiskBasedOnStorageTypeCheck ( ) ) ; }
Source:
protected void executeVmCommand ( ) { super . executeVmCommand ( ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.setVm ( null ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . setVmtGuid ( VmTemplateHandler.BlankVmTemplateId ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVmStaticDao ( ) . update ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void executeVmCommand ( ) { super . executeVmCommand ( ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.setVm ( null ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . setVmtGuid ( VmTemplateHandler.BLANK_VM_TEMPLATE_ID ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVmStaticDao ( ) . update ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . getStaticData ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.utils.GlusterUtils getGlusterUtils ( ) { return org.ovirt.engine.core.bll.utils.GlusterUtils.getInstance ( ) ; }

Target:
private org.ovirt.engine.core.dao.gluster.GlusterDBUtils getGlusterUtils ( ) { return org.ovirt.engine.core.dao.gluster.GlusterDBUtils.getInstance ( ) ; }
Source:
private java.lang.String unEscapeRenderedText ( java.lang.String renderedText ) { renderedText = renderedText.replace ( "&lt;" , "<" ) ; return renderedText ; }

Target:
public java.lang.String render ( java.lang.String value ) { java.lang.String renderedText = super . render ( value ) ; renderedText = com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape ( renderedText ) ; return renderedText ; }
Source:
protected void itemsChanged ( ) { super . itemsChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }
Source:
public void setForceLabelMessage ( java.lang.String forceLabelMessage ) { forceEditor.setLabel ( ( forceLabelMessage == null ? org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GeoRepActionConfirmPopUpView.constants.notAvailableLabel ( ) : forceLabelMessage ) ) ; forceEditor.setVisible ( ( forceLabelMessage != null ) ) ; }

Target:
public void setForceLabelMessage ( java.lang.String forceLabelMessage ) { boolean isNonEmptyForceLabelMessage = forceLabelMessage != null ; if ( isNonEmptyForceLabelMessage ) { forceEditor.setLabel ( forceLabelMessage ) ; } forceEditor.setVisible ( isNonEmptyForceLabelMessage ) ; }
Source:
public void setUsedDiskSize ( java.lang.Integer usedDiskSize ) { getStorageDynamicData ( ) . setUsedDiskSize ( usedDiskSize ) ; UpdateTotalDiskSize ( ) ; }

Target:
public void setUsedDiskSize ( java.lang.Integer usedDiskSize ) { getStorageDynamicData ( ) . setUsedDiskSize ( usedDiskSize ) ; updateTotalDiskSize ( ) ; }
Source:
protected void updateVmInit ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; }

Target:
protected void updateVmInit ( org.ovirt.engine.core.common.businessentities.VM vm ) { vmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; }
Source:
public static java.util.Locale getLocaleFromRequest ( final javax.servlet.http.HttpServletRequest request ) { java.util.Locale locale = ( ( java.util.Locale ) ( request.getAttribute ( org.ovirt.engine.core.utils.servlet.LocaleFilter.LOCALE ) ) ) ; if ( locale == null ) { org.ovirt.engine.core.utils.servlet.LocaleFilter.log.error ( "no locale in request -- code problem -- check LocaleFilter configuration. Defaulting to US" ) ; } return locale ; }

Target:
public static java.util.Locale getLocaleFromRequest ( final javax.servlet.http.HttpServletRequest request ) { java.util.Locale locale = ( ( java.util.Locale ) ( request.getAttribute ( org.ovirt.engine.core.utils.servlet.LocaleFilter.LOCALE ) ) ) ; if ( locale == null ) { org.ovirt.engine.core.utils.servlet.LocaleFilter.log.error ( "no locale in request -- code problem -- check LocaleFilter configuration. Defaulting to US" ) ; locale = org.ovirt.engine.core.utils.servlet.LocaleFilter.DEFAULT_LOCALE ; } return locale ; }
Source:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAllWithQuery ( "SELECT * FROM audit_log WHERE vds_name = 'magenta-vdsc'" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.AuditLogDAOTest.EXISTING_COUNT , result.size ( ) ) ; }

Target:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAllWithQuery ( "SELECT * FROM audit_log WHERE vds_name = 'magenta-vdsc'" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.AuditLogDAOTest.FILTERED_COUNT , result.size ( ) ) ; }
Source:
public void testGetAllFromDisksIncludingSnapshotsByDiskIdForUnPrivilegedUserWithFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshotsByDiskId ( FixturesTool.IMAGE_GROUP_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( "wrong number of returned disks" , 0 , result.size ( ) ) ; }

Target:
public void testGetAllFromDisksIncludingSnapshotsByDiskIdForUnPrivilegedUserWithFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshotsByDiskId ( FixturesTool.IMAGE_GROUP_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , result.size ( ) , "wrong number of returned disks" ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getOsType ( ) { return getos ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return vdsGroupId ; }
Source:
public java.lang.String getPmProxyPreferences ( ) { return vdsStatic.getPmProxyPreferences ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType > getFenceProxySources ( ) { return vdsStatic.getFenceProxySources ( ) ; }
Source:
public void testInterfaceExistsWhenInterfaceIsNotNull ( ) { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( ) ) . interfaceExists ( "nicId" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testInterfaceExistsWhenInterfaceIsNotNull ( ) { org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( ) ) . interfaceExists ( "nicId" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void canDoActionFailed ( final org.ovirt.engine.core.common.errors.EngineMessage reason ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( reason.toString ( ) ) ) ; }

Target:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
private void createCommandWithOlderVersion ( ) { createCommand ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createVdsGroupWithOlderVersion ( ) ) ; }

Target:
private void createCommandWithOlderVersion ( boolean supportsVirtService , boolean supportsGlusterService ) { createCommand ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createVdsGroupWithOlderVersion ( true , false ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . virtualMachineVirtualDiskSubTabLabel ( ) , 3 , ginjector.getSubTabVirtualMachineVirtualDiskModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Disk , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineVirtualDiskSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
protected void verifyBuiltMigrationOptions ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.MIGRATION_SUPPORT , vm.getMigrationSupport ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.MIGRATION_DOWNTIME , vm.getMigrationDowntime ( ) ) ; }

Target:
protected void verifyBuiltMigrationOptions ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.MIGRATION_SUPPORT , vm.getMigrationSupport ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.MIGRATION_DOWNTIME , vm.getMigrationDowntime ( ) ) ; }
Source:
protected boolean shouldExecuteEndMethod ( org.ovirt.engine.core.bll.CommandBase < ? > commandBase ) { return ( ( commandBase.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ) || ( ! ( commandBase.getParameters ( ) . getShouldBeEndedByParent ( ) ) ) ; }

Target:
protected boolean shouldExecuteEndMethod ( org.ovirt.engine.core.bll.CommandBase < ? > commandBase ) { return ( ( commandBase.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ) || ( shouldCommandEndOnAsyncOpEnd ( commandBase ) ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return tsb.append ( "runAsync" , runAsync ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { if ( ! ( getExpectedEngineErrors ( ) . isEmpty ( ) ) ) { tsb.append ( "expectedEngineErrors" , getExpectedEngineErrors ( ) ) ; } return tsb.append ( "runAsync" , runAsync ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Network getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.Network ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.Network ? super . getEntity ( ) : null ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.NetworkView getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.NetworkView ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.NetworkView ? super . getEntity ( ) : null ) ) ; }
Source:
java.lang.String buildConditionSql ( java.lang.String fieldName , java.lang.String customizedValue , java.lang.String customizedRelation , java.lang.String tableName , boolean caseSensitive ) ;

Target:
java.lang.String buildConditionSql ( java.lang.String objName , java.lang.String fieldName , java.lang.String customizedValue , java.lang.String customizedRelation , java.lang.String tableName , boolean caseSensitive ) ;
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = getBroker ( ) . vmUpdateDevice ( getParameters ( ) . getVm ( ) . getId ( ) . toString ( ) , initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = getBroker ( ) . vmUpdateDevice ( getParameters ( ) . getVm ( ) . getId ( ) . toString ( ) , initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult interfaceInHost ( org.ovirt.engine.core.compat.Guid hostId ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NIC_NOT_EXISTS_ON_HOST ) . when ( ( ! ( iface.getVdsId ( ) . equals ( hostId ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult interfaceInHost ( org.ovirt.engine.core.compat.Guid hostId ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NIC_NOT_EXISTS_ON_HOST ) . when ( ( ! ( iface.getVdsId ( ) . equals ( hostId ) ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity ) ( source ) ) ; }
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.setLockVM ( false ) ; removeDiskParams.setShouldBeLogged ( false ) ; return removeDiskParams ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.CommandBase < ? > commandBase = getCommand ( cmdId ) ; commandBase.getParameters ( ) . setTaskGroupSuccess ( false ) ; commandBase.endAction ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getAddress ( ) , getNetmask ( ) , getGateway ( ) , getBootProtocol ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( address , netmask , gateway , bootProtocol ) ; }
Source:
java.lang.String principalLoginName ( java.lang.String name ) ;

Target:
java.lang.String vNumaName ( java.lang.String name , int index ) ;
Source:
protected void setValue ( com.google.gwt.safehtml.shared.SafeHtml headerText ) { if ( showUnderline ) { this . headerText = org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader.templates.underlinedHeader ( headerText ) ; } else { this . headerText = headerText ; } }

Target:
protected void setValue ( com.google.gwt.safehtml.shared.SafeHtml headerText ) { if ( showUnderline ) { this . headerText = org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader.templates.hasTooltip ( headerText ) ; } else { this . headerText = headerText ; } }
Source:
public void mapIncompleteSsoFromRestToBackend ( ) { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; org.junit.Assert.assertNull ( org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }

Target:
public void mapIncompleteSsoFromRestToBackend ( ) { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; org.junit.jupiter.api.Assertions.assertNull ( org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3StorageDomain update ( org.ovirt.engine.api.v3.types.V3StorageDomain storageDomain ) { return adaptUpdate ( delegate :: update , storageDomain ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3StorageDomain update ( org.ovirt.engine.api.v3.types.V3StorageDomain storageDomain ) { return adaptUpdate ( getDelegate ( ) :: update , storageDomain ) ; }
Source:
private void Init ( ) { InitCache ( ) ; cacheFenceAgentInstanceOptions ( ) ; }

Target:
private void init ( ) { initCache ( ) ; cacheFenceAgentInstanceOptions ( ) ; }
Source:
public void validateFails ( ) { initTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { initTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void getNoQosByVmId ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.qos.CpuQos > cpuQosMap = dao.getCpuQosByVmIds ( java.util.Collections.singleton ( FixturesTool.VM_RHEL5_POOL_57 ) ) ; org.junit.Assert.assertNotNull ( cpuQosMap ) ; org.junit.Assert.assertNull ( cpuQosMap.get ( FixturesTool.VM_RHEL5_POOL_57 ) ) ; }

Target:
public void getNoQosByVmId ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.qos.CpuQos > cpuQosMap = dao.getCpuQosByVmIds ( java.util.Collections.singleton ( FixturesTool.VM_RHEL5_POOL_59 ) ) ; org.junit.Assert.assertNotNull ( cpuQosMap ) ; org.junit.Assert.assertNull ( cpuQosMap.get ( FixturesTool.VM_RHEL5_POOL_57 ) ) ; }
Source:
private boolean isCopyCollapseDisabledWithSnapshots ( ) { return ( ( getParameters ( ) . getVm ( ) . getSnapshots ( ) . size ( ) ) > 1 ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ; }

Target:
protected boolean validateAndSetVmFromExportDomain ( ) { org.ovirt.engine.core.common.businessentities.VM vm = getVmFromExportDomain ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getVmId ( ) ) ; if ( vm == null ) { return false ; } setVmFromExportDomain ( vm ) ; return true ; }
Source:
protected void onClosed ( final com.google.gwt.user.client.Event evt ) { org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.hideAllTooltips ( ) ; com.google.gwt.user.client.ui.RootPanel.detachNow ( this ) ; fireEvent ( new org.gwtbootstrap3.client.shared.event.AlertClosedEvent ( evt ) ) ; }

Target:
protected void onClosed ( final com.google.gwt.user.client.Event evt ) { org.ovirt.engine.ui.common.utils.ElementTooltipUtils.hideAllTooltips ( ) ; com.google.gwt.user.client.ui.RootPanel.detachNow ( this ) ; fireEvent ( new org.gwtbootstrap3.client.shared.event.AlertClosedEvent ( evt ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.dataCenterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( returnValue ) ) ) ; prepare2 ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.dataCenterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( returnValue ) ) ) ; prepare2 ( ) ; }
Source:
public void testInvalidMemory ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setmem_size_mb ( 99999 ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with invalid memory." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_ILLEGAL_MEMORY_SIZE ) ; }

Target:
public void testInvalidMemory ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setMemSizeMb ( 99999 ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with invalid memory." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_ILLEGAL_MEMORY_SIZE ) ; }
Source:
public org.ovirt.engine.core.compat.DateTime AddDays ( int i ) { java.util.Calendar cal = java.util.Calendar.getInstance ( ) ; cal.setTime ( this ) ; cal.add ( java.util.Calendar.DATE , i ) ; return new org.ovirt.engine.core.compat.DateTime ( cal.getTime ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.DateTime addDays ( int i ) { java.util.Calendar cal = java.util.Calendar.getInstance ( ) ; cal.setTime ( this ) ; cal.add ( java.util.Calendar.DATE , i ) ; return new org.ovirt.engine.core.compat.DateTime ( cal.getTime ( ) ) ; }
Source:
private static boolean isVlan ( org.ovirt.engine.core.common.businessentities.network.Network net ) { return ( net.getVlanId ( ) ) != null ; }

Target:
private boolean qosConfiguredOnInterface ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , org.ovirt.engine.core.common.businessentities.network.Network network ) { if ( iface.isQosOverridden ( ) ) { return ( iface.getQos ( ) ) != null ; } else { return ( network.getQosId ( ) ) != null ; } }
Source:
public void validCorrelationId ( ) { org.ovirt.engine.core.common.action.VdcActionParametersBase parameters = new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ; parameters.setCorrelationId ( "VALID_CORRELATION_ID" ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.Assert.assertNull ( "Correlation id is valid" , result ) ; }

Target:
public void validCorrelationId ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( "VALID_CORRELATION_ID" ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.Assert.assertNull ( "Correlation id is valid" , result ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( true ) ; revealDiskPanel ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( false ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }
Source:
public void updateIteration ( ) { if ( ( refreshIteration ) == ( org.ovirt.engine.core.vdsbroker.VdsManager.NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ) { refreshIteration = 1 ; } else { ( refreshIteration ) ++ ; } }

Target:
boolean isTimeToRefreshStatistics ( ) { return ( refreshIteration ) == ( NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ; }
Source:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
public void setExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { context.setExecutionContext ( executionContext ) ; }

Target:
public org.ovirt.engine.core.bll.context.CommandContext getContext ( ) { return context ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageType getType ( ) { return org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.StorageType getType ( ) { return org.ovirt.engine.core.common.businessentities.storage.StorageType.POSIXFS ; }
Source:
public void setAsDisplay ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( getSelectedItem ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.UpdateDisplayToVdsGroup , new org.ovirt.engine.core.common.action.DisplayNetworkToVdsGroupParameters ( getEntity ( ) , network , true ) ) ; }

Target:
public void setAsDisplay ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( getSelectedItem ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.UpdateDisplayToVdsGroup , new org.ovirt.engine.core.common.action.DisplayNetworkToVdsGroupParameters ( getEntity ( ) , network , true ) ) ; }
Source:
public void testCanDoActionVmUpHostCapable ( ) { prepareForVmValidatorTests ( ) ; org.mockito.Mockito.doReturn ( ValidationResult.VALID ) . when ( vmValidator ) . vmHostCanLiveMerge ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void testValidateVmUpHostCapable ( ) { prepareForVmValidatorTests ( ) ; org.mockito.Mockito.doReturn ( ValidationResult.VALID ) . when ( vmValidator ) . vmHostCanLiveMerge ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public java.lang.String getHibernationVolHandle ( ) { return this . vmDynamic.gethibernation_vol_handle ( ) ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . vmDynamic.setStatus ( value ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.VmValidator getVmValidator ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.bll.validator.VmValidator ( vm ) ; }

Target:
private boolean isInitVmRequired ( ) { return java.util.EnumSet.of ( org.ovirt.engine.core.bll.RunVmCommand.RunVmFlow.RUN , org.ovirt.engine.core.bll.RunVmCommand.RunVmFlow.RESUME_HIBERNATE ) . contains ( getFlow ( ) ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomainDynamic > result = dao.getAll ( ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomainDynamic > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void setAnonymousHugePages ( int value ) { this . mVdsDynamic.setAnonymousHugePages ( value ) ; }

Target:
public int getAnonymousHugePages ( ) { return this . mVdsStatistics.getAnonymousHugePages ( ) ; }
Source:
protected void RemoveSnapshot ( org.ovirt.engine.core.common.businessentities.DiskImage snapshot ) { RemoveSnapshotFromDB ( snapshot ) ; AdditionalImageRemoveTreatment ( snapshot ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid findImageForSameDrive ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType ) { return findImageForSameDrive ( getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.BaseImagesCommand.getVmDAO ( ) . getVmsListForDisk ( getImage ( ) . getId ( ) ) . get ( 0 ) . getId ( ) , snapshotType ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.hostVmSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostVmPresenter.constants.hostVmSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
private boolean shouldRemoveMemorySnapshotVolumes ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 1 ) ; }

Target:
private void removeMemory ( final org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { boolean success = removeMemoryVolumes ( snapshot.getMemoryVolume ( ) , org.ovirt.engine.core.bll.RemoveSnapshotCommand.getActionType ( ) , false ) ; if ( ! success ) { log.errorFormat ( "Cannot remove memory volumes for snapshot {0}" , snapshot.getId ( ) ) ; } }
Source:
public void storageDomainWithNullId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( StorageDomainStatus.Active , s.getStatus ( ) ) ; }

Target:
public void storageDomainWithNullId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }
Source:
private void initCache ( ) { org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataServlet.dashboardCache = cacheContainer.getCache ( org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataServlet.DASHBOARD ) ; org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataServlet.inventoryCache = cacheContainer.getCache ( org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataServlet.INVENTORY ) ; }

Target:
public void run ( ) { log.trace ( "Attempting to update the Utilization cache" ) ; try { populateUtilizationCache ( ) ; } catch ( org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException e ) { log.error ( "Could not update the Utilization Cache: {}" , e.getMessage ( ) , e ) ; } }
Source:
public boolean ConnectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return RunConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.ConnectStorageServer.getValue ( ) , lun , storagePoolId ) ; }

Target:
public boolean ConnectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.ConnectStorageServer.getValue ( ) , lun , storagePoolId ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > getStoragePoolTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.NFS , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP , org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS , org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS , org.ovirt.engine.core.common.businessentities.StorageType.GLUSTERFS } ) ) ; }

Target:
public static boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }
Source:
private void assertFailingMessage ( java.lang.String failMessage , org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.VdcBllMessages vdcBllMessage ) { org.junit.Assert.assertTrue ( failMessage , validationResult.getMessage ( ) . equals ( vdcBllMessage ) ) ; }

Target:
private void assertFailingMessage ( java.lang.String failMessage , org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.EngineMessage engineMessage ) { org.junit.Assert.assertTrue ( failMessage , validationResult.getMessage ( ) . equals ( engineMessage ) ) ; }
Source:
protected boolean performImagesChecks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImagesToCheck = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getImagesList ( ) , true , false , true ) ; org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImagesToCheck ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) ) ; }

Target:
protected boolean performImagesChecks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImagesToCheck = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.filterImageDisks ( getImagesList ( ) , true , false , true ) ; org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImagesToCheck ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Device lookupReportedDevice ( org.ovirt.engine.core.compat.Guid deviceId ) { org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface device = getReportedDeviceByDeviceId ( deviceId ) ; if ( device == null ) { return notFound ( ) ; } return addLinks ( org.ovirt.engine.api.restapi.types.ReportedDeviceMapper.map ( device , new org.ovirt.engine.api.model.Device ( ) ) ) ; }

Target:
public org.ovirt.engine.api.model.ReportedDevice lookupReportedDevice ( org.ovirt.engine.core.compat.Guid deviceId ) { org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface device = getReportedDeviceByDeviceId ( deviceId ) ; if ( device == null ) { return notFound ( ) ; } return addLinks ( org.ovirt.engine.api.restapi.types.ReportedDeviceMapper.map ( device , new org.ovirt.engine.api.model.ReportedDevice ( ) ) ) ; }
Source:
private void endInternalCommandWithFailure ( ) { org.ovirt.engine.core.common.action.ExtendImageSizeParameters params = createExtendImageSizeParameters ( ) ; params.setTaskGroupSuccess ( false ) ; org.ovirt.engine.core.bll.UpdateVmDiskCommand.getBackend ( ) . EndAction ( VdcActionType.ExtendImageSize , params ) ; }

Target:
private void endInternalCommandWithFailure ( ) { org.ovirt.engine.core.common.action.ExtendImageSizeParameters params = createExtendImageSizeParameters ( ) ; params.setTaskGroupSuccess ( false ) ; org.ovirt.engine.core.bll.UpdateVmDiskCommand.getBackend ( ) . endAction ( VdcActionType.ExtendImageSize , params ) ; }
Source:
private void validateSessionSucceeded ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ret ) { org.ovirt.engine.api.restapi.security.auth.LoginValidator.LOG.debugFormat ( org.ovirt.engine.api.restapi.security.auth.LoginValidator.VALIDATE_SESSION_SUCCESS ) ; current.set ( ret.getReturnValue ( ) ) ; }

Target:
private void validateSessionSucceeded ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ret ) { org.ovirt.engine.api.restapi.security.auth.LoginValidator.LOG.debugFormat ( org.ovirt.engine.api.restapi.security.auth.LoginValidator.VALIDATE_SESSION_SUCCESS ) ; current.set ( ret.getReturnValue ( ) ) ; current.set ( getApplicationMode ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.Label getLabel ( org.ovirt.engine.api.restapi.resource.BackendResource resource , java.lang.String id ) { org.ovirt.engine.core.common.queries.IdQueryParameters parameters = new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( id ) ) ; return resource.getEntity ( org.ovirt.engine.core.common.businessentities.Label.class , VdcQueryType.GetLabelById , parameters , id , true ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.Label getLabel ( org.ovirt.engine.api.restapi.resource.BackendResource resource , java.lang.String id ) { org.ovirt.engine.core.common.queries.IdQueryParameters parameters = new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( id ) ) ; return resource.getEntity ( org.ovirt.engine.core.common.businessentities.Label.class , QueryType.GetLabelById , parameters , id , true ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getDiskProfiles ( ) { if ( ( diskProfiles ) == null ) { diskProfiles = getDbFacade ( ) . getDiskProfileDao ( ) . getAllForStorageDomain ( diskProfile.getStorageDomainId ( ) ) ; } return diskProfiles ; }

Target:
private org.ovirt.engine.core.dao.profiles.DiskProfileDao getDiskProfileDao ( ) { return getDbFacade ( ) . getDiskProfileDao ( ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.Quota quota ) { return quota.getQuotaName ( ) ; }

Target:
void initEditors ( ) { quotaListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.Quota > ( ) ) ; }
Source:
public void enableColumnResizing ( ) { columnResizingEnabled = true ; }

Target:
public void enableColumnResizing ( ) { columnResizingEnabled = true ; org.ovirt.engine.ui.common.widget.table.resize.ColumnResizeCellTable.setWidth ( "100%" , true ) ; }
Source:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { setPayload ( model ) ; setBallooning ( model ) ; setConsoleDevice ( model ) ; setCertificateInfo ( model ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { setPayload ( model ) ; setBallooning ( model ) ; setConsoleDevice ( model ) ; setVirtioScsiController ( model ) ; setCertificateInfo ( model ) ; return model ; }
Source:
public void testGetAllByStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.IscsiBond > iscsiBonds = dao.getAllByStoragePoolId ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.Assert.assertEquals ( 1 , iscsiBonds.size ( ) ) ; }

Target:
public void testGetAllByStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.IscsiBond > iscsiBonds = dao.getAllByStoragePoolId ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , iscsiBonds.size ( ) ) ; }
Source:
public void setis_readonly ( boolean value ) { this . readOnly = value ; }

Target:
public void setReadonly ( boolean value ) { this . readOnly = value ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDiskId ( org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand < org.ovirt.engine.core.common.action.UpdateVmDiskParameters > command ) { return command.getParameters ( ) . getDiskId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDiskId ( org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand < org.ovirt.engine.core.common.action.UpdateVmDiskParameters > command ) { return command.getParameters ( ) . getDiskInfo ( ) . getId ( ) ; }
Source:
public void testGetAllForVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVds ( "afce7a39-8e8c-4819-ba9c-796d316592e6" ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.VDS entity = control.createMock ( org.ovirt.engine.core.common.businessentities.VDS.class ) ; return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getEntity ( int index ) { return org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VDS.class ) ; }
Source:
protected void PostDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { super . PostDiscoverTargets ( newItems ) ; InitializeItems ( null , newItems ) ; lastDiscoveredTargets.clear ( ) ; lastDiscoveredTargets.addAll ( newItems ) ; getContainer ( ) . StopProgress ( ) ; }

Target:
public boolean isForce ( ) { return force ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > filter ( final java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > data ) { for ( org.ovirt.engine.core.common.businessentities.IVdcQueryable vmt_helper : data ) { org.ovirt.engine.core.common.businessentities.VmTemplate vmt = ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( vmt_helper ) ) ; org.ovirt.engine.core.bll.VmTemplateHandler.UpdateDisksFromDb ( vmt ) ; } return data ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > filter ( final java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > data ) { for ( org.ovirt.engine.core.common.businessentities.IVdcQueryable vmt_helper : data ) { org.ovirt.engine.core.common.businessentities.VmTemplate vmt = ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( vmt_helper ) ) ; org.ovirt.engine.core.bll.VmTemplateHandler.updateDisksFromDb ( vmt ) ; } return data ; }
Source:
public boolean handlesEvent ( com.google.gwt.view.client.CellPreviewEvent < org.ovirt.engine.ui.uicommonweb.models.EntityModel > event ) { return org.ovirt.engine.ui.common.widget.table.column.AbstractCheckboxColumn.handlesEvent ( event ) ; }

Target:
public void configureElementId ( java.lang.String elementIdPrefix , java.lang.String columnId ) { getCell ( ) . setElementIdPrefix ( elementIdPrefix ) ; getCell ( ) . setColumnId ( columnId ) ; }
Source:
private org.ovirt.engine.api.model.RSDL addSystemVersion ( org.ovirt.engine.api.model.RSDL rsdl ) { rsdl.setVersion ( getVersion ( ) ) ; return rsdl ; }

Target:
private org.ovirt.engine.api.model.Rsdl addSystemVersion ( org.ovirt.engine.api.model.Rsdl rsdl ) { rsdl.setVersion ( getVersion ( ) ) ; return rsdl ; }
Source:
public void setvm_pool_description ( java.lang.String value ) { this . description = value ; }

Target:
public void setvm_pool_name ( java.lang.String value ) { this . name = value ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedDiscardAfterDeleteFunctionalityBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; junit.framework.Assert.assertFalse ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) , storageDomain ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedDiscardAfterDeleteFunctionalityBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertFalse ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) , storageDomain ) ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateProperties ( ) ; } }

Target:
public java.lang.String getQuotaName ( ) { return quotaName ; }