auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void logException ( java.lang.RuntimeException ex ) { log.errorFormat ( "Command {0} execution failed. Exception: {1}" , this , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "Detailed stacktrace:" , ex ) ; } }

Target:
private void logException ( java.lang.RuntimeException ex ) { log.error ( "Command '{}' execution failed: {}" , this , ex.getMessage ( ) ) ; log.debug ( "Exception" , ex ) ; }
Source:
public void setVncPort ( java.lang.String vncPort ) { this . vncPort = vncPort ; }

Target:
public void setVncPort ( java.lang.String vncPort ) { consoleOptions.setPort ( ( vncPort == null ? null : java.lang.Integer.parseInt ( vncPort ) ) ) ; }
Source:
public void setBridge ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bridge ) { this . bridge = bridge ; }

Target:
public void setBridge ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bridge ) { this . vlanNic = bridge ; }
Source:
public void testDifferentVerbosity ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL2 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , "-vv" , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }

Target:
public void testDifferentVerbosity ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL2 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , "-vv" , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }
Source:
public void typeMatchesProfileOnlyProfilePassthrough ( ) { typeMatchesProfileCommon ( false , true ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }

Target:
public void typeMatchesProfileOnlyProfilePassthrough ( ) { typeMatchesProfileCommon ( false , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }
Source:
public void testSave ( ) { dao.save ( newOption ) ; org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( newOption.getoption_name ( ) , newOption.getversion ( ) ) ; assertNotNull ( result ) ; assertEquals ( newOption , result ) ; }

Target:
public void testSave ( ) { dao.save ( newOption ) ; org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( newOption.getoption_name ( ) , newOption.getversion ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newOption , result ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.ClusterNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( clusterId , id ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { for ( org.ovirt.engine.core.common.businessentities.IVdcQueryable item : ( ( java.util.List < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) { return item ; } } return null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { for ( org.ovirt.engine.core.common.businessentities.IVdcQueryable item : ( ( java.util.List < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) { return item ; } } return null ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithNoCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setname ( "Default" ) ; group.setId ( VDSGroup.DEFAULT_VDS_GROUP_ID ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setstorage_pool_id ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.STORAGE_POOL_ID ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithNoCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setname ( "Default" ) ; group.setId ( VDSGroup.DEFAULT_VDS_GROUP_ID ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.STORAGE_POOL_ID ) ; return group ; }
Source:
private java.lang.String getSsoToken ( final java.lang.String engineSessionId ) { return ( ( java.lang.String ) ( runQuery ( QueryType.GetEngineSessionIdToken , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , engineSessionId ) ) ) ; }

Target:
private java.lang.String getSsoToken ( final java.lang.String engineSessionId ) { return ( ( java.lang.String ) ( runQuery ( QueryType.GetEngineSessionIdToken , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) , engineSessionId ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapUser getExpectedResult ( ) { return new org.ovirt.engine.core.common.businessentities.LdapUser ( NAME_TO_SEARCH , "melon!" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , DOMAIN ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapUser getExpectedResult ( ) { org.ovirt.engine.core.common.businessentities.LdapUser user = new org.ovirt.engine.core.common.businessentities.LdapUser ( ) ; user.setUserName ( org.ovirt.engine.core.bll.NAME_TO_SEARCH ) ; user.setUserId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; user.setDomainControler ( org.ovirt.engine.core.bll.DOMAIN ) ; return user ; }
Source:
private boolean volumeNameExists ( java.lang.String volumeName ) { return ( getGlusterVolumeDao ( ) . getByName ( getClusterId ( ) , volumeName ) ) != null ; }

Target:
private boolean volumeNameExists ( java.lang.String volumeName ) { return ( glusterVolumeDao.getByName ( getClusterId ( ) , volumeName ) ) != null ; }
Source:
public void passDiscardSupportedForCopyFloatingDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; initTemplateDiskImage ( ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }

Target:
public void passDiscardSupportedForCopyFloatingDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.TEMPLATE ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
public void setAttachedTagsToEntities ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Boolean > value ) { if ( ( attachedTagsToEntities ) != value ) { attachedTagsToEntities = value ; AttachedTagsToEntitiesChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "AttachedTagsToEntities" ) ) ; } }

Target:
public void setAttachedTagsToEntities ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Boolean > value ) { if ( ( attachedTagsToEntities ) != value ) { attachedTagsToEntities = value ; AttachedTagsToEntitiesChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AttachedTagsToEntities" ) ) ; } }
Source:
protected void onHide ( ) { super . onHide ( ) ; org.ovirt.engine.ui.uicompat.Event < org.ovirt.engine.ui.uicompat.EventArgs > systemTreeSelectedItemChangedEvent = org.ovirt.engine.ui.uicommonweb.models.CommonModel.getInstance ( ) . getSystemTree ( ) . getSelectedItemChangedEvent ( ) ; systemTreeSelectedItemChangedEvent.removeListener ( systemTreeListener ) ; }

Target:
protected void onHide ( ) { super . onHide ( ) ; org.ovirt.engine.ui.uicompat.Event < org.ovirt.engine.ui.uicompat.EventArgs > systemTreeSelectedItemChangedEvent = commonModelProvider.get ( ) . getSystemTree ( ) . getSelectedItemChangedEvent ( ) ; systemTreeSelectedItemChangedEvent.removeListener ( systemTreeListener ) ; }
Source:
protected void endVmCommand ( ) { getSnapshotDao ( ) . updateStatus ( getSnapshotId ( ) , SnapshotStatus.OK ) ; super . endVmCommand ( ) ; }

Target:
protected void endVmCommand ( ) { getSnapshotDao ( ) . updateStatus ( org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getParameters ( ) . getSnapshotId ( ) , SnapshotStatus.OK ) ; super . endVmCommand ( ) ; }
Source:
public void setSucceeded ( boolean succeeded ) { this . succeeded = succeeded ; }

Target:
protected abstract void setup ( ) ;
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 returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final boolean showErrorDialog ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK , null , showErrorDialog ) ; }

Target:
public void runAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { runAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) ; }
Source:
public void testSimpleMatches ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[0-9]" ) ; org.junit.Assert.assertTrue ( "A number should match" , regex.isMatch ( "1" ) ) ; org.junit.Assert.assertFalse ( "A letter should not match" , regex.isMatch ( "a" ) ) ; }

Target:
public void testSimpleMatches ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[0-9]" ) ; org.junit.jupiter.api.Assertions.assertTrue ( regex.isMatch ( "1" ) , "A number should match" ) ; org.junit.jupiter.api.Assertions.assertFalse ( regex.isMatch ( "a" ) , "A letter should not match" ) ; }
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.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageSnapshotListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageSnapshotPresenter.constants.snapshotsLabel ( ) , 9 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageSnapshotPresenter.constants.snapshotsLabel ( ) , 9 ) ; }
Source:
private void addResource ( org.ovirt.engine.sdk.generator.utils.Tree < org.ovirt.engine.sdk.generator.Location > entityTree ) { java.lang.String className = org.ovirt.engine.sdk.generator.BrokerRules.getBrokerType ( entityTree ) ; java.lang.String classCode = new org.ovirt.engine.sdk.generator.java.templates.ResourceTemplate ( ) . evaluate ( entityTree ) ; code.put ( className , classCode ) ; }

Target:
private java.lang.String addSubResource ( java.lang.String className , org.ovirt.engine.sdk.generator.utils.Tree < org.ovirt.engine.sdk.generator.Location > entityTree ) { return new org.ovirt.engine.sdk.generator.java.templates.SubResourceTemplate ( ) . evaluate ( className , entityTree ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . storageIsoSubTabLabel ( ) , 6 , ginjector.getSubTabStorageIsoModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . storageImagesSubTabLabel ( ) , 6 , ginjector.getSubTabStorageIsoModelProvider ( ) ) ; }
Source:
public final boolean SetData ( java.lang.String key , java.lang.Object value ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( sessionId ) ) { return false ; } SetData ( sessionId , key , value ) ; return true ; }

Target:
public final boolean SetData ( java.lang.String key , java.lang.Object value ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( sessionId ) ) { return false ; } SetData ( sessionId , key , value ) ; return true ; }
Source:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue createVDSReturnValueForFailure ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue ret = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; ret.setSucceeded ( false ) ; ret.setVdsError ( new org.ovirt.engine.core.common.errors.VDSError ( org.ovirt.engine.core.common.errors.VdcBllErrors.GlusterServicesListFailed , "VDSM Error" ) ) ; return ret ; }

Target:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue createVDSReturnValueForFailure ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue ret = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; ret.setSucceeded ( false ) ; ret.setVdsError ( new org.ovirt.engine.core.common.errors.VDSError ( org.ovirt.engine.core.common.errors.VdcBllErrors.GlusterServicesActionFailed , "VDSM Error" ) ) ; return ret ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getCluster ( ) { if ( ( cluster ) == null ) { cluster = getDbFacade ( ) . getVdsGroupDao ( ) . get ( getProfile ( ) . getClusterId ( ) ) ; } return cluster ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { if ( ( cluster ) == null ) { cluster = getDbFacade ( ) . getClusterDao ( ) . get ( getProfile ( ) . getClusterId ( ) ) ; } return cluster ; }
Source:
private void verifyCPU ( org.ovirt.engine.api.model.CPU cpu , java.lang.String name , java.lang.Integer level ) { assertNotNull ( cpu ) ; assertEquals ( name , cpu.getId ( ) ) ; assertEquals ( level , cpu.getLevel ( ) ) ; }

Target:
private void verifyCPU ( org.ovirt.engine.api.model.Cpu cpu , java.lang.String name , java.lang.Integer level ) { assertNotNull ( cpu ) ; assertEquals ( name , cpu.getType ( ) ) ; assertEquals ( level , cpu.getLevel ( ) ) ; }
Source:
public void getUsbTypeEnabledNative ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.Assert.assertEquals ( UsbType.NATIVE , org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getUsbType ( usbPolicy ) ) ; }

Target:
public void getUsbTypeEnabledNative ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.jupiter.api.Assertions.assertEquals ( UsbType.NATIVE , org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getUsbType ( usbPolicy ) ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "storageType" , getStorageType ( ) ) . append ( "connectionList" , getConnectionList ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "storageType" , getStorageType ( ) ) . append ( "connectionList" , getConnectionList ( ) ) . append ( "sendNetworkEventOnFailure" , getSendNetworkEventOnFailure ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllInterfacesByDataCenterId ( org.ovirt.engine.core.compat.Guid dataCenterId ) { return getCallsHandler ( ) . executeReadList ( "GetInterfacesByDataCenterId" , org.ovirt.engine.core.dao.network.InterfaceDaoDbFacadeImpl.vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "data_center_id" , dataCenterId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllInterfacesByDataCenterId ( org.ovirt.engine.core.compat.Guid dataCenterId ) { return getCallsHandler ( ) . executeReadList ( "GetInterfacesByDataCenterId" , vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "data_center_id" , dataCenterId ) ) ; }
Source:
public static java.lang.String GetMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String value = "" ; if ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.mMessages.containsKey ( logType ) ) { value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.mMessages.get ( logType ) ; } return value ; }

Target:
public static java.lang.String GetMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String value = "" ; if ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.containsKey ( logType ) ) { value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; } return value ; }
Source:
public void testConvertStringToId ( ) { junit.framework.Assert.assertEquals ( "0" , completer.convertFieldEnumValueToActualValue ( "other" ) ) ; junit.framework.Assert.assertEquals ( "1" , completer.convertFieldEnumValueToActualValue ( "rhel_x" ) ) ; junit.framework.Assert.assertEquals ( "2" , completer.convertFieldEnumValueToActualValue ( "rhel_x_y" ) ) ; }

Target:
public void autoCompletedInputMatchesItsNumericKeyValue ( java.util.Map.Entry < java.lang.Integer , java.lang.String > osCompletionEntry ) { org.junit.Assert.assertThat ( osCompletionEntry.getKey ( ) . toString ( ) , org.hamcrest.core.Is.is ( completer.convertFieldEnumValueToActualValue ( osCompletionEntry.getValue ( ) ) ) ) ; }
Source:
public void testNewStorageTypes ( ) { org.junit.Assert.assertEquals ( ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain " + "method accordingly" ) , 9 , org.ovirt.engine.core.common.businessentities.storage.StorageType.values ( ) . length ) ; }

Target:
public void testNewStorageTypes ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 9 , org.ovirt.engine.core.common.businessentities.storage.StorageType.values ( ) . length , ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain " + "method accordingly" ) ) ; }
Source:
public void CollapseAll ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel stm : getPermissionGroupModels ( ) ) { stm.setIsExpanded ( false ) ; for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel stmChild : stm.getChildren ( ) ) { stmChild.setIsExpanded ( false ) ; } } }

Target:
public void collapseAll ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel stm : getPermissionGroupModels ( ) ) { stm.setIsExpanded ( false ) ; for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel stmChild : stm.getChildren ( ) ) { stmChild.setIsExpanded ( false ) ; } } }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANDisableEffects ( ( ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.getOptions ( ) . setWanDisableEffects ( ( ( java.util.List < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > ) ( returnValue ) ) ) ; }
Source:
private boolean checkPermissions ( org.ovirt.engine.core.compat.Guid cpuProfileId , org.ovirt.engine.core.compat.Guid userId ) { return ( userId == null ) || ( ( permissionDao.getEntityPermissions ( userId , ActionGroup.ASSIGN_CPU_PROFILE , cpuProfileId , VdcObjectType.CpuProfile ) ) != null ) ; }

Target:
private boolean checkPermissions ( org.ovirt.engine.core.compat.Guid cpuProfileId , org.ovirt.engine.core.compat.Guid userId ) { return ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( userId ) ) || ( ( permissionDao.getEntityPermissions ( userId , ActionGroup.ASSIGN_CPU_PROFILE , cpuProfileId , VdcObjectType.CpuProfile ) ) != null ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, status=%s, nonOperationalReason=%s, stopSpmFailureLogged=%s" , super . toString ( ) , getStatus ( ) , getNonOperationalReason ( ) , isStopSpmFailureLogged ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, status=%s, nonOperationalReason=%s, stopSpmFailureLogged=%s, maintenanceReason=%s" , super . toString ( ) , getStatus ( ) , getNonOperationalReason ( ) , isStopSpmFailureLogged ( ) , getMaintenanceReason ( ) ) ; }
Source:
public void verifyFirstDomainForMemory ( ) { verifyDomainForMemory ( java.util.Arrays.asList ( validStorageDomain , invalidStorageDomain1 , invalidStorageDomain2 ) ) ; }

