auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.api.model.VnicPassThrough adapt ( org.ovirt.engine.api.v3.types.V3VnicPassThrough from ) { org.ovirt.engine.api.model.VnicPassThrough to = new org.ovirt.engine.api.model.VnicPassThrough ( ) ; if ( from.isSetMode ( ) ) { to.setMode ( from.getMode ( ) ) ; } return to ; }

Target:
public org.ovirt.engine.api.model.VnicPassThrough adapt ( org.ovirt.engine.api.v3.types.V3VnicPassThrough from ) { org.ovirt.engine.api.model.VnicPassThrough to = new org.ovirt.engine.api.model.VnicPassThrough ( ) ; if ( from.isSetMode ( ) ) { to.setMode ( org.ovirt.engine.api.model.VnicPassThroughMode.valueOf ( from.getMode ( ) ) ) ; } return to ; }
Source:
public void pause ( ) { com.google.gwt.core.client.GWT.log ( ( ( "GridTimer[" + ( name ) ) + "].pause()" ) ) ; if ( active ) { paused = true ; doStop ( ) ; } }

Target:
public void pause ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].pause()" ) ) ; if ( active ) { paused = true ; doStop ( ) ; } }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; } }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalActionWithTasksContext ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return runInternalAction ( actionType , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContextForTasks ( getContext ( ) , lock ) ) ; }
Source:
public void testGetTemplateWithLatestVersionInChain ( ) { org.junit.Assert.assertEquals ( FixturesTool.VM_TEMPLATE_RHEL5_V2 , dao.getTemplateWithLatestVersionInChain ( FixturesTool.VM_TEMPLATE_RHEL5 ) . getId ( ) ) ; }

Target:
public void testGetTemplateWithLatestVersionInChain ( ) { org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.VM_TEMPLATE_RHEL5_V2 , dao.getTemplateWithLatestVersionInChain ( FixturesTool.VM_TEMPLATE_RHEL5 ) . getId ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return createNetworkValidator ( ) . networkIsSet ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getExistingNetworkAttachment ( ) { if ( ( existingNetworkAttachment ) == null ) { existingNetworkAttachment = networkAttachmentDao.get ( attachment.getId ( ) ) ; } return existingNetworkAttachment ; }
Source:
private void initIpConfigurationDetails ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol , boolean initAddress , boolean initNetmask ) { initIpConfigurationWithBootProtocol ( networkBootProtocol ) ; if ( initAddress ) { initIpConfigurationAddress ( ) ; } if ( initNetmask ) { initIpConfigurationNetmask ( ) ; } }

Target:
private void initIpConfigurationDetails ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , boolean initAddress , boolean initNetmask ) { initIpConfigurationWithBootProtocol ( ipv4BootProtocol ) ; if ( initAddress ) { initIpConfigurationAddress ( ) ; } if ( initNetmask ) { initIpConfigurationNetmask ( ) ; } }
Source:
public java.lang.String runInTransaction ( ) { return gethostFromVds ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.irsbroker.IIrsServer getIrsProxy ( ) { return getCurrentIrsProxyData ( ) . getIrsProxy ( ) ; }
Source:
protected int getEneitiesTotalCount ( ) { return 2 ; }

Target:
protected int getEntitiesTotalCount ( ) { return 2 ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { if ( isUsingSPDMFlow ( ) ) { return new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) ; } return null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { if ( isUsingSPDMFlow ( ) ) { return callbackProvider.get ( ) ; } return null ; }
Source:
public void useDefaultMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 0 ) ) ; junit.framework.Assert.assertTrue ( ( ( validate.size ( ) ) == 0 ) ) ; }

Target:
public void useDefaultMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 0 ) ) ; org.junit.Assert.assertTrue ( ( ( validate.size ( ) ) == 0 ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return 100 ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return 100 ; } return source ; }
Source:
public void migrationNetworkWhenMigrationNetworkNotSupported ( ) throws java.lang.Exception { migrationNetworkSupportTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MIGRATION_NETWORK_IS_NOT_SUPPORTED ) , false , true ) ; }

Target:
public void migrationNetworkWhenMigrationNetworkNotSupported ( ) throws java.lang.Exception { migrationNetworkSupportTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_NETWORK_IS_NOT_SUPPORTED ) , false , true ) ; }
Source:
public java.util.List < java.lang.String > TranslateErrorText ( java.util.List < java.lang.String > errorMsg ) { return translate ( errorMsg , true , java.util.Locale.getDefault ( ) ) ; }

Target:
public java.util.List < java.lang.String > translateErrorText ( java.util.List < java.lang.String > errorMsg ) { return translate ( errorMsg , true , java.util.Locale.getDefault ( ) ) ; }
Source:
private boolean isNetworkDevice ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { return hostNicVfsConfigHelper.isNetworkDevice ( device ) ; }

Target:
public void isNetworkDeviceNegtive ( ) { org.junit.Assert.assertTrue ( hostNicVfsConfigHelper.isNetworkDevice ( netDevice ) ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { if ( org.ovirt.engine.core.searchbackend.ProviderConditionFieldAutoCompleter.TYPE.equals ( fieldName ) ) { return new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.common.businessentities.ProviderType.class ) ; } return null ; }

Target:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { if ( org.ovirt.engine.core.searchbackend.ProviderConditionFieldAutoCompleter.TYPE.equals ( fieldName ) ) { return new org.ovirt.engine.core.searchbackend.EnumNameAutoCompleter ( org.ovirt.engine.core.common.businessentities.ProviderType.class ) ; } return null ; }
Source:
public static void getGlusterVolumeOptionInfoList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeOptionsInfo , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( clusterId ) , aQuery ) ; }

Target:
public static void getWatchdogByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
public void setSpiceAvailable ( boolean visible ) { spiceRadioButton.setEnabled ( visible ) ; spiceRadioButton.setTitle ( ( visible ? "" : constants.spiceNotAvailable ( ) ) ) ; }

Target:
public void setVncAvailable ( boolean visible ) { vncRadioButton.setEnabled ( visible ) ; vncRadioButtonTooltip.setText ( ( visible ? "" : org.ovirt.engine.ui.common.view.popup.ConsolePopupView.constants.vncNotAvailable ( ) ) ) ; }
Source:
public abstract void OnEntityChanged ( ) ;

Target:
public abstract void onEntityChanged ( ) ;
Source:
protected void SyncSearch ( ) { }

Target:
protected java.lang.String getListName ( ) { return "VmImportInterfaceListModel" ; }
Source:
public void setHost ( java.lang.String host ) { this . host = ( host == null ) ? "" : host ; }

Target:
public void setHost ( java.lang.String host ) { this . host = ( host == null ) ? org.ovirt.engine.ui.uicommonweb.UriAuthority.EMPTY_STRING : host ; }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Name" ) ) ; } }

Target:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }
Source:
java.lang.String diskNote ( java.lang.String diskAlias , java.lang.String formattedNote ) ;

Target:
java.lang.String disksStatusWarning ( java.lang.String status , java.lang.String disksAliases ) ;
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM ) , vmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Collections.singletonList ( NetworkType.VM ) , vmNetwork1 ) ; }
Source:
protected void writeHeader ( ) { super . writeHeader ( ) ; _writer.setPrefix ( org.ovirt.engine.core.utils.ovf.OVIRT_PREFIX , org.ovirt.engine.core.utils.ovf.OVIRT_URI ) ; _writer.writeNamespace ( org.ovirt.engine.core.utils.ovf.OVIRT_PREFIX , org.ovirt.engine.core.utils.ovf.OVIRT_URI ) ; }

Target:
protected void writeHeader ( ) { super . writeHeader ( ) ; _writer.writeDefaultNamespace ( org.ovirt.engine.core.utils.ovf.OVF_URI ) ; _writer.setPrefix ( org.ovirt.engine.core.utils.ovf.OVIRT_PREFIX , org.ovirt.engine.core.utils.ovf.OVIRT_URI ) ; _writer.writeNamespace ( org.ovirt.engine.core.utils.ovf.OVIRT_PREFIX , org.ovirt.engine.core.utils.ovf.OVIRT_URI ) ; }
Source:
public org.ovirt.engine.core.common.utils.ansible.AnsibleReturnValue runCommand ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder command ) throws java.io.IOException , java.lang.InterruptedException { return runCommand ( command , org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor.ANSIBLE_PLAYBOOK_TIMEOUT ) ; }

