auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc glusterVolumeCreate ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , int stripeCount , java.lang.String [ ] transportList ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmList ( java.lang.String uri , java.lang.String username , java.lang.String password , java.util.List < java.lang.String > vmsNames ) ;
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmsModel model ) { super . init ( model ) ; addDataCenterListener ( ) ; addImportSourceListener ( ) ; updateExportDomainLoadButtonEnabledState ( ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmsModel model ) { super . init ( model ) ; addDataCenterListener ( ) ; addExportDomainListener ( ) ; updateExportDomainLoadButtonEnabledState ( ) ; }
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 ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }

Target:
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 ) ; }
Source:
void updateCommonModel ( ) { this . commonModel = org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) ; getView ( ) . setCommonModel ( commonModel ) ; }

Target:
void updateCommonModel ( ) { commonModel = commonProvider.get ( ) ; getView ( ) . setCommonModel ( commonModel ) ; }
Source:
public void setCompatabilityVersion ( org.ovirt.engine.core.compat.Version compatibilityVersion ) { this . compatibilityVersion = compatibilityVersion ; }

Target:
public void setCompatibilityVersion ( org.ovirt.engine.core.compat.Version compatibilityVersion ) { this . compatibilityVersion = compatibilityVersion ; }
Source:
public void setvds_type ( org.ovirt.engine.core.common.businessentities.VDSType value ) { this . mVdsStatic.setvds_type ( value ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return this . mVdsStatic.getVdsGroupId ( ) ; }
Source:
public void currentUserNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.DbUser u = null ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.common.businessentities.DbUser cu = b.getCurrentUser ( ) ; org.junit.Assert.assertEquals ( u , cu ) ; }

Target:
public void currentUserNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = null ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser cu = b.getCurrentUser ( ) ; org.junit.Assert.assertEquals ( u , cu ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; getView ( ) . recalculateSize ( ) ; getView ( ) . showScrollButtons ( ) ; }

Target:
private void redraw ( ) { getView ( ) . recalculateSize ( ) ; getView ( ) . showScrollButtons ( ) ; }
Source:
public void setupCommand ( ) { initSpyCommand ( ) ; mockDaos ( ) ; }

Target:
public void setupCommand ( ) { initSpyCommand ( ) ; mockDaos ( ) ; mockSnapshotValidator ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return getNetworkDAO ( ) . get ( getNetworkId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return getNetworkDao ( ) . get ( getNetworkId ( ) ) ; }
Source:
public static boolean copyNonEditableFieldsToDestination ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , boolean hotSetEnabled ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.copyNonEditableFieldsToDestination ( source , destination , hotSetEnabled ) ; }

Target:
public static boolean copyNonEditableFieldsToDestination ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , boolean hotSetEnabled ) { return org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.copyNonEditableFieldsToDestination ( source , destination , hotSetEnabled ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( serverId ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( serverName ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( serverId ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommandTest.serverName ) ; return vds ; }
Source:
public void testIsNetworkExclusiveValid2 ( ) { org.junit.Assert.assertTrue ( underTest.isNetworkExclusive ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.validator.network.NetworkType.VM ) ) ) ; }

Target:
public void testIsNetworkExclusiveValid2 ( ) { org.junit.jupiter.api.Assertions.assertTrue ( underTest.isNetworkExclusive ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.validator.network.NetworkType.VM ) ) ) ; }
Source:
public abstract void EntityPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) ;

Target:
public abstract void entityPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) ;
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.StoragePool ? super . getEntity ( ) : null ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Events: event_datacenter=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . search ( ) ; } }
Source:
public java.lang.String getCredentialsChangeUrl ( javax.servlet.http.HttpServletRequest request ) throws java.net.MalformedURLException { return "http://localhost:8080/ovirt-engine/sso/credentials-change.html" ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "http://localhost:8080/ovirt-engine/sso/credentials-change.html" ) . when ( testServlet ) . getCredentialsChangeUrl ( org.mockito.ArgumentMatchers.any ( ) ) ; testServlet.setBackend ( mockBackend ) ; testServlet.init ( mockBrandingManager , "/ovirt-engine" ) ; mockBackendQuery ( VdcQueryType.GetConfigurationValue , "oVirtVersion" ) ; org.mockito.Mockito.when ( mockBrandingManager.getBrandingThemes ( ) ) . thenReturn ( new java.util.ArrayList < > ( ) ) ; org.mockito.Mockito.when ( mockBrandingManager.getWelcomeSections ( org.mockito.ArgumentMatchers.any ( java.util.Locale.class ) ) ) . thenReturn ( "Welcome Section HTML" ) ; }
Source:
public void onDragEnter ( com.google.gwt.event.dom.client.DragEnterEvent event ) { doDrag ( event , false ) ; }

Target:
public void onDragEnter ( com.google.gwt.event.dom.client.DragEnterEvent event ) { ( dragCounter ) ++ ; eventBus.fireEvent ( new org.ovirt.engine.ui.webadmin.section.main.view.popup.host.AutoScrollEnableEvent ( this ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { org.junit.Assert.assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; }
Source:
public void cpuIdIsNull ( ) { cpuId = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , fullEntityOvfData , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "cpuId" ) ; }

Target:
public void cpuIdIsNull ( ) { cpuId = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , fullEntityOvfData , version , emulatedMachine , cpuId , osRepository , engineXml ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "cpuId" ) ; }
Source:
public org.ovirt.engine.api.resource.UnmanagedNetworkResource getUnmanagedNetworkSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendUnmanagedNetworkResource ( org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) , hostId ) ) ; }

Target:
public org.ovirt.engine.api.resource.UnmanagedNetworkResource getUnmanagedNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendUnmanagedNetworkResource ( org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) , hostId ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return snapshotsManager.addActiveSnapshot ( snapshotId , getVm ( ) , getMemoryVolumeForNewActiveSnapshot ( ) , getCompensationContext ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return snapshotsManager.addActiveSnapshot ( snapshotId , getVm ( ) , getMemoryVolumeForNewActiveSnapshot ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getCompensationContext ( ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { boolean reboot = ( _reboot ) && ( ! ( _isNode ) ) ; if ( reboot ) { _messages.post ( InstallerMessages.Severity.INFO , "Enfocing host reboot" ) ; } _parser.cliEnvironmentSet ( org.ovirt.ovirt_host_deploy.constants.CoreEnv.FORCE_REBOOT , reboot ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { boolean reboot = ( _reboot ) && ( ! ( _isNode ) ) ; if ( reboot ) { _messages.post ( InstallerMessages.Severity.INFO , "Enforcing host reboot" ) ; } _parser.cliEnvironmentSet ( org.ovirt.ovirt_host_deploy.constants.CoreEnv.FORCE_REBOOT , reboot ) ; return null ; }
Source:
public void Frontend_QueryStarted ( ) { ( queryCounter ) ++ ; if ( ( getProgress ( ) ) == null ) { StartProgress ( null ) ; } }

Target:
public void frontend_QueryStarted ( ) { ( queryCounter ) ++ ; if ( ( getProgress ( ) ) == null ) { startProgress ( null ) ; } }
Source:
public void testBadKeyNotIsPublicKeyValid ( ) { for ( java.lang.String key : org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.BAD_SSH_KEYS ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.isPublicKeyValid ( key ) ) ; } }

Target:
public void testBadKeyNotIsPublicKeyValid ( ) { for ( java.lang.String key : org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.BAD_SSH_KEYS ) { org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.isPublicKeyValid ( key ) ) ; } }
Source:
private void setUpGetEntityExpectations ( boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAllExternalNetworksOnProvider , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , ( notFound ? null : getNetworks ( ) ) ) ; }

Target:
private void setUpGetEntityExpectations ( boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetAllExternalNetworksOnProvider , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , ( notFound ? null : getNetworks ( ) ) ) ; }
Source:
public boolean getIsFirstRun ( ) { return ! ( getis_initialized ( ) ) ; }

Target:
public void setDiskSize ( int value ) { diskSize = value ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { Dispose ( ) ; }

Target:
protected void finalize ( ) throws java.lang.Throwable { dispose ( ) ; }
Source:
protected boolean updateBrickServerNames ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , boolean addCanDoActionMessage ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : bricks ) { if ( ! ( updateBrickServerName ( brick , addCanDoActionMessage ) ) ) { return false ; } } return true ; }

Target:
protected boolean updateBrickServerAndInterfaceNames ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , boolean addCanDoActionMessage ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : bricks ) { if ( ! ( updateBrickServerAndInterfaceName ( brick , addCanDoActionMessage ) ) ) { return false ; } } return true ; }
Source:
public static void removeSmartcardDevices ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSmartcardDevices ( vmId ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addCdDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return addCdDevice ( vmId , "" ) ; }
Source:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( constants.bootableDisk ( ) ) ; } return null ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.getDiskVmElements ( ) . iterator ( ) . next ( ) . isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( constants.bootableDisk ( ) ) ; } return null ; }
Source:
public void setPrincipal ( java.lang.String principal ) { setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }

Target:
public void setPrincipal ( java.lang.String sessionId , java.lang.String principal ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getAdUserId ( ) . toString ( ) , LockMessagesMatchUtil.USER_VM_POOL ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getAdUserId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.USER_VM_POOL , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void isRoleNetworkAllRoles ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createNetworkCluster ( true , true , true ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.isRoleNetwork ( networkCluster ) ) ; }

Target:
public void isRoleNetworkAllRoles ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createNetworkCluster ( true , true , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.isRoleNetwork ( networkCluster ) ) ; }
Source:
public java.lang.String toString ( ) { return ( ( serializeId ( getFirst ( ) ) ) + '.' ) + ( serializeId ( getSecond ( ) ) ) ; }

Target:
public java.lang.String toString ( ) { return ( ( serializeId ( org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId.getFirst ( ) ) ) + '.' ) + ( serializeId ( org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId.getSecond ( ) ) ) ; }
Source:
public void testIsUsingScsiReservationValidWhenAddingFloatingDisk ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.UNFILTERED , true ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( null , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_SCSI_RESERVATION_NOT_VALID_FOR_FLOATING_DISK ) ) ; }

Target:
public void testIsUsingScsiReservationValidWhenAddingFloatingDisk ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.UNFILTERED , true ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( null , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SCSI_RESERVATION_NOT_VALID_FOR_FLOATING_DISK ) ) ; }
Source:
public com.google.gwt.user.client.ui.Widget getValueWidget ( ) { return valueWidget ; }

Target:
public void setFormPanel ( org.ovirt.engine.ui.common.widget.form.AbstractFormPanel formPanel ) { this . formPanel = formPanel ; if ( ( autoPlacement ) && ( getIsAvailable ( ) ) ) { this . autoPlacementRow = formPanel.getNextAvailableRow ( column ) ; } }
Source:
public void setWANColorDepth ( org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth colorDepth ) { this . wanColorDepth = colorDepth ; getWANColorDepthChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }

Target:
public void setPort ( int port ) { this . consoleOptions.setPort ( port ) ; }
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 ( ) . networkClusterSubTabLabel ( ) , 1 , ginjector.getSubTabNetworkClusterModelProvider ( ) ) ; }

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.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkClusterSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
private void getAffinityGroupByVdsIdHelper ( org.ovirt.engine.core.compat.Guid vdsId , int count ) { java.util.List < org.ovirt.engine.core.common.scheduling.AffinityGroup > affinityGroups = dao.getPositiveEnforcingAffinityGroupsByRunningVmsOnVdsId ( vdsId ) ; org.junit.Assert.assertNotNull ( affinityGroups ) ; org.junit.Assert.assertEquals ( count , affinityGroups.size ( ) ) ; }

Target:
private void getAffinityGroupByVdsIdHelper ( org.ovirt.engine.core.compat.Guid vdsId , int count ) { java.util.List < org.ovirt.engine.core.common.scheduling.AffinityGroup > affinityGroups = dao.getPositiveEnforcingAffinityGroupsByRunningVmsOnVdsId ( vdsId ) ; org.junit.jupiter.api.Assertions.assertNotNull ( affinityGroups ) ; org.junit.jupiter.api.Assertions.assertEquals ( count , affinityGroups.size ( ) ) ; }
Source:
public boolean hasTasks ( ) { return true ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( ) { return runVdsCommand ( VDSCommandType.ConvertVm , buildConvertParameters ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getDisk ( ) ) != null ) && ( ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) == ( getDisk ( ) . getDiskStorageType ( ) ) ) ) { return getDiskImage ( ) . getQuotaId ( ) ; } return null ; }

Target:
public java.lang.String getDiskAlias ( ) { if ( ( getDisk ( ) ) != null ) { return getDisk ( ) . getDiskAlias ( ) ; } return "" ; }
Source:
public void testGetFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetResult ( result ) ; }

Target:
public void testGetFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetResult ( result ) ; }
Source:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case EXTERNAL_NETWORK : case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case OPENSTACK_VOLUME : return "http://localhost:8776" ; case VMWARE : return "" ; case FOREMAN : default : return "http://localhost" ; } }

Target:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case EXTERNAL_NETWORK : case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case OPENSTACK_VOLUME : return "http://localhost:8776" ; case VMWARE : return "" ; case KVM : return "" ; case FOREMAN : default : return "http://localhost" ; } }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.SSH_KEY , org.ovirt.engine.core.bll.VdsDeploy._getEngineSSHPublicKey ( ) . replace ( "\n" , "" ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.SSH_KEY , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.getEngineSSHPublicKey ( ) . replace ( "\n" , "" ) ) ; return null ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; } return source ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllForVm ( org.ovirt.engine.core.compat.Guid id ) { return getAllForVm ( id , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllForVm ( org.ovirt.engine.core.compat.Guid id , boolean onlyPluggedDisks ) { return getAllForVm ( id , onlyPluggedDisks , null , false ) ; }
Source:
public java.lang.String getSortableDbField ( java.lang.String fieldName ) { if ( sortableFieldDict.containsKey ( fieldName ) ) { return sortableFieldDict.get ( fieldName ) ; } else { return getDbFieldName ( fieldName ) ; } }

Target:
public java.util.List < org.ovirt.engine.core.searchbackend.SyntaxChecker.SortByElement > getSortByElements ( java.lang.String fieldName ) { if ( sortableFieldDict.containsKey ( fieldName ) ) { return sortableFieldDict.get ( fieldName ) ; } return java.util.Collections.singletonList ( new org.ovirt.engine.core.searchbackend.SyntaxChecker.SortByElement ( getDbFieldName ( fieldName ) , true ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel flush ( ) { return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel flush ( ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel model = driver.flush ( ) ; model.getProfiles ( ) . setItems ( profilesEditor.flush ( ) . getItems ( ) ) ; return model ; }
Source:
public org.ovirt.vdsmfake.domain.Host getHostByName ( java.lang.String name ) { return org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . getHostByName ( name ) ; }

Target:
public org.ovirt.vdsmfake.domain.Host getHostByName ( java.lang.String name ) { return vdsmManager.getHostByName ( name ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getVds ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getParameters ( ) . isManagementNetworkSkipped ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { super . executeVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) ) ; proceedProxyReturnValue ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getdescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.network_cluster , org.ovirt.engine.core.common.businessentities.VDSGroup > object ) { return object.getSecond ( ) . getdescription ( ) ; }
Source:
public void networkLabeled ( ) { org.mockito.Mockito.when ( network.getLabel ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 10 ) ) ; org.junit.Assert.assertThat ( validator.notLabeled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ) ; }

Target:
public void networkLabeled ( ) { org.mockito.Mockito.when ( network.getLabel ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 10 ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.notLabeled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ) ; }
Source:
public void testPatternBasedNameFails ( ) { vmStatic.setName ( "aa-??bb" ) ; org.junit.Assert.assertFalse ( "Pattern-based name should not be supported for VM" , command.validateInputs ( ) ) ; }

Target:
public void testPatternBasedNameFails ( ) { vmStatic.setName ( "aa-??bb" ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.validateInputs ( ) , "Pattern-based name should not be supported for VM" ) ; }
Source:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( validVM ) , org.hamcrest.core.Is.is ( org.hamcrest.Matchers.empty ( ) ) ) ; }

Target:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) , org.hamcrest.core.Is.is ( org.hamcrest.Matchers.empty ( ) ) ) ; }
Source:
public org.ovirt.engine.api.resource.RoleResource getRoleSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendRoleResource ( id , principalId ) ) ; }

Target:
public org.ovirt.engine.api.resource.RoleResource getRoleResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendRoleResource ( id , principalId ) ) ; }
Source:
public void setcpu_per_socket ( int value ) { this . mVmStatic.setcpu_per_socket ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "cpu_per_socket" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_cpus" ) ) ; }

Target:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setVdsGroupId ( value ) ; }
Source:
protected void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { super . localize ( constants ) ; mainLabel.setText ( constants.dataCenterEditNetworkPopupLabel ( ) ) ; messageLabel.setHTML ( constants.dataCenterNetworkPopupSubLabel ( ) ) ; }

Target:
public void updateVisibility ( ) { super . updateVisibility ( ) ; dataCenterEditor.setVisible ( false ) ; }
Source:
protected R addLinks ( R model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , boolean doNotLinkSubCollections ) { return doNotLinkSubCollections ? org.ovirt.engine.api.utils.LinkHelper.addLinks ( org.ovirt.engine.api.restapi.resource.AbstractBackendResource.getUriInfo ( ) , addParents ( model ) , suggestedParent ) : addLinks ( model , suggestedParent ) ; }

Target:
protected R addLinks ( R model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , boolean doNotLinkSubCollections ) { return doNotLinkSubCollections ? org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( org.ovirt.engine.api.restapi.resource.AbstractBackendResource.getUriInfo ( ) , addParents ( model ) , suggestedParent ) : addLinks ( model , suggestedParent ) ; }
Source:
public org.ovirt.engine.api.model.StorageConnection update ( org.ovirt.engine.api.model.StorageConnection connection ) { return performUpdate ( connection , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class ) , VdcActionType.UpdateStorageServerConnection , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageConnection update ( org.ovirt.engine.api.model.StorageConnection connection ) { return performUpdate ( connection , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class ) , ActionType.UpdateStorageServerConnection , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionResource.UpdateParametersProvider ( ) ) ; }
Source:
protected void loadVmInit ( ) { if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getVmInit ( ) ) == null ) { org.ovirt.engine.core.bll.VmHandler.updateVmInitFromDB ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStaticData ( ) , false ) ; } }

Target:
protected void loadVmInit ( ) { if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getVmInit ( ) ) == null ) { vmHandler.updateVmInitFromDB ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStaticData ( ) , false ) ; } }
Source:
public void internalUnknownAllowed ( ) { testInternalExecution ( StorageDomainStatus.Unknown ) ; canDoActionSucceeds ( ) ; noIllegalStatusMessage ( ) ; }

Target:
public void nonInternalMaintenanceAllowed ( ) { nonInternalActionAllowed ( StorageDomainStatus.Maintenance ) ; }
Source:
protected int getDelayInSeconds ( ) { return 0 ; }

Target:
public java.lang.String getUserName ( ) { java.lang.String userName = super . getUserName ( ) ; return org.apache.commons.lang.StringUtils.isEmpty ( userName ) ? org.ovirt.engine.core.bll.RestartVdsCommand.INTERNAL_FENCE_USER : userName ; }
Source:
public void cluster_SelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; }
Source:
public void setstorage_domain_shared_status ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus value ) { if ( ( _storageDomainSharedStatus ) != value ) { _storageDomainSharedStatus = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "storage_domain_shared_status" ) ) ; } }

Target:
public void setLastTimeUsedAsMaster ( long lastTimeUsedAsMaster ) { _staticData.setLastTimeUsedAsMaster ( lastTimeUsedAsMaster ) ; }
Source:
public boolean shouldRepeatEndMethodsOnFail ( org.ovirt.engine.core.compat.Guid cmdId ) { return shouldRepeatEndMethodsOnFail ( org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getCommandEntity ( cmdId ) . getReturnValue ( ) ) ; }

Target:
public boolean shouldRepeatEndMethodsOnFail ( org.ovirt.engine.core.compat.Guid cmdId ) { return shouldRepeatEndMethodsOnFail ( commandCoordinatorUtil.getCommandEntity ( cmdId ) . getReturnValue ( ) ) ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , org.ovirt.engine.core.compat.Guid id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , T id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }
Source:
public void testSetActionMessageParameters ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertSetActionMessageParameters ( command , VdcBllMessages.VAR__TYPE__STORAGE__DOMAIN , VdcBllMessages.VAR__ACTION__REMOVE ) ; }

