auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return new java.lang.String ( ) ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case FOREMAN : default : return "http://localhost" ; } }

Target:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case FOREMAN : default : return "http://localhost" ; } }
Source:
public void updateVisibility ( ) { super . updateVisibility ( ) ; messageLabel.setVisible ( false ) ; apply.setVisible ( false ) ; }

Target:
public void updateVisibility ( ) { super . updateVisibility ( ) ; messageLabel.setVisible ( false ) ; apply.setVisible ( false ) ; publicUseEditor.setVisible ( true ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Label label ) { validateParameters ( label , "id" ) ; final java.lang.String labelId = label.getId ( ) ; return performCreate ( labelId ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.NetworkLabel label ) { validateParameters ( label , "id" ) ; final java.lang.String labelId = label.getId ( ) ; return performCreate ( labelId ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { if ( source != null ) { return ! ( ( ( java.util.Collection < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
public void onUpdateMainContentLayout ( org.ovirt.engine.ui.webadmin.section.main.presenter.UpdateMainContentLayoutEvent event ) { getView ( ) . setSubTabPanelVisible ( event.isSubTabPanelVisible ( ) ) ; }

Target:
public void onUpdateMainContentLayout ( org.ovirt.engine.ui.webadmin.section.main.presenter.UpdateMainContentLayoutEvent event ) { boolean subTabPanelVisible = event.isSubTabPanelVisible ( ) ; getView ( ) . setSubTabPanelVisible ( subTabPanelVisible ) ; if ( ! subTabPanelVisible ) { clearSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainContentPresenter.TYPE_SetSubTabPanelContent ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > volumes = jdbcTemplate.query ( query , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoDbFacadeImpl.volumeRowMapper ) ; fetchRelatedEntities ( volumes ) ; return volumes ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > volumes = getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoDbFacadeImpl.volumeRowMapper ) ; fetchRelatedEntities ( volumes ) ; return volumes ; }
Source:
public org.ovirt.engine.core.compat.NGuid getmigrating_to_vds ( ) { return this . vmDynamic.getmigrating_to_vds ( ) ; }

Target:
public void setDisplay ( java.lang.Integer value ) { this . vmDynamic.setDisplay ( value ) ; }
Source:
public void removeInterfaceFromVds ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getQosDao ( ) . remove ( id ) ; getCallsHandler ( ) . executeModification ( "Deletevds_interface" , parameterSource ) ; }

Target:
public void removeInterfaceFromVds ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkQosDao ( ) . remove ( id ) ; getCallsHandler ( ) . executeModification ( "Deletevds_interface" , parameterSource ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ad_groups getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendGroupsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.ad_groups.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapGroup getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendGroupsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.LdapGroup.class ) , index ) ; }
Source:
protected void updateCustomPropertySheet ( ) { if ( ( getModel ( ) . getSelectedCluster ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getModel ( ) . getSelectedCluster ( ) ; updateCustomPropertySheet ( cluster.getcompatibility_version ( ) ) ; }

Target:
protected void updateCustomPropertySheet ( ) { if ( ( getModel ( ) . getSelectedCluster ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getModel ( ) . getSelectedCluster ( ) ; updateCustomPropertySheet ( cluster.getCompatibilityVersion ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.compat.Guid filter1 , org.ovirt.engine.core.compat.Guid filter2 ) { java.lang.Integer position1 = getPosition ( filterPositionMap.get ( filter1 ) ) ; java.lang.Integer position2 = getPosition ( filterPositionMap.get ( filter2 ) ) ; return position1 - position2 ; }

Target:
public void run ( ) { if ( exSchedulerDiscovery.discover ( ) ) { reloadPolicyUnits ( ) ; } }
Source:
public void onConsoleModelChanged ( org.ovirt.engine.ui.userportal.section.main.presenter.popup.console.ConsoleModelChangedEvent event ) { if ( sameEntity ( model , event.getItemModel ( ) ) ) { setupSelectedProtocol ( model ) ; } }

Target:
private boolean canShowConsole ( ) { return consoleUtils.canShowConsole ( consoleUtils.determineConnectionProtocol ( model ) , model ) ; }
Source:
private void dbFacadeThrowOnNetworkClusterSave ( ) { org.mockito.Mockito.doThrow ( new org.springframework.dao.DataIntegrityViolationException ( "test violations" ) ) . when ( mockNetworkClusterDao ) . save ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster.class ) ) ; }

Target:
private void dbFacadeThrowOnNetworkClusterSave ( ) { org.mockito.Mockito.doThrow ( new org.springframework.dao.DataIntegrityViolationException ( "test violations" ) ) . when ( mockNetworkClusterDao ) . save ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster.class ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.ActionReturnValue > runInternalMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.List < org.ovirt.engine.core.common.action.ActionParametersBase > parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }
Source:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableTrustedServiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableTrustedServiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public void setStyleName ( java.lang.String style , boolean add ) { getLabel ( ) . setStyleName ( style , add ) ; }

Target:
public void setStyleName ( java.lang.String style , boolean add ) { label.setStyleName ( style , add ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { org.ovirt.engine.core.compat.Guid storagePoolId = ( ( org.ovirt.engine.core.common.businessentities.storage.OpenStackVolumeProviderProperties ) ( provider.getAdditionalProperties ( ) ) ) . getStoragePoolId ( ) ; return getStoragePoolDao ( ) . get ( storagePoolId ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { org.ovirt.engine.core.compat.Guid storagePoolId = ( ( org.ovirt.engine.core.common.businessentities.storage.OpenStackVolumeProviderProperties ) ( provider.getAdditionalProperties ( ) ) ) . getStoragePoolId ( ) ; return storagePoolDao.get ( storagePoolId ) ; }
Source:
public static void setLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { org.ovirt.engine.ui.frontend.Frontend.loggedUser = loggedUser ; }

Target:
public static void LogoffAsync ( org.ovirt.engine.core.common.businessentities.DbUser dbUser , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync service = GenericApiGWTServiceAsync.Util.getInstance ( ) ; org.ovirt.engine.ui.frontend.Frontend.LogoffAsync ( dbUser , callback , service ) ; }
Source:
protected boolean doesStorageDomainHaveSpaceForRequest ( long size ) { return org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.hasSpaceForRequest ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) , size ) ; }

Target:
protected boolean doesStorageDomainHaveSpaceForRequest ( long size ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) . isDomainHasSpaceForRequest ( size ) ) ; }
Source:
protected abstract boolean showTransportProperties ( ) ;

Target:
protected abstract boolean editTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
private void setUpTemplateDisksExpectations ( org.ovirt.engine.core.compat.Guid templateId ) { setUpEntityQueryExpectations ( VdcQueryType.GetVmTemplatesDisks , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { templateId } , createDiskList ( ) ) ; }

Target:
private void setUpTemplateDisksExpectations ( org.ovirt.engine.core.compat.Guid templateId ) { setUpEntityQueryExpectations ( QueryType.GetVmTemplatesDisks , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { templateId } , createDiskList ( ) ) ; }
Source:
public void checkValidIpConfigurationStaticBootProtocol ( ) { initIpConfigurationDetails ( NetworkBootProtocol.STATIC_IP , true , true ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void checkValidIpConfigurationStaticBootProtocol ( ) { initIpConfigurationDetails ( Ipv4BootProtocol.STATIC_IP , true , true ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }
Source:
public void testGetAsyncTaskIdsByInvalidEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertTrue ( guids.isEmpty ( ) ) ; }

Target:
public void testGetAsyncTaskIdsByInvalidEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertTrue ( guids.isEmpty ( ) ) ; }
Source:
public void update ( C value ) { getFieldUpdater ( ) . update ( index , object , value ) ; }

Target:
public void onBrowserEvent ( com.google.gwt.cell.client.Cell.Context context , com.google.gwt.dom.client.Element elem , T object , com.google.gwt.dom.client.NativeEvent event ) { getCell ( ) . setTooltipFallback ( getTooltip ( object ) ) ; super . onBrowserEvent ( context , elem , object , event ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > searchClusters ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVdsGroupDAO ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > searchClusters ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVdsGroupDao ( ) , true , null ) ; }
Source:
abstract void createEntityTable ( ) ;

Target:
abstract void createEntityTable ( org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel model ) ;
Source:
public boolean evaluate ( java.lang.Object disk ) { return ( ( ( org.ovirt.engine.core.common.businessentities.Disk ) ( disk ) ) . getDiskInterface ( ) ) == ( org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO_SCSI ) ; }

Target:
public boolean evaluate ( java.lang.Object disk ) { return ( ( ( org.ovirt.engine.core.common.businessentities.storage.Disk ) ( disk ) ) . getDiskInterface ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskInterface.VirtIO_SCSI ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetBookmarkByBookmarkNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.GetBookmarkByBookmarkNameQuery.getParameters ( ) . getName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetBookmarkByBookmarkNameQuery.getQueryReturnValue ( ) . setReturnValue ( bookmarkDao.getByName ( org.ovirt.engine.core.bll.GetBookmarkByBookmarkNameQuery.getParameters ( ) . getName ( ) ) ) ; }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { revertCinderDisks ( childCmdIds ) ; getCommand ( cmdId ) . endAction ( ) ; getCommand ( cmdId ) . getParameters ( ) . setTaskGroupSuccess ( false ) ; }
Source:
protected void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( loginModel.getLoginCommand ( ) ) ) { lockInteractionManager.showLoadingIndicator ( ) ; } super . executeCommand ( command ) ; }

Target:
protected void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( loginModel.getLoginCommand ( ) ) ) { beforeLoginCommandExecuted ( loginModel ) ; } super . executeCommand ( command ) ; }
Source:
public void postProcess ( org.jboss.resteasy.core.ServerResponse response ) { currents.set ( null ) ; }

Target:
public void postProcess ( org.jboss.resteasy.core.ServerResponse response ) { org.ovirt.engine.api.common.invocation.Current.currents.set ( null ) ; }
Source:
public java.lang.String getDiskAlias ( ) { if ( ( getDisk ( ) ) != null ) { return getDisk ( ) . getDiskAlias ( ) ; } return "" ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskStorageType getDiskType ( ) { return getDisk ( ) . getDiskStorageType ( ) ; }
Source:
private boolean supportsGlusterSnapshotFeature ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( getGlusterUtil ( ) . isGlusterSnapshotSupported ( cluster.getCompatibilityVersion ( ) , cluster.getId ( ) ) ) ; }

Target:
private boolean supportsGlusterSnapshotFeature ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return cluster.supportsGlusterService ( ) ; }
Source:
private void verifyDomainForMemory ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = memoryStorageHandler.findStorageDomainForMemory ( storageDomains , disksList ) ; org.junit.Assert.assertNotNull ( storageDomain ) ; org.junit.Assert.assertEquals ( storageDomain , validStorageDomain ) ; }

Target:
private void verifyDomainForMemory ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = memoryStorageHandler.findStorageDomainForMemory ( storageDomains , disksList ) ; org.junit.Assert.assertEquals ( storageDomain , validStorageDomain ) ; }
Source:
protected void buildVmVideoCards ( ) { createInfo.put ( VdsProperties.display , vm.getDisplayType ( ) . toString ( ) ) ; createInfo.put ( VdsProperties.num_of_monitors , java.lang.String.valueOf ( vm.getNumOfMonitors ( ) ) ) ; }

Target:
protected void buildVmVideoCards ( ) { createInfo.put ( VdsProperties.num_of_monitors , java.lang.String.valueOf ( vm.getNumOfMonitors ( ) ) ) ; }
Source:
public static java.util.Collection < java.lang.String > replaceWith ( java.lang.String propertyName , java.util.List < ? > items ) { return org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( propertyName , items , org.ovirt.engine.core.utils.ReplacementUtils.DEFAULT_SEPARATOR , org.ovirt.engine.core.utils.ReplacementUtils.DEFAULT_MAX_NUMBER_OF_PRINTED_ITEMS ) ; }

Target:
public static java.util.Collection < java.lang.String > replaceWith ( java.lang.String propertyName , java.util.Collection < ? > items ) { return org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( propertyName , items , org.ovirt.engine.core.utils.ReplacementUtils.DEFAULT_SEPARATOR , org.ovirt.engine.core.utils.ReplacementUtils.DEFAULT_MAX_NUMBER_OF_PRINTED_ITEMS ) ; }
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.network.NetworkQoS , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterNetworkQoSListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterNetworkQoSSubTabLabel ( ) , 2 , modelProvider ) ; }

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.network.NetworkQoS , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterNetworkQoSListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterNetworkQoSSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( newDisk ) != null ) && ( isQuotaValidationNeeded ( ) ) ) { return ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( newDisk ) ) . getQuotaId ( ) ; } return null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( newDisk ) != null ) && ( isQuotaValidationNeeded ( ) ) ) { return ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( newDisk ) ) . getQuotaId ( ) ; } return null ; }
Source:
private void mockNullVm ( ) { org.mockito.Mockito.doReturn ( vmDao ) . when ( command ) . getVmDao ( ) ; org.mockito.Mockito.when ( vmDao.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; createVirtIODisk ( ) ; }

Target:
private void mockNullVm ( ) { org.mockito.Mockito.when ( vmDao.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; createVirtIODisk ( ) ; }
Source:
private void refreshHostStorage ( org.ovirt.engine.core.compat.Guid hostId ) { getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI ) ) ; }

Target:
private void refreshHostStorage ( org.ovirt.engine.core.compat.Guid hostId ) { getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , false , null ) ) ; }
Source:
private static void addField ( java.lang.String fieldName , java.lang.Class < ? > fieldType , java.lang.String columnName ) { org.ovirt.engine.core.searchbackend.gluster.GlusterVolumeConditionFieldAutoCompleter.fields.add ( new org.ovirt.engine.core.searchbackend.gluster.GlusterVolumeConditionFieldAutoCompleter.AutoCompletionField ( fieldName , fieldName , fieldType , columnName ) ) ; }

Target:
private static void addField ( java.lang.String fieldName , java.lang.Class < ? > fieldType , java.lang.String columnName ) { org.ovirt.engine.core.searchbackend.gluster.GlusterVolumeConditionFieldAutoCompleter.fields.add ( new org.ovirt.engine.core.searchbackend.gluster.GlusterVolumeConditionFieldAutoCompleter.AutoCompletionField ( fieldName , fieldType , columnName ) ) ; }
Source:
private static boolean vmIsRunningStateless ( org.ovirt.engine.core.compat.Guid vmId , java.util.ArrayList < java.lang.String > messages ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) . exists ( vmId , SnapshotType.STATELESS ) ; }

Target:
private static boolean vmIsRunningStateless ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) . exists ( vmId , SnapshotType.STATELESS ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineVirtualDiskPresenter.constants.virtualMachineVirtualDiskSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineVirtualDiskPresenter.constants.virtualMachineVirtualDiskSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public void replace_patternNotPresent ( ) { runAndCheck ( sb ( "abcd" ) , "X" , "Y" , "abcd" ) ; }

Target:
public void replace_patternNotPresent ( ) { runAndCheck ( "abcd" , "X" , "Y" , "abcd" ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond ) { return org.apache.commons.lang.StringUtils.equals ( bond.getBondName ( ) , i.getName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond ) { return org.apache.commons.lang.StringUtils.equals ( bond.getBondName ( ) , nic.getName ( ) ) ; }
Source:
public void testEmptyStringIsValid ( ) { doTest ( "" , true ) ; }

Target:
public void testEmptyStringIsValid ( ) { doTest ( "" , false ) ; }
Source:
protected boolean canDoAction ( ) { return ( super . canDoAction ( ) ) && ( validate ( getQosValidator ( getQos ( ) ) . peakConsistentWithAverage ( ) ) ) ; }

Target:
protected boolean validate ( ) { return ( super . validate ( ) ) && ( validate ( getQosValidator ( getQos ( ) ) . peakConsistentWithAverage ( ) ) ) ; }
Source:
T getstorage_pool_id ( ) ;

Target:
T getStoragePoolId ( ) ;
Source:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return org.ovirt.engine.core.bll.ImagesHandler.cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getstorage_pool_id ( ) ) ; }

Target:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return org.ovirt.engine.core.bll.ImagesHandler.cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) ) ; }
Source:
protected java.lang.String getPredefinedVMProperties ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.PredefinedVMProperties , version.getValue ( ) ) ; }

Target:
public java.lang.String getPredefinedVMProperties ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.PredefinedVMProperties , version.getValue ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( domainId , vmTemplate.getStoragePoolId ( ) . getValue ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( domainId , vmTemplate.getStoragePoolId ( ) ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { model.onRestoreVms ( new org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { setWindow ( null ) ; } } ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setWindow ( null ) ; setWindow ( model ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.VdcQueryParametersBase tempVar = org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getParameters ( ) ; org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForUsers ( org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getParameters ( ) . getUserId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForUsers ( org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getParameters ( ) . getUserId ( ) ) ) ; }
Source:
public void testValidStatusForEnrollCertificate ( ) { validator = mockHostForActivation ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.validateStatusForEnrollCertificate ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidStatusForEnrollCertificate ( ) { mockHostForActivation ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.validateStatusForEnrollCertificate ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase res = result.getReturnValue ( ) ; setTestResultValue ( res ) ; stopProgress ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase res = result.getReturnValue ( ) ; stopProgress ( ) ; setTestResultValue ( res ) ; }
Source:
public void onEvent ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds , java.lang.Object eventData ) { }

Target:
default void onEvent ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds , java.lang.Object eventData ) { }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { populateRoles ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Role > ) ( result ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { populateRoles ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Role > ) ( result ) ) ) ; }
Source:
public void testGetWithPermissionsDisabledUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.storage_domains result = dao.get ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetResult ( result ) ; }