Target:
public org.ovirt.engine.core.common.utils.ansible.AnsibleReturnValue runCommand ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder command ) throws java.io.IOException , java.lang.InterruptedException { int timeout = org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getInteger ( "ANSIBLE_PLAYBOOK_EXEC_DEFAULT_TIMEOUT" ) ; return runCommand ( command , timeout ) ; }
Source:
protected void verifyEntityModification ( org.ovirt.engine.core.common.job.Step result ) { org.junit.Assert.assertEquals ( JobExecutionStatus.FINISHED , result.getStatus ( ) ) ; org.junit.Assert.assertEquals ( 1 , result.getSteps ( ) . size ( ) ) ; }

Target:
public void nonExistStep ( ) { org.junit.Assert.assertFalse ( dao.exists ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Network > getAllForCluster ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Network > getAllForCluster ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { getView ( ) . hideRoleSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { getView ( ) . hideEveryoneSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }
Source:
private void applyStyles ( ) { portMirroringEditor.addContentWidgetStyleName ( style.portMirroringEditor ( ) ) ; publicUseEditor.addContentWidgetStyleName ( style.publicUseEditor ( ) ) ; publicUseEditor.asCheckBox ( ) . addStyleName ( style.checkBox ( ) ) ; }

Target:
private void applyStyles ( ) { portMirroringEditor.addContentWidgetContainerStyleName ( style.portMirroringEditor ( ) ) ; publicUseEditor.addContentWidgetContainerStyleName ( style.publicUseEditor ( ) ) ; publicUseEditor.asCheckBox ( ) . addStyleName ( style.checkBox ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.Network , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterNetworkPresenter.constants.clusterNetworkSubTabLabel ( ) , 1 , 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.cluster.SubTabClusterNetworkPresenter.constants.clusterNetworkSubTabLabel ( ) , 1 ) ; }
Source:
public void setVmNetwork ( boolean vmNetwork ) { getEntity ( ) . setVmNetwork ( vmNetwork ) ; }

Target:
public void setMigrationNetwork ( boolean migrationNetwork ) { getEntity ( ) . getCluster ( ) . setMigration ( migrationNetwork ) ; }
Source:
public java.lang.Object runInTransaction ( ) { getStorageHelper ( dom ) . storageDomainRemoved ( dom.getStorageStaticData ( ) ) ; getStorageDomainDynamicDao ( ) . remove ( dom.getId ( ) ) ; getStorageDomainStaticDAO ( ) . remove ( dom.getId ( ) ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { getStorageHelper ( dom ) . storageDomainRemoved ( dom.getStorageStaticData ( ) ) ; getStorageDomainDAO ( ) . remove ( dom.getId ( ) ) ; return null ; }
Source:
public void testValidPatternName ( ) { junit.framework.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.PoolNameValidationTest.TestablePoolNameValidation ( ) . validate ( "pool-T4534f??" . replace ( '?' , VmPool.MASK_CHARACTER ) ) . getSuccess ( ) ) ; }

Target:
public void testValidPatternName ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.PoolNameValidationTest.TestablePoolNameValidation ( ) . validate ( "pool-T4534f??" . replace ( '?' , VmPool.MASK_CHARACTER ) ) . getSuccess ( ) ) ; }
Source:
protected java.lang.Long getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getActualSizeInBytes ( ) ; }

Target:
protected java.lang.Long getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getSize ( ) ; }
Source:
public static java.util.Map < java.lang.String , java.lang.String > getTasksMap ( ) { return org.ovirt.vdsmfake.task.TaskProcessor.tasksmap ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getTasksMap ( ) { return tasksmap ; }
Source:
public org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapReturnValueBase runAdAction ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.AdActionType actionType , org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapBrokerBaseParameters parameters ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapBrokerBase.log.debug ( ( "runAdAction Entry, actionType=" + ( actionType.toString ( ) ) ) ) ; org.ovirt.engine.extensions.aaa.builtin.kerberosldap.BrokerCommandBase command = CreateCommand ( actionType , parameters ) ; return command.execute ( ) ; }

