auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean RunConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return RunConnectionStorageToDomain ( storageDomain , vdsId , type , null , Guid.Empty ) ; }

Target:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return RunConnectionStorageToDomain ( storageDomain , vdsId , type , null , Guid.Empty ) ; }
Source:
public void testIsWindows ( ) { org.junit.Assert.assertFalse ( OsRepositoryImpl.INSTANCE.isWindows ( 777 ) ) ; }

Target:
public void testIsWindows ( ) { org.junit.jupiter.api.Assertions.assertFalse ( OsRepositoryImpl.INSTANCE.isWindows ( 777 ) ) ; }
Source:
public int getCpuOverCommitDurationMinutes ( ) { return this . cpuOverCommitDurationMinutes ; }

Target:
public java.lang.Long getBootTime ( ) { return this . mVdsStatistics.getboot_time ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createDefaultVdsGroupWithDifferentCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setCpuName ( "Another CPU name" ) ; return group ; }
Source:
protected abstract com.google.gwt.user.client.ui.IsWidget createIconPanel ( ) ;

Target:
protected abstract com.google.gwt.user.client.ui.IsWidget createIcon ( ) ;
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getCpuName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Cluster object ) { return object.getCpuName ( ) ; }
Source:
protected void updateExistingEntity ( ) { existingEntity.setAddress ( "type:'drive', controller:'0', bus:'0', unit:'0'" ) ; }

Target:
protected void updateExistingEntity ( ) { existingEntity.setAddress ( "type:'drive', controller:'0', bus:'0', unit:'0'" ) ; existingEntity.setLogicalName ( "testLogicalName" ) ; }
Source:
private void writeEnumValue ( org.ovirt.api.metamodel.concepts.EnumValue value ) { writer.writeStartElement ( "value" ) ; writeCommon ( value ) ; writer.writeEndElement ( ) ; }

