auphong2707/dl4se-code-review-dataset huggingface dataset:
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 ( ) ; removeVmStatic ( getParameters ( ) . isRemovePermissions ( ) ) ; removeIcons ( ) ; }

Target:
protected void removeVmFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; removeVmStatic ( getParameters ( ) . isRemovePermissions ( ) ) ; removeIcons ( ) ; }
Source:
protected java.util.List < T > getSelectedItems ( ) { return new java.util.ArrayList < T > ( selectionModel.getSelectedList ( ) ) ; }

Target:
public java.util.List < T > getSelectedItems ( ) { return selectionModel.getSelectedList ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ( ( java.util.Map.Entry < java.lang.String , java.lang.String > ) ( source ) ) . getKey ( ) ; } return "" ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return "" ; }
Source:
private void mockVmsStoragePoolInfo ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = mockStoragePool ( Version.v3_1 ) ; for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { vm.setStoragePoolId ( storagePool.getId ( ) ) ; } }

Target:
private void mockVmsStoragePoolInfo ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = mockStoragePool ( ) ; for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { vm.setStoragePoolId ( storagePool.getId ( ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandAssociatedEntity > getCommandAssociatedEntities ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandsRepository.getCommandsCache ( ) . getCommandAssociatedEntities ( cmdId ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandAssociatedEntity > getCommandAssociatedEntities ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandsRepository.getCommandAssociatedEntities ( cmdId ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase getErrorCommandReturnValue ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setCanDoAction ( false ) ; returnValue.getCanDoActionMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }

Target:
private org.ovirt.engine.core.common.action.VdcReturnValueBase getErrorCommandReturnValue ( org.ovirt.engine.core.common.errors.EngineMessage message ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setCanDoAction ( false ) ; returnValue.getCanDoActionMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }
Source:
private void handleFinalizingFailure ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.error ( "Finalizing failed upload to {}" , getUploadDescription ( ) ) ; setImageStatus ( ImageStatus.ILLEGAL ) ; stopImageTransferSession ( context.entity ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_FAILURE ) ; }

Target:
private void handleFinalizingFailure ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.error ( "Finalizing failed upload to {}" , getUploadDescription ( ) ) ; stopImageTransferSession ( context.entity ) ; setImageStatus ( ImageStatus.ILLEGAL ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_FAILURE ) ; }
Source:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Tags > returnValue ) { allAttachedTags.addAll ( returnValue ) ; ( selectedItemsCounter ) ++ ; if ( ( selectedItemsCounter ) == ( getSelectedItems ( ) . size ( ) ) ) { postGetAttachedTags ( this , model ) ; } }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Tags > returnValue ) { allAttachedTags.addAll ( returnValue ) ; ( selectedItemsCounter ) ++ ; if ( ( selectedItemsCounter ) == ( getSelectedItems ( ) . size ( ) ) ) { postGetAttachedTags ( model ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.LocationInfo buildImageLocationInfo ( org.ovirt.engine.core.compat.Guid domId , org.ovirt.engine.core.compat.Guid imageGroupId , org.ovirt.engine.core.compat.Guid imageId ) { return new org.ovirt.engine.core.common.businessentities.VdsmImageLocationInfo ( domId , imageGroupId , imageId ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.LocationInfo buildImageLocationInfo ( org.ovirt.engine.core.compat.Guid domId , org.ovirt.engine.core.compat.Guid imageGroupId , org.ovirt.engine.core.compat.Guid imageId ) { return new org.ovirt.engine.core.common.businessentities.VdsmImageLocationInfo ( domId , imageGroupId , imageId , null ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return i.getName ( ) . equals ( getParameters ( ) . getBondName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return i.getName ( ) . equals ( getParameters ( ) . getBondName ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( object ) ) . getName ( ) ; }
Source:
private void addNoUpServerMessage ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { addCanDoActionMessage ( java.lang.String.format ( "$clusterName %1$s" , cluster.getname ( ) ) ) ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NO_UP_SERVER_FOUND ) ; }

Target:
private void addNoUpServerMessage ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { addCanDoActionMessage ( java.lang.String.format ( "$clusterName %1$s" , cluster.getName ( ) ) ) ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NO_UP_SERVER_FOUND ) ; }
Source:
private org.ovirt.engine.core.common.AuditLogType getAuditLogForMigrationFailure ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.PreparingForMaintenance ) ) { return org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_FAILED_DURING_MOVE_TO_MAINTENANCE ; } if ( ( getDestinationVds ( ) ) == null ) { return org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_FAILED_NO_VDS_TO_RUN_ON ; } return org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_FAILED ; }

Target:
protected org.ovirt.engine.core.common.AuditLogType getAuditLogForMigrationFailure ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.PreparingForMaintenance ) ) { return org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_FAILED_DURING_MOVE_TO_MAINTENANCE ; } if ( ( getDestinationVds ( ) ) == null ) { return org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_FAILED_NO_VDS_TO_RUN_ON ; } return org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_FAILED ; }
Source:
public org.ovirt.engine.api.model.VMs list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVms , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) , true ) ; else return mapCollection ( getBackendCollection ( SearchType.VM ) , false ) ; }