Target:
public org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapReturnValueBase runAdAction ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.AdActionType actionType , org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapBrokerBaseParameters parameters ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapBrokerBase.log.debug ( "runAdAction Entry, actionType={}" , actionType ) ; org.ovirt.engine.extensions.aaa.builtin.kerberosldap.BrokerCommandBase command = CreateCommand ( actionType , parameters ) ; return command.execute ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setSize ( org.ovirt.engine.core.bll.memory.MemoryUtils.METADATA_SIZE_IN_BYTES ) ; image.setVolumeType ( VolumeType.Preallocated ) ; image.setvolumeFormat ( VolumeFormat.RAW ) ; return image ; }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setSize ( org.ovirt.engine.core.bll.memory.MemoryUtils.METADATA_SIZE_IN_BYTES ) ; image.setVolumeType ( VolumeType.Preallocated ) ; image.setVolumeFormat ( VolumeFormat.RAW ) ; return image ; }
Source:
protected org.ovirt.engine.api.resteasy.json.CustomObjectMapper includeDefaults ( boolean include ) { getSerializationConfig ( ) . setSerializationInclusion ( ( include ? JsonSerialize.Inclusion.ALWAYS : JsonSerialize.Inclusion.NON_DEFAULT ) ) ; return this ; }

Target:
protected org.ovirt.engine.api.json.CustomObjectMapper includeDefaults ( boolean include ) { getSerializationConfig ( ) . setSerializationInclusion ( ( include ? JsonSerialize.Inclusion.ALWAYS : JsonSerialize.Inclusion.NON_DEFAULT ) ) ; return this ; }
Source:
public org.ovirt.engine.api.model.OpenStackImage get ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackImageProviderHelper.getStorageDomainId ( this , providerId ) ; return performGet ( VdcQueryType.GetImageById , new org.ovirt.engine.core.common.queries.GetImageByIdParameters ( storageDomainId , id ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenStackImage get ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackStorageProviderHelper.getStorageDomainId ( this , providerId ) ; return performGet ( VdcQueryType.GetImageById , new org.ovirt.engine.core.common.queries.GetImageByIdParameters ( storageDomainId , id ) ) ; }
Source:
public java.util.ArrayList getMemLoadValues ( ) { return memLoad ; }

Target:
public java.util.List < java.lang.String > getMemLoad ( ) { return memLoad ; }
Source:
public void resizeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , int newWidth ) { setColumnWidth ( column , ( newWidth + "px" ) ) ; }

Target:
public void enableColumnResizing ( ) { if ( ! ( showDefaultHeader ) ) { table.enableColumnResizing ( ) ; tableHeader.enableColumnResizing ( ) ; } }
Source:
public void canDoActionFailsOnNull ( ) { cmd = createTestCommand ( null ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void canDoActionFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , true ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DUPLICATE_BRICKS ) ; }

Target:
public void canDoActionFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , true ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DUPLICATE_BRICKS ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] getVmInfo ( java.util.List < java.lang.String > vmsToUpdate ) { return ( ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] ) ( new org.ovirt.engine.core.vdsbroker.vdsbroker.FullListVdsCommand < org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters > ( new org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters ( _vds.getId ( ) , vmsToUpdate ) ) . ExecuteWithReturnValue ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] getVmInfo ( java.util.List < java.lang.String > vmsToUpdate ) { return ( ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] ) ( new org.ovirt.engine.core.vdsbroker.vdsbroker.FullListVdsCommand < org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters > ( new org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters ( _vds.getId ( ) , vmsToUpdate ) ) . executeWithReturnValue ( ) ) ) ; }
Source:
protected void ConcreteStartPollingTask ( ) { setState ( AsyncTaskState.Polling ) ; }

Target:
public void concreteStartPollingTask ( ) { setState ( AsyncTaskState.Polling ) ; }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveExternalEvent , new org.ovirt.engine.core.common.action.RemoveExternalEventParameters ( asLong ( id ) ) ) ; }
Source:
public void testGetFetchForSpecificStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertEquals ( 6 , quotaList.size ( ) ) ; }

Target:
public void testGetFetchForSpecificStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.jupiter.api.Assertions.assertEquals ( 6 , quotaList.size ( ) ) ; }
Source:
protected void addConnection ( org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx ) { if ( ( lun.getLunConnections ( ) ) == null ) { lun.setLunConnections ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( ) ) ; } lun.getLunConnections ( ) . add ( cnx ) ; }