Target:
public void filterAllDomainsExceptForTheFirstOne ( ) { filterAllStorageDomainsExceptOne ( java.util.Arrays.asList ( validStorageDomain , invalidStorageDomain1 , invalidStorageDomain2 ) , validStorageDomain ) ; }
Source:
protected org.springframework.jdbc.core.RowMapper < java.lang.String > getStringMapper ( ) { return org.ovirt.engine.core.dao.BaseDaoDbFacade.stringRowMapper ; }

Target:
protected org.springframework.jdbc.core.RowMapper < java.lang.String > getStringMapper ( ) { return org.ovirt.engine.core.dao.BaseDao.stringRowMapper ; }
Source:
public boolean isLsmBetweenMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveStorageMigrationBetweenDifferentStorageTypes , version.toString ( ) ) ) ) ; }

Target:
public boolean isMigrationPoliciesSupported ( org.ovirt.engine.core.compat.Version clusterVersion ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.MigrationPoliciesSupported , clusterVersion.toString ( ) ) ) ) ; }
Source:
void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.cell.Context context , final com.google.gwt.dom.client.Element parent , C value , final com.google.gwt.safehtml.shared.SafeHtml tooltipContent , final com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < C > valueUpdater ) ;

Target:
void setTooltipFallback ( com.google.gwt.safehtml.shared.SafeHtml tooltipFallback ) ;
Source:
protected void AddInvalidIdErrorMessages ( org.ovirt.engine.core.common.errors.VdcBllMessages messageActionTypeParameter ) { AddErrorMessages ( messageActionTypeParameter , VdcBllMessages.ACTION_TYPE_FAILED_BOOKMARK_INVALID_ID ) ; }