Target:
public org.ovirt.engine.api.model.VMs list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVms , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VM ) , true ) ; else return mapCollection ( getBackendCollection ( SearchType.VM ) , false ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return n.getname ( ) . equals ( bond.getName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return n.getName ( ) . equals ( bond.getName ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return ( object.getCluster ( ) ) == null ? false : object.getCluster ( ) . getis_display ( ) ? constants.displayNetwork ( ) : constants.empty ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return ( object.getCluster ( ) ) == null ? false : object.getCluster ( ) . getis_display ( ) ? constants.displayNetwork ( ) : constants.empty ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatus getStatus ( ) { return getStoragePoolIsoMapData ( ) . getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatus getStatus ( ) { return getStoragePoolIsoMapData ( ) . getStatus ( ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { }
Source:
public void setSelectedStorageDomainString ( java.lang.String value ) { for ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain : getStorageDomains ( ) ) { if ( storageDomain.getstorage_name ( ) . equals ( value ) ) { setSelectedStorageDomain ( storageDomain ) ; break ; } } }

Target:
public void setSelectedStorageDomainString ( java.lang.String value ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain : getStorageDomains ( ) ) { if ( storageDomain.getstorage_name ( ) . equals ( value ) ) { setSelectedStorageDomain ( storageDomain ) ; break ; } } }
Source:
public void setupCommand ( ) { initSpyCommand ( ) ; mockDaos ( ) ; mockSnapshotValidator ( ) ; mockVm ( ) ; }

Target:
public void setupCommand ( ) { initSpyCommand ( ) ; mockDaos ( ) ; mockVm ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : java.lang.Boolean.TRUE ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getorigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getorigin ( ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getBootProtocol ( ) , getIPv4Addresses ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getIPv4Addresses ( ) ) ; }
Source:
public void initLoggedInUser ( org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser , java.lang.String loginPassword ) { this . currentUser = loggedUser ; this . currentPassword = loginPassword ; }

Target:
public void initLoggedInUser ( org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser ) { this . currentUser = loggedUser ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils ( false ) ; config.refreshVdcOptionCache ( dbFacade ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( config ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils ( true ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( config ) ; }
Source:
private void createValidator ( ) { validator = new org.ovirt.engine.core.bll.validator.VfsConfigValidator ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NIC_ID , oldVfsConfig ) ; }

Target:
public void createValidator ( ) { validator = new org.ovirt.engine.core.bll.validator.VfsConfigValidator ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NIC_ID , oldVfsConfig ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.hostCluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; SetDefaultNames3 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.hostCluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; SetDefaultNames3 ( ) ; }
Source:
protected org.ovirt.engine.core.common.job.StepEnum getCommandStep ( ) { return org.ovirt.engine.core.common.job.StepEnum.AMEND_VOLUME ; }

Target:
public org.ovirt.engine.core.common.job.StepEnum getCommandStep ( ) { return org.ovirt.engine.core.common.job.StepEnum.AMEND_VOLUME ; }
Source:
private void endDefaultOperations ( ) { endTemplateRelatedOperations ( ) ; endUnlockOps ( ) ; }

Target:
private void endDefaultOperations ( ) { endUnlockOps ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( java.lang.Object object ) { com.google.gwt.safehtml.shared.SafeHtml superTooltip = super . getTooltip ( object ) ; if ( superTooltip == null ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.importAllocationModifiedCollapse ( ) ) ; } return superTooltip ; }

Target:
public java.lang.String getTooltip ( java.lang.Object object ) { java.lang.String superTooltip = super . getTooltip ( object ) ; if ( superTooltip == null ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.importAllocationModifiedCollapse ( ) ; } return superTooltip ; }
Source:
public void login ( org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser ) { setLoggedUser ( loggedUser ) ; setLoggedIn ( true ) ; }

Target:
public void login ( ) { setLoggedIn ( true ) ; }
Source:
public void initialize ( ) { commonInitialize ( ) ; if ( ( getVm ( ) ) != null ) { updateBootableDiskAvailable ( ) ; } }

Target:
public void initialize ( ) { commonInitialize ( ) ; }
Source:
java.lang.String ACTION_TYPE_FAILED_GLUSTER_VOLUME_IS_NOT_THINLY_PROVISIONED ( ) { }

Target:
java.lang.String ACTION_TYPE_FAILED_GLUSTER_VOLUME_IS_NOT_THINLY_PROVISIONED ( ) ;
Source:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Bond > getBackendHostBonds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Bond > backendBonds = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.Bond.class , VdcQueryType.GetHostBondsByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Bond > ( backendBonds ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Bond > getBackendHostBonds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Bond > backendBonds = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.Bond.class , VdcQueryType.GetHostBondsByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( backendBonds ) ; }
Source:
public void saveJob ( final org.ovirt.engine.core.common.job.Job job ) { org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction ( new org.ovirt.engine.core.utils.transaction.TransactionMethod < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void runInTransaction ( ) { jobDao.save ( job ) ; return null ; } } ) ; }

Target:
public void saveJob ( final org.ovirt.engine.core.common.job.Job job ) { jobDao.save ( job ) ; }
Source:
private void mockClusterDao ( ) { org.mockito.Mockito.doReturn ( clusterDao ) . when ( command ) . getClusterDao ( ) ; org.mockito.Mockito.when ( clusterDao.get ( clusterId ) ) . thenReturn ( cluster ) ; }

Target:
private void mockClusterDao ( ) { org.mockito.Mockito.when ( clusterDao.get ( clusterId ) ) . thenReturn ( cluster ) ; }
Source:
public boolean getstatus ( ) { return this . status ; }

Target:
public boolean getStatus ( ) { return this . status ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; org.ovirt.engine.core.common.businessentities.VmTemplate template = ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( getEntity ( ) ) ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void cleanup ( ) { getKeys ( ) . cleanup ( ) ; getValue ( ) . cleanup ( ) ; getValues ( ) . cleanup ( ) ; super . cleanup ( ) ; }

Target:
public void cleanup ( ) { getValue ( ) . cleanup ( ) ; getValues ( ) . cleanup ( ) ; super . cleanup ( ) ; }
Source:
public void create ( ) { checkDBConnectivity ( ) ; try { initialize ( ) ; } catch ( java.lang.Exception ex ) { org.ovirt.engine.core.bll.Backend.log.error ( "Error during initialization" , ex.getMessage ( ) ) ; org.ovirt.engine.core.bll.Backend.log.debug ( "" , ex ) ; throw ex ; } }

Target:
public void create ( ) { checkDBConnectivity ( ) ; try { initialize ( ) ; } catch ( java.lang.Exception ex ) { org.ovirt.engine.core.bll.Backend.log.error ( "Error during initialization" , ex ) ; throw ex ; } }
Source:
private org.ovirt.engine.core.common.businessentities.VM initializeMock ( final int domainSizeGB , final int sizeRequired ) { mockVmTemplateDaoReturnVmTemplate ( ) ; mockDiskImageDaoGetSnapshotById ( ) ; mockStorageDomainDaoGetForStoragePool ( domainSizeGB ) ; mockStorageDomainDaoGet ( domainSizeGB ) ; mockConfig ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.AddVmCommandTest.createVm ( ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM initializeMock ( final int domainSizeGB ) { mockVmTemplateDaoReturnVmTemplate ( ) ; mockStorageDomainDaoGetForStoragePool ( domainSizeGB ) ; mockStorageDomainDaoGet ( domainSizeGB ) ; mockConfig ( ) ; return org.ovirt.engine.core.bll.AddVmCommandTest.createVm ( ) ; }
Source:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) , lun , storagePoolId ) ; }

Target:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) , lun , storagePoolId ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.dataCenterFoundById = ( ( org.ovirt.engine.core.common.businessentities.storage_pool ) ( returnValue ) ) ; rollback2 ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.dataCenterFoundById = ( ( org.ovirt.engine.core.common.businessentities.storage_pool ) ( returnValue ) ) ; rollback2 ( ) ; }
Source:
public void testSetup ( ) { mockQuotaDao ( ) ; mockVmDao ( ) ; mockStoragePoolDao ( ) ; mockInjections ( ) ; }

Target:
public void testSetup ( ) { mockQuotaDao ( ) ; mockVmDao ( ) ; mockStoragePoolDao ( ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { return ( ( org.ovirt.engine.core.common.businessentities.Disk ) ( obj ) ) . isWipeAfterDelete ( ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { return ( obj != null ) && ( ( ( org.ovirt.engine.core.common.businessentities.Disk ) ( obj ) ) . isWipeAfterDelete ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ad_groups lookupGroupById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.ad_groups.class , VdcQueryType.GetAdGroupById , new org.ovirt.engine.core.common.queries.GetAdGroupByIdParameters ( id ) , id.toString ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.ad_groups lookupGroupById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.ad_groups.class , VdcQueryType.GetAdGroupById , new org.ovirt.engine.core.common.queries.GetAdGroupByIdParameters ( id ) , id.toString ( ) , true ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( returnValue ) ; initTemplate ( ) ; initCdImage ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; initTemplate ( ) ; initCdImage ( ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpMacPoolsQueryExpectations ( null ) ; control.replay ( ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpMacPoolsQueryExpectations ( null ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( org.ovirt.engine.ui.uicompat.external.StringUtils.join ( diskImage.getStoragesNames ( ) , ", " ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( java.lang.String.join ( ", " , diskImage.getStoragesNames ( ) ) ) ; }
Source:
protected void attachStorageDomainToDataCenter ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper cinderStorageHelper = new org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper ( ) ; cinderStorageHelper.setRunInNewTransaction ( false ) ; cinderStorageHelper.attachCinderDomainToPool ( storageDomainId , storagePoolId ) ; cinderStorageHelper.activateCinderDomain ( storageDomainId , storagePoolId ) ; }

Target:
protected void attachStorageDomainToDataCenter ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper cinderStorageHelper = new org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper ( ) ; cinderStorageHelper.attachCinderDomainToPool ( storageDomainId , storagePoolId ) ; cinderStorageHelper.activateCinderDomain ( storageDomainId , storagePoolId ) ; }
Source:
public void testExecuteQueryWithFilteringLUNsDisabled ( ) { org.ovirt.engine.core.bll.storage.GetDeviceListQueryTest.mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1.toString ( ) , false ) ; lunsExpected = lunsInput ; internalExecuteQuery ( ) ; }

Target:
public void testExecuteQueryWithFilteringLUNsDisabled ( ) { org.ovirt.engine.core.bll.storage.GetDeviceListQueryTest.mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1 , false ) ; lunsExpected = lunsInput ; internalExecuteQuery ( ) ; }
Source:
public void canDoActionFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand < org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters > ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }

Target:
public void canDoActionFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }
Source:
public final java.lang.Object getData ( java.lang.String key , boolean refresh ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId == null ) { return null ; } return getData ( sessionId , key , refresh ) ; }

Target:
public final java.lang.Object getData ( java.lang.String key ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId == null ) { return null ; } return getData ( sessionId , key , false ) ; }
Source:
public void testExecuteQueryWithFilteringLUNsEnabled ( ) { org.ovirt.engine.core.bll.storage.GetDeviceListQueryTest.mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1.toString ( ) , true ) ; lunsExpected = java.util.Collections.emptyList ( ) ; internalExecuteQuery ( ) ; }

Target:
public void testExecuteQueryWithFilteringLUNsEnabled ( ) { org.ovirt.engine.core.bll.storage.GetDeviceListQueryTest.mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1 , true ) ; lunsExpected = java.util.Collections.emptyList ( ) ; internalExecuteQuery ( ) ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; setGuideContext ( vmId ) ; updateActionAvailability ( ) ; getGuideCommand ( ) . execute ( ) ; }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionAvailability ( ) ; }
Source:
private static < T > void mockConfigValue ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { org.mockito.Mockito.when ( org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) . GetValue ( value , version ) ) . thenReturn ( returnValue ) ; }

Target:
private static < T > void mockConfigValue ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { org.mockito.Mockito.when ( org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) . getValue ( value , version ) ) . thenReturn ( returnValue ) ; }
Source:
public void testShortMessage ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEcho ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClientTestCase.generateRandomMessage ( 16 ) , 60625 ) ; }

