auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered , boolean allUsersWithPermission ) { int appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getAllForEntity ( id , userID , isFiltered , allUsersWithPermission , appMode ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , long engineSessionId , boolean isFiltered , boolean allUsersWithPermission ) { int appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getAllForEntity ( id , engineSessionId , isFiltered , allUsersWithPermission , appMode ) ; }
Source:
private void TimeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }

Target:
private void template_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.template_SelectedItemChanged ( ) ; }
Source:
public void disable ( java.util.List < java.lang.String > disabilityHints ) { widgetWithLabel.disable ( disabilityHints ) ; }

Target:
public void disable ( java.lang.String disabilityHint ) { widgetWithLabel.disable ( disabilityHint ) ; }
Source:
public void testRemoveServerHook ( ) { dao.removeGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.Assert.assertNull ( serverhook ) ; }

Target:
public void testRemoveServerHook ( ) { dao.removeGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.jupiter.api.Assertions.assertNull ( serverhook ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.network_cluster , org.ovirt.engine.core.common.businessentities.VDSGroup > object ) { return object.getSecond ( ) . getcompatibility_version ( ) . getValue ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network_cluster > object ) { return object.getFirst ( ) . getcompatibility_version ( ) . getValue ( ) ; }
Source:
public void setTabContent ( com.google.gwt.user.client.ui.Widget content ) { tabContentContainer.clear ( ) ; if ( content != null ) { tabContentContainer.add ( content ) ; } }

Target:
public void setTabContent ( com.google.gwt.user.client.ui.IsWidget content ) { tabContentContainer.clear ( ) ; if ( content != null ) { tabContentContainer.add ( content ) ; } }
Source:
public final boolean ConnectToServer ( java.lang.String server , java.lang.String rootPassword ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds ) ; }

Target:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command == ( getExpandAllCommand ( ) ) ) { ExpandAll ( ) ; } if ( command == ( getCollapseAllCommand ( ) ) ) { CollapseAll ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getExpandAllCommand ( ) ) ) { ExpandAll ( ) ; } if ( command == ( getCollapseAllCommand ( ) ) ) { CollapseAll ( ) ; } }
Source:
public void testCommonPpc ( ) { java.lang.Integer maxVCpu = org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( ArchitectureType.ppc , new java.lang.Integer ( 16 ) , new java.lang.Integer ( 288 ) , 2 , 12 ) ; org.junit.Assert.assertEquals ( new java.lang.Integer ( 288 ) , maxVCpu ) ; }

Target:
public void testCommonPpc ( ) { java.lang.Integer maxVCpu = org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( ArchitectureType.ppc , new java.lang.Integer ( 16 ) , new java.lang.Integer ( 288 ) , 2 , 12 ) ; org.junit.jupiter.api.Assertions.assertEquals ( new java.lang.Integer ( 288 ) , maxVCpu ) ; }
Source:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > result = dao.getAllWithQuery ( "select * from users" ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > result = dao.getAllWithQuery ( "select * from users" ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public boolean getpm_enabled ( ) { return mVdsStatic.getpm_enabled ( ) ; }

Target:
public boolean getpm_enabled ( ) { return mVdsStatic.isPmEnabled ( ) ; }
Source:
public void render ( org.ovirt.engine.ui.webadmin.widget.table.column.Context context , T value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { com.google.gwt.safehtml.shared.SafeHtml separatorImageHtml = com.google.gwt.safehtml.shared.SafeHtmlUtils.fromTrustedString ( com.google.gwt.user.client.ui.AbstractImagePrototype.create ( imageResources.separator ( ) ) . getHTML ( ) ) ; sb.append ( separatorImageHtml ) ; }

Target:
public void render ( org.ovirt.engine.ui.webadmin.widget.table.cell.Context context , T value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { com.google.gwt.safehtml.shared.SafeHtml separatorImageHtml = com.google.gwt.safehtml.shared.SafeHtmlUtils.fromTrustedString ( com.google.gwt.user.client.ui.AbstractImagePrototype.create ( imageResources.separator ( ) ) . getHTML ( ) ) ; sb.append ( separatorImageHtml ) ; }
Source:
protected void syncSearch ( ) { onEntityChanged ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
private static org.ovirt.engine.core.common.action.InstallVdsParameters createParameters ( ) { org.ovirt.engine.core.common.action.InstallVdsParameters param = new org.ovirt.engine.core.common.action.InstallVdsParameters ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , null ) ; param.setIsReinstallOrUpgrade ( true ) ; return param ; }

Target:
private static org.ovirt.engine.core.common.action.InstallVdsParameters createParameters ( ) { org.ovirt.engine.core.common.action.InstallVdsParameters param = new org.ovirt.engine.core.common.action.InstallVdsParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; param.setIsReinstallOrUpgrade ( true ) ; return param ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; onEntityChanged ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; onEntityChanged ( ) ; }
Source:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NOT_MIGRATABLE ) ; }

Target:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_NOT_MIGRATABLE.name ( ) ) ; }
Source:
private void addStyles ( ) { overrideIpTablesEditor.addContentWidgetStyleName ( style.overrideIpStyle ( ) ) ; publicKeyEditor.setCustomStyle ( style.pkStyle ( ) ) ; }

Target:
private void addStyles ( ) { overrideIpTablesEditor.addContentWidgetStyleName ( style.overrideIpStyle ( ) ) ; activateHostAfterInstallEditor.addContentWidgetStyleName ( style.activateHostAfterInstallStyle ( ) ) ; publicKeyEditor.setCustomStyle ( style.pkStyle ( ) ) ; }
Source:
public java.lang.String getHibernationVolHandle ( ) { return this . vmDynamic.getHibernationVolHandle ( ) ; }

Target:
public void setHibernationVolHandle ( java.lang.String value ) { this . hibernationVolHandle = value ; }
Source:
public void updatesUnavailableForUpgradingOvirtNode ( ) { mockOvirtNode ( ) ; org.junit.Assert.assertThat ( validator.updatesAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void updatesUnavailableForUpgradingOvirtNode ( ) { mockOvirtNode ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.updatesAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . clearDismissedAlerts ( ) ; org.ovirt.engine.core.bll.ClearDismissedAuditLogAlertsCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . clearAllEvents ( ) ; org.ovirt.engine.core.bll.ClearAllAuditLogEventsCommand.setSucceeded ( true ) ; }
Source:
public void testGetLocalesKeysDisplayLocalesEmpty ( ) { java.util.List < java.lang.String > locales = org.ovirt.engine.core.utils.servlet.UnsupportedLocaleHelper.getLocalesKeys ( ConfigValues.UnsupportedLocalesFilterOverrides ) ; org.junit.Assert.assertNotNull ( "Result should not be null" , locales ) ; org.junit.Assert.assertEquals ( "There should be 0 locales" , 0 , locales.size ( ) ) ; }

Target:
public void testGetLocalesKeysDisplayLocalesEmpty ( ) { java.util.List < java.lang.String > locales = org.ovirt.engine.core.utils.servlet.UnsupportedLocaleHelper.getLocalesKeys ( ConfigValues.UnsupportedLocalesFilterOverrides ) ; org.junit.jupiter.api.Assertions.assertNotNull ( locales , "Result should not be null" ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , locales.size ( ) , "There should be 0 locales" ) ; }
Source:
public void setvm_description ( java.lang.String value ) { this . mVmStatic.setdescription ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_description" ) ) ; }

Target:
public void setVmDescription ( java.lang.String value ) { this . vmStatic.setDescription ( value ) ; }
Source:
public void isConnectionNotExists ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator ( null ) ; org.junit.Assert.assertEquals ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST , validator.isConnectionExists ( ) . getMessage ( ) ) ; }

Target:
public void isConnectionNotExists ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator ( null ) ; org.junit.Assert.assertThat ( validator.isConnectionExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ) ; }
Source:
public void testNetworkIpAddressWasSameAsHostnameAndChangedWhenIpConfigurationIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , null ) . networkIpAddressWasSameAsHostnameAndChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNetworkNotChangedWhenOldAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkNotChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; }