Target:
public void testSetActionMessageParameters ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertSetActionMessageParameters ( command , EngineMessage.VAR__TYPE__STORAGE__DOMAIN , EngineMessage.VAR__ACTION__REMOVE ) ; }
Source:
public void canDoChangeComment ( ) { sd.setComment ( org.apache.commons.lang.StringUtils.reverse ( sd.getComment ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void validateChangeComment ( ) { sd.setComment ( org.apache.commons.lang.StringUtils.reverse ( sd.getComment ( ) ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void useDefaultKeyPair ( ) throws java.security.KeyStoreException { ( ( org.ovirt.engine.core.utils.ssh.EngineSSHClient ) ( _client ) ) . useDefaultKeyPair ( ) ; }

Target:
public void useDefaultKeyPair ( ) { java.security.KeyStore.PrivateKeyEntry entry = org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.getPrivateKeyEntry ( ) ; setKeyPair ( new java.security.KeyPair ( entry.getCertificate ( ) . getPublicKey ( ) , entry.getPrivateKey ( ) ) ) ; }
Source:
public void CancelConfirmWithFocus ( ) { setConfirmWindow ( null ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( getWindow ( ) ) ) ; hostModel.setIsPowerManagementTabSelected ( true ) ; }

Target:
public void cancelConfirmWithFocus ( ) { setConfirmWindow ( null ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( getWindow ( ) ) ) ; hostModel.setIsPowerManagementTabSelected ( true ) ; }
Source:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , java.lang.String loggerString ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType , loggerString ) ; }

Target:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , java.lang.String loggerString ) { auditLogDirector.log ( auditLogable , logType , loggerString ) ; }
Source:
public java.lang.String getlog_type_name ( ) { return getlog_type ( ) . name ( ) ; }

Target:
public java.lang.String getLogTypeName ( ) { return getLogType ( ) . name ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getTemplateById ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.VmTemplate > aQuery , org.ovirt.engine.core.compat.Guid templateId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( templateId ) , aQuery ) ; }
Source:
public void flushToPrivateModel ( ) { flushCheckBoxes ( ctrlAltDel , enableUsbAutoshare , openInFullScreen , useLocalDrives , wanEnabled ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalConsolePopupModel model ) { editCheckBoxes ( model , ctrlAltDel , enableUsbAutoshare , openInFullScreen , useLocalDrives , wanEnabled , disableSmartcard ) ; }
Source:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }

Target:
public void validateDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move , 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 ) ; }
Source:
protected org.ovirt.engine.api.model.VM addParents ( org.ovirt.engine.api.model.VM vm ) { vm.setStorageDomain ( parent.getStorageDomainModel ( ) ) ; return vm ; }

Target:
protected org.ovirt.engine.api.model.Vm addParents ( org.ovirt.engine.api.model.Vm vm ) { vm.setStorageDomain ( parent.getStorageDomainModel ( ) ) ; return vm ; }
Source:
protected void onExecute ( ) { if ( ( this . getProgress ( ) ) != null ) { return ; } if ( ! ( this . validate ( ) ) ) { return ; } startProgress ( null ) ; }