Target:
public void testShortMessage ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEcho ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClientTestCase.generateRandomMessage ( 16 ) ) ; }
Source:
private static void assertContainsBlankTemplate ( org.ovirt.engine.api.model.SpecialObjects objs ) { org.junit.Assert.assertNotNull ( objs.getBlankTemplate ( ) ) ; org.junit.Assert.assertEquals ( objs.getBlankTemplate ( ) . getHref ( ) , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.BLANK_TEMPLATE_HREF ) ; }

Target:
private static void assertContainsBlankTemplate ( org.ovirt.engine.api.model.SpecialObjects objs ) { org.junit.Assert.assertNotNull ( objs.getBlankTemplate ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.BLANK_TEMPLATE_HREF , objs.getBlankTemplate ( ) . getHref ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return i.getName ( ) . equals ( getParameters ( ) . getInterface ( ) . getName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return i.getName ( ) . equals ( getParameters ( ) . getInterface ( ) . getName ( ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , true ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , true ) ; return true ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAllVmIcons , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , org.ovirt.engine.api.restapi.resource.BackendIconsResourceTest.setUpVmIcons ( ) , failure ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAllVmIcons , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , org.ovirt.engine.api.restapi.resource.BackendIconsResourceTest.setUpVmIcons ( ) , failure ) ; }
Source:
protected void updateWipeAfterDeleteChangeability ( ) { if ( isVmAttachedToPool ( ) ) { getIsWipeAfterDelete ( ) . setIsChangeable ( false ) ; } else { getIsWipeAfterDelete ( ) . setIsChangeable ( isEditEnabled ( ) ) ; } }

Target:
protected void updateWipeAfterDeleteChangeability ( ) { getIsWipeAfterDelete ( ) . setIsChangeable ( ( ! ( isVmAttachedToPool ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.utils.Pair < T , V > addGhostEntry ( ) { T value = createGhostValue ( ) ; V widget = addEntry ( value , true ) ; return new org.ovirt.engine.core.common.utils.Pair < T , V > ( value , widget ) ; }

Target:
protected org.ovirt.engine.core.common.utils.Pair < T , V > addGhostEntry ( ) { T value = createGhostValue ( ) ; V widget = addEntry ( value , true ) ; return new org.ovirt.engine.core.common.utils.Pair ( value , widget ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName , int vlanId , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , ( ( baseIfaceName + "." ) + vlanId ) , false , null , vlanId , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName , int vlanId , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , ( ( baseIfaceName + "." ) + vlanId ) , false , null , vlanId , networkName , true , null , null ) ; }
Source:
public void testSaveRole ( ) { dao.save ( newRole ) ; org.ovirt.engine.core.common.businessentities.Role result = dao.getByName ( newRole.getname ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newRole , result ) ; }

Target:
public void testSaveRole ( ) { dao.save ( newRole ) ; org.ovirt.engine.core.common.businessentities.Role result = dao.getByName ( newRole.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newRole , result ) ; }
Source:
protected org.ovirt.engine.core.aaa.DirectoryUser getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , NAMESPACE , org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.decode ( EXTERNAL_IDS [ index ] ) , NAMES [ index ] ) ; }

Target:
protected org.ovirt.engine.core.aaa.DirectoryUser getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , NAMESPACE , org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.decode ( EXTERNAL_IDS [ index ] ) , NAMES [ index ] , NAMES [ index ] ) ; }
Source:
public void setName ( java.lang.String value ) { privateName = value ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand setName ( java.lang.String value ) { privateName = value ; return this ; }
Source:
public void vmIdRefDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.compat.Guid g = b.getVmIdRef ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }

Target:
public void vmIdRefDefault ( ) { final org.ovirt.engine.core.compat.Guid g = b.getVmIdRef ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }
Source:
protected void setCluster ( final org.ovirt.engine.core.common.businessentities.Cluster value ) { cluster = value ; }

Target:
public void setCluster ( final org.ovirt.engine.core.common.businessentities.Cluster value ) { cluster = value ; }
Source:
public void serializeVdsNetworkInterface ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface nic = new org.ovirt.engine.core.common.businessentities.VdsNetworkInterface ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( nic ) . length ( ) ) > 0 ) ) ; }