Target:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; vds.setVdsGroupCompatibilityVersion ( Version.v3_4 ) ; }
Source:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel object , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { super . render ( context , object , sb ) ; sb.append ( templates.textForCheckBox ( constants.attach ( ) ) ) ; }

Target:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel object , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { super . render ( context , object , sb ) ; sb.append ( org.ovirt.engine.ui.webadmin.section.main.view.popup.AbstractNetworkPopupView.templates.textForCheckBox ( org.ovirt.engine.ui.webadmin.section.main.view.popup.AbstractNetworkPopupView.constants.attach ( ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { if ( ( object.getSpeed ( ) ) != null ) { return object.getSpeed ( ) . toString ( ) ; } else { return null ; } }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { if ( ( object.getSpeed ( ) ) != null ) { return object.getSpeed ( ) . toString ( ) ; } else { return null ; } }
Source:
public void enableUpButton ( boolean enable ) { up.setEnabled ( enable ) ; }

Target:
public void enableDownButton ( boolean enable ) { down.setEnabled ( enable ) ; }
Source:
public void testGetGlusterVolumeSnapshotConfigByClusterIdAndName ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig config = dao.getConfigByClusterIdAndName ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.PARAM_NAME_3 ) ; org.junit.Assert.assertNotNull ( config ) ; org.junit.Assert.assertEquals ( config , existingConfig3 ) ; }

Target:
public void testGetGlusterVolumeSnapshotConfigByClusterIdAndName ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig config = dao.getConfigByClusterIdAndName ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.PARAM_NAME_3 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( config ) ; org.junit.jupiter.api.Assertions.assertEquals ( config , existingConfig3 ) ; }
Source:
protected void addTextBoxToPanel ( com.google.gwt.user.client.ui.HorizontalPanel panel , org.ovirt.engine.ui.common.widget.label.TextBoxLabel item , java.lang.String text , java.lang.String width ) { item.setText ( text ) ; addItemToPanel ( panel , item , width ) ; }

Target:
protected void addTextBoxToPanel ( com.google.gwt.user.client.ui.HorizontalPanel panel , org.ovirt.engine.ui.common.widget.label.StringValueLabel item , java.lang.String text , java.lang.String width ) { item.setValue ( text ) ; addItemToPanel ( panel , item , width ) ; }
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_DATA_CENTER_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; 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:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc.class ) . poolForDataCenter ( params.getStoragePoolId ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.macpool.MacPoolPerDc.class ) . poolForDataCenter ( params.getStoragePoolId ( ) ) ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getcompatibility_version ( ) ) , UsbPolicy.DISABLED ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addNetworkInterfaceDevice ( org.ovirt.engine.core.common.businessentities.VmDeviceId id , boolean plugged ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( id , VmDeviceType.INTERFACE , VmDeviceType.BRIDGE , java.util.Collections.< java.lang.String , java.lang.Object > emptyMap ( ) , plugged , false ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addNetworkInterfaceDevice ( org.ovirt.engine.core.common.businessentities.VmDeviceId id , boolean plugged ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( id , VmDeviceGeneralType.INTERFACE , VmDeviceType.BRIDGE , java.util.Collections.< java.lang.String , java.lang.Object > emptyMap ( ) , plugged , false ) ; }
Source:
public void freeMac ( long mac ) { org.ovirt.engine.core.bll.network.macpoolmanager.Range range = findIncludingRange ( mac ) ; if ( range == null ) { customMacs.decrease ( mac ) ; } else { range.freeMac ( mac ) ; } }

Target:
public void freeMac ( long mac ) { org.ovirt.engine.core.bll.network.macpool.Range range = findIncludingRange ( mac ) ; if ( range == null ) { customMacs.decrease ( mac ) ; } else { range.freeMac ( mac ) ; } }
Source:
public boolean handleMessage ( org.aspectj.bridge.IMessage message ) throws org.aspectj.bridge.AbortException { return org.ovirt.engine.ui.gwtextension.SYSTEM_OUT.handleMessage ( message ) ; }

Target:
public boolean handleMessage ( org.aspectj.bridge.IMessage message ) throws org.aspectj.bridge.AbortException { return org.ovirt.engine.ui.gwtaop.SYSTEM_OUT.handleMessage ( message ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult validateRemoveProvider ( ) { if ( ( getAsyncTaskDao ( ) . getAsyncTaskIdsByEntity ( getStorageDomain ( ) . getId ( ) ) . size ( ) ) > 0 ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ERROR_CANNOT_DEACTIVATE_DOMAIN_WITH_TASKS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validateRemoveProvider ( ) { if ( ( asyncTaskDao.getAsyncTaskIdsByEntity ( getStorageDomain ( ) . getId ( ) ) . size ( ) ) > 0 ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ERROR_CANNOT_DEACTIVATE_DOMAIN_WITH_TASKS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.AuditLog object ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.widget.footer.AlertsEventsFooterView.constants.dismissAlert ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.AuditLog object ) { return object.getMessage ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VolumeFormat map ( org.ovirt.engine.api.model.DiskFormat diskFormat , org.ovirt.engine.core.common.businessentities.VolumeFormat template ) { switch ( diskFormat ) { case COW : return org.ovirt.engine.core.common.businessentities.VolumeFormat.COW ; case RAW : return org.ovirt.engine.core.common.businessentities.VolumeFormat.RAW ; default : return org.ovirt.engine.core.common.businessentities.VolumeFormat.Unassigned ; } }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.VolumeFormat map ( org.ovirt.engine.api.model.DiskFormat diskFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeFormat template ) { switch ( diskFormat ) { case COW : return org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.COW ; case RAW : return org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.RAW ; default : return org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.Unassigned ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1000 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }
Source:
protected void executeVmCommand ( ) { setActionReturnValue ( VMStatus.Down ) ; initVm ( ) ; perform ( ) ; }

Target:
protected void executeVmCommand ( ) { org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . setStopReason ( null ) ; org.ovirt.engine.core.bll.RunVmCommand.getVmDynamicDao ( ) . clearStopReason ( this . getVm ( ) . getId ( ) ) ; setActionReturnValue ( VMStatus.Down ) ; initVm ( ) ; perform ( ) ; }
Source:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; }

Target:
public void addOrUpdateTaskInDB ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { coCoAsyncTaskHelper.addOrUpdateTaskInDB ( asyncTask ) ; }
Source:
public void testGetAllInterfacesForVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoTest.VDS_ID ) ; assertGetAllForVdsCorrectResult ( result ) ; }

Target:
public void testGetAllInterfacesForVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID ) ; assertGetAllForVdsCorrectResult ( result ) ; }
Source:
public void onLogout ( ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . SignOut ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; }

Target:
public void onLogout ( ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . signOut ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; }
Source:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) , lun , Guid.Empty ) ; }

Target:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) , lun , Guid.Empty ) . getFirst ( ) ; }
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 isVersionMatchStorageType ( org.ovirt.engine.core.compat.Version version , boolean isLocalType ) { return ( version.compareTo ( new org.ovirt.engine.core.compat.Version ( 3 , 0 ) ) ) >= 0 ; }
Source:
void pollingFailed ( ) { if ( ( ++ ( failedPollAttempts ) ) >= ( org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.MAX_FAILED_POLL_ATTEMPTS ) ) { org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.log.error ( "Polling failed, stopping model execution" ) ; setContinuePolling ( false ) ; stopJsUpload ( org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.UploadState.CLIENT_ERROR ) ; } }

Target:
void pollingFailed ( ) { if ( ( ++ ( failedPollAttempts ) ) >= ( org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.MAX_FAILED_POLL_ATTEMPTS ) ) { org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.log.severe ( "Polling failed, stopping model execution" ) ; setContinuePolling ( false ) ; stopJsUpload ( org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.UploadState.CLIENT_ERROR ) ; } }
Source:
public void setUsePatternFly ( boolean use ) { if ( use ) { diskListPanel.removeStyleName ( style.diskListPanel ( ) ) ; } }

Target:
public void setUsePatternFly ( boolean usePatternFly ) { diskAllocationTargetEnabled.setUsePatternFly ( usePatternFly ) ; if ( usePatternFly ) { diskListPanel.removeStyleName ( style.diskListPanel ( ) ) ; diskAllocationTargetEnabled.setRemoveFormGroup ( true ) ; } }
Source:
public java.lang.String getVdsDestination ( ) { return ( getDestinationVds ( ) ) != null ? getDestinationVds ( ) . getName ( ) : null ; }

Target:
public final java.lang.String getDestinationVdsName ( ) { return ( getDestinationVds ( ) ) != null ? getDestinationVds ( ) . getName ( ) : null ; }
Source:
public void SaveIsInitialized ( org.ovirt.engine.core.compat.Guid vmid , boolean isInitialized ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , vmid ) . addValue ( "is_initialized" , isInitialized ) ; new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "UpdateIsInitialized" ) . execute ( parameterSource ) ; }