Target:
private void writeEnumType ( org.ovirt.api.metamodel.concepts.EnumType type ) { writer.writeStartElement ( "enum" ) ; writeCommon ( type ) ; type.values ( ) . forEach ( this :: writeEnumValue ) ; writer.writeEndElement ( ) ; }
Source:
private void logException ( java.lang.Throwable ex ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.errorFormat ( "IrsBroker::Failed::{0} due to: {1}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getCommandName ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logException ( java.lang.Throwable ex ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.error ( "IrsBroker::Failed::{}: {}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getCommandName ( ) , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.debug ( "Exception" , ex ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.profiles.DiskProfileValidator validator = new org.ovirt.engine.core.bll.profiles.DiskProfileValidator ( getProfile ( ) ) ; return ( validate ( validator.diskProfileIsSet ( ) ) ) && ( validate ( validator.diskProfileExists ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.bll.profiles.DiskProfileValidator getProfileValidator ( ) { return new org.ovirt.engine.core.bll.profiles.DiskProfileValidator ( getProfile ( ) ) ; }
Source:
protected void MoveOrCopyAllImageGroups ( ) { MoveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) , getDisksBasedOnImage ( ) ) ; }

Target:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) , getDisksBasedOnImage ( ) ) ; }
Source:
private void writeEndElement ( ) { try { writer.writeEndElement ( ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new java.lang.IllegalStateException ( "Can't write end element" , exception ) ; } }

Target:
private void writeDoc ( org.ovirt.api.metamodel.concepts.Concept concept ) { java.lang.String doc = concept.getDoc ( ) ; if ( doc != null ) { writer.writeElement ( "doc" , doc ) ; } }
Source:
public void updateSubnetTabValidity ( boolean isValid ) { if ( isValid ) { subnetTab.markAsValid ( ) ; } else { subnetTab.markAsInvalid ( null ) ; } }

Target:
public org.ovirt.engine.ui.common.widget.dialog.tab.DialogTabPanel getTabPanel ( ) { return tabPanel ; }
Source:
protected void executeQueryCommand ( ) { P params = org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getParameters ( ) ; setReturnValue ( org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getDbFacade ( ) . getClusterDao ( ) . getClustersWithPermittedAction ( org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getUserID ( ) , params.getActionGroup ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { P params = org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getParameters ( ) ; setReturnValue ( clusterDao.getClustersWithPermittedAction ( org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getUserID ( ) , params.getActionGroup ( ) ) ) ; }
Source:
public void setUp ( ) { underTest = new org.ovirt.engine.core.bll.network.cluster.DefaultManagementNetworkFinderImpl ( mockNetworkDao , mockManagementNetworkUtil ) ; }

Target:
public void setUp ( ) { underTest = new org.ovirt.engine.core.bll.network.cluster.DefaultManagementNetworkFinderImpl ( mockNetworkDao , mockManagementNetworkUtil , mockManagementNetworkCandidatePredicate ) ; }
Source:
public void setCommonModel ( org.ovirt.engine.ui.uicommonweb.models.CommonModel commonModel ) { oracle.setCommonModel ( commonModel ) ; }

Target:
public void setModel ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel model ) { oracle.setModel ( model ) ; }
Source:
public static java.lang.String translateVdcFault ( org.ovirt.engine.core.common.errors.VdcFault fault ) { return org.ovirt.engine.ui.frontend.Frontend.vdsmErrorsTranslator.TranslateErrorTextSingle ( ( ( fault.getError ( ) ) == null ? fault.getMessage ( ) : fault.getError ( ) . toString ( ) ) ) ; }

Target:
public static org.ovirt.engine.ui.frontend.ErrorTranslator getVdsmErrorsTranslator ( ) { if ( ( org.ovirt.engine.ui.frontend.Frontend.vdsmErrorsTranslator ) == null ) { org.ovirt.engine.ui.frontend.Frontend.setVdsmErrorsTranslator ( new org.ovirt.engine.ui.frontend.ErrorTranslator ( ( ( org.ovirt.engine.ui.frontend.VdsmErrors ) ( com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.frontend.VdsmErrors.class ) ) ) ) ) ; } return org.ovirt.engine.ui.frontend.Frontend.vdsmErrorsTranslator ; }
Source:
public void testAddValueEnumWithGetValue ( ) { paramSource.addValue ( paramName , org.ovirt.engine.core.dal.dbbroker.CustomMapSqlParameterSourceTest.TestEnumWithGetValue.TWO ) ; org.junit.Assert.assertEquals ( "wrong value returned from parameter source" , org.ovirt.engine.core.dal.dbbroker.CustomMapSqlParameterSourceTest.TestEnumWithGetValue.TWO.getValue ( ) , paramSource.getValue ( paramName ) ) ; }

Target:
public void testAddValueEnumWithGetValue ( ) { paramSource.addValue ( paramName , org.ovirt.engine.core.dal.dbbroker.CustomMapSqlParameterSourceTest.TestEnumWithGetValue.TWO ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.CustomMapSqlParameterSourceTest.TestEnumWithGetValue.TWO.getValue ( ) , paramSource.getValue ( paramName ) , "wrong value returned from parameter source" ) ; }
Source:
public javax.ws.rs.core.Response remove ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id , org.ovirt.engine.api.model.Host host ) ;

Target:
public javax.ws.rs.core.Response remove ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id , org.ovirt.engine.api.model.Action action ) ;
Source:
protected void updateModelClusterFromVds ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( clusters != null ) { getCluster ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( clusters , new org.ovirt.engine.ui.uicommonweb.Linq.ClusterPredicate ( vds.getVdsGroupId ( ) ) ) ) ; } }

