auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( ) { try { java.util.Map < java.lang.String , java.lang.Object > response = vdsServer.glusterVolumeGeoRepStatus ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( ) { try { java.util.Map < java.lang.String , java.lang.Object > response = vdsServer.glusterVolumeGeoRepSessionList ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
private void addAddress ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct map , java.lang.String address ) { if ( org.apache.commons.lang.StringUtils.isNotBlank ( address ) ) { map.add ( "address" , org.ovirt.engine.core.utils.StringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getParameters ( ) . getVmDevice ( ) . getAddress ( ) ) ) ; } }

Target:
private void addAddress ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct map , java.lang.String address ) { if ( org.apache.commons.lang.StringUtils.isNotBlank ( address ) ) { map.add ( "address" , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getParameters ( ) . getVmDevice ( ) . getAddress ( ) ) ) ; } }
Source:
protected void updateModelClusterFromVds ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( clusters != null ) { getCluster ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( clusters , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate < > ( vds.getVdsGroupId ( ) ) ) ) ; } }

Target:
protected void updateModelClusterFromVds ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Cluster > clusters , org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( clusters != null ) { getCluster ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( clusters , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate < > ( vds.getClusterId ( ) ) ) ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > heartBeat ( ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > volumeInfo ) ;
Source:
private void assertCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages msg ) { junit.framework.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.name ( ) ) ) ; }

Target:
private void assertCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages msg ) { org.junit.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.name ( ) ) ) ; }
Source:
public void tearDown ( ) { org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( org.ovirt.engine.core.bll.aaa.GetUserBySessionIdQueryTest.sessionID ) ; }

Target:
public void tearDown ( ) { sessionDataContainer.removeSessionOnLogout ( org.ovirt.engine.core.bll.aaa.GetUserBySessionIdQueryTest.sessionID ) ; }
Source:
protected void applyCommonValidationStyles ( ) { getValidatedWidgetStyle ( ) . setBorderStyle ( BorderStyle.NONE ) ; }

Target:
protected void applyCommonValidationStyles ( ) { getValidatedWidgetStyle ( ) . setBorderStyle ( BorderStyle.NONE ) ; if ( ! ( isUsePatternfly ( ) ) ) { getValidatedWidgetStyle ( ) . setPadding ( 5 , Unit.PX ) ; } }
Source:
public void setTitle ( com.google.gwt.safehtml.shared.SafeHtml text ) { tooltipPanel.setText ( text ) ; }

Target:
public void setTitle ( com.google.gwt.safehtml.shared.SafeHtml text ) { setTitle ( ( text == null ? ( ( java.lang.String ) ( null ) ) : text.asString ( ) ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VmTemplate x , org.ovirt.engine.core.common.businessentities.VmTemplate y ) { return ( ( int ) ( ( x.getActualDiskSize ( ) ) - ( y.getActualDiskSize ( ) ) ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VmTemplate x , org.ovirt.engine.core.common.businessentities.VmTemplate y ) { return java.lang.Double.compare ( x.getActualDiskSize ( ) , y.getActualDiskSize ( ) ) ; }
Source:
public static javax.ws.rs.core.Response.Status getErrorStatus ( java.lang.String error ) { try { org.ovirt.engine.core.common.errors.ErrorType errorType = org.ovirt.engine.core.common.errors.VdcBllMessages.getErrorType ( error ) ; return org.ovirt.engine.api.restapi.util.ErrorMessageHelper.getStatus ( errorType ) ; } catch ( java.lang.Exception e ) { return null ; } }

Target:
public static javax.ws.rs.core.Response.Status getErrorStatus ( java.lang.String error ) { try { org.ovirt.engine.core.common.errors.ErrorType errorType = org.ovirt.engine.core.common.errors.EngineMessage.getErrorType ( error ) ; return org.ovirt.engine.api.restapi.util.ErrorMessageHelper.getStatus ( errorType ) ; } catch ( java.lang.Exception e ) { return null ; } }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendCpuProfileResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendCpuProfileResource ( "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void addError ( java.lang.String error ) { org.ovirt.engine.core.bll.VdsInstaller.log.errorFormat ( "Installation of {0}. Error: {1}. (Stage: {2})" , _serverName , error , getCurrentInstallStage ( ) ) ; _messages.AddMessage ( error ) ; }

Target:
public void addError ( java.lang.String error ) { org.ovirt.engine.core.bll.VdsInstaller.log.errorFormat ( "Installation of {0}. Error: {1}. (Stage: {2})" , _serverName , error , getCurrentInstallStage ( ) ) ; _messages.postOldXmlFormat ( error ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS o1 , org.ovirt.engine.core.common.businessentities.VDS o2 ) { return ( o2.getvm_count ( ) ) - ( o1.getvm_count ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS o1 , org.ovirt.engine.core.common.businessentities.VDS o2 ) { return ( o2.getVmCount ( ) ) - ( o1.getVmCount ( ) ) ; }
Source:
public void testCacheFilterPatternMatches_NegativeMatch ( ) { org.mockito.Mockito.when ( mockRequest.getRequestURI ( ) ) . thenReturn ( "something.nocache.js" ) ; org.junit.Assert.assertFalse ( testFilter.cacheFilterPatternMatches ( mockRequest ) ) ; }

Target:
public void testCacheFilterPatternMatches_PositiveMatch2 ( ) { org.mockito.Mockito.when ( mockRequest.getRequestURI ( ) ) . thenReturn ( "something.js" ) ; org.junit.Assert.assertTrue ( testFilter.cacheFilterPatternMatches ( mockRequest ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getVmMemSizeMb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.messages.megabytes ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getVmMemSizeMb ( ) ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDAO ( ) . remove ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) . getbookmark_id ( ) ) ; org.ovirt.engine.core.bll.RemoveBookmarkCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) . getbookmark_id ( ) ) ; org.ovirt.engine.core.bll.RemoveBookmarkCommand.setSucceeded ( true ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { if ( event.isExternal ( ) ) { getCallsHandler ( ) . executeModification ( "InsertExternalAuditLog" , getExternalEventSqlMapper ( event ) ) ; } else { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) ) ; } }
Source:
public void setnum_of_sockets ( int value ) { this . mVmStatic.setnum_of_sockets ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_sockets" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_cpus" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.UsbPolicy getUsbPolicy ( ) { return vmStatic.getUsbPolicy ( ) ; }
Source:
private void addPermissions ( ) { addPermissionOnNetwork ( org.ovirt.engine.core.bll.storage.AddNetworkCommand.getCurrentUser ( ) . getUserId ( ) , PredefinedRoles.NETWORK_ADMIN ) ; if ( org.ovirt.engine.core.bll.storage.AddNetworkCommand.getParameters ( ) . isPublicUse ( ) ) { addPermissionOnNetwork ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.NETWORK_USER ) ; } }

Target:
private void addPermissions ( ) { addPermissionOnNetwork ( org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.getCurrentUser ( ) . getUserId ( ) , PredefinedRoles.NETWORK_ADMIN ) ; if ( org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.getParameters ( ) . isPublicUse ( ) ) { addPermissionOnNetwork ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.NETWORK_USER ) ; } }
Source:
private org.ovirt.engine.core.bll.ConvertVmCommand < org.ovirt.engine.core.common.action.ConvertVmParameters > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }

Target:
private org.ovirt.engine.core.bll.ConvertVmCommand < org.ovirt.engine.core.common.action.ConvertVmParameters > getCommand ( ) { if ( ( cachedCommand ) == null ) { cachedCommand = org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; } return cachedCommand ; }
Source:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissionsCheckDisabled ( ) { baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , false ) ; }

Target:
public void testGetTreeForEntityWithRoleTypeFilteredWithPermissions ( ) { org.junit.Assert.assertNotNull ( privilegedUserSession ) ; baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , privilegedUserSession.getId ( ) , true ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { boolean returnValue = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( result ) ) . getReturnValue ( ) ; if ( returnValue ) { displayConsoleConnectConfirmPopup ( command ) ; } else { command.execute ( ) ; } }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { boolean returnValue = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( result ) ) . getReturnValue ( ) ; if ( returnValue ) { displayConsoleConnectConfirmPopup ( command ) ; } else { displayUserCantReconnectDialog ( ) ; } }
Source:
public org.ovirt.engine.api.resource.BalanceResource getBalanceSubResource ( java.lang.String id ) { return getSubResource ( id ) ; }

Target:
public org.ovirt.engine.api.resource.BalanceResource getBalanceSubResource ( java.lang.String id ) { return getBalanceResource ( id ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Disk disk ) { return adaptAdd ( delegate :: add , disk ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Disk disk ) { return adaptAdd ( getDelegate ( ) :: add , disk ) ; }
Source:
public void iscsiBondExists ( ) { org.junit.Assert.assertEquals ( ValidationResult.VALID , validator.isIscsiBondExist ( new org.ovirt.engine.core.common.businessentities.IscsiBond ( ) ) ) ; }

Target:
public void iscsiBondExists ( ) { org.junit.jupiter.api.Assertions.assertEquals ( ValidationResult.VALID , validator.isIscsiBondExist ( new org.ovirt.engine.core.common.businessentities.IscsiBond ( ) ) ) ; }
Source:
public void mockCluster ( org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setCompatibilityVersion ( version ) ; org.mockito.Mockito.when ( clusterDao.get ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( cluster ) ; }

Target:
public void mockCluster ( org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setCompatibilityVersion ( version ) ; org.mockito.Mockito.when ( clusterDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( cluster ) ; }
Source:
private void onFinish ( org.ovirt.engine.core.compat.Guid cmdId ) { getCommand ( ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; getCommand ( ) . endAction ( ) ; }
Source:
public void canNotDoWithoutPinnedHost ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setMigrationSupport ( MigrationSupport.MIGRATABLE ) ; vm.setDedicatedVmForVdsList ( new java.util.ArrayList < > ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_PINNED_TO_HOST ) ; }

Target:
public void canNotDoWithoutPinnedHost ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setMigrationSupport ( MigrationSupport.MIGRATABLE ) ; vm.setDedicatedVmForVdsList ( new java.util.ArrayList < > ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_PINNED_TO_HOST ) ; }
Source:
public void testGetConnectionUrl2 ( ) throws java.net.MalformedURLException { final org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.net.URL > actual = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.getConnectionUrl ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.HOSTNAME , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.PORT , null , false ) ; final java.lang.String expectedUrl = java.lang.String.format ( "http://%s:%d" , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.HOSTNAME , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.PORT ) ; org.junit.Assert.assertThat ( actual.getFirst ( ) , org.hamcrest.Matchers.is ( expectedUrl ) ) ; org.junit.Assert.assertThat ( actual.getSecond ( ) , org.hamcrest.Matchers.is ( new java.net.URL ( expectedUrl ) ) ) ; }

Target:
public void testGetConnectionUrl2 ( ) throws java.net.MalformedURLException { final org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.net.URL > actual = org.ovirt.engine.core.vdsbroker.HttpUtils.getConnectionUrl ( org.ovirt.engine.core.vdsbroker.HttpUtilsTest.HOSTNAME , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.PORT , null , false ) ; final java.lang.String expectedUrl = java.lang.String.format ( "http://%s:%d" , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.HOSTNAME , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.PORT ) ; org.junit.Assert.assertThat ( actual.getFirst ( ) , org.hamcrest.Matchers.is ( expectedUrl ) ) ; org.junit.Assert.assertThat ( actual.getSecond ( ) , org.hamcrest.Matchers.is ( new java.net.URL ( expectedUrl ) ) ) ; }
Source:
public void testCheckAddEditValidationsFailOnParameters ( ) { params.getClusterPolicy ( ) . getParameterMap ( ) . put ( "fail?" , "sure, fail!" ) ; org.junit.Assert.assertFalse ( command.checkAddEditValidations ( ) ) ; }

Target:
public void testCheckAddEditValidationsFailOnParameters ( ) { params.getClusterPolicy ( ) . getParameterMap ( ) . put ( "fail?" , "sure, fail!" ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.checkAddEditValidations ( ) ) ; }
Source:
public static java.security.KeyStore getTrustStore ( ) { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils._getKeyStore ( org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststoreType , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststoreFile , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststorePassword.getPassword ( ) ) ; }

Target:
public static java.security.KeyStore getTrustStore ( ) { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.getKeyStore ( org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststoreType , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststoreFile , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststorePassword.getPassword ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask concreteCreateTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return coCoAsyncTaskHelper.concreteCreateTask ( taskId , command , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.ActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return coCoAsyncTaskHelper.createTask ( taskId , command , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }
Source:
private boolean canDoSnapshot ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( ! ( isLiveSnapshotEnabled ( ) ) ) && ( ! ( org.ovirt.engine.core.bll.ImagesHandler.isVmDown ( vm ) ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_DATA_CENTER_VERSION_DOESNT_SUPPORT_LIVE_SNAPSHOT ) ; } return true ; }

Target:
private boolean canDoSnapshot ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( ! ( isLiveSnapshotEnabled ( ) ) ) && ( ! ( vm.isDown ( ) ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_DATA_CENTER_VERSION_DOESNT_SUPPORT_LIVE_SNAPSHOT ) ; } return true ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions = ( ( java.util.HashMap < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.queries.CommandVersionsInfo > ) ( source ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsCommandCompatible ( vdcActionType , cluster , dc ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions = ( ( java.util.HashMap < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.queries.CommandVersionsInfo > ) ( source ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isCommandCompatible ( vdcActionType , cluster , dc ) ; }
Source:
public void setDescription ( java.lang.String value ) { this . description = value ; }

Target:
public void setDescription ( java.lang.String value ) { this . description = ( value == null ) ? "" : value ; }
Source:
public void setInfo ( java.lang.String value ) { setinfo ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Info" ) ) ; }

Target:
public void setInfo ( java.lang.String value ) { setinfo ( value ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Info" ) ) ; }
Source:
public java.lang.Integer call ( ) throws java.lang.Exception { return httpclient.executeMethod ( putMethod ) ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getCreatedTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.downloadImageFromStream ; }
Source:
protected void addStorageDomainStatusIllegalMessage ( ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; addCanDoActionMessageVariable ( "status" , getStorageDomainStatus ( ) ) ; }

Target:
protected void addStorageDomainStatusIllegalMessage ( ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; addCanDoActionMessageVariable ( "status" , getStorageDomainStatus ( ) ) ; }
Source:
public java.lang.Boolean getIsEmpty ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetIsVdsGroupEmpty" , org.ovirt.engine.core.dao.VdsGroupDaoImpl.BooleanRowMapper.instance , parameterSource ) ; }

Target:
public java.lang.Boolean getIsEmpty ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetIsClusterEmpty" , org.ovirt.engine.core.dao.ClusterDaoImpl.BooleanRowMapper.instance , parameterSource ) ; }
Source:
public void Rollback ( ) { log.errorFormat ( "Command {1} Rollbacked" , getCommandName ( ) ) ; }

Target:
public void rollback ( ) { log.errorFormat ( "Command {1} Rollbacked" , getCommandName ( ) ) ; }
Source:
public void setname ( java.lang.String value ) { this . name = value ; }

Target:
public void setDepartment ( java.lang.String value ) { department = value ; }
Source:
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 ; }

Target:
protected boolean updateBrickServerAndInterfaceNames ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , boolean addValidationMessage ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : bricks ) { if ( ! ( updateBrickServerAndInterfaceName ( brick , addValidationMessage ) ) ) { return false ; } } return true ; }
Source:
public boolean getRefreshStatistics ( ) { return ( refreshIteration ) == 0 ; }

Target:
protected boolean isTimeToRefreshStatistics ( ) { return ( refreshIteration ) == 0 ; }
Source:
public boolean storageDomainRemoved ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return true ; }

Target:
public boolean storageDomainRemoved ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return true ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( true ) ; model.setIsMyGroupsSelected ( false ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryoneOrMyGroups ( true , false ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setSearchType ( AdSearchType.EVERYONE ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryoneOrMyGroups ( true , false ) ; getView ( ) . userTypeChanged ( UserOrGroup.User , false ) ; model.setItems ( null ) ; }
Source:
private org.ovirt.engine.api.model.Step getStepById ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) ; org.ovirt.engine.api.model.Step step = performGet ( VdcQueryType.GetStepByStepId , params ) ; return step ; }

Target:
private org.ovirt.engine.api.model.Step getStepById ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) ; org.ovirt.engine.api.model.Step step = performGet ( VdcQueryType.GetStepWithSubjectEntitiesByStepId , params ) ; return step ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VM > Cast ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) ; return vms ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VM > cast ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) ; return vms ; }
Source:
public void getUsbTypeDisabled ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; assert ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getUsbType ( usbPolicy ) ) == null ; }

Target:
public void getUsbTypeDisabled ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertNull ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getUsbType ( usbPolicy ) ) ; }
Source:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getmem_size_mb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getMemSizeMb ( ) ) ) + " MB" ; }
Source:
public void testGetAllWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private void doInit ( org.ovirt.engineextensions.aaa.ldap.ExtMap input , org.ovirt.engineextensions.aaa.ldap.ExtMap output ) throws java.lang.Exception { try { ensureFramework ( input ) ; } catch ( java.lang.Exception e ) { org.ovirt.engineextensions.aaa.ldap.AuthnExtension.log.debug ( "Ignoring Exception" , e ) ; } }

Target:
private void doInit ( org.ovirt.engine.api.extensions.ExtMap input , org.ovirt.engine.api.extensions.ExtMap output ) throws java.lang.Exception { try { ensureFramework ( input ) ; } catch ( java.lang.Exception e ) { org.ovirt.engineextensions.aaa.ldap.AuthnExtension.log.debug ( "Ignoring Exception" , e ) ; } }
Source:
public org.ovirt.sdk.ruby.RubyName getBaseTypeName ( ) { return buildName ( org.ovirt.sdk.ruby.RubyNames.TYPE_NAME , null , org.ovirt.sdk.ruby.RubyNames.TYPES_DIR ) ; }

Target:
public org.ovirt.sdk.ruby.RubyName getBaseStructName ( ) { return buildName ( org.ovirt.sdk.ruby.RubyNames.STRUCT_NAME , null , org.ovirt.sdk.ruby.RubyNames.TYPES_DIR ) ; }
Source:
public boolean isOlderThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return ( getVersion ( ) . compareTo ( os.getVersion ( ) ) ) < 0 ; }

Target:
public boolean isNewerThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return getVersion ( ) . greater ( os.getVersion ( ) ) ; }
Source:
protected boolean validateInputs ( ) { return validate ( getParameters ( ) ) ; }

Target:
protected boolean validateInputs ( ) { return validateObject ( getParameters ( ) ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.common.businessentities.tags result = dao.get ( existing.gettag_id ( ) ) ; org.junit.Assert.assertEquals ( existing , result ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.common.businessentities.Tags result = dao.get ( existing.gettag_id ( ) ) ; org.junit.Assert.assertEquals ( existing , result ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public void cantDowngradeIfImpliesFormatDowngrading ( ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , StorageType.UNKNOWN ) ; setAttachedDomains ( sd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DECREASING_COMPATIBILITY_VERSION_CAUSES_STORAGE_FORMAT_DOWNGRADING ) ; }

Target:
public void cantDowngradeIfImpliesFormatDowngrading ( ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , StorageType.UNKNOWN ) ; setAttachedDomains ( sd ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DECREASING_COMPATIBILITY_VERSION_CAUSES_STORAGE_FORMAT_DOWNGRADING ) ; }
Source:
public final void removeSessionOnLogout ( java.lang.String sessionId ) { removeSessionImpl ( sessionId , Acct.ReportReason.PRINCIPAL_LOGOUT , "Prinicial %1$s has performed logout" , getPrincipalName ( sessionId ) ) ; }

Target:
public void setProfile ( java.lang.String sessionId , org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PROFILE_PARAMETER_NAME , profile ) ; }
Source:
public int getCpuOverCommitDurationMinutes ( ) { return this . cpuOverCommitDurationMinutes ; }

Target:
public boolean isDisablePowerManagementPolicy ( ) { return mVdsStatic.isDisablePowerManagementPolicy ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.QuotaStorage , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.quotaStorageSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.QuotaStorage , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.quota.SubTabQuotaStoragePresenter.constants.quotaStorageSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public static org.ovirt.engine.api.model.VmType map ( org.ovirt.engine.api.model.VmType type , org.ovirt.engine.api.model.VmType incoming ) { switch ( type ) { case DESKTOP : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.VmType ; case SERVER : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.VmType ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.VmType map ( org.ovirt.engine.api.model.VmType type , org.ovirt.engine.api.model.VmType incoming ) { switch ( type ) { case Desktop : return org.ovirt.engine.api.model.VmType.DESKTOP ; case Server : return org.ovirt.engine.api.model.VmType.SERVER ; default : return null ; } }
Source:
public void setAllowClusterWithVirtGlusterEnabled ( boolean value ) { allowClusterWithVirtGlusterEnabled = value ; if ( ( allowClusterWithVirtGlusterEnabled ) != value ) { allowClusterWithVirtGlusterEnabled = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "AllowClusterWithVirtGlusterEnabled" ) ) ; } }

Target:
public void setAllowClusterWithVirtGlusterEnabled ( boolean value ) { allowClusterWithVirtGlusterEnabled = value ; if ( ( allowClusterWithVirtGlusterEnabled ) != value ) { allowClusterWithVirtGlusterEnabled = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AllowClusterWithVirtGlusterEnabled" ) ) ; } }
Source:
public void setUpdateRngDevice ( boolean updateRngDevice ) { this . updateRngDevice = updateRngDevice ; }

Target:
public void setUpdateWatchdog ( boolean updateWatchdog ) { this . watchdog.setUpdate ( updateWatchdog ) ; }
Source:
private static org.ovirt.engine.api.model.DetailedLink createLink ( java.lang.String rel , java.lang.String baseUri ) { return org.ovirt.engine.api.utils.LinkHelper.createLink ( baseUri , rel , LinkFlags.NONE ) ; }

Target:
private static org.ovirt.engine.api.model.DetailedLink createLink ( java.lang.String rel , java.lang.String baseUri ) { return org.ovirt.engine.api.utils.LinkCreator.createLink ( baseUri , rel , LinkFlags.NONE ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , snapshotStatus , SnapshotType.ACTIVE , vm , false , memoryVolume , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , java.lang.String memoryVolume , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disks , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , snapshotStatus , SnapshotType.ACTIVE , vm , false , memoryVolume , disks , compensationContext ) ; }
Source:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( session ) ; }

Target:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.CorrelationIdTracker.clean ( ) ; org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( session ) ; }
Source:
private org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters createActivateDeactivateParameters ( org.ovirt.engine.core.common.businessentities.network.VmNic nic , org.ovirt.engine.core.common.action.PlugAction plugAction ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters parameters = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( nic , plugAction ) ; parameters.setVmId ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getParameters ( ) . getVmId ( ) ) ; return parameters ; }

Target:
protected boolean activateOrDeactivateExistingNic ( org.ovirt.engine.core.common.businessentities.network.VmNic nic , org.ovirt.engine.core.common.action.PlugAction plugAction ) { return activateOrDeactivateNic ( nic , plugAction , false ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.VM ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.VM ) ( source ) ) : null ; }
Source:
protected void setForeignMenuData ( org.ovirt.engine.ui.uicommonweb.restapi.HasForeignMenuData nativeImpl ) { nativeImpl.setEngineHost ( Window.Location.getHost ( ) ) ; nativeImpl.setVmId ( getEntity ( ) . getId ( ) ) ; nativeImpl.setAdmin ( org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoggedInUser ( ) . isAdmin ( ) ) ; }

Target:
public void cleanup ( ) { cleanupEvents ( getErrorEvent ( ) ) ; super . cleanup ( ) ; }
Source:
public void onUnload ( ) { super . onUnload ( ) ; contextMenuHandlerRegistration.removeHandler ( ) ; }

Target:
public void onUnload ( ) { super . onUnload ( ) ; if ( ! ( dragEnabled ) ) { return ; } contextMenuHandlerRegistration.removeHandler ( ) ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + ( getDocumentationBasePath ( ) ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ; }

Target:
public java.lang.String getDocumentationLibURL ( ) { return ( ( getDocumentationBaseURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCUMENTATION_LIB_PATH ) ; }
Source:
public void testValidateImageNotActiveFalse ( ) { org.mockito.Mockito.when ( diskImageDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ) ; org.junit.Assert.assertFalse ( "validation should succeed" , cmd.validateImageNotActive ( ) ) ; }

Target:
public void testValidateSnapshotNotActiveFalse ( ) { mockSnapshot ( SnapshotType.ACTIVE ) ; org.junit.Assert.assertFalse ( "validation should fail" , cmd.validateSnapshotType ( ) ) ; }
Source:
public void setGuestLastLogoutTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLogoutTime ( value ) ; }

Target:
public void setHibernationVolHandle ( java.lang.String value ) { this . hibernationVolHandle = value ; }
Source:
private void mockVdsCommandSetVolumeDescription ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue ret = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; org.mockito.Mockito.doReturn ( ret ) . when ( command ) . runVdsCommand ( org.mockito.Matchers.eq ( VDSCommandType.SetVolumeDescription ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.SetVolumeDescriptionVDSCommandParameters.class ) ) ; }

Target:
private void mockVdsCommandSetVolumeDescription ( ) { org.mockito.Mockito.doNothing ( ) . when ( command ) . setVolumeDescription ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageDomain.class ) ) ; }
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.IsUpdateValid ( source , destination , status ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return source.isManagedHostedEngine ( ) ? org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.isHostedEngineUpdateValid ( source , destination ) : org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.IsUpdateValid ( source , destination , status ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getvm_count ( ) ) > ( vmCountTemp * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( p ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getVmCount ( ) ) > ( vmCountTemp * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( p ) ) ) ; }
Source:
public void testAdjustLegacySecureChannelsWithEmptyChannels ( ) { java.lang.String legacyChannels = "" ; java.lang.String correctChannels = "" ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }

Target:
public void testAdjustLegacySecureChannelsWithEmptyChannels ( ) { java.lang.String legacyChannels = "" ; java.lang.String correctChannels = "" ; org.junit.jupiter.api.Assertions.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }
Source:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmStatic ( ) ; }

Target:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; memoryStates = org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmStatic ( ) ; }
Source:
public static java.lang.String migrationMethodtoString ( org.ovirt.engine.core.common.businessentities.MigrationMethod method ) { if ( method == ( org.ovirt.engine.core.common.businessentities.MigrationMethod.OFFLINE ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.offline ; } else if ( method == ( org.ovirt.engine.core.common.businessentities.MigrationMethod.ONLINE ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.online ; } else { return "" ; } }

Target:
public static java.lang.String migrationMethodtoString ( org.ovirt.engine.core.common.businessentities.MigrationMethod method ) { switch ( method ) { case OFFLINE : return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.offline ; case ONLINE : return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.online ; default : return "" ; } }
Source:
protected void setUpGetVmHostDevicesExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetExtendedVmHostDevicesByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.AbstractBackendHostDevicesResourceTest.VM_ID } , getHostDeviceCollection ( ) ) ; }

Target:
protected void setUpGetVmHostDevicesExpectations ( ) { setUpEntityQueryExpectations ( QueryType.GetExtendedVmHostDevicesByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.AbstractBackendHostDevicesResourceTest.VM_ID } , getHostDeviceCollection ( ) ) ; }
Source:
protected void removeTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget ) { tabContainer.getElement ( ) . removeChild ( tabWidget.getElement ( ) ) ; }

Target:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { if ( ( uiHandlers ) != null ) { uiHandlers.removeTabWidget ( tabWidget ) ; } }
Source:
public javax.ws.rs.core.Response stop ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.StopVm , new org.ovirt.engine.core.common.action.StopVmParameters ( guid , org.ovirt.engine.core.common.action.StopVmTypeEnum.NORMAL ) , action ) ; }

Target:
public javax.ws.rs.core.Response stop ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.StopVm , new org.ovirt.engine.core.common.action.StopVmParameters ( guid , org.ovirt.engine.core.common.action.StopVmTypeEnum.NORMAL ) , action ) ; }
Source:
public boolean getLiveMergeSupport ( ) { return vdsDynamic.getLiveMergeSupport ( ) ; }

Target:
public java.lang.String getCertificateSubject ( ) { return vdsStatic.getCertificateSubject ( ) ; }
Source:
private int getBlockSparseInitSizeInGB ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.InitStorageSparseSizeInGB ) . intValue ( ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( "foo" , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResourceTest.CLUSTER_ID , "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }