auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getRawValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getCluster ( ) . getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getRawValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getCluster ( ) . getStatus ( ) ; }
Source:
public org.ovirt.engine.api.model.Quotas list ( ) { org.ovirt.engine.core.common.queries.GetQuotaByStoragePoolIdQueryParameters params = new org.ovirt.engine.core.common.queries.GetQuotaByStoragePoolIdQueryParameters ( ) ; params.setStoragePoolId ( dataCenterId ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetQuotaByStoragePoolId , params ) ) ; }

Target:
public org.ovirt.engine.api.model.Quotas list ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetQuotaByStoragePoolId , params ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment createNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network networkA ) { return createNetworkAttachment ( networkA , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment createNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return createNetworkAttachment ( network , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > getGroups ( ) { java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > result = new java.util.ArrayList < org.ovirt.engine.core.aaa.DirectoryGroup > ( groups.size ( ) ) ; result.addAll ( groups ) ; return java.util.Collections.unmodifiableList ( result ) ; }

Target:
public java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > getGroups ( ) { if ( ( groups ) == null ) { groups = new java.util.ArrayList < org.ovirt.engine.core.aaa.DirectoryGroup > ( ) ; } return groups ; }
Source:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.test ( storageDomain ) ) ; }
Source:
protected java.lang.String getDriveHostResource ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { return java.lang.String.format ( "ovf:disk/%s" , image.getImageId ( ) ) ; }

Target:
protected java.lang.String getDriveHostResource ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { return java.lang.String.format ( "ovf:disk/%s" , image.getId ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return java.lang.String.valueOf ( object.getDiskMap ( ) . size ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getDiskMap ( ) . size ( ) ) ; }
Source:
public void testGetToken ( ) { org.junit.Assert.assertEquals ( tokenProvider.getToken ( ) , org.ovirt.engine.core.bll.provider.network.openstack.ExternalNetworkTokenProviderTest.TOKEN_ID ) ; org.mockito.Mockito.verify ( mockTokensResource ) . authenticate ( usernamePasswordCaptor.capture ( ) ) ; verifyUsernamePassword ( ) ; }

Target:
public void testGetToken ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.bll.provider.network.openstack.ExternalNetworkTokenProviderTest.TOKEN_ID , tokenProvider.getToken ( ) ) ; org.mockito.Mockito.verify ( mockTokensResource ) . authenticate ( usernamePasswordCaptor.capture ( ) ) ; verifyUsernamePassword ( ) ; }
Source:
public void setKsmState ( java.lang.Boolean value ) { this . ksmState = value ; }

Target:
public void setKsmState ( java.lang.Boolean value ) { ksmState = value ; }
Source:
public org.ovirt.engine.core.compat.NGuid getstorage_pool_id ( ) { return storagePool ; }

Target:
public org.ovirt.engine.core.compat.NGuid getStoragePoolId ( ) { return storagePool ; }
Source:
public void testInvalidToken3 ( ) throws java.lang.Exception { java.lang.String incoming = "***Q:MUTLI-STRING str1\n" ; org.ovirt.otopi.dialog.MachineDialogParser parser = getParser ( incoming , new java.io.ByteArrayOutputStream ( ) ) ; org.ovirt.otopi.dialog.Event.Base bevent ; bevent = parser.nextEvent ( ) ; }

Target:
public void testInvalidToken3 ( ) throws java.lang.Exception { java.lang.String incoming = "***Q:MUTLI-STRING str1\n" ; org.ovirt.otopi.dialog.MachineDialogParser parser = getParser ( incoming , new java.io.ByteArrayOutputStream ( ) ) ; parser.nextEvent ( ) ; }
Source:
public void createPool ( org.ovirt.engine.core.bll.network.macpool.MacPool macPool ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = writeLockResource ( ) ) { createPoolInternal ( macPool ) ; } }

Target:
public void createPool ( org.ovirt.engine.core.bll.network.macpool.MacPool macPool ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = writeLockResource ( ) ) { createPoolInternal ( macPool , false ) ; } }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( getid ( ) ) == null ? 0 : getid ( ) . hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( getId ( ) ) == null ? 0 : getId ( ) . hashCode ( ) ) ; return result ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.aaa.ProfileEntry ) ( object ) ) . toString ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.aaa.ProfileEntry object ) { return object.toString ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task , org.ovirt.engine.core.bll.job.ExecutionContext context ) { return coCoAsyncTaskHelper.endAction ( task , context ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task ) { return coCoAsyncTaskHelper.endAction ( task ) ; }
Source:
public void hasNoStorageDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void hasNoStorageDomains ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
private void validateNetworkQos ( ) { validateQosNotPartiallyConfigured ( ) ; validateQosCommitment ( ) ; }

Target:
private void validateNetworkQos ( ) { validateQosNotPartiallyConfigured ( ) ; }
Source:
private void refreshHostStorage ( org.ovirt.engine.core.compat.Guid hostId ) { getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , false , null ) ) ; }

Target:
private void refreshHostStorage ( org.ovirt.engine.core.compat.Guid hostId ) { getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , false , null , false ) ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel createActionPanel ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel < org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel > ( modelProvider , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel createActionPanel ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel < org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel > ( modelProvider , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }
Source:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.deleteVolume ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.deleteVolume ; }
Source:
public void testGetByOperatingSystemIdNonExisting ( ) { final org.ovirt.engine.core.common.businessentities.VmIconDefault vmIconDefault = prepareDao ( ) . getByOperatingSystemId ( ( - 1 ) ) ; org.junit.Assert.assertNull ( vmIconDefault ) ; }

Target:
public void testGetByOperatingSystemIdNonExisting ( ) { final org.ovirt.engine.core.common.businessentities.VmIconDefault vmIconDefault = dao.getByOperatingSystemId ( ( - 1 ) ) ; org.junit.Assert.assertNull ( vmIconDefault ) ; }
Source:
protected void initTableColumns ( ) { hostsTable.addEntityModelColumn ( new org.ovirt.engine.ui.common.widget.table.column.AbstractEntityModelTextColumn < java.lang.String > ( ) { @ java.lang.Override public java.lang.String getText ( java.lang.String hostAddress ) { return hostAddress ; } } , org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.DetachGlusterHostsPopupView.constants.detachGlusterHostsHostAddress ( ) ) ; }

Target:
protected void initTableColumns ( ) { hostsTable.addColumn ( new org.ovirt.engine.ui.common.widget.table.column.AbstractEntityModelTextColumn < java.lang.String > ( ) { @ java.lang.Override public java.lang.String getText ( java.lang.String hostAddress ) { return hostAddress ; } } , org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.DetachGlusterHostsPopupView.constants.detachGlusterHostsHostAddress ( ) ) ; }
Source:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent.fire ( eventBus ) ; org.ovirt.engine.ui.common.uicommon.model.ModelInitializedEvent.fire ( eventBus ) ; }

Target:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent.fire ( eventBus ) ; }
Source:
public void Error ( java.lang.String message , java.lang.RuntimeException ex ) { org.ovirt.engine.ui.common.uicommon.LoggerImpl.logger.log ( java.util.logging.Level.SEVERE , message , ex ) ; }

Target:
public void error ( java.lang.String message , java.lang.RuntimeException ex ) { org.ovirt.engine.ui.common.uicommon.LoggerImpl.logger.log ( java.util.logging.Level.SEVERE , message , ex ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
protected org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand spyCommand ( ) { return new org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand ( new org.ovirt.engine.core.common.action.TransferDiskImageParameters ( ) , null ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand < org.ovirt.engine.core.common.action.TransferDiskImageParameters > spyCommand ( ) { return new org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand ( new org.ovirt.engine.core.common.action.TransferDiskImageParameters ( ) , null ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser lookupUserById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.DbUser.class , VdcQueryType.GetDbUserByUserId , new org.ovirt.engine.core.common.queries.GetDbUserByUserIdParameters ( id ) , id.toString ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser lookupUserById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.DbUser.class , VdcQueryType.GetDbUserByUserId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates , boolean clearResourceId ) { return imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getCommandId ( ) , clearResourceId ) ; }

Target:
protected void updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates , boolean clearResourceId ) { imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getCommandId ( ) , clearResourceId ) ; }
Source:
private static void copyUnchangedStoragePoolProperties ( org.ovirt.engine.core.common.businessentities.storage_pool newStoragePool , org.ovirt.engine.core.common.businessentities.storage_pool oldStoragePool ) { newStoragePool.setStoragePoolFormatType ( oldStoragePool.getStoragePoolFormatType ( ) ) ; }

Target:
private static void copyUnchangedStoragePoolProperties ( org.ovirt.engine.core.common.businessentities.StoragePool newStoragePool , org.ovirt.engine.core.common.businessentities.StoragePool oldStoragePool ) { newStoragePool.setStoragePoolFormatType ( oldStoragePool.getStoragePoolFormatType ( ) ) ; }
Source:
public static boolean OpEquality ( org.ovirt.engine.core.compat.Version v1 , org.ovirt.engine.core.compat.Version v2 ) { if ( v1 == null ) return v2 == null ? true : false ; else return v1.equals ( v2 ) ; }

Target:
public static boolean OpEquality ( org.ovirt.engine.core.compat.Version v1 , org.ovirt.engine.core.compat.Version v2 ) { if ( v1 == null ) { return v2 == null ; } return v1.equals ( v2 ) ; }
Source:
private static void fillPasswordsMap ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler.passwordPerDomain = org.ovirt.engine.core.common.config.Config.< org.ovirt.engine.core.dal.dbbroker.generic.DomainsPasswordMap > GetValue ( ConfigValues.AdUserPassword ) ; }

Target:
private static void fillPasswordsMap ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler.passwordPerDomain = org.ovirt.engine.core.common.config.Config.< org.ovirt.engine.core.dal.dbbroker.generic.DomainsPasswordMap > getValue ( ConfigValues.AdUserPassword ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { org.ovirt.engine.core.common.action.VnicProfileParameters parameters = new org.ovirt.engine.core.common.action.VnicProfileParameters ( getProfile ( ) ) ; parameters.setPublicUse ( ( ( java.lang.Boolean ) ( getPublicUse ( ) . getEntity ( ) ) ) ) ; return parameters ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { org.ovirt.engine.core.common.action.VnicProfileParameters parameters = new org.ovirt.engine.core.common.action.VnicProfileParameters ( getProfile ( ) ) ; parameters.setPublicUse ( getPublicUse ( ) . getEntity ( ) ) ; return parameters ; }
Source:
public void poolHasDefaultCluster ( ) { org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.DEFAULT_VDS_GROUP_ID ) ; addDefaultClusterToPool ( ) ; storagePoolWithLocalFS ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS.toString ( ) ) ; }

Target:
public void poolHasDefaultCluster ( ) { org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.DEFAULT_VDS_GROUP_ID ) ; addDefaultClusterToPool ( ) ; storagePoolWithLocalFS ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; }
Source:
public java.util.Collection < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = java.util.Collections.emptyList ( ) ; } return new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( groupIds ) ; }