Target:
protected void updateModelClusterFromVds ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( clusters != null ) { getCluster ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( clusters , new org.ovirt.engine.ui.uicommonweb.Linq.ClusterPredicate ( vds.getVdsGroupId ( ) ) ) ) ; } }
Source:
public void testValidateNotRemovingUsedNetworkByVmsWhenNotUsedByVms ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ) ; org.junit.Assert.assertThat ( validator.validateNotRemovingUsedNetworkByVms ( "removedNet" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateNotRemovingUsedNetworkByVmsWhenNotUsedByVms ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateNotRemovingUsedNetworkByVms ( "removedNet" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testIsNetworkExclusiveInvalid ( ) { org.junit.Assert.assertFalse ( underTest.isNetworkExclusive ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.validator.network.NetworkType.VM , org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN , org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN , org.ovirt.engine.core.bll.validator.network.NetworkType.VM ) ) ) ; }

Target:
public void testIsNetworkExclusiveInvalid ( ) { org.junit.jupiter.api.Assertions.assertFalse ( underTest.isNetworkExclusive ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.validator.network.NetworkType.VM , org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN , org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN , org.ovirt.engine.core.bll.validator.network.NetworkType.VM ) ) ) ; }
Source:
private static boolean hasSnappableDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ! ( vm.getImages ( ) . isEmpty ( ) ) ; }

Target:
protected void updateActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { getSnapshotDao ( ) . update ( new org.ovirt.engine.core.common.businessentities.Snapshot ( snapshotId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.OK , getVm ( ) . getId ( ) , null , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE , "Active VM snapshot" , new java.util.Date ( ) , null ) ) ; }
Source:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdatedNetworkResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { privateChangeProhibitionReason = null ; } } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { privateChangeProhibitionReason = null ; } } return this ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.HashMap < org.ovirt.engine.core.common.businessentities.VmTemplate , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > > ( ) ; }

Target:
public java.util.Map < K , V > convert ( java.lang.Object source ) { return source != null ? ( ( java.util.Map < K , V > ) ( source ) ) : new java.util.HashMap < K , V > ( ) ; }
Source:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTask task , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . logAndFailPartiallySubmittedTaskOfCommand ( task , message ) ; }

Target:
public static void updateCommandData ( org.ovirt.engine.core.compat.Guid commandId , java.util.Map < java.lang.String , java.io.Serializable > data ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.updateCommandData ( commandId , data ) ; }
Source:
public void testInvalid ( ) throws java.lang.Exception { try { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( java.lang.Thread.State.class , "foobar" ) ; fail ( "expected WebApplicationException on invalid value" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyInvalidValueException ( wae , "foobar" , "State" ) ; } }

Target:
public void testInvalid ( ) throws java.lang.Exception { try { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( java.lang.Thread.State.class , "foobar" ) ; org.junit.Assert.fail ( "expected WebApplicationException on invalid value" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyInvalidValueException ( wae , "foobar" , "State" ) ; } }
Source:
public org.ovirt.engine.api.model.Steps list ( ) { org.ovirt.engine.core.common.queries.GetStepsWithSubjectEntitiesByJobIdQueryParameters params = new org.ovirt.engine.core.common.queries.GetStepsWithSubjectEntitiesByJobIdQueryParameters ( jobId ) ; java.util.List < org.ovirt.engine.api.model.Step > steps = getBackendCollection ( VdcQueryType.GetStepsWithSubjectEntitiesByJobId , params ) ; return mapCollection ( steps ) ; }

Target:
public org.ovirt.engine.api.model.Steps list ( ) { org.ovirt.engine.core.common.queries.GetStepsWithSubjectEntitiesByJobIdQueryParameters params = new org.ovirt.engine.core.common.queries.GetStepsWithSubjectEntitiesByJobIdQueryParameters ( jobId ) ; java.util.List < org.ovirt.engine.api.model.Step > steps = getBackendCollection ( QueryType.GetStepsWithSubjectEntitiesByJobId , params ) ; return mapCollection ( steps ) ; }
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 > glusterVolumeCreate ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , int stripeCount , java.lang.String [ ] transportList , boolean force , boolean isArbiter ) ;
Source:
protected void syncSearch ( ) { syncSearch ( VdcQueryType.GetUnregisteredVms , new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericNameableComparator ( ) ) ; }

Target:
protected void syncSearch ( ) { syncSearch ( QueryType.GetUnregisteredVms , new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericNameableComparator ( ) ) ; }
Source:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 0 ) ; }

Target:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { if ( memoryVolume.isEmpty ( ) ) { return false ; } int numOfSnapshotsUsingThisMemory = getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ; return numOfSnapshotsUsingThisMemory == ( removeOnlyIfNotUsedAtAll ? 0 : 1 ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return object.getDiskAlias ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return object.getDiskAlias ( ) ; }
Source:
private java.util.HashMap < org.ovirt.engine.core.compat.Version , java.util.ArrayList < java.lang.String > > getCustomPropertiesKeysList ( ) { return privateCustomPropertiesKeysList ; }

Target:
private void setDisableGlobalHaMaintenanceCommand ( org.ovirt.engine.ui.uicommonweb.UICommand value ) { privateDisableGlobalHaMaintenanceCommand = value ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.initOsIds ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { osNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; initOsIds ( ) ; }
Source:
private static org.ovirt.engine.core.dao.VdcOptionDAO getVdcOptionDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdcOptionDAO ( ) ; }

Target:
private static org.ovirt.engine.core.dao.VdcOptionDAO getVdcOptionDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdcOptionDao ( ) ; }
Source:
private void Frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { StopProgress ( ) ; } }

Target:
private void frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { stopProgress ( ) ; } }
Source:
public void testGetBySessionId ( ) { org.ovirt.engine.core.common.businessentities.EngineSession result = dao.getBySessionId ( existingEngineSession.getEngineSessionId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingEngineSession , result ) ; }

Target:
public void testGetBySessionId ( ) { org.ovirt.engine.core.common.businessentities.EngineSession result = dao.getBySessionId ( existingEngineSession.getEngineSessionId ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingEngineSession , result ) ; }
Source:
public org.ovirt.engine.core.compat.Match Match ( java.lang.String input ) { com.google.gwt.regexp.shared.MatchResult matchResult = impl.exec ( input ) ; return new org.ovirt.engine.core.compat.Match ( matchResult ) ; }

Target:
public org.ovirt.engine.core.compat.Match match ( java.lang.String input ) { com.google.gwt.regexp.shared.MatchResult matchResult = impl.exec ( input ) ; return new org.ovirt.engine.core.compat.Match ( matchResult ) ; }
Source:
public void leaseNotFreeSingleOwner ( ) { java.lang.Object [ ] owners = new java.lang.Object [ ] { 1 } ; org.junit.Assert.assertFalse ( getLeaseStatus ( owners ) . isFree ( ) ) ; }

Target:
public void leaseNotFreeSingleOwner ( ) { java.lang.Object [ ] owners = new java.lang.Object [ ] { 1 } ; org.junit.jupiter.api.Assertions.assertFalse ( getLeaseStatus ( owners ) . isFree ( ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( result.getState ( ) ) ) ; localModel.getWindow ( ) . StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { }
Source:
public void setOptions ( java.lang.String options ) { this . options = options ; optionsMap = org.ovirt.engine.core.common.businessentities.pm.FenceAgent.pmOptionsStringToMap ( options ) ; }

Target:
public void setOptions ( java.lang.String options ) { this . options = options ; optionsMap = org.ovirt.engine.core.common.utils.pm.PowerManagementUtils.pmOptionsStringToMap ( options ) ; }
Source:
public void isConnectionNotExists ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator ( null ) ; org.junit.Assert.assertEquals ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST , validator.isConnectionExists ( ) . getMessage ( ) ) ; }

Target:
public void isConnectionNotExists ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageConnectionValidator ( null ) ; org.junit.Assert.assertEquals ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST , validator.isConnectionExists ( ) . getMessage ( ) ) ; }
Source:
public void testValidateSuccess ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }

Target:
public void testValidateSuccess ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; setVdsStatus ( VDSStatus.Up ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasSoundDevice ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . getVmTemplateData ( ) . getId ( ) ) ; }

Target:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmDeviceUtils ( ) . hasSoundDevice ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . getVmTemplateData ( ) . getId ( ) ) ; }
Source:
void setUserId ( java.lang.String userId ) { this . userId = userId ; }

Target:
public java.lang.String getFullUserName ( ) { java.lang.String userName = getUserName ( ) ; java.lang.String domain = getDomain ( ) ; if ( ( ( userName != null ) && ( ! ( userName.contains ( "@" ) ) ) ) && ( domain != null ) ) { return ( userName + "@" ) + domain ; } return userName ; }
Source:
public void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.EndExternalJobParameters ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId , org.ovirt.engine.core.common.job.JobExecutionStatus.FINISHED , false ) ; }

Target:
public void validateNonExistingJobFails ( ) throws java.lang.Exception { setupMock ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
public int hashCode ( ) { return ( to.hashCode ( ) ) + ( from.hashCode ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( to , from ) ; }
Source:
public void activated ( ) { if ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFields ( ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.Boolean > getMigrateCompressed ( ) { return migrateCompressed ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getStepMessageMap ( org.ovirt.engine.core.common.job.JobExecutionStatus status ) { java.util.Map < java.lang.String , java.lang.String > stepMessageMap = super . getStepMessageMap ( status ) ; stepMessageMap.put ( GlusterConstants.JOB_STATUS , "COMMITTED" ) ; return stepMessageMap ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getStepMessageMap ( org.ovirt.engine.core.common.job.JobExecutionStatus status , java.lang.String jobInfo ) { java.util.Map < java.lang.String , java.lang.String > stepMessageMap = super . getStepMessageMap ( status , jobInfo ) ; stepMessageMap.put ( GlusterConstants.JOB_STATUS , "COMMITTED" ) ; return stepMessageMap ; }
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 ( ) . volumeBrickSubTabLabel ( ) , 1 , ginjector.getSubTabVolumeBrickModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.volumeBrickSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public void validateVmMemoryCantRunOnVdsHighOverhead ( ) { vds.setGuestOverhead ( 1024 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantRunOnVdsHighOverhead ( ) { org.mockito.Mockito.doReturn ( 1024 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllForDiskProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getTemplatesUsingProfile ( ) { return vmTemplateDao.getAllForDiskProfile ( getProfile ( ) . getId ( ) ) ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler < java.lang.Integer > handler ) { return eventBus.addHandler ( com.google.gwt.event.logical.shared.ValueChangeEvent.getType ( ) , handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addGridTimerStateChangeEventHandler ( org.ovirt.engine.ui.uicommonweb.models.GridTimerStateChangeEvent.GridTimerStateChangeEventHandler handler ) { return eventBus.addHandler ( org.ovirt.engine.ui.uicommonweb.models.GridTimerStateChangeEvent.getType ( ) , handler ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml textAndTitle ( java.lang.String text , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml text ( java.lang.String text ) ;
Source:
public java.lang.String call ( ) { com.woorea.openstack.cinder.model.SnapshotForCreate snapshotForCreate = new com.woorea.openstack.cinder.model.SnapshotForCreate ( ) ; snapshotForCreate.setVolumeId ( cinderDisk.getImageId ( ) . toString ( ) ) ; return proxy.createSnapshot ( snapshotForCreate ) ; }

Target:
public java.lang.String call ( ) { com.woorea.openstack.cinder.model.SnapshotForCreate snapshotForCreate = new com.woorea.openstack.cinder.model.SnapshotForCreate ( ) ; snapshotForCreate.setVolumeId ( cinderDisk.getImageId ( ) . toString ( ) ) ; snapshotForCreate.setDescription ( snapshotDescription ) ; return proxy.createSnapshot ( snapshotForCreate ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.spiceSupportMatrix = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osArchitectures = ( ( java.util.HashMap < java.lang.Integer , org.ovirt.engine.core.common.businessentities.ArchitectureType > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }
Source:
public void setpm_port ( java.lang.Integer value ) { pmPort = value ; }

Target:
public void setPmPort ( java.lang.Integer value ) { pmPort = value ; }
Source:
private void cancel ( ) { cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( e.propertyName.equals ( "status" ) ) { updateActionsAvailability ( ) ; } }
Source:
protected void setUpVersionExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAvailableStoragePoolVersions , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getVersions ( ) ) ; }

Target:
protected void setUpVersionExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetAvailableStoragePoolVersions , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getVersions ( ) ) ; }
Source:
public java.lang.Integer getDisplay ( ) { return this . vmDynamic.getDisplay ( ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > getGraphicsInfos ( ) { return vmDynamic.getGraphicsInfos ( ) ; }
Source:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.NGuid value ) { vmStatic.setdedicated_vm_for_vds ( value ) ; }

Target:
public java.lang.String getTimeZone ( ) { return vmStatic.getTimeZone ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getTaskInfo ( java.lang.String taskUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookRemove ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
public void setDataCenterName ( java.lang.String name ) { mainLabel.setText ( messages.theNetworkWillBeAddedToTheDataCenterAsWell ( name ) ) ; }

Target:
public void setDataCenterName ( java.lang.String name ) { messageLabel.setText ( messages.theNetworkWillBeAddedToTheDataCenterAsWell ( name ) ) ; }
Source:
private java.lang.String getPath ( java.lang.Class < ? > clazz ) { javax.ws.rs.Path pathAnnotation = clazz.getAnnotation ( javax.ws.rs.Path.class ) ; return pathAnnotation == null ? null : pathAnnotation.value ( ) ; }

Target:
private java.lang.String getPath ( java.lang.reflect.Method method ) { javax.ws.rs.Path pathAnnotation = method.getAnnotation ( javax.ws.rs.Path.class ) ; return pathAnnotation == null ? null : pathAnnotation.value ( ) ; }
Source:
public void setIsResiliencePolicyTabAvailable ( boolean value ) { if ( ( getisResiliencePolicyTabAvailable ( ) ) != value ) { setisResiliencePolicyTabAvailable ( value ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsResiliencePolicyTabAvailable" ) ) ; } }

Target:
public void setMigrationTabAvailable ( boolean value ) { if ( ( isMigrationTabAvailable ( ) ) != value ) { migrationTabAvailable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "isMigrationTabAvailable" ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.StoragePoolDAODbFacadeImpl.mapper ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.StoragePoolDAODbFacadeImpl.mapper ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.DbUser user ) { setIdIfNeeded ( user ) ; new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "InsertUser" ) . execute ( new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserMapSqlParameterSource ( user ) ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { setIdIfNeeded ( user ) ; new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "InsertUser" ) . execute ( new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserMapSqlParameterSource ( user ) ) ; }
Source:
private void attachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( storageId , dataCenterId ) , null , this ) ; }

Target:
private void attachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( storageId , dataCenterId ) , null , this ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return ( object.getvlan_id ( ) ) == null ? "-" : object.getvlan_id ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return ( object.getvlan_id ( ) ) == null ? "-" : object.getvlan_id ( ) . toString ( ) ; }
Source:
public void testChangeToExistingName ( ) { prepareVmToPassValidate ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "validate should have failed with vm name already in use." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testChangeToExistingName ( ) { prepareVmToPassValidate ( ) ; mockSameNameQuery ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public void testBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplayIsFalse ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplayIsFalse ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( false , createNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean failPassthroughVnicHotPlug ( ) { if ( ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pciPassthrough ) == ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.forValue ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getType ( ) ) ) ) { addCanDoActionMessage ( EngineMessage.HOT_PLUG_UNPLUG_PASSTHROUGH_VNIC_NOT_SUPPORTED ) ; return true ; } return false ; }

Target:
private void clearPassthroughData ( java.lang.String vfToUse ) { if ( vfToUse != null ) { networkDeviceHelper.setVmIdOnVfs ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getVdsId ( ) , null , java.util.Collections.singleton ( vfToUse ) ) ; } }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalTaskIdList ( ) : getReturnValue ( ) . getTaskIdList ( ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalVdsmTaskIdList ( ) : getReturnValue ( ) . getVdsmTaskIdList ( ) ; }
Source:
private void swithAccordingToMode ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.common.widget.popup.AbstractVmBasedPopupPresenterWidget.getView ( ) . switchMode ( ( ( java.lang.Boolean ) ( model.getAdvancedMode ( ) . getEntity ( ) ) ) ) ; }

Target:
private void swithAttachToInstanceType ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.common.widget.popup.AbstractVmBasedPopupPresenterWidget.getView ( ) . switchAttachToInstanceType ( model.getAttachedToInstanceType ( ) . getEntity ( ) ) ; }
Source:
public void setstorage_ids ( java.util.ArrayList < org.ovirt.engine.core.compat.Guid > value ) { storageIds = value ; }

Target:
public void setStorageIds ( java.util.ArrayList < org.ovirt.engine.core.compat.Guid > storageIds ) { this . storageIds = storageIds ; }
Source:
public void testAddUser4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; domain.setId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( domain.getName ( ) ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }

Target:
public void testAddUser4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetDomainList , org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; domain.setId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( domain.getName ( ) ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }
Source:
public void testGetStorageDomainWithStatusForExistingPool ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.DATA_CENTER , existingDomain.getStorageDomainType ( ) , StorageDomainStatus.Active ) ; assertGetResult ( result ) ; }

Target:
public void testGetStorageDomainWithStatusForExistingPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( FixturesTool.DATA_CENTER , existingDomain.getStorageDomainType ( ) , StorageDomainStatus.Active ) ; assertGetResult ( result.get ( 0 ) ) ; }
Source:
private java.lang.String getVdsCertificateSubject ( ) { return backend.runInternalQuery ( VdcQueryType.GetVdsCertificateSubjectByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getCachedVm ( ) . getId ( ) ) ) . getReturnValue ( ) ; }

Target:
private java.lang.String getVdsCertificateSubject ( ) { return backend.runInternalQuery ( QueryType.GetVdsCertificateSubjectByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getCachedVm ( ) . getId ( ) ) ) . getReturnValue ( ) ; }
Source:
public void execute ( ) { if ( ( canInvokePlugins ) && ( plugin.isInState ( PluginState.IN_USE ) ) ) { invokePlugin ( plugin , functionName , functionArgs ) ; } }

Target:
public void execute ( ) { for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { initPlugin ( plugin ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VDSType getHostType ( ) { return org.ovirt.engine.core.common.businessentities.VDSType.oVirtVintageNode ; }

Target:
public java.util.EnumSet < org.ovirt.engine.core.common.businessentities.VDSType > getHostTypes ( ) { return java.util.EnumSet.of ( VDSType.oVirtVintageNode ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getStoppedVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterVolumeStatus.DOWN ) ; return volume ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getStoppedVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterVolumeStatus.DOWN ) ; volume.setClusterId ( CLUSTER_ID ) ; return volume ; }
Source:
protected org.ovirt.engine.api.model.Bookmark getEntity ( int index ) { org.ovirt.engine.api.model.Bookmark bookmark = new org.ovirt.engine.api.model.Bookmark ( ) ; bookmark.setbookmark_id ( GUIDS [ index ] ) ; bookmark.setbookmark_name ( NAMES [ index ] ) ; bookmark.setbookmark_value ( org.ovirt.engine.api.restapi.resource.BackendBookmarksResourceTest.VALUES [ index ] ) ; return bookmark ; }

Target:
protected org.ovirt.engine.api.model.Bookmark getEntity ( int index ) { org.ovirt.engine.api.model.Bookmark bookmark = new org.ovirt.engine.api.model.Bookmark ( ) ; bookmark.setId ( GUIDS [ index ] ) ; bookmark.setName ( NAMES [ index ] ) ; bookmark.setValue ( org.ovirt.engine.api.restapi.resource.BackendBookmarksResourceTest.VALUES [ index ] ) ; return bookmark ; }
Source:
public void testGetAllForVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForVmPools ( vmPool.toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForVmPools ( vmPool.toString ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void addDriveToImageMap ( java.lang.String drive , org.ovirt.engine.core.common.businessentities.DiskImage image ) { mDiskMap.put ( drive , image ) ; getDiskList ( ) . add ( image ) ; }

Target:
public java.lang.String getCpuPinning ( ) { return mVmStatic.getCpuPinning ( ) ; }
Source:
protected void startPollingAsyncTasks ( ) { startPollingAsyncTasks ( getReturnValue ( ) . getTaskIdList ( ) ) ; }

Target:
protected void startPollingAsyncTasks ( ) { startPollingAsyncTasks ( getReturnValue ( ) . getVdsmTaskIdList ( ) ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . mVdsStatic.setvds_group_id ( value ) ; }

Target:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { this . mVdsStatic.setVdsGroupId ( value ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult stpForVmNetworkOnly ( ) { return ( network.isVmNetwork ( ) ) || ( ! ( network.getStp ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult stpForVmNetworkOnly ( ) { return ( network.isVmNetwork ( ) ) || ( ! ( network.getStp ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) ; }
Source:
public void testGetByGlusterServerUuid ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByGlusterServerUuid ( FixturesTool.GLUSTER_SERVER_UUID1 ) ; org.junit.Assert.assertNotNull ( entity ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterServerDaoTest.SERVER_ID1 , entity.getId ( ) ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_SERVER_UUID1 , entity.getGlusterServerUuid ( ) ) ; }

Target:
public void testGetByGlusterServerUuid ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByGlusterServerUuid ( FixturesTool.GLUSTER_SERVER_UUID1 ) ; org.junit.Assert.assertNotNull ( entity ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_BRICK_SERVER1 , entity.getId ( ) ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_SERVER_UUID1 , entity.getGlusterServerUuid ( ) ) ; }
Source:
protected void handleError ( ) { addCanDoActionMessage ( EngineMessage.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__HOST ) ; addCanDoActionMessage ( EngineMessage.VAR__ACTION__STOP ) ; org.ovirt.engine.core.bll.pm.StopVdsCommand.log.error ( "Failed to run StopVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.pm.StopVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addValidationMessage ( EngineMessage.VDS_FENCE_OPERATION_FAILED ) ; addValidationMessage ( EngineMessage.VAR__TYPE__HOST ) ; addValidationMessage ( EngineMessage.VAR__ACTION__STOP ) ; org.ovirt.engine.core.bll.pm.StopVdsCommand.log.error ( "Failed to run StopVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.pm.StopVdsCommand.getVdsName ( ) ) ; }
Source:
public java.lang.Object ExecuteWithReturnValue ( ) { Execute ( ) ; return getReturnValue ( ) ; }

Target:
public java.lang.Object executeWithReturnValue ( ) { execute ( ) ; return getReturnValue ( ) ; }
Source:
private void updateVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getVolumeType ( ) . setSelectedItem ( ( storageType.isBlockDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated : org.ovirt.engine.core.common.businessentities.VolumeType.Sparse ) ) ; VolumeType_SelectedItemChanged ( ) ; }

Target:
private void updateVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getVolumeType ( ) . setSelectedItem ( ( storageType.isBlockDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated : org.ovirt.engine.core.common.businessentities.VolumeType.Sparse ) ) ; volumeType_SelectedItemChanged ( ) ; }