Target:
public void serializeVdsNetworkInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( nic ) . length ( ) ) > 0 ) ) ; }
Source:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.init ( eventBus ) ; org.ovirt.engine.ui.common.uicommon.model.ModelInitializedEvent.fire ( eventBus ) ; }

Target:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { }
Source:
public void testGetApplicationModeObject ( ) { org.codehaus.jackson.node.ObjectNode result = testServlet.getApplicationModeObject ( java.lang.Integer.valueOf ( 255 ) ) ; org.junit.Assert.assertEquals ( "255" , result.get ( "value" ) . asText ( ) ) ; }

Target:
public void testGetApplicationModeObject ( ) { org.codehaus.jackson.node.ObjectNode result = testServlet.getApplicationModeObject ( 255 ) ; org.junit.Assert.assertEquals ( "255" , result.get ( "value" ) . asText ( ) ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) . addValue ( "log_type_name" , event.getlog_type_name ( ) ) ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) ) ; }
Source:
protected java.lang.String [ ] getRequiredAddFields ( ) { return new java.lang.String [ ] { "name" , "network.name|id" } ; }

Target:
protected java.lang.String [ ] getRequiredAddFields ( ) { return new java.lang.String [ ] { "name" } ; }
Source:
public void validate ( ) { validateCommon ( ) ; validateSmtp ( ) ; if ( isConfigured ( org.ovirt.engine.core.notifier.utils.NotificationProperties.MAIL_SERVER ) ) { validateSmtpAvailability ( ) ; } }