Target:
public java.util.Collection < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = java.util.Collections.emptyList ( ) ; } return new java.util.ArrayList ( groupIds ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.Snapshot prepareSnapshotConfigWithoutImageSingleImage ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot , org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.utils.ovf.OvfManager ovfManager ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( snapshot , imageId , null , ovfManager ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot prepareSnapshotConfigWithoutImageSingleImage ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot , org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.utils.ovf.OvfManager ovfManager ) { return prepareSnapshotConfigWithAlternateImage ( snapshot , imageId , null , ovfManager ) ; }
Source:
protected boolean canDoAction ( ) { return ( canDetachStorageDomainWithVmsAndDisks ( org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.getStorageDomain ( ) ) ) && ( canDetachDomain ( org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.getParameters ( ) . getDestroyingPool ( ) , org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.getParameters ( ) . getRemoveLast ( ) , org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.isInternalExecution ( ) ) ) ; }

Target:
protected boolean validate ( ) { return ( canDetachStorageDomainWithVmsAndDisks ( org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.getStorageDomain ( ) ) ) && ( canDetachDomain ( org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.getParameters ( ) . getDestroyingPool ( ) , org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.getParameters ( ) . getRemoveLast ( ) , org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.isInternalExecution ( ) ) ) ; }
Source:
public void setTooltipFallback ( com.google.gwt.safehtml.shared.SafeHtml tooltipFallback ) { }

Target:
public void setTooltipFallback ( com.google.gwt.safehtml.shared.SafeHtml tooltipFallback ) { this . tooltipFallback = tooltipFallback ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.GetVmTemplatesDisksParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.WatchdogParameters parameters = new org.ovirt.engine.core.common.action.WatchdogParameters ( ) ; parameters.setId ( templateId ) ; parameters.setVm ( true ) ; return performAction ( VdcActionType.RemoveWatchdog , parameters ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.WatchdogParameters parameters = new org.ovirt.engine.core.common.action.WatchdogParameters ( ) ; parameters.setId ( templateId ) ; parameters.setVm ( false ) ; return performAction ( VdcActionType.RemoveWatchdog , parameters ) ; }
Source:
public void setavailable_disk_size ( java.lang.Integer value ) { getStorageDynamicData ( ) . setavailable_disk_size ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "available_disk_size" ) ) ; UpdateTotalDiskSize ( ) ; UpdateOverCommitPercent ( ) ; }

Target:
public void setavailable_disk_size ( java.lang.Integer value ) { getStorageDynamicData ( ) . setavailable_disk_size ( value ) ; UpdateTotalDiskSize ( ) ; UpdateOverCommitPercent ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel object ) { driver.edit ( object ) ; updateMacPool ( object.getMacPoolModel ( ) ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel object ) { driver.edit ( object ) ; }
Source:
public org.ovirt.engine.api.model.StorageDomain get ( ) { org.ovirt.engine.api.model.StorageDomain storageDomain = performGet ( VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( guid ) ) ; return addLinks ( storageDomain , org.ovirt.engine.api.restapi.resource.BackendStorageDomainResource.getLinksToExclude ( storageDomain ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageDomain get ( ) { org.ovirt.engine.api.model.StorageDomain storageDomain = performGet ( VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return addLinks ( storageDomain , org.ovirt.engine.api.restapi.resource.BackendStorageDomainResource.getLinksToExclude ( storageDomain ) ) ; }
Source:
private org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.GetVmConfigurationBySnapshotQueryParams > setupQueryBySnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.common.queries.GetVmConfigurationBySnapshotQueryParams queryParams = getQueryParameters ( ) ; org.mockito.Mockito.when ( queryParams.getSnapshotId ( ) ) . thenReturn ( snapshotId ) ; org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.GetVmConfigurationBySnapshotQueryParams > query = getQuery ( ) ; return query ; }

Target:
private org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > setupQueryBySnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.common.queries.IdQueryParameters queryParams = getQueryParameters ( ) ; org.mockito.Mockito.when ( queryParams.getId ( ) ) . thenReturn ( snapshotId ) ; org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > query = getQuery ( ) ; return query ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; return updateEntity ( updates ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransfer ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; return updateEntity ( updates ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStoragePoolByDatacenterNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.GetStoragePoolByDatacenterNameQuery.getDbFacade ( ) . getStoragePoolDao ( ) . getByName ( org.ovirt.engine.core.bll.storage.GetStoragePoolByDatacenterNameQuery.getParameters ( ) . getName ( ) , false ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStoragePoolByDatacenterNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.GetStoragePoolByDatacenterNameQuery.getDbFacade ( ) . getStoragePoolDao ( ) . getByName ( org.ovirt.engine.core.bll.storage.GetStoragePoolByDatacenterNameQuery.getParameters ( ) . getName ( ) , true ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { queryParams.setFiltered ( isFiltered ( ) ) ; return backend.RunQuery ( queryType , sessionize ( queryParams ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }
Source:
private static java.lang.String getHugePageSize ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { org.ovirt.engine.core.common.utils.customprop.SimpleCustomPropertiesUtil util = org.ovirt.engine.core.common.utils.customprop.SimpleCustomPropertiesUtil.getInstance ( ) ; java.util.Map < java.lang.String , java.lang.String > customProperties = util.convertProperties ( vm.getCustomProperties ( ) ) ; return customProperties.get ( "hugepages" ) ; }

Target:
public static java.lang.String getHugePageSize ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { org.ovirt.engine.core.common.utils.customprop.SimpleCustomPropertiesUtil util = org.ovirt.engine.core.common.utils.customprop.SimpleCustomPropertiesUtil.getInstance ( ) ; java.util.Map < java.lang.String , java.lang.String > customProperties = util.convertProperties ( vm.getCustomProperties ( ) ) ; return customProperties.get ( "hugepages" ) ; }
Source:
public static boolean isImagesExists ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > images , org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid storageDomainId ) { return org.ovirt.engine.core.bll.ImagesHandler.isImagesExists ( images , storagePoolId , storageDomainId , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( ) ) ; }

Target:
public static boolean isImagesExists ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > images , org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.ImagesHandler.isImagesExists ( images , storagePoolId , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( ) ) ; }
Source:
protected void configure ( ) { bind ( org.ovirt.engine.ui.common.utils.ConsoleUtils.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.common.utils.ConsoleManager.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
protected void configure ( ) { super . configure ( ) ; bind ( org.ovirt.engine.ui.common.utils.ConsoleUtils.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.common.utils.ConsoleManager.class ) . in ( com.google.inject.Singleton.class ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getName ( ) ) ) != null ) { addErrorMessages ( EngineMessage.VAR__ACTION__ADD , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getName ( ) ) ) != null ) { addErrorMessages ( EngineMessage.VAR__ACTION__ADD , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }
Source:
public void updateVisibility ( ) { super . updateVisibility ( ) ; messageLabel.setVisible ( false ) ; publicUseEditor.setVisible ( true ) ; }

Target:
public void updateVisibility ( ) { super . updateVisibility ( ) ; messageLabel.setVisible ( false ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered , boolean allUsersWithPermission ) { int appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.ApplicationMode ) ; return getAllForEntity ( id , userID , isFiltered , allUsersWithPermission , appMode ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered , boolean allUsersWithPermission ) { int appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getAllForEntity ( id , userID , isFiltered , allUsersWithPermission , appMode ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__CLUSTER ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__UPDATE ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__UPDATE ) ; }
Source:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT ) ; }

Target:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ; }
Source:
protected void configure ( ) { super . configure ( ) ; bind ( org.ovirt.engine.ui.common.utils.ConsoleUtils.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.common.utils.ConsoleManager.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
protected void configure ( ) { super . configure ( ) ; }
Source:
public void setErrataDetailPanelVisibilty ( boolean visible ) { splitLayoutPanel.setWidgetHidden ( errataDetailPanel , ( ! visible ) ) ; com.google.gwt.core.client.Scheduler.get ( ) . scheduleDeferred ( new com.google.gwt.core.client.Scheduler.ScheduledCommand ( ) { @ java.lang.Override public void execute ( ) { errataTableView.onResize ( ) ; } } ) ; }

Target:
public void setErrataDetailPanelVisibilty ( boolean visible ) { splitLayoutPanel.setWidgetHidden ( errataDetailPanel , ( ! visible ) ) ; com.google.gwt.core.client.Scheduler.get ( ) . scheduleDeferred ( ( ) -> errataTableView.onResize ( ) ) ; }
Source:
private void mockVmDao ( ) { org.mockito.Mockito.when ( vmDao.getAllRunningForVds ( org.mockito.Matchers.eq ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ) ) . thenReturn ( new java.util.LinkedList < > ( ) ) ; org.mockito.Mockito.when ( dbFacade.getVmDao ( ) ) . thenReturn ( vmDao ) ; }

Target:
private void mockVmDao ( ) { org.mockito.Mockito.when ( vmDao.getAllRunningForVds ( org.mockito.Matchers.eq ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ) ) . thenReturn ( new java.util.LinkedList < > ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 2047 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }
Source:
private static java.lang.String getMacAddress ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct ifaceMap ) { java.lang.String macAddress = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignStringValue ( ifaceMap , VdsProperties.VM_INTERFACE_MAC_ADDRESS ) ; return macAddress != null ? macAddress.replace ( '-' , ':' ) : null ; }

Target:
private static java.lang.String getMacAddress ( java.util.Map < java.lang.String , java.lang.Object > ifaceMap ) { java.lang.String macAddress = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignStringValue ( ifaceMap , VdsProperties.VM_INTERFACE_MAC_ADDRESS ) ; return macAddress != null ? macAddress.replace ( '-' , ':' ) : null ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.ExternalOperatingSystem > getOperationSystems ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.OPERATION_SYSTEM_QUERY ) ; return runOperationSystemMethod ( method ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.ExternalOperatingSystem > getOperationSystems ( ) { return runOperationSystemMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.OPERATION_SYSTEM_QUERY ) ; }
Source:
public void update ( T entity ) { org.ovirt.engine.core.dao.DefaultGenericDaoDbFacade.getCallsHandler ( ) . executeModification ( getProcedureNameForUpdate ( ) , createFullParametersMapper ( entity ) ) ; }

Target:
public void update ( T entity ) { update ( entity , getProcedureNameForUpdate ( ) ) ; }
Source:
public void deactivateAndStartProgress ( ) { model.startProgress ( null ) ; deactivate ( new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager.ActivatedListener ( ) { @ java.lang.Override public void activated ( ) { model.stopProgress ( ) ; } } ) ; }

Target:
public void deactivateAndStartProgress ( ) { model.startProgress ( ) ; deactivate ( new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager.ActivatedListener ( ) { @ java.lang.Override public void activated ( ) { model.stopProgress ( ) ; } } ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( existingVds.getVdsName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getVdsName ( ) , result.getVdsName ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( existingVds.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getName ( ) , result.getName ( ) ) ; }
Source:
protected javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return performAction ( task , params , null , false ) ; }

Target:
public javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return performAction ( task , params , null , false ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml treeItem ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , java.lang.String text ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml treeItem ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , java.lang.String text , java.lang.String id ) ;
Source:
public void execute ( ) { getRefreshCommand ( ) . Execute ( ) ; }

Target:
public void execute ( ) { getRefreshCommand ( ) . execute ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setServiceType ( ServiceType.NFS ) ; cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setServiceType ( ServiceType.NFS ) ; cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { memoryHotUnplugSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { memoryHotUnplugSupport = returnValue.getReturnValue ( ) ; }
Source:
public void setEntity ( java.lang.Object value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; } }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; } }
Source:
public void setcluster_id ( org.ovirt.engine.core.compat.Guid value ) { id.setClusterId ( value ) ; }

Target:
public void setClusterId ( org.ovirt.engine.core.compat.Guid value ) { id.setClusterId ( value ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > getDiskInfoList ( ) { return ( diskInfoList ) != null ? diskInfoList : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > getDiskInfoList ( ) { return diskInfoList ; }
Source:
public long getaudit_log_id ( ) { return this . auditLogId ; }

Target:
public long getaudit_log_id ( ) { return auditLogId ; }
Source:
private boolean verifyCanDoActionMessagesContainMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { return command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( message.toString ( ) ) ; }

Target:
private boolean verifyCanDoActionMessagesContainMessage ( org.ovirt.engine.core.common.errors.EngineMessage message ) { return command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( message.toString ( ) ) ; }
Source:
public void setSpiceProxyEnabled ( boolean enabled , java.lang.String reason ) { enableSpiceProxy.setEnabled ( enabled ) ; if ( ! enabled ) { enableSpiceProxy.setTitle ( reason ) ; } }

Target:
public void setSpiceProxyEnabled ( boolean enabled , java.lang.String reason ) { enableSpiceProxy.setEnabled ( enabled ) ; enableSpiceProxy.setTitle ( reason ) ; }
Source:
protected void UpdateCdImage ( ) { updateUserCdImage ( getVm ( ) . getstorage_pool_id ( ) ) ; }

Target:
protected void UpdateCdImage ( ) { updateUserCdImage ( getVm ( ) . getStoragePoolId ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.VmPool doPopulate ( org.ovirt.engine.api.model.VmPool pool , org.ovirt.engine.core.common.businessentities.vm_pools entity ) { return parent.doPopulate ( pool , entity ) ; }

Target:
protected org.ovirt.engine.api.model.VmPool doPopulate ( org.ovirt.engine.api.model.VmPool pool , org.ovirt.engine.api.model.VmPool entity ) { return parent.doPopulate ( pool , entity ) ; }
Source:
private void assertGetAllRelevantQuoatsForStorage ( org.ovirt.engine.core.compat.Guid storageId , int expectedQuotas ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForStorage ( storageId ) ; org.junit.Assert.assertEquals ( "Wrong number of quotas retuend" , expectedQuotas , quotas.size ( ) ) ; }

Target:
private void assertGetAllRelevantQuoatsForStorage ( org.ovirt.engine.core.compat.Guid storageId , int expectedQuotas ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForStorage ( storageId , null , false ) ; org.junit.Assert.assertEquals ( "Wrong number of quotas retuend" , expectedQuotas , quotas.size ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( final org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { return inClusterUpgradeFilterPolicyUnit.filter ( java.util.Arrays.asList ( hosts ) , vm , null , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.scheduling.PerHostMessages.class ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( final org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { return inClusterUpgradeFilterPolicyUnit.filter ( new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) , java.util.Arrays.asList ( hosts ) , vm , null , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.scheduling.PerHostMessages.class ) ) ; }
Source:
public java.lang.String getComment ( ) { if ( ( comment ) == null ) { comment = "" ; } return comment ; }

Target:
public java.lang.String getComment ( ) { return comment ; }
Source:
public void testExecuteQueryWithFilteringLUNsEnabled ( ) { mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1 , true ) ; lunsExpected = java.util.Collections.emptyList ( ) ; internalExecuteQuery ( ) ; }

Target:
public void testExecuteQueryWithFilteringLUNsEnabled ( ) { lunsExpected = java.util.Collections.emptyList ( ) ; internalExecuteQuery ( ) ; }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = null ; jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "DiskDescription" ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"DiskDescription\"}" ) ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = null ; jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "DiskDescription" ) ; org.junit.Assert.assertEquals ( "Should be map of disk alias and disk description" , "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"DiskDescription\"}" , jsonDescription ) ; }
Source:
public static < K , V > org.ovirt.engine.core.bll.tasks.CacheWrapper < K , V > getCacheWrapper ( java.lang.String name ) { return new org.ovirt.engine.core.bll.tasks.MapWrapperImpl < K , V > ( ) ; }

Target:
public static < K , V > org.ovirt.engine.core.bll.tasks.CacheWrapper < K , V > getCacheWrapper ( ) { return new org.ovirt.engine.core.bll.tasks.MapWrapperImpl < K , V > ( ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.aaa.DbUser user , java.lang.String value ) { transitionHandler.handlePlaceTransition ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.aaa.DbUser user , java.lang.String value ) { transitionHandler.handlePlaceTransition ( true ) ; }
Source:
private void clean ( ) { headerBuffer = java.nio.ByteBuffer.allocate ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.BUFFER_SIZE ) ; this . ibuff = null ; this . message = null ; }

Target:
protected void clean ( ) { headerBuffer = java.nio.ByteBuffer.allocate ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.BUFFER_SIZE ) ; this . ibuff = null ; this . message = null ; }
Source:
public void addLDAPServer ( java.net.URI uri ) { if ( uri != null ) { ldapServers.put ( uri , new org.ovirt.engine.core.bll.adbroker.ScorableLDAPServer ( uri ) ) ; } }

Target:
public void addLDAPServer ( java.net.URI uri ) { ldapServers.add ( uri ) ; }
Source:
protected org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > getParameters ( ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > qosParametersBase = new org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > ( ) ; qosParametersBase.setQos ( getQos ( ) ) ; qosParametersBase.setQosId ( getQos ( ) . getId ( ) ) ; return qosParametersBase ; }

Target:
protected org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > getParameters ( ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > qosParametersBase = new org.ovirt.engine.core.common.action.QosParametersBase ( ) ; qosParametersBase.setQos ( getQos ( ) ) ; qosParametersBase.setQosId ( getQos ( ) . getId ( ) ) ; return qosParametersBase ; }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = null ; jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "DiskDescription" ) ; org.junit.Assert.assertEquals ( "Should be map of disk alias and disk description" , "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"DiskDescription\"}" , jsonDescription ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "DiskDescription" ) ; org.junit.Assert.assertEquals ( "Should be map of disk alias and disk description" , "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"DiskDescription\"}" , jsonDescription ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VDS > GetAllRunningVdssInPool ( org.ovirt.engine.core.common.businessentities.storage_pool pool ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllForStoragePoolAndStatus ( pool.getId ( ) , VDSStatus.Up ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VDS > GetAllRunningVdssInPool ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllForStoragePoolAndStatus ( pool.getId ( ) , VDSStatus.Up ) ; }
Source:
private void setUpParentMock ( org.ovirt.engine.api.restapi.resource.BackendHostsResource parent ) { parent.setBackend ( backend ) ; parent.setMappingLocator ( mapperLocator ) ; parent.setValidatorLocator ( validatorLocator ) ; parent.setMessageBundle ( messageBundle ) ; parent.setHttpHeaders ( httpHeaders ) ; }

Target:
private void setUpParentMock ( org.ovirt.engine.api.restapi.resource.BackendHostsResource parent ) { parent.setBackend ( backend ) ; parent.setMappingLocator ( mapperLocator ) ; parent.setMessageBundle ( messageBundle ) ; parent.setHttpHeaders ( httpHeaders ) ; }
Source:
public static java.lang.String translateVdcFault ( org.ovirt.engine.core.common.errors.VdcFault fault ) { return org.ovirt.engine.ui.frontend.Frontend.getVdsmErrorsTranslator ( ) . TranslateErrorTextSingle ( ( ( fault.getError ( ) ) == null ? fault.getMessage ( ) : fault.getError ( ) . toString ( ) ) ) ; }

Target:
public java.lang.String translateVdcFault ( final org.ovirt.engine.core.common.errors.VdcFault fault ) { return getVdsmErrorsTranslator ( ) . TranslateErrorTextSingle ( ( ( fault.getError ( ) ) == null ? fault.getMessage ( ) : fault.getError ( ) . toString ( ) ) ) ; }