auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String allocateNewMac ( ) { lockObj.writeLock ( ) . lock ( ) ; try { checkIfInitialized ( ) ; return allocateNewMacsWithoutLocking ( 1 ) . get ( 0 ) ; } finally { lockObj.writeLock ( ) . unlock ( ) ; } }

Target:
public java.lang.String allocateNewMac ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { checkIfInitialized ( ) ; return allocateNewMacsWithoutLocking ( 1 ) . get ( 0 ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getActionGroupDAO ( ) ) ; existingActionMap = dao.getActionVersionMapByActionType ( VdcActionType.AddVm ) ; newActionMap = new org.ovirt.engine.core.common.businessentities.action_version_map ( org.ovirt.engine.core.common.action.VdcActionType.ActivateStorageDomain , "3.0" , "3.0" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getActionGroupDao ( ) ) ; existingActionMap = dao.getActionVersionMapByActionType ( VdcActionType.AddVm ) ; newActionMap = new org.ovirt.engine.core.common.businessentities.action_version_map ( org.ovirt.engine.core.common.action.VdcActionType.ActivateStorageDomain , "3.0" , "3.0" ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigSet ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String configValue , java.lang.String userName ) ;
Source:
public void init ( ) { super . init ( ) ; org.ovirt.engine.api.restapi.utils.OsTypeMockUtils.mockOsTypes ( ) ; initBackendResource ( vmHelper ) ; }

Target:
public void init ( ) { super . init ( ) ; org.ovirt.engine.api.restapi.utils.OsTypeMockUtils.mockOsTypes ( ) ; initBackendResource ( vmHelper ) ; osRepository = control.createMock ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; }
Source:
public java.lang.Void runInTransaction ( ) { copyVmDevices ( ) ; addDiskPermissions ( ) ; addVmPayload ( ) ; updateSmartCardDevices ( ) ; addVmWatchdog ( ) ; setActionReturnValue ( getVm ( ) . getId ( ) ) ; setSucceeded ( true ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { copyVmDevices ( ) ; addDiskPermissions ( ) ; addVmPayload ( ) ; updateSmartCardDevices ( ) ; addVmWatchdog ( ) ; addGraphicsDevice ( ) ; setActionReturnValue ( getVm ( ) . getId ( ) ) ; setSucceeded ( true ) ; return null ; }
Source:
public java.util.Date getGuestLastLoginTime ( ) { return this . guestLastLoginTime ; }

Target:
public java.lang.Long getGuestMemoryFree ( ) { return guestMemoryFree ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( elementId ) == null ? 0 : elementId.hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( elementId ) ; }
Source:
public void forceRefresh ( ) { stopRefresh ( ) ; setIsQueryFirstTime ( true ) ; syncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { startRefresh ( ) ; } }

Target:
protected void searchNextPage ( ) { searchString = stripPageKeyword ( searchString ) ; setSearchStringPage ( getNextSearchPageNumber ( ) ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
private void mockVmJob ( ) { org.mockito.Mockito.reset ( vmJobsDao ) ; org.mockito.Mockito.when ( vmJobsDao.get ( ( ( org.ovirt.engine.core.compat.Guid ) ( org.mockito.Matchers.anyObject ( ) ) ) ) ) . thenReturn ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VmJob.class ) ) ; }

Target:
private void mockVmJob ( ) { org.mockito.Mockito.reset ( vmJobsDao ) ; org.mockito.Mockito.when ( vmJobsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VmJob.class ) ) ; }
Source:
public void shouldDetectUpgradeInProgress ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.isUpgradeDone ( java.util.Arrays.asList ( oldHost , newHost1 ) ) , org.hamcrest.Matchers.not ( org.hamcrest.CoreMatchers.equalTo ( ValidationResult.VALID ) ) ) ; }

Target:
public void shouldDetectUpgradeInProgress ( ) { org.assertj.core.api.Assertions.assertThat ( validator.isUpgradeDone ( java.util.Arrays.asList ( oldHost , newHost1 ) ) ) . isNotEqualTo ( ValidationResult.VALID ) ; }
Source:
java.lang.String memSizeBetween ( int minMemSize , int maxMemSize ) ;