Target:
public void validate ( ) { validateCommon ( ) ; validateSmtp ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Cluster update ( org.ovirt.engine.core.common.businessentities.Cluster incoming ) { validateEnums ( org.ovirt.engine.core.common.businessentities.Cluster.class , incoming ) ; return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetClusterById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateCluster , new UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster update ( org.ovirt.engine.core.common.businessentities.Cluster incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetClusterById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateCluster , new UpdateParametersProvider ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.ArrayList < java.lang.String > images = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.List < java.lang.String > images = ( ( java.util.List < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }
Source:
private java.lang.String getJsonDiskDescription ( ) throws java.io.IOException { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getJsonDiskDescription ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ) ; }

Target:
private java.lang.String getJsonDiskDescription ( ) throws java.io.IOException { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . getJsonDiskDescription ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ) ; }
Source:
private void updateAlerts ( ) { final org.ovirt.engine.core.common.businessentities.VDS host = org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getSelectedItem ( ) ; if ( host == null ) { return ; } setUpgradeActionStatus ( host ) ; generalModel.setHasUpgradeAlert ( host.isUpdateAvailable ( ) ) ; generalModel.setHasAnyAlert ( ) ; }

Target:
private void updateAlerts ( ) { final org.ovirt.engine.core.common.businessentities.VDS host = org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getSelectedItem ( ) ; if ( host == null ) { return ; } generalModel.setHasUpgradeAlert ( host.isUpdateAvailable ( ) ) ; generalModel.setHasAnyAlert ( ) ; }
Source:
protected java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return java.lang.Math.min ( object.getvm_active ( ) , 100 ) ; }

Target:
protected java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return ( object.getvm_active ( ) ) != null ? java.lang.Math.min ( object.getvm_active ( ) , 100 ) : 0 ; }
Source:
protected org.ovirt.engine.core.utils.ovf.xml.XmlNodeList selectNodes ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node , java.lang.String pattern ) { this . lastReadEntry = pattern ; return node.SelectNodes ( pattern ) ; }

Target:
protected org.ovirt.engine.core.utils.ovf.xml.XmlNodeList selectNodes ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node , java.lang.String pattern ) { this . lastReadEntry = pattern ; return node.selectNodes ( pattern ) ; }
Source:
private java.lang.String getProxyUri ( ) { java.lang.String scheme = ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ImageProxySSLEnabled ) ) ? org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.HTTPS_SCHEME : org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.HTTP_SCHEME ; java.lang.String address = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.ImageProxyAddress ) ; return ( scheme + address ) + ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.IMAGES_PATH ) ; }

Target:
private java.lang.String getProxyUri ( ) { java.lang.String scheme = ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ImageProxySSLEnabled ) ) ? org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.HTTPS_SCHEME : org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.HTTP_SCHEME ; java.lang.String address = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.ImageProxyAddress ) ; return scheme + address ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( model ) ) ; storageModel.getWipeAfterDelete ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Boolean returnValue ) { getWipeAfterDelete ( ) . setEntity ( returnValue ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.Disk disk = resource.get ( ) ; verifyModelSpecific ( disk , 1 ) ; verifyLinks ( disk ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; org.ovirt.engine.api.model.Disk disk = resource.get ( ) ; verifyModelSpecific ( disk , 1 ) ; verifyLinks ( disk ) ; }
Source:
public static void getTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }

Target:
public void getTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }
Source:
public void encodeWhenDescriptionIsCompletelyTruncated ( ) throws java.io.IOException { java.lang.String alias = org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateRandomString ( org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.DISK_ALIAS_MAX_LENGTH ) ; disk.setDiskAlias ( alias ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( alias ) ) ; }

Target:
public void encodeWhenDescriptionIsCompletelyTruncated ( ) throws java.io.IOException { java.lang.String alias = org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateRandomString ( org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.DISK_ALIAS_MAX_LENGTH ) ; disk.setDiskAlias ( alias ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , generateDiskAliasJsonEntry ( alias ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.Quota ) ( object ) ) . getQuotaName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.Quota quota ) { return quota.getQuotaName ( ) ; }
Source:
public void setDiskSize ( double value ) { OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "DiskSize" ) ) ; _diskSize = value ; }

Target:
public void setDiskSize ( double value ) { _diskSize = value ; }
Source:
public static void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType , new org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.RepoImageToImageFileNameAsyncConverter ( ) ) ; }

Target:
private static void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType , new org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.RepoImageToImageFileNameAsyncConverter ( ) ) ; }
Source:
public void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; }

Target:
public void cancel ( ) { setWindow ( null ) ; }
Source:
public static void deserialize ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader , org.ovirt.engine.core.common.action.VdcReturnValueBase instance ) throws com.google.gwt.user.client.rpc.SerializationException { com.google.gwt.core.client.GWT.log ( "deserialize ReturnValue" ) ; }

Target:
public static void deserialize ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader , org.ovirt.engine.core.common.action.VdcReturnValueBase instance ) throws com.google.gwt.user.client.rpc.SerializationException { }