Target:
protected void addConnection ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun , org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx ) { if ( ( lun.getLunConnections ( ) ) == null ) { lun.setLunConnections ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( ) ) ; } lun.getLunConnections ( ) . add ( cnx ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.memory.HibernationVolumesRemover hibernationVolumesRemover = new org.ovirt.engine.core.bll.memory.HibernationVolumesRemover ( org.ovirt.engine.core.bll.RemoveVmHibernationVolumesCommand.getVm ( ) . getHibernationVolHandle ( ) , org.ovirt.engine.core.bll.RemoveVmHibernationVolumesCommand.getVm ( ) . getId ( ) , this ) ; setSucceeded ( hibernationVolumesRemover.remove ( ) ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.memory.HibernationVolumesRemover hibernationVolumesRemover = new org.ovirt.engine.core.bll.memory.HibernationVolumesRemover ( getActiveSnapshot ( ) . getMemoryVolume ( ) , org.ovirt.engine.core.bll.RemoveVmHibernationVolumesCommand.getVm ( ) . getId ( ) , this ) ; setSucceeded ( hibernationVolumesRemover.remove ( ) ) ; }
Source:
public java.util.ResourceBundle newBundle ( final java.lang.String baseName , final java.util.Locale locale , final java.lang.String format , final java.lang.ClassLoader loader , final boolean reload ) throws java.io.IOException , java.lang.IllegalAccessException , java.lang.InstantiationException { return new org.ovirt.engine.core.utils.branding.BrandingWelcomeResourceBundle ( ) ; }

Target:
public java.util.ResourceBundle newBundle ( final java.lang.String baseName , final java.util.Locale locale , final java.lang.String format , final java.lang.ClassLoader loader , final boolean reload ) throws java.io.IOException , java.lang.IllegalAccessException , java.lang.InstantiationException { return new org.ovirt.engine.core.utils.branding.BrandingResourceBundle ( brandingGroupKey ) ; }
Source:
public void setRow ( int row ) { this . row = row ; }

Target:
public void update ( ) { assert ( formPanel ) != null : "FormItem must be adopted by FormPanel" ; formPanel.updateFormItem ( this ) ; }
Source:
public void testIgnoreCaseOn ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[A-Z]" , RegexOptions.IgnoreCase ) ; assertTrue ( "A cap should match" , regex.IsMatch ( "K" ) ) ; assertTrue ( "A lowercase should match" , regex.IsMatch ( "k" ) ) ; }

Target:
public void testIgnoreCaseOn ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[A-Z]" , RegexOptions.IgnoreCase ) ; org.junit.Assert.assertTrue ( "A cap should match" , regex.IsMatch ( "K" ) ) ; org.junit.Assert.assertTrue ( "A lowercase should match" , regex.IsMatch ( "k" ) ) ; }
Source:
private void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters ( cluster ) ; parameters.setCorrelationId ( org.ovirt.engine.core.bll.AddClusterCommandTest.CORRELATION_ID ) ; }