Target:
public java.lang.Integer getSystemStatisticsValue ( java.lang.String entity ) { return getSystemStatisticsValue ( entity , "" ) ; }
Source:
public java.lang.String getDuration ( ) { return java.lang.String.valueOf ( ( ( ( new java.util.Date ( ) . getTime ( ) ) - ( org.ovirt.engine.core.bll.MigrateVmCommand.getParameters ( ) . getStartTime ( ) . getTime ( ) ) ) / 1000 ) ) ; }

Target:
public java.lang.String getDuration ( ) { return org.apache.commons.lang.time.DurationFormatUtils.formatDurationWords ( ( ( new java.util.Date ( ) . getTime ( ) ) - ( org.ovirt.engine.core.bll.MigrateVmCommand.getParameters ( ) . getStartTime ( ) . getTime ( ) ) ) , true , true ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
public void setSelectionAlgorithm ( org.ovirt.engine.core.common.businessentities.VdsSelectionAlgorithm value ) { this . selectionAlgorithm = value ; }

Target:
public void setSshPort ( int value ) { this . mVdsStatic.setSshPort ( value ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterServicesGet ( java.lang.String [ ] serviceNames ) ;
Source:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.AdUsersSearch , new org.ovirt.engine.core.common.queries.AdUsersSearchParameters ( searchString ) , query ) ; }

Target:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllDbUsers , getParameters ( ) , query ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getTemplatesUsingProfile ( ) { return getDbFacade ( ) . getVmTemplateDao ( ) . getAllForDiskProfile ( getProfile ( ) . getId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getTemplatesUsingProfile ( ) { return vmTemplateDao.getAllForDiskProfile ( getProfile ( ) . getId ( ) ) ; }
Source:
private boolean isClusterDetached ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster == null ) || ( ( cluster.getStoragePoolId ( ) ) == null ) ; }

Target:
private boolean isClusterDetached ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return ( cluster == null ) || ( ( cluster.getStoragePoolId ( ) ) == null ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Cluster.class , org.ovirt.engine.core.common.VdcObjectType.VdsGroups ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Cluster.class , org.ovirt.engine.core.common.VdcObjectType.VdsGroups ) ) ; }
Source:
void mockSessionDataContainer ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.SSO_TOKEN ) . when ( sessionDataContainer ) . getSsoAccessToken ( org.mockito.Matchers.anyString ( ) ) ; }

Target:
void mockSessionDataContainer ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.SSO_TOKEN ) . when ( sessionDataContainer ) . getSsoAccessToken ( org.mockito.ArgumentMatchers.anyString ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getvm_os ( ) { return this . mVmStatic.getos ( ) ; }

Target:
public java.util.Date getVmCreationDate ( ) { return this . vmStatic.getCreationDate ( ) ; }
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.businessentities.StorageServerConnections ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source != null ) && ( ! ( ( java.lang.Boolean ) ( source ) ) ) ; }
Source:
public void setavailable_disk_size ( java.lang.Integer value ) { getStorageDynamicData ( ) . setavailable_disk_size ( value ) ; UpdateTotalDiskSize ( ) ; UpdateOverCommitPercent ( ) ; }

Target:
public void setAvailableDiskSize ( java.lang.Integer availableDiskSize ) { getStorageDynamicData ( ) . setavailable_disk_size ( availableDiskSize ) ; UpdateTotalDiskSize ( ) ; updateOverCommitPercent ( ) ; }
Source:
protected void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( false ) ; }

Target:
protected void setUpGetEntityExpectations ( int times ) throws java.lang.Exception { setUpGetEntityExpectations ( times , false ) ; }
Source:
protected void handleError ( ) { log.errorFormat ( "Failed to run StartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { log.error ( "Failed to run StartVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.removeVnicProfiles ( ) ; org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.setSucceeded ( true ) ; }

Target:
public java.lang.Void runInTransaction ( ) { removeVnicProfiles ( ) ; getCompensationContext ( ) . snapshotEntity ( getNetwork ( ) ) ; getNetworkDAO ( ) . remove ( getNetwork ( ) . getId ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public void updateBrickStatus ( org.ovirt.engine.core.compat.Guid brickId , org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterVolumeBrickStatus" , getCustomMapSqlParameterSource ( ) . addValue ( "id" , brickId ) . addValue ( "status" , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( status ) ) ) ; }

Target:
public void updateBrickStatus ( org.ovirt.engine.core.compat.Guid brickId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterVolumeBrickStatus" , getCustomMapSqlParameterSource ( ) . addValue ( "id" , brickId ) . addValue ( "status" , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( status ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmDynamic getVmDynamic ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; vmDynamic.setId ( vmId ) ; vmDynamic.setstatus ( VMStatus.Down ) ; return vmDynamic ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmDynamic getVmDynamic ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; vmDynamic.setId ( vmId ) ; vmDynamic.setStatus ( VMStatus.Down ) ; return vmDynamic ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool getSelectedDataCenter ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithClusterEntityModel dataCenterWithClusterEntityModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithClusterEntityModel ) ( getDataCenterWithClustersList ( ) . getSelectedItem ( ) ) ) ; if ( dataCenterWithClusterEntityModel == null ) { return null ; } return dataCenterWithClusterEntityModel.getDataCenter ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getSelectedCluster ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithCluster dataCenterWithCluster = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithCluster ) ( getDataCenterWithClustersList ( ) . getSelectedItem ( ) ) ) ; if ( dataCenterWithCluster == null ) { return null ; } return dataCenterWithCluster.getCluster ( ) ; }
Source:
public java.lang.String getAppList ( ) { return this . vmDynamic.getapp_list ( ) ; }

Target:
public void setAppList ( java.lang.String value ) { this . vmDynamic.setAppList ( value ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createConnectedClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , java.nio.channels.SocketChannel channel ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient ( reactor , selector , hostname , port , createSSLEngine ( true ) , channel ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createConnectedClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , java.nio.channels.SocketChannel channel ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient ( reactor , selector , hostname , port , this . sslContext , channel ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue1 ) { clusterSnapshotConfigModel.getClusters ( ) . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) , ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue1 ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue1 ) { clusterSnapshotConfigModel.getClusters ( ) . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > ) ( returnValue ) ) , ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue1 ) ) ) ; }
Source:
private void ClearSearchString ( ) { setSearchString ( ( getHasSearchStringPrefix ( ) ? null : getSelectedItem ( ) . getDefaultSearchString ( ) ) , false ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
private void ClearSearchString ( ) { setSearchString ( ( getHasSearchStringPrefix ( ) ? "" : getSelectedItem ( ) . getDefaultSearchString ( ) ) , false ) ; getSearchCommand ( ) . Execute ( ) ; }
Source:
public org.ovirt.engine.core.bll.job.JobRepository getJobRepository ( ) { return org.ovirt.engine.core.bll.job.JobRepositoryFactory.getJobRepository ( ) ; }

Target:
public org.ovirt.engine.core.bll.job.JobRepository getJobRepository ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.job.JobRepository.class ) ; }
Source:
public abstract org.ovirt.engine.core.bll.adbroker.LdapReturnValueBase Execute ( ) ;

Target:
public abstract org.ovirt.engine.core.bll.adbroker.LdapReturnValueBase execute ( ) ;
Source:
public void refreshSnapshotConfig ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters = getClusterDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusters ) { refreshSnapshotConfigInCluster ( cluster ) ; } }