Target:
public void testGetWithPermissionsDisabledUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.get ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetResult ( result ) ; }
Source:
public void onSessionExpired ( ) { if ( ( frontend.getLoginHandler ( ) ) != null ) { frontend.getLoginHandler ( ) . onLogout ( ) ; } Window.Location.reload ( ) ; }

Target:
public void onSessionExpired ( ) { Window.Location.reload ( ) ; }
Source:
public void testGetValue ( ) { java.lang.System.out.println ( "test1" ) ; org.junit.Assert.assertEquals ( ( "Wrong getValue() for " + ( value ) ) , value.ordinal ( ) , value.getValue ( ) ) ; }

Target:
public void testGetValue ( ) { org.junit.Assert.assertEquals ( ( "Wrong getValue() for " + ( value ) ) , value.ordinal ( ) , value.getValue ( ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.storage_pool result = dao.get ( existingPool.getId ( ) ) ; assertGetResult ( result ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( existingPool.getId ( ) ) ; assertGetResult ( result ) ; }
Source:
public java.lang.String getVdsName ( ) { if ( ( ( mVdsName ) == null ) && ( ( getVds ( ) ) != null ) ) { mVdsName = getVds ( ) . getvds_name ( ) ; } return mVdsName ; }

Target:
public java.lang.String getVdsName ( ) { if ( ( ( mVdsName ) == null ) && ( ( getVds ( ) ) != null ) ) { mVdsName = getVds ( ) . getVdsName ( ) ; } return mVdsName ; }
Source:
public static void RunMultipleQueries ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > queryParamsList , final org.ovirt.engine.ui.uicompat.IFrontendMultipleQueryAsyncCallback callback , final java.lang.String context ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleQueries ( queryTypeList , queryParamsList , callback , context ) ; }

Target:
public void runMultipleQueries ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > queryParamsList , final org.ovirt.engine.ui.uicompat.IFrontendMultipleQueryAsyncCallback callback ) { runMultipleQueries ( queryTypeList , queryParamsList , callback , null ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( org.ovirt.engine.core.searchbackend.StringHelper.EqOp ( fieldName , "INITIALIZED" ) ) { retval = new org.ovirt.engine.core.searchbackend.BitValueAutoCompleter ( ) ; } else { } return retval ; }

Target:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( "INITIALIZED" . equals ( fieldName ) ) { retval = new org.ovirt.engine.core.searchbackend.BitValueAutoCompleter ( ) ; } else { } return retval ; }
Source:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }

Target:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . getJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.GetVdsByVdsIdParameters ( asGuid ( hostId ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( hostId ) ) ) ; }
Source:
protected boolean updateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.updateVmInSpm ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getstorage_pool_id ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) ) ) ; }

Target:
protected boolean updateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.updateVmInSpm ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getStoragePoolId ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) ) ) ; }
Source:
private java.lang.String generateDefaultQuotaName ( org.ovirt.engine.core.common.businessentities.storage_pool storagePool ) { java.lang.String quotaName = getDefaultQuotaName ( storagePool.getname ( ) ) ; return getQuotaDAO ( ) . getDefaultQuotaName ( quotaName ) ; }

Target:
public java.lang.String generateDefaultQuotaName ( org.ovirt.engine.core.common.businessentities.storage_pool storagePool ) { java.lang.String quotaName = getDefaultQuotaName ( storagePool.getname ( ) ) ; return getQuotaDAO ( ) . getDefaultQuotaName ( quotaName ) ; }
Source:
protected static java.util.List < org.ovirt.engine.core.common.businessentities.VmPoolMap > getListOfVmsInPool ( org.ovirt.engine.core.compat.NGuid poolId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getVmPoolsMapByVmPoolId ( poolId ) ; }

Target:
protected static java.util.List < org.ovirt.engine.core.common.businessentities.VmPoolMap > getListOfVmsInPool ( org.ovirt.engine.core.compat.Guid poolId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getVmPoolsMapByVmPoolId ( poolId ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { neutronAgentPanel.setVisible ( ( ( java.lang.Boolean ) ( neutronAgentModel.isPluginConfigurationAvailable ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { neutronAgentPanel.setVisible ( neutronAgentModel.isPluginConfigurationAvailable ( ) . getEntity ( ) ) ; }
Source:
protected void onMouseOut ( ) { dragImage.setVisible ( false ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.infoPopup.hide ( true ) ; if ( ( parentPanel ) != null ) { parentPanel.onMouseOver ( ) ; } actionButton.setVisible ( false ) ; }

Target:
protected void onMouseOut ( ) { dragImage.setVisible ( false ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.infoPopup.hide ( true ) ; if ( ( parentPanel ) != null ) { parentPanel.onMouseOver ( ) ; } }
Source:
public void testGetAllNamesPinnedToHostReturnsVmNameForHostPinned ( ) throws java.lang.Exception { java.util.List < java.lang.String > namesPinnedToHost = dao.getAllNamesPinnedToHost ( org.ovirt.engine.core.dao.VmStaticDAOTest.VDS_STATIC_ID ) ; org.junit.Assert.assertFalse ( namesPinnedToHost.isEmpty ( ) ) ; org.junit.Assert.assertTrue ( namesPinnedToHost.contains ( existingVmStatic.getVmName ( ) ) ) ; }

Target:
public void testGetAllNamesPinnedToHostReturnsVmNameForHostPinned ( ) throws java.lang.Exception { java.util.List < java.lang.String > namesPinnedToHost = dao.getAllNamesPinnedToHost ( org.ovirt.engine.core.dao.VmStaticDAOTest.VDS_STATIC_ID ) ; org.junit.Assert.assertFalse ( namesPinnedToHost.isEmpty ( ) ) ; org.junit.Assert.assertTrue ( namesPinnedToHost.contains ( existingVmStatic.getName ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }

Target:
private static org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getParameters ( ) . getNetworkCluster ( ) . getnetwork_id ( ) ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }

Target:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getnetwork_id ( ) ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }
Source:
public void testExecuteGetAllEntitiesCommand ( ) throws java.io.IOException , org.ovirt.engine.core.utils.ovf.OvfReaderException { createCommand ( ) ; mockCommand ( ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertTrue ( "return value should be true" , cmd.getReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public void testExecuteGetAllEntitiesCommand ( ) throws java.io.IOException , org.ovirt.engine.core.utils.ovf.OvfReaderException { cmd.executeCommand ( ) ; org.junit.Assert.assertTrue ( "return value should be true" , cmd.getReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
public void cleanup ( ) { listModel.cleanup ( ) ; }

Target:
public void cleanup ( ) { if ( ( listModel ) != null ) { listModel.cleanup ( ) ; } }
Source:
protected void HandleError ( ) { org.ovirt.engine.core.bll.StartVdsCommand.log.errorFormat ( "Failed to run StartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void HandleError ( ) { log.errorFormat ( "Failed to run StartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getHostName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getHostName ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { super . edit ( unitVmModel ) ; if ( unitVmModel.isVmAttachedToPool ( ) ) { specificHost.setEnabled ( false ) ; specificHostLabel.setStyleName ( style.labelDisabled ( ) , true ) ; } }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { super . edit ( unitVmModel ) ; if ( unitVmModel.isVmAttachedToPool ( ) ) { specificHost.setEnabled ( false ) ; } }
Source:
protected void init ( ) { setVdsId ( getVmManager ( ) . getConvertProxyHostId ( ) ) ; }

Target:
protected void init ( ) { super . init ( ) ; setVdsId ( getVmManager ( ) . getConvertProxyHostId ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult hostExist ( ) { if ( ( host ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_HOST_NOT_EXIST , host.getName ( ) ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult hostExist ( ) { if ( ( host ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
int getRepetitions ( ) { return 3 ; }

Target:
int getRepetitions ( ) { return 2 ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStoragePoolsByStorageDomainIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . getAllForStorageDomain ( org.ovirt.engine.core.bll.storage.GetStoragePoolsByStorageDomainIdQuery.getParameters ( ) . getStorageDomainId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStoragePoolsByStorageDomainIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . getAllForStorageDomain ( org.ovirt.engine.core.bll.storage.GetStoragePoolsByStorageDomainIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }

Target:
public org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth convert ( java.lang.Object source ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }
Source:
private void setIsVmNetwork ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { privateIsVmNetwork = value ; }

Target:
public void setIsVmNetwork ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { privateIsVmNetwork = value ; }
Source:
public native boolean detectXpiPlugin ( ) ;

Target:
private native boolean detectXpiPlugin ( ) ;
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl.log.error ( "Policy unit '{}' filter is not implemented" , getPolicyUnit ( ) . getName ( ) ) ; return hosts ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( @ javax.validation.constraints.NotNull org.ovirt.engine.core.common.businessentities.VDSGroup cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl.log.error ( "Policy unit '{}' filter is not implemented" , getPolicyUnit ( ) . getName ( ) ) ; return hosts ; }
Source:
private java.util.Map < java.lang.String , java.lang.Integer > getVgaVideoDeviceSettings ( ) { return java.util.Collections.singletonMap ( VdsProperties.VIDEO_VRAM , org.ovirt.engine.core.bll.utils.VideoDeviceSettings.VgamemVideoSettings.BASE_RAM_SIZE ) ; }

Target:
public static java.util.Map < java.lang.String , java.lang.Integer > getVgaVideoDeviceSettings ( ) { return java.util.Collections.singletonMap ( VdsProperties.VIDEO_VRAM , org.ovirt.engine.core.bll.utils.VideoDeviceSettings.VgamemVideoSettings.BASE_RAM_SIZE ) ; }
Source:
public void removeMemoryVolume ( java.lang.String memoryVolumes ) { if ( isMemoryStateRemovable ( memoryVolumes ) ) { removeMemoryVolumes ( memoryVolumes ) ; } }

Target:
protected void removeMemoryVolume ( java.lang.String memoryVolumes ) { if ( isMemoryStateRemovable ( memoryVolumes ) ) { removeMemoryVolumes ( memoryVolumes ) ; } }
Source:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ; mockMemorySize ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }

Target:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
protected boolean canDoAction ( ) { return ( super . canDoAction ( ) ) && ( validate ( validateInputForDuplication ( ) ) ) ; }

Target:
protected boolean validate ( ) { return ( super . validate ( ) ) && ( validate ( validateInputForDuplication ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue getStatsForDomain ( ) { return runVdsCommand ( VDSCommandType.GetStorageDomainStats , new org.ovirt.engine.core.common.vdscommands.GetStorageDomainStatsVDSCommandParameters ( org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getVds ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getStorageDomain ( ) . getId ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue getStatsForDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return runVdsCommand ( VDSCommandType.GetStorageDomainStats , new org.ovirt.engine.core.common.vdscommands.GetStorageDomainStatsVDSCommandParameters ( org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getVds ( ) . getId ( ) , storageDomain.getId ( ) ) ) ; }