Target:
private static org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters createParameters ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters parameters = new org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters ( cluster ) ; parameters.setCorrelationId ( org.ovirt.engine.core.bll.AddClusterCommandTest.CORRELATION_ID ) ; return parameters ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkQoS findNetworkQosById ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.network.NetworkQoS > items , org.ovirt.engine.core.compat.Guid qosId ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS qos : items ) { if ( qos.getId ( ) . equals ( qosId ) ) { return qos ; } } return org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkQoSModel.EMPTY_QOS ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkQoS findNetworkQosById ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.network.NetworkQoS > items , org.ovirt.engine.core.compat.Guid qosId ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( items , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( qosId ) , NetworkQoSModel.EMPTY_QOS ) ; }
Source:
public void testGetWithVMOnWrongStorageDomainId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getByEntityIdAndStorageDomain ( FixturesTool.UNREGISTERED_VM , FixturesTool.STORAGE_DOAMIN_NFS2_2 ) ; org.junit.Assert.assertTrue ( "VM should not exists in the UnregisteredOVFData for the specific Storage Domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetWithVMOnWrongStorageDomainId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getByEntityIdAndStorageDomain ( FixturesTool.UNREGISTERED_VM , FixturesTool.STORAGE_DOMAIN_NFS2_2 ) ; org.junit.Assert.assertTrue ( "VM should not exists in the UnregisteredOVFData for the specific Storage Domain" , ovfEntityDataList.isEmpty ( ) ) ; }
Source:
public void testDatacenter ( ) { testValidSql ( "DataCenter: sortby name" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool ) ORDER BY name,name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "DataCenter: Clusters.name =Default" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool LEFT OUTER JOIN cluster_storage_domain ON storage_pool.id=cluster_storage_domain.storage_pool_id WHERE cluster_storage_domain.name LIKE Default ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testDatacenter ( ) { testValidSql ( "DataCenter: sortby name" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool ) ORDER BY name ASC NULLS FIRST) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "DataCenter: Clusters.name =Default" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool LEFT OUTER JOIN cluster_storage_domain ON storage_pool.id=cluster_storage_domain.storage_pool_id WHERE cluster_storage_domain.name LIKE Default ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.StartSpiceVDSCommand.getBroker ( ) . startSpice ( _ip , _port , _ticket ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StartSpiceVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.StartSpiceVDSCommand.getBroker ( ) . startSpice ( _ip , _port , _ticket ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StartSpiceVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public org.ovirt.engine.api.model.OpenStackNetworkProvider update ( org.ovirt.engine.api.model.OpenStackNetworkProvider incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.openstack.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetProviderById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , ActionType.UpdateProvider , new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackNetworkProviderResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenStackNetworkProvider update ( org.ovirt.engine.api.model.OpenStackNetworkProvider incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.openstack.QueryIdResolver ( org.ovirt.engine.core.common.queries.QueryType.GetProviderById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , ActionType.UpdateProvider , new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackNetworkProviderResource.UpdateParametersProvider ( ) ) ; }
Source:
public void testGetTreeForEntityWithVmPoolType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.VM_POOL_ENTITY_ID , VdcObjectType.VmPool , org.ovirt.engine.core.dao.PermissionDaoTest.VDS_GROUP_ID ) ; }

Target:
public void testGetTreeForEntityWithVmPoolType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.VM_POOL_ENTITY_ID , VdcObjectType.VmPool , org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ID ) ; }
Source:
public void allButLinksharePresent ( ) { mockQos ( null , generateValue ( ) , generateValue ( ) ) ; requiredValuesTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) ) ; }

Target:
public void allButLinksharePresent ( ) { mockQos ( null , generateValue ( ) , generateValue ( ) ) ; requiredValuesTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) ) ; }
Source:
public void storageDomainIdNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setStorageDomainId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getStorageDomainId ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void storageDomainIdDefault ( ) { final org.ovirt.engine.core.compat.Guid g = b.getStorageDomainId ( ) ; org.junit.Assert.assertNull ( g ) ; }
Source:
protected void buildVmVideoCards ( ) { createInfo.add ( VdsProperties.display , vm.getdisplay_type ( ) . toString ( ) ) ; createInfo.add ( VdsProperties.num_of_monitors , java.lang.String.valueOf ( vm.getnum_of_monitors ( ) ) ) ; }

Target:
protected void buildVmVideoCards ( ) { createInfo.add ( VdsProperties.display , vm.getDisplayType ( ) . toString ( ) ) ; createInfo.add ( VdsProperties.num_of_monitors , java.lang.String.valueOf ( vm.getNumOfMonitors ( ) ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetStepsByJobIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetStepsByJobIdQuery.getDbFacade ( ) . getStepDao ( ) . getStepsByJobId ( org.ovirt.engine.core.bll.GetStepsByJobIdQuery.getParameters ( ) . getJobId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetStepsByJobIdQuery.getQueryReturnValue ( ) . setReturnValue ( stepDao.getStepsByJobId ( org.ovirt.engine.core.bll.GetStepsByJobIdQuery.getParameters ( ) . getJobId ( ) ) ) ; }
Source:
protected void Restore ( ) { super . Restore ( ) ; ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateImportDiskListModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel ) ( getWindow ( ) ) ) . getImportDiskListModel ( ) ) ) . setExtendedItems ( extendedItems ) ; }

Target:
protected void restore ( ) { super . restore ( ) ; ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateImportDiskListModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel ) ( getWindow ( ) ) ) . getImportDiskListModel ( ) ) ) . setExtendedItems ( extendedItems ) ; }
Source:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public void processOnVmStop ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( vmId ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( ) ) ; }