Target:
protected void addInvalidIdErrorMessages ( org.ovirt.engine.core.common.errors.VdcBllMessages messageActionTypeParameter ) { addErrorMessages ( messageActionTypeParameter , VdcBllMessages.ACTION_TYPE_FAILED_BOOKMARK_INVALID_ID ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.GraphicsType deriveGraphicsType ( ) { org.ovirt.engine.api.model.VM vm = getEntity ( org.ovirt.engine.api.model.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , "GetVmByVmId" ) ; return vm == null ? null : org.ovirt.engine.api.restapi.types.VmMapper.deriveGraphicsType ( vm.getGraphicsInfos ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.GraphicsType deriveGraphicsType ( ) { org.ovirt.engine.api.restapi.resource.VM vm = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , "GetVmByVmId" ) ; return vm == null ? null : org.ovirt.engine.api.restapi.types.VmMapper.deriveGraphicsType ( vm.getGraphicsInfos ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getTaskID ( ) { return getParameters ( ) . getTaskID ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsmTaskId ( ) { return getParameters ( ) . getVdsmTaskId ( ) ; }
Source:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }

Target:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }
Source:
int getInterval ( ) { return 4000 ; }

Target:
int getInterval ( ) { return 1000 ; }
Source:
public void setTitle ( java.lang.String text ) { this . title = text ; }

Target:
public void setTitle ( java.lang.String text ) { tooltipPanel.setText ( text ) ; }
Source:
public void validateIsoPrefixWithTrippleSlash ( ) throws java.lang.Exception { java.lang.String initrd = ( org.ovirt.engine.core.bll.RunVmCommandTest.ISO_PREFIX ) + "/" ; org.ovirt.engine.core.common.businessentities.VM vm = createVmForTesting ( initrd , null ) ; org.junit.Assert.assertEquals ( vm.getInitrdUrl ( ) , ( ( org.ovirt.engine.core.bll.RunVmCommandTest.ACTIVE_ISO_PREFIX ) + "/" ) ) ; }

Target:
public void validateIsoPrefixWithTrippleSlash ( ) throws java.lang.Exception { java.lang.String initrd = ( RunVmCommand.ISO_PREFIX ) + "/" ; org.ovirt.engine.core.common.businessentities.VM vm = createVmForTesting ( initrd , null ) ; org.junit.Assert.assertEquals ( vm.getInitrdUrl ( ) , ( ( org.ovirt.engine.core.bll.RunVmCommandTest.ACTIVE_ISO_PREFIX ) + "/" ) ) ; }
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 ( ) : 0 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.isExternal ( ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.isExternal ( ) ; }
Source:
public void setmigrating_to_vds ( org.ovirt.engine.core.compat.NGuid value ) { this . mVmDynamic.setmigrating_to_vds ( value ) ; }

Target:
public org.ovirt.engine.core.compat.NGuid getmigrating_to_vds ( ) { return this . vmDynamic.getmigrating_to_vds ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllRelevantQuotasForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId , long engineSessionSeqId , boolean isFiltered ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllRelevantQuotasForCluster ( org.ovirt.engine.core.compat.Guid clusterId , long engineSessionSeqId , boolean isFiltered ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeCreate ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , int stripeCount , java.lang.String [ ] transportList ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > prepareImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
public void setCpuPerSocket ( int value ) { this . vmStatic.setcpu_per_socket ( value ) ; }

Target:
public java.lang.String getVmName ( ) { return this . vmStatic.getVmName ( ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getVmName ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getNumOfCpus ( ) ) ; }
Source:
private void localize ( ) { keyListBoxEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeParameterPopupView.constants.optionKeyVolumeParameter ( ) ) ; descriptionEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeParameterPopupView.constants.descriptionVolumeParameter ( ) ) ; valueEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeParameterPopupView.constants.optionValueVolumeParameter ( ) ) ; }

Target:
public void setMessage ( java.lang.String message ) { super . setMessage ( message ) ; this . message.setText ( message ) ; this . message.setVisible ( ( ! ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( message ) ) ) ) ; }
Source:
private boolean isEveyoneNetworUserPermission ( org.ovirt.engine.core.common.businessentities.permissions permission ) { return ( permission.getad_element_id ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getrole_id ( ) . equals ( ApplicationGuids.networkUser.asGuid ( ) ) ) ; }

Target:
private boolean isEveryoneVnicProfileUserPermission ( org.ovirt.engine.core.common.businessentities.permissions permission ) { return ( permission.getad_element_id ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getrole_id ( ) . equals ( ApplicationGuids.vnicProfileUser.asGuid ( ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ( ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getRngDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.RNG ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.BALLOON , VmDeviceType.MEMBALLOON , getMemoryBalloonSpecParams ( ) , true , true ) ; }
Source:
private void unlockDisk ( ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }

Target:
private void unlockDisk ( ) { imageDao.updateStatusOfImagesByImageGroupId ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . eventMainTabLabel ( ) , 13 , ginjector.getMainTabEventModelProvider ( ) , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.events.EventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.eventMainTabLabel ( ) , 13 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterGeoRepMountBrokerSetup ( java.lang.String userName , java.lang.String remoteGroupName , java.lang.String remoteVolumeName , java.lang.Boolean partial ) ;
Source:
public void canDoAction_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_INVALID_VM_FOR_AFFINITY_GROUP ) ; }

Target:
public void canDoAction_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_VM_FOR_AFFINITY_GROUP ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . hostMainTabLabel ( ) , 2 , ginjector.getMainTabHostModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.hostMainTabLabel ( ) , 2 , modelProvider ) ; }
Source:
protected void callbackAddError ( java.lang.String message ) { if ( haveCallback ( ) ) { callback.addError ( message ) ; } }

Target:
private void _callbackAddMessage ( java.lang.String message ) { if ( ( this . callback ) != null ) { this . callback.addMessage ( message ) ; } }
Source:
public void nullQosValuesPresent ( ) { org.junit.Assert.assertThat ( nullValidator.requiredValuesPresent ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nullQosValuesPresent ( ) { org.hamcrest.MatcherAssert.assertThat ( nullValidator.requiredValuesPresent ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.DisplayType > > getGraphicsAndDisplays ( int osId , org.ovirt.engine.core.compat.Version version ) { return graphicsAndDisplays.get ( osId ) . get ( version ) ; }
Source:
public void testRemoveActionVersionMap ( ) { dao.removeActionVersionMap ( existingActionMap.getaction_type ( ) ) ; org.ovirt.engine.core.common.businessentities.action_version_map result = dao.getActionVersionMapByActionType ( existingActionMap.getaction_type ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemoveActionVersionMap ( ) { dao.removeActionVersionMap ( existingActionMap.getaction_type ( ) ) ; org.ovirt.engine.core.common.businessentities.ActionVersionMap result = dao.getActionVersionMapByActionType ( existingActionMap.getaction_type ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void setLocalizedStrings ( java.lang.String [ ] localizedStrings ) { this . localizedStrings = localizedStrings ; }

Target:
public void setNumberOfMonitors ( int numberOfMonitors ) { this . consoleOptions.setNumberOfMonitors ( numberOfMonitors ) ; }
Source:
void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) ;

Target:
void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) ;
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "providerId" , getProviderId ( ) ) . append ( "externalId" , getExternalId ( ) ) . build ( ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "providerId" , getProviderId ( ) ) . append ( "externalId" , getExternalId ( ) ) . append ( "physicalNetworkId" , getPhysicalNetworkId ( ) ) . build ( ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy result = dao.get ( existingPolicy.getId ( ) , java.util.Collections.emptyMap ( ) ) ; org.junit.Assert.assertEquals ( result , existingPolicy ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy result = dao.get ( existingPolicy.getId ( ) , java.util.Collections.emptyMap ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( result , existingPolicy ) ; }
Source:
protected void updateServerHookStatusInDb ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid serverId , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) { org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getGlusterHooksDao ( ) . updateGlusterServerHookStatus ( hookId , serverId , status ) ; }

Target:
protected void updateServerHookStatusInDb ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid serverId , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) { glusterHooksDao.updateGlusterServerHookStatus ( hookId , serverId , status ) ; }
Source:
public void testIsUpdInvalid ( ) { storagePool.setstatus ( StoragePoolStatus.NonResponsive ) ; org.ovirt.engine.core.bll.storage.StoragePoolValidatorTest.assertMessage ( validator.isUp ( ) , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testIsUpdInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.ovirt.engine.core.bll.storage.StoragePoolValidatorTest.assertMessage ( validator.isUp ( ) , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }
Source:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void setPmProxyPreferences ( java.lang.String pmProxyPreferences ) { this . pmProxyPreferences = pmProxyPreferences ; }

Target:
public void setPmProxyPreferences ( java.lang.String pmProxyPreferences ) { setFenceProxySources ( org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.parseFromString ( pmProxyPreferences ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, srcHost=%s, dstVdsId=%s, dstHost=%s, migrationMethod=%s, tunnelMigration=%s" , super . toString ( ) , getSrcHost ( ) , getDstVdsId ( ) , getDstHost ( ) , getMigrationMethod ( ) , isTunnelMigration ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, srcHost=%s, dstVdsId=%s, dstHost=%s, migrationMethod=%s, tunnelMigration=%s, migrationDowntime=%s" , super . toString ( ) , getSrcHost ( ) , getDstVdsId ( ) , getDstHost ( ) , getMigrationMethod ( ) , isTunnelMigration ( ) , getMigrationDowntime ( ) ) ; }
Source:
public void nullVnicProfileWhenUnlinkingSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , null ) ; }

Target:
public void nullVnicProfileWhenUnlinkingSupported ( ) throws java.lang.Exception { vnicProfileLinkingTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , null ) ; }
Source:
public void setIsGroup ( boolean value ) { }

Target:
public void setLastAdminCheckStatus ( boolean value ) { lastAdminCheckStatus = value ; }
Source:
protected boolean MigrateAllVms ( org.ovirt.engine.core.bll.job.ExecutionContext parentContext ) { return MigrateAllVms ( parentContext , false ) ; }

Target:
protected boolean migrateAllVms ( org.ovirt.engine.core.bll.job.ExecutionContext parentContext ) { return migrateAllVms ( parentContext , false ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Event event ) { validateParameters ( event , "origin" , "severity" , "customId" , "description" ) ; return performCreate ( VdcActionType.AddExternalEvent , getParameters ( event ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < java.lang.Long > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetAuditLogById , org.ovirt.engine.core.common.queries.GetAuditLogByIdParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Event event ) { validateParameters ( event , "origin" , "severity" , "customId" , "description" ) ; return performCreate ( ActionType.AddExternalEvent , getParameters ( event ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < java.lang.Long > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetAuditLogById , org.ovirt.engine.core.common.queries.GetAuditLogByIdParameters.class ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.StorageDevice getValue ( org.ovirt.engine.core.common.businessentities.gluster.StorageDevice object ) { return object ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.gluster.StorageDevice device ) { if ( device.getCanCreateBrick ( ) ) { return null ; } return org.ovirt.engine.ui.webadmin.widget.table.column.StorageDeviceStatusColumn.resources.lockImage ( ) ; }
Source:
org.ovirt.engine.core.dao.VdsDAO getVdsDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) ; }

Target:
private boolean CanFindAnyVds ( java.util.List < java.lang.String > messages , boolean isMigrate ) { return CanFindVdsToRun ( messages , isMigrate , org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }
Source:
public void allowEmptyProfileForNonHostedEngineVm ( ) { vm.setOrigin ( OriginType.RHEV ) ; org.junit.Assert.assertThat ( validator.validateProfileNotEmptyForHostedEngineVm ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void allowEmptyProfileForNonHostedEngineVm ( ) { vm.setOrigin ( OriginType.RHEV ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateProfileNotEmptyForHostedEngineVm ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
void onIsValidPropertyChange ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { if ( model.getIsValid ( ) ) { markAsValid ( ) ; } else { markAsInvalid ( model.getInvalidityReasons ( ) ) ; } }

Target:
void onIsValidPropertyChange ( org.ovirt.engine.ui.uicommonweb.models.Model model ) { if ( model.getIsValid ( ) ) { markAsValid ( ) ; } else { markAsInvalid ( model.getInvalidityReasons ( ) ) ; } }
Source:
public void setParentParemeters ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { parentParameters = parameters ; }

Target:
public void setParentParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { parentParameters = parameters ; }
Source:
public void getVmTemplateDefault ( ) { final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.Assert.assertNull ( t ) ; }

Target:
public void getVmTemplateDefault ( ) { final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.jupiter.api.Assertions.assertNull ( t ) ; }
Source:
public static org.ovirt.engine.api.extensions.ExtMap fetchPrincipalRecord ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , java.lang.String principal , boolean resolveGroups , boolean resolveGroupsRecursive ) { return org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalRecordImpl ( extension , Authz.InvokeKeys.PRINCIPAL , principal , resolveGroups , resolveGroupsRecursive ) ; }

Target:
public static org.ovirt.engine.api.extensions.ExtMap fetchPrincipalRecord ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , java.lang.String principal , boolean resolveGroups , boolean resolveGroupsRecursive ) { return org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalRecordImpl ( extension , new org.ovirt.engine.api.extensions.ExtMap ( ) . mput ( Authz.InvokeKeys.PRINCIPAL , principal ) , resolveGroups , resolveGroupsRecursive ) ; }
Source:
public void handleVdsMaintenanceTimeout ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( java.util.Arrays.asList ( vdsId ) , true ) ) ; }

Target:
public void handleVdsMaintenanceTimeout ( org.ovirt.engine.core.compat.Guid vdsId ) { backend.runInternalAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( java.util.Arrays.asList ( vdsId ) , true ) ) ; }