Target:
java.lang.String minMemSizeIs ( int minMemSize ) ;
Source:
private void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol selectedProtocol ) { model.getModel ( ) . setSelectedProtocol ( selectedProtocol ) ; }

Target:
private void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol selectedProtocol ) { model.getVmConsoles ( ) . selectProtocol ( selectedProtocol ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineApplicationPresenter.constants.virtualMachineApplicationSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineApplicationPresenter.constants.virtualMachineApplicationSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
private void setUpEntityQueryExpectations ( org.ovirt.engine.core.common.businessentities.VmTemplate result ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVmTemplate , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendTemplateCdromResourceTest.TEMPLATE_ID } , result ) ; }

Target:
private void setUpEntityQueryExpectations ( org.ovirt.engine.core.common.businessentities.VmTemplate result ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetVmTemplate , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendTemplateCdromResourceTest.TEMPLATE_ID } , result ) ; }
Source:
private void assertCorrectCluster ( org.ovirt.engine.core.common.businessentities.Cluster group ) { org.junit.Assert.assertNotNull ( group ) ; org.junit.Assert.assertEquals ( existingCluster , group ) ; }

Target:
private void assertCorrectCluster ( org.ovirt.engine.core.common.businessentities.Cluster group ) { org.junit.jupiter.api.Assertions.assertNotNull ( group ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingCluster , group ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult portMirroringNotSetIfExternalNetwork ( ) { return ( ! ( vnicProfile.isPortMirroring ( ) ) ) || ( ! ( getNetwork ( ) . isExternal ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_PORT_MIRRORED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult portMirroringNotSetIfExternalNetwork ( ) { return ( ! ( vnicProfile.isPortMirroring ( ) ) ) || ( ! ( getNetwork ( ) . isExternal ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_PORT_MIRRORED ) ; }
Source:
org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector createAuditLogDirector ( ) { return new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) ; }

Target:
org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector createAuditLogDirector ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.class ) ; }
Source:
public void setUp ( ) { lunFromVg = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; lunFromDb = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; }

Target:
public void setUp ( ) { org.mockito.Mockito.doReturn ( hostValidator ) . when ( command ) . getHostValidator ( ) ; lunFromVg = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; lunFromDb = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; }
Source:
private void initSorting ( ) { nameColumn.makeSortable ( ) ; clusterColumn.makeSortable ( ) ; dcColumn.makeSortable ( ) ; speedColumn.makeSortable ( ) ; }

Target:
private void initSorting ( ) { hostStatus.makeSortable ( ) ; nameColumn.makeSortable ( ) ; clusterColumn.makeSortable ( ) ; dcColumn.makeSortable ( ) ; speedColumn.makeSortable ( ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( getAffinityGroup ( ) ) == null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_INVALID_AFFINITY_GROUP_ID ) ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( getAffinityGroup ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_INVALID_AFFINITY_GROUP_ID ) ; } return true ; }
Source:
private static boolean isPendingOvirt ( org.ovirt.engine.core.common.businessentities.VDSType type , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return ( type == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) && ( status == ( org.ovirt.engine.core.common.businessentities.VDSStatus.PendingApproval ) ) ; }

Target:
public static boolean isPendingOvirt ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.isOvirtNode ( ) ) && ( ( vds.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.PendingApproval ) ) ; }
Source:
public void setOsId ( int os_id ) { this . osId = os_id ; }

Target:
public void setOperatingsystemId ( int os_id ) { this . operatingsystemId = os_id ; }
Source:
public int getVmsCoresCount ( ) { return this . vmsCoresCount.get ( ) ; }

Target:
public void setLastVmsList ( java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData > > lastVmsList ) { this . lastVmsList = lastVmsList ; }
Source:
public void networkDoesntExist ( ) { simulateClusterExists ( ) ; assertValidateFailure ( EngineMessage.NETWORK_NOT_EXISTS.toString ( ) ) ; }