Target:
public void refreshSnapshotConfig ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters = getClusterDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.businessentities.Cluster cluster : clusters ) { refreshSnapshotConfigInCluster ( cluster ) ; } }
Source:
private org.ovirt.engine.core.bll.validator.StorageDomainValidator getValidator ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.compat.Guid domainId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getDiskImageById ( imageId ) ; return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( getStorageDomainById ( domainId , diskImage.getStoragePoolId ( ) . getValue ( ) ) ) ; }

Target:
private org.ovirt.engine.core.bll.validator.StorageDomainValidator getValidator ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( getStorageDomainById ( domainId , storagePoolId ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.BusinessEntity < org.ovirt.engine.core.compat.Guid > entity ) { return id.equals ( entity.getId ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.BusinessEntity < T > entity ) { return ( entity != null ) && ( java.util.Objects.equals ( entity.getId ( ) , id ) ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return vmListReturn.getStatus ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.Status getReturnStatus ( ) { return vmListReturn.getStatus ( ) ; }
Source:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; mockVmWithDisk ( storageId ) ; mockVmNetworks ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
private void mockStorageDomainSpaceCheckerRequest ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.mockito.Mockito.doReturn ( succeeded ) . when ( command ) . doesStorageDomainhaveSpaceForRequest ( domain ) ; }
Source:
public void setVmName ( java.lang.String value ) { this . vmStatic.setvm_name ( value ) ; }

Target:
public int getVmMemSizeMb ( ) { return this . vmStatic.getMemSizeMb ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { updateVms ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . < java.util.List < org.ovirt.engine.core.common.businessentities.VM > > getReturnValue ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { clearVms ( ) ; clearValidations ( ) ; loadProviders ( ) ; }
Source:
public static void getAllVmTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.VdcQueryParametersBase params = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllVmTemplates , params , aQuery ) ; }

Target:
public static void getAllVmTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , final boolean refresh ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.VdcQueryParametersBase params = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; params.setRefresh ( refresh ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllVmTemplates , params , aQuery ) ; }
Source:
public void testCanDoActionRegularPreparingForMaintenance ( ) { validateCanDoActionDomainInProcess ( StorageDomainStatus.Active , StorageDomainStatus.PreparingForMaintenance , StorageDomainStatus.PreparingForMaintenance ) ; }

Target:
public void testValidateRegularPreparingForMaintenance ( ) { validateDomainInProcess ( StorageDomainStatus.Active , StorageDomainStatus.PreparingForMaintenance , StorageDomainStatus.PreparingForMaintenance ) ; }
Source:
public void canRunVmFailStatelessWhenVmHA ( ) { org.ovirt.engine.core.bll.RunVmCommandTest.canRunStatelessVmTest ( true , false , java.lang.Boolean.TRUE , false ) ; }

Target:
public void canRunVmPassStatelessWhenVmNotHAwithNegativeStatelessParam ( ) { canRunStatelessVmTest ( false , false , java.lang.Boolean.TRUE , true ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.displayTypes = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { windowsOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }
Source:
public void setvm_count ( int value ) { this . mVdsDynamic.setvm_count ( value ) ; }

Target:
public void setVmCount ( int value ) { this . mVdsDynamic.setvm_count ( value ) ; }
Source:
private void networkPrefixValidTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher , java.lang.String networkName ) { org.mockito.Mockito.when ( network.getName ( ) ) . thenReturn ( networkName ) ; org.junit.Assert.assertThat ( validator.networkPrefixValid ( ) , matcher ) ; }

Target:
private void networkPrefixValidTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher , java.lang.String networkName ) { org.mockito.Mockito.when ( network.getName ( ) ) . thenReturn ( networkName ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkPrefixValid ( ) , matcher ) ; }
Source:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters ) { dcClusters.put ( dcId , clusters ) ; attachNetworkToClusters ( network , clusters , publicUse ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { addVnicProfile ( network , publicUse ) ; }