Target:
public void run ( ) { for ( org.ovirt.engine.core.compat.Guid vmId : vmIds ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( vmId ) ) ; } }
Source:
private void storageDomainIsMaintenance ( ) { org.ovirt.engine.core.common.businessentities.storage_domains domain = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; domain.setstatus ( StorageDomainStatus.Maintenance ) ; org.mockito.Mockito.when ( cmd.getStorageDomain ( ) ) . thenReturn ( domain ) ; }

Target:
private void setStorageDomainStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { org.ovirt.engine.core.common.businessentities.storage_domains domain = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; domain.setstatus ( status ) ; org.mockito.Mockito.when ( cmd.getStorageDomain ( ) ) . thenReturn ( domain ) ; }
Source:
private void updateHeartbeatPolicy ( boolean isheartbeat ) { org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy = client.getClientRetryPolicy ( ) ; policy.setHeartbeat ( isheartbeat ) ; client.setClientRetryPolicy ( policy ) ; }

Target:
private void updateHeartbeatPolicy ( org.ovirt.vdsm.jsonrpc.client.internal.ClientPolicy policy , boolean isHeartbeat ) { policy.setIncomingHeartbeat ( isHeartbeat ) ; policy.setOutgoingHeartbeat ( isHeartbeat ) ; client.setClientRetryPolicy ( policy ) ; }
Source:
public org.ovirt.engine.api.model.VnicProfile update ( org.ovirt.engine.api.model.VnicProfile resource ) { return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVnicProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateVnicProfile , new org.ovirt.engine.api.restapi.resource.BackendVnicProfileResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.VnicProfile update ( org.ovirt.engine.api.model.VnicProfile resource ) { return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVnicProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , ActionType.UpdateVnicProfile , new org.ovirt.engine.api.restapi.resource.BackendVnicProfileResource.UpdateParametersProvider ( ) ) ; }
Source:
public void testMapModelToBe ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.api.restapi.types.Ipv6BootProtocolMapper.map ( BootProtocol.DHCP ) , org.hamcrest.CoreMatchers.is ( Ipv6BootProtocol.DHCP ) ) ; }

Target:
public void testMapModelToBe ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.api.restapi.types.Ipv6BootProtocolMapper.map ( BootProtocol.DHCP ) , org.hamcrest.CoreMatchers.is ( Ipv6BootProtocol.DHCP ) ) ; }
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 ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }
Source:
types.Mac adPartnerMac ( ) ;

Target:
java.lang.Integer adAggregatorId ( ) ;
Source:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NEEDS_PASSTHROUGH ) ) ; }

Target:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_SUSPENDED.name ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap loadStoragePoolIsoMap ( ) { return org.ovirt.engine.core.bll.storage.domain.DeactivateStorageDomainWithOvfUpdateCommand.getStoragePoolIsoMapDao ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.domain.DeactivateStorageDomainWithOvfUpdateCommand.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.domain.DeactivateStorageDomainWithOvfUpdateCommand.getParameters ( ) . getStoragePoolId ( ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap loadStoragePoolIsoMap ( ) { return storagePoolIsoMapDao.get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.domain.DeactivateStorageDomainWithOvfUpdateCommand.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.domain.DeactivateStorageDomainWithOvfUpdateCommand.getParameters ( ) . getStoragePoolId ( ) ) ) ; }
Source:
public void Initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . Initialize ( systemTreeSelectedItem ) ; getModel ( ) . setIsCustomPropertiesTabAvailable ( false ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . setIsCustomPropertiesTabAvailable ( false ) ; }
Source:
protected void verifyBuiltOrigVm ( org.ovirt.engine.core.common.businessentities.VM origVm , org.ovirt.engine.core.common.businessentities.VM vm ) { verifyOrigKernelParams ( origVm , vm ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.VM_ID , vm.getId ( ) ) ; org.junit.Assert.assertEquals ( origVm.getUsbPolicy ( ) , vm.getUsbPolicy ( ) ) ; }

Target:
protected void verifyBuiltOrigVm ( org.ovirt.engine.core.common.businessentities.VM origVm , org.ovirt.engine.core.common.businessentities.VM vm ) { verifyOrigKernelParams ( origVm , vm ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.VM_ID , vm.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( origVm.getUsbPolicy ( ) , vm.getUsbPolicy ( ) ) ; }
Source:
protected void updateGlusterHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity entity ) { if ( ( entity.getConflictStatus ( ) ) == 0 ) { org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getGlusterHooksDao ( ) . removeGlusterServerHooks ( entity.getId ( ) ) ; } org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getGlusterHooksDao ( ) . updateGlusterHook ( entity ) ; }

Target:
protected void updateGlusterHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity entity ) { if ( ( entity.getConflictStatus ( ) ) == 0 ) { glusterHooksDao.removeGlusterServerHooks ( entity.getId ( ) ) ; } glusterHooksDao.updateGlusterHook ( entity ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getData ( org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) , org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }

Target:
public java.lang.String getPrincipal ( java.lang.String sessionId ) { return getPrincipalName ( sessionId ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > createVolumeInfo ) ;
Source:
protected java.lang.String clusterVersion ( ) { return java.lang.String.format ( org.ovirt.engine.core.bll.validator.VmNicValidator.CLUSTER_VERSION_REPLACEMENT_FORMAT , version.getValue ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validateProfileNotEmptyForHostedEngineVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.HOSTED_ENGINE_VM_CANNOT_HAVE_NIC_WITH_EMPTY_PROFILE ) . when ( ( ( vm.isHostedEngine ( ) ) && ( ( nic.getVnicProfileId ( ) ) == null ) ) ) ; }
Source:
public java.lang.String getNetworkName ( ) { return org.ovirt.engine.core.bll.storage.NetworkCommon.getParameters ( ) . getNetwork ( ) . getname ( ) ; }

Target:
public java.lang.String getNetworkName ( ) { return org.ovirt.engine.core.bll.network.dc.NetworkCommon.getParameters ( ) . getNetwork ( ) . getname ( ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistCommand ( parentCommand , false ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , getContext ( ) , enableCallBack ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.ui.common.widget.EntityModelCheckBoxWidget.Driver.driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { driver.edit ( object ) ; }
Source:
private void verifyOptions ( org.ovirt.engine.api.model.GlusterVolume model , org.ovirt.engine.api.model.GlusterVolume transform ) { for ( org.ovirt.engine.api.model.Option modelOption : model.getOptions ( ) . getOptions ( ) ) { assertTrue ( containsOption ( transform , modelOption ) ) ; } }

Target:
private void verifyOptions ( org.ovirt.engine.api.model.GlusterVolume model , org.ovirt.engine.api.model.GlusterVolume transform ) { for ( org.ovirt.engine.api.model.Option modelOption : model.getOptions ( ) . getOptions ( ) ) { org.junit.Assert.assertTrue ( containsOption ( transform , modelOption ) ) ; } }
Source:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.VmTemplate > createActionTable ( ) { return new org.ovirt.engine.ui.userportal.widget.table.column.UserPortalSimpleActionTable < org.ovirt.engine.core.common.businessentities.VmTemplate > ( modelProvider , org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedTemplateView.templateTableResources , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getClientStorage ( ) ) ; }

Target:
protected com.google.gwt.user.cellview.client.CellTable.Resources getTableResources ( ) { return org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedTemplateView.templateTableResources ; }
Source:
public static boolean foundDeprecatedVnicProfileMapping ( org.ovirt.engine.api.model.Action action ) { return ( action.isSetVnicProfileMappings ( ) ) && ( ( ! ( action.isSetRegistrationConfiguration ( ) ) ) || ( ! ( action.getRegistrationConfiguration ( ) . isSetVnicProfileMappings ( ) ) ) ) ; }

Target:
public static boolean foundOnlyDeprecatedVnicProfileMapping ( org.ovirt.engine.api.model.Action action ) { return ( action.isSetVnicProfileMappings ( ) ) && ( ( ! ( action.isSetRegistrationConfiguration ( ) ) ) || ( ! ( action.getRegistrationConfiguration ( ) . isSetVnicProfileMappings ( ) ) ) ) ; }
Source:
public void setPmOptionsMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { mVdsStatic.setPmOptionsMap ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "PmOptionsMap" ) ) ; }

Target:
public void setPmSecondaryOptionsMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { mVdsStatic.setPmSecondaryOptionsMap ( value ) ; }