Target:
public void networkDoesntExist ( ) { simulateClusterExists ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( underTest , EngineMessage.NETWORK_NOT_EXISTS ) ; }
Source:
private void updateVdsFromParameters ( org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters parameters , org.ovirt.engine.core.common.businessentities.VDS vds ) { vds.getDynamicData ( ) . setNonOperationalReason ( parameters.getNonOperationalReason ( ) ) ; }

Target:
private void updateVdsFromParameters ( org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters parameters , org.ovirt.engine.core.common.businessentities.VDS vds ) { vds.getDynamicData ( ) . setNonOperationalReason ( parameters.getNonOperationalReason ( ) ) ; vds.getDynamicData ( ) . setMaintenanceReason ( parameters.getMaintenanceReason ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN ) ; }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getVdcReturnValue ( ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue retValue = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; retValue.setSucceeded ( true ) ; retValue.setReturnValue ( org.ovirt.engine.core.bll.gluster.GetAddedGlusterServersQueryTest.serverKeyFingerprint ) ; return retValue ; }

Target:
private org.ovirt.engine.core.common.queries.QueryReturnValue getVdcReturnValue ( ) { org.ovirt.engine.core.common.queries.QueryReturnValue retValue = new org.ovirt.engine.core.common.queries.QueryReturnValue ( ) ; retValue.setSucceeded ( true ) ; retValue.setReturnValue ( org.ovirt.engine.core.bll.gluster.GetAddedGlusterServersQueryTest.serverKeyFingerprint ) ; return retValue ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( "Snapshot [id=" + ( id ) ) + ", name=" ) + ( name ) ) + ", extra_specs=" ) + ( extraSpecs ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "id" , id ) . append ( "name" , name ) . append ( "extra_specs" , extraSpecs ) . build ( ) ; }
Source:
private void Frontend_QueryStarted ( ) { ( queryCounter ) ++ ; if ( ( getProgress ( ) ) == null ) { StartProgress ( null ) ; } }

Target:
private void frontend_QueryStarted ( ) { ( queryCounter ) ++ ; if ( ( getProgress ( ) ) == null ) { startProgress ( null ) ; } }
Source:
boolean getSendCtrlAltDelete ( ) ;

Target:
boolean isRemapCtrlAltDel ( ) ;
Source:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { return spice.getOptions ( ) . isFullScreen ( ) ; }

Target:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleClient spice ) { return spice.getOptions ( ) . isFullScreen ( ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true , null ) ; }

Target:
public org.ovirt.engine.core.common.queries.QueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true , null ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkView getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.NetworkView ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.network.NetworkView ? super . getEntity ( ) : null ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getRemoveCommand ( ) { return removeCommand ; }
Source:
public org.ovirt.engine.core.compat.NGuid getvm_snapshot_id ( ) { return getImage ( ) . getSnapshotId ( ) ; }

Target:
public org.ovirt.engine.core.compat.NGuid getVmSnapshotId ( ) { return getImage ( ) . getSnapshotId ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : "" ; }
Source:
public boolean CanExecute ( java.lang.Object parameter ) { return true ; }

Target:
public boolean canExecute ( java.lang.Object parameter ) { return true ; }
Source:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.bll.adbroker.LdapBrokerUtils.getDomainsList ( ) . get ( 0 ) ; }

Target:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.authentication.DirectoryManager.getInstance ( ) . getDirectories ( ) . get ( 0 ) . getName ( ) ; }
Source:
public static java.lang.String decode ( java.lang.String source ) { return new java.lang.String ( javax.xml.bind.DatatypeConverter.parseHexBinary ( source ) , java.nio.charset.Charset.forName ( "UTF-8" ) ) ; }

Target:
public static java.lang.String decode ( java.lang.String source ) { return new java.lang.String ( javax.xml.bind.DatatypeConverter.parseHexBinary ( source ) , java.nio.charset.StandardCharsets.UTF_8 ) ; }
Source:
public void macAddressFormatInvalidForDefault ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( createInvalidMacAddress ( ) , javax.validation.groups.Default.class , false ) ; }

Target:
public void macAddressFormatInvalidForDefault ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createInvalidMacAddress ( ) , javax.validation.groups.Default.class , false ) ; }
Source:
public void validateDiskIsOvfStore ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }

Target:
private void testMoveOrCopyForContentTypeFails ( org.ovirt.engine.core.common.businessentities.storage.DiskContentType contentType ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( contentType ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_CONTENT_TYPE_NOT_SUPPORTED_FOR_OPERATION ) ; }
Source:
public void validNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( ValidationResult.VALID , "net" , true ) ; }

Target:
public void validNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , "net" , true ) ; }
Source:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAllForStoragePool ( storagePool.getId ( ) ) ; assertGetAllForStoragePoolValidResult ( result ) ; }

Target:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getAllForStoragePool ( storagePool.getId ( ) ) ; assertGetAllForStoragePoolValidResult ( result ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; listenerMap.callListener ( propName , "PropertyChanged" ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ; listenerMap.callListener ( propName , "PropertyChanged" ) ; }
Source:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > allTemplateImages ) { return ovfManager.exportTemplate ( template , allTemplateImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( template ) ) ; }

Target:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > allTemplateImages ) { return ovfManager.exportTemplate ( template , allTemplateImages , clusterUtils.getCompatibilityVersion ( template ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : java.lang.Boolean.TRUE ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : java.lang.Boolean.TRUE ; }
Source:
public void managementNetworkChangeInvalidNonEmptyClusterSetManagementNet ( ) { testUpdateManagementNetworkChange ( false , true , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_CHANGED ) ) ; }

Target:
public void managementNetworkChangeInvalidNonEmptyClusterSetManagementNet ( ) { testUpdateManagementNetworkChange ( false , true , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_CHANGED ) ) ; }
Source:
public void testGetManagementNetworkByCluster ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getManagementNetwork ( FixturesTool.CLUSTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.MANAGEMENT_NETWORK_ID , result.getId ( ) ) ; }

Target:
public void testGetManagementNetworkByCluster ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getManagementNetwork ( FixturesTool.CLUSTER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.MANAGEMENT_NETWORK_ID , result.getId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskInterface getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.getDiskInterface ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getProductId ( ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.storage.EditIscsiBondCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.ISCSI_BOND_EDIT_SUCCESS : org.ovirt.engine.core.common.AuditLogType.ISCSI_BOND_EDIT_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( org.ovirt.engine.core.bll.storage.EditIscsiBondCommand.getSucceeded ( ) ) { if ( encounterConnectionProblems ) { return org.ovirt.engine.core.common.AuditLogType.ISCSI_BOND_EDIT_SUCCESS_WITH_WARNING ; } return org.ovirt.engine.core.common.AuditLogType.ISCSI_BOND_EDIT_SUCCESS ; } return org.ovirt.engine.core.common.AuditLogType.ISCSI_BOND_EDIT_FAILED ; }
Source:
public int getMtu ( ) { return network.getMtu ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return network ; }
Source:
public void testEmptyStringIsValid ( ) { doTest ( "" , true ) ; }

Target:
public void testEmptyStringIsInvalid ( ) { doTest ( "" , false ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > hostDevice ) { return renderNameId ( hostDevice.getEntity ( ) . getProductName ( ) , hostDevice.getEntity ( ) . getProductId ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > hostDevice ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.HostDeviceColumnHelper.renderNameId ( hostDevice.getEntity ( ) . getProductName ( ) , hostDevice.getEntity ( ) . getProductId ( ) ) ; }
Source:
public java.lang.String render ( java.lang.Object object ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.EntityModel ) ( object ) ) ; return model.getTitle ( ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.NfsVersion > model ) { return model.getTitle ( ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( getEntity ( ) ) ; }
Source:
protected void ExecuteNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { }

Target:
protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . showRdpPanel ( event.getValue ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectRdpImplementation ( RdpConsoleModel.ClientConsoleMode.Plugin ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source ; }

Target:
public void getIsGlusterVolumeSnapshotCliScheduleEnabled ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Boolean > aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeSnapshotCliScheduleFlag , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , aQuery ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc moveMultipleImages ( java.lang.String spUUID , java.lang.String srcDomUUID , java.lang.String dstDomUUID , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct imgDict , java.lang.String vmGUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc upgradeStoragePool ( java.lang.String storagePoolId , java.lang.String targetVersion ) ;
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1000 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1000 ; }
Source:
private void checkIfInitialized ( ) { if ( ! ( initialized ) ) { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.MAC_POOL_NOT_INITIALIZED ) ; } }

Target:
private void checkIfInitialized ( ) { if ( ! ( initialized ) ) { throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.MAC_POOL_NOT_INITIALIZED ) ; } }
Source:
private boolean isConsoleEditEnabled ( ) { return ( ( getSelectedItem ( ) ) != null ) && ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getSelectedItem ( ) ) ) . isRunningOrPaused ( ) ) ; }

Target:
protected java.lang.String getSuffixCauseToClonedNameCollisionMessage ( java.lang.String existingName ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . suffixCauseToClonedVmNameCollision ( existingName ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VM o1 , org.ovirt.engine.core.common.businessentities.VM o2 ) { return ( ( int ) ( ( o1.getActualDiskWithSnapshotsSize ( ) ) - ( o2.getActualDiskWithSnapshotsSize ( ) ) ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VM o1 , org.ovirt.engine.core.common.businessentities.VM o2 ) { return java.lang.Double.compare ( o1.getActualDiskWithSnapshotsSize ( ) , o2.getActualDiskWithSnapshotsSize ( ) ) ; }
Source:
public void serializeNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network net = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( net ) . length ( ) ) > 0 ) ) ; }

Target:
public void serializeNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network net = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serializer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; org.junit.Assert.assertTrue ( ( ( serializer.serialize ( net ) . length ( ) ) > 0 ) ) ; }
Source:
public void setMountOptions ( java.lang.String mountOptions ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( this . mountOptions , mountOptions ) ) ) { this . mountOptions = mountOptions ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "MountOptions" ) ) ; } }

Target:
public void setMountOptions ( java.lang.String mountOptions ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( this . mountOptions , mountOptions ) ) ) { this . mountOptions = mountOptions ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "MountOptions" ) ) ; } }
Source:
protected void removeTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget ) { if ( ( tabWidgetHandler ) != null ) { tabWidgetHandler.removeTabWidget ( tabWidget ) ; } }

Target:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { if ( ( tabWidgetHandler ) != null ) { tabWidgetHandler.addTabWidget ( tabWidget , index ) ; } }
Source:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( delegate :: activate , action ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: activate , action ) ; }
Source:
protected void initIsVm ( ) { getIsVmNetwork ( ) . setEntity ( true ) ; }

Target:
protected void initIsVm ( ) { getIsVmNetwork ( ) . setEntity ( org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.isModeSupported ( ApplicationMode.VirtOnly ) ) ; }
Source:
private void AddTaskToMap ( org.ovirt.engine.core.compat.Guid guid , org.ovirt.engine.core.bll.SPMAsyncTask asyncTask ) { _tasks.put ( guid , asyncTask ) ; logChangedMap = true ; }

Target:
private void setNewMap ( java.util.concurrent.ConcurrentMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.SPMAsyncTask > asyncTaskMap ) { _tasks = asyncTaskMap ; logChangedMap = true ; org.ovirt.engine.core.bll.AsyncTaskManager.log.infoFormat ( "Setting new tasks map. The map contains now {0} tasks" , _tasks.size ( ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ( ) ; }

Target:
public void getCPUList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.ServerCpu > > aQuery , org.ovirt.engine.core.compat.Version version ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllServerCpuList , new org.ovirt.engine.core.common.queries.GetAllServerCpuListParameters ( version ) , aQuery ) ; }
Source:
public java.lang.String getLabel ( ) { return label.getInnerText ( ) ; }

Target:
public java.lang.String getLabel ( ) { return label.getText ( ) ; }
Source:
public void setItems ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.SearchableListModel > value ) { super . setItems ( value ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.pools.PoolListModel getPoolList ( ) { return poolListModel ; }
Source:
public void validateVmMemoryCanStartOnVdsHighPendingButSwapHelps ( ) { vds.setSwapFree ( 80L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCanStartOnVdsHighPendingButSwapHelps ( ) { vds.setSwapFree ( 80L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
public void testGetAsyncTaskIdsByInvalidEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertTrue ( guids.isEmpty ( ) ) ; }

Target:
public void testGetAsyncTaskIdsByInvalidEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( guids ) ; org.junit.jupiter.api.Assertions.assertTrue ( guids.isEmpty ( ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.getBroker ( ) . getAllTasksInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( parseTaskInfoList ( _result.TaskInfoList ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.getBroker ( ) . getAllTasksInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( parseTaskInfoList ( _result.taskInfoList ) ) ; }
Source:
private void Rdp_Disconnected ( java.lang.Object sender , org.ovirt.engine.ui.uicommonweb.models.vms.ErrorCodeEventArgs e ) { getrdp ( ) . getDisconnectedEvent ( ) . removeListener ( this ) ; if ( ( e.getErrorCode ( ) ) > 100 ) { getErrorEvent ( ) . raise ( this , e ) ; } }

Target:
private void rdp_Disconnected ( java.lang.Object sender , org.ovirt.engine.ui.uicommonweb.models.vms.ErrorCodeEventArgs e ) { getrdp ( ) . getDisconnectedEvent ( ) . removeListener ( this ) ; if ( ( e.getErrorCode ( ) ) > 100 ) { getErrorEvent ( ) . raise ( this , e ) ; } }
Source:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetClustersByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId } , setUpClusters ( ) , null ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetClustersByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId } , setUpClusters ( ) , null ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getBroker ( ) . getTaskStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; proceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskStatus ( _result.TaskStatus ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getBroker ( ) . getTaskStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; proceedProxyReturnValue ( ) ; setReturnValue ( parseTaskStatus ( _result.TaskStatus ) ) ; }
Source:
public boolean getIsAvailable ( ) { return getModel ( ) . getHasTimeZone ( ) ; }

Target:
public boolean getIsAvailable ( ) { java.lang.String fqdn = getModel ( ) . getFqdn ( ) ; return ! ( ( fqdn == null ) || ( fqdn.isEmpty ( ) ) ) ; }
Source:
private static void assertGetByNameValidResults ( java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > results ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameResults ( results , org.ovirt.engine.core.dao.AuditLogDAOTest.EXISTING_COUNT ) ; }

Target:
public void testGetAllFiltered ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.AuditLogDAOTest.FILTERED_COUNT , result.size ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network createNewNetwork ( boolean isVmNetwork , java.lang.String networkName ) { org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setVmNetwork ( isVmNetwork ) ; network.setname ( networkName ) ; return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createNewNetwork ( boolean isVmNetwork , java.lang.String networkName ) { org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setVmNetwork ( isVmNetwork ) ; network.setName ( networkName ) ; return network ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel o1 , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel o2 ) { return o1.isManagement ( ) ? - 1 : o1.getName ( ) . compareTo ( o2.getName ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel o1 , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel o2 ) { return o1.isManagement ( ) ? - 1 : o1.getNetworkName ( ) . compareTo ( o2.getNetworkName ( ) ) ; }
Source:
public void setDbFacade ( org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacade ) { this . dbFacade = dbFacade ; }

Target:
public void setSSOSessionValidaor ( org.ovirt.engine.core.bll.aaa.SessionDataContainer.SSOSessionValidator ssoSessionValidator ) { this . ssoSessionValidator = ssoSessionValidator ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }

Target:
private void registerListeners ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager.ManagedFieldsManager managedFieldsManager = new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager.ManagedFieldsManager ( ) ; model.getInstanceTypes ( ) . getSelectedItemChangedEvent ( ) . addListener ( managedFieldsManager ) ; model.getTemplateWithVersion ( ) . getSelectedItemChangedEvent ( ) . addListener ( managedFieldsManager ) ; }
Source:
private static java.lang.String getHostMaxSupportedClusterVersion ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel networkItemModel ) { final org.ovirt.engine.core.common.businessentities.VDS host = networkItemModel.getSetupModel ( ) . getEntity ( ) ; final org.ovirt.engine.core.compat.Version maxVersion = java.util.Collections.max ( host.getSupportedClusterVersionsSet ( ) ) ; return maxVersion.getValue ( ) ; }

Target:
private static java.lang.String getClusterCompatibilityVersion ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel networkItemModel ) { final org.ovirt.engine.core.common.businessentities.VDS host = networkItemModel.getSetupModel ( ) . getEntity ( ) ; return host.getVdsGroupCompatibilityVersion ( ) . getValue ( ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters params = new org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters ( vmId , guid ) ; return doAction ( VdcActionType.HotUnPlugDiskFromVm , params , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters params = new org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( guid , vmId ) ) ; return doAction ( VdcActionType.HotUnPlugDiskFromVm , params , action ) ; }
Source:
public void mapIncompleteSsoFromRestToBackend ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; org.junit.Assert.assertEquals ( null , org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }

Target:
public void mapIncompleteSsoFromRestToBackend ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; org.junit.Assert.assertNull ( org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }
Source:
public void endSuccessfully ( ) { }

Target:
public void endSuccessfully ( ) { enclosingCommand.getReturnValue ( ) . setEndActionTryAgain ( false ) ; }
Source:
protected void endSuccessfully ( ) { endCommand ( ) ; }

Target:
private java.lang.String getDiskIsBeingRemovedLockMessage ( ) { if ( ( cachedDiskIsBeingRemovedLockMessage ) == null ) { cachedDiskIsBeingRemovedLockMessage = new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_IS_BEING_REMOVED.name ( ) ) . append ( java.lang.String.format ( "$DiskName %1$s" , getDiskAlias ( ) ) ) . toString ( ) ; } return cachedDiskIsBeingRemovedLockMessage ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList ( ) ; }
Source:
public void testAllLunsHaveDiscardZeroesTheDataSupportFailsOneLunHasNullValue ( ) { junit.framework.Assert.assertFalse ( discardHelper.allLunsHaveDiscardZeroesTheDataSupport ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 0L , true ) , createLunWithDiscardFunctionality ( 2048L , null ) ) ) ) ; }

Target:
public void testAllLunsHaveDiscardZeroesTheDataSupportFailsOneLunHasNullValue ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsHaveDiscardZeroesTheDataSupport ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 0L , true ) , createLunWithDiscardFunctionality ( 2048L , null ) ) ) ) ; }
Source:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.UpgradeOvirtNodeInternalCommand.getVds ( ) ) == null ) { return ; } if ( isOvirtReInstallOrUpgrade ( ) ) { upgradeNode ( ) ; } }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.UpgradeOvirtNodeInternalCommand.getVds ( ) ) == null ) { return ; } vdsInitialStatus = org.ovirt.engine.core.bll.UpgradeOvirtNodeInternalCommand.getVds ( ) . getStatus ( ) ; if ( isOvirtReInstallOrUpgrade ( ) ) { upgradeNode ( ) ; } }
Source:
public java.lang.Object runInTransaction ( ) { HandleVdsInformation ( ) ; vm.setrun_on_vds ( getVdsId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { HandleVdsInformation ( ) ; vm.setRunOnVds ( getVdsId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }
Source:
private org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator createNetworkClusterValidator ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; return new org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator ( interfaceDao , networkDao , networkCluster ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator createNetworkClusterValidator ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; return new org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator ( interfaceDao , networkDao , vdsDao , networkCluster ) ; }
Source:
void processOnClientIpChange ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
void processOnClientIpChange ( org.ovirt.engine.core.compat.Guid vmId , java.lang.String newClientIp , java.lang.String newClientUserName ) ;
Source:
protected void verifyEntityModification ( org.ovirt.engine.core.common.businessentities.VdsStatic result ) { org.junit.Assert.assertEquals ( "test" , result.getName ( ) ) ; }

Target:
public void testSave ( ) { dao.save ( newStaticVds ) ; org.ovirt.engine.core.common.businessentities.VdsStatic staticResult = dao.get ( newStaticVds.getId ( ) ) ; org.junit.Assert.assertNotNull ( staticResult ) ; org.junit.Assert.assertEquals ( newStaticVds , staticResult ) ; }
Source:
public abstract org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createConnectedClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , java.nio.channels.SocketChannel channel ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;

Target:
protected abstract org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;