Target:
protected void doExecute ( ) { startProgress ( null ) ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackSubnetsResource getOpenStackSubnets ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackSubnetsResource ( providerId , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.openstack.OpenstackSubnetsResource getSubnetsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackSubnetsResource ( providerId , id ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getDefaultImage ( ) { return org.ovirt.engine.ui.webadmin.widget.table.column.CommentColumn.getApplicationResources ( ) . commentImage ( ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getDefaultImage ( ) { return org.ovirt.engine.ui.webadmin.widget.table.column.CommentColumn.resources.commentImage ( ) ; }
Source:
public void setUp ( ) { disksList = new java.util.LinkedList < > ( ) ; initStorageDomains ( ) ; initStorageDomainValidators ( ) ; initMemoryStorageHandler ( ) ; }

Target:
public void setUp ( ) { disksList = new java.util.LinkedList < > ( ) ; initStorageDomains ( ) ; initFilters ( ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand.getBroker ( ) . resume ( mVmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand.getBroker ( ) . resume ( mVmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return verifyNoLunDisks ( ) ; }

Target:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return verifyUnsupportedDisks ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( _vds.getDynamicData ( ) ) ; return null ; }

Target:
protected void finalize ( ) { try { close ( ) ; } catch ( java.io.IOException e ) { org.ovirt.engine.core.bll.OVirtNodeUpgrade.log.error ( "Exception during finalize" , e ) ; } }
Source:
public void setTemplate ( org.springframework.jdbc.core.JdbcTemplate template ) { this . jdbcTemplate = template ; callsHandler.setJdbcTemplate ( template ) ; }

Target:
public org.ovirt.engine.core.dao.VmIconDao getVmIconDao ( ) { return getDao ( org.ovirt.engine.core.dao.VmIconDao.class ) ; }
Source:
private org.ovirt.engine.core.common.config.IConfigUtilsInterface initConfigUtils ( ) { validator = org.ovirt.engine.core.common.utils.ValidationUtils.getValidator ( ) ; org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.vdsTimeout , Config.DefaultConfigurationVersion ) ) . thenReturn ( org.ovirt.engine.core.common.utils.ConfiguredRangeValidatorTest.TEST_MAX_RANGE ) ; return configUtils ; }

Target:
private org.ovirt.engine.core.common.config.IConfigUtilsInterface initConfigUtils ( ) { validator = org.ovirt.engine.core.common.utils.ValidationUtils.getValidator ( ) ; org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.vdsTimeout , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( org.ovirt.engine.core.common.utils.ConfiguredRangeValidatorTest.TEST_MAX_RANGE ) ; return configUtils ; }
Source:
public void close ( ) { this . queue.add ( new org.ovirt.vdsm.jsonrpc.client.internal.MessageContext ( null , null ) ) ; this . tracker.close ( ) ; }

Target:
public void close ( ) { this . queue.add ( new org.ovirt.vdsm.jsonrpc.client.internal.MessageContext ( null , null ) ) ; this . tracker.close ( ) ; this . publisher.close ( ) ; }
Source:
protected void executeCommand ( ) { addVmToDb ( ) ; processImages ( ) ; setSucceeded ( true ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return getParameters ( ) . getQuotaId ( ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createRemoveNetworkParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsForRemove ) { org.ovirt.engine.core.bll.network.RemoveNetworkParametersBuilder builder = new org.ovirt.engine.core.bll.network.RemoveNetworkParametersBuilder ( getOldNetwork ( ) ) ; return builder.buildParameters ( nicsForRemove ) ; }

Target:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createRemoveNetworkParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsForRemove ) { org.ovirt.engine.core.bll.network.RemoveNetworkParametersBuilder builder = new org.ovirt.engine.core.bll.network.RemoveNetworkParametersBuilder ( getOldNetwork ( ) , org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.SyncNetworkParametersBuilder.getContext ( ) ) ; return builder.buildParameters ( nicsForRemove ) ; }
Source:
public void setPassword ( java.lang.String password ) { this . password = password ; }

Target:
public void setPassword ( java.lang.String password ) { _password = password ; }
Source:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; if ( ( value != null ) && ( value.isPassthrough ( ) ) ) { getNicType ( ) . setSelectedItem ( VmInterfaceType.pciPassthrough ) ; } updateLinkChangability ( ) ; }

Target:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; getNicType ( ) . setSelectedItem ( getDeafultNicTypeByProfile ( ) ) ; updateLinkChangability ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createLowerVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; return pool ; }

Target:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void testGetWithNotExistingEntityId ( ) { org.ovirt.engine.core.common.businessentities.OvfEntityData ovfEntityData = dao.getByEntityIdAndStorageDomain ( FixturesTool.VM_RHEL5_POOL_51 , FixturesTool.STORAGE_DOAMIN_NFS2_1 ) ; org.junit.Assert.assertNull ( "VM should not exists in the UnregisteredOVFData" , ovfEntityData ) ; }

Target:
public void testGetWithNotExistingEntityId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getByEntityIdAndStorageDomain ( FixturesTool.VM_RHEL5_POOL_51 , FixturesTool.STORAGE_DOAMIN_NFS2_1 ) ; org.junit.Assert.assertTrue ( "VM should not exists in the UnregisteredOVFData" , ovfEntityDataList.isEmpty ( ) ) ; }
Source:
public void setvm_id ( org.ovirt.engine.core.compat.Guid value ) { this . vmId = value ; }

Target:
public void setVmId ( org.ovirt.engine.core.compat.Guid vmId ) { this . vmId = vmId ; }
Source:
public void setvm_os ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . mVmStatic.setos ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_os" ) ) ; }

Target:
public void setQuotaId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setQuotaId ( value ) ; }