auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetAllVfsConfigByHostId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( org.ovirt.engine.core.dao.network.HostNicVfsConfigDaoTest.HOST_ID ) ; org.junit.Assert.assertEquals ( vfsConfigs.size ( ) , 2 ) ; }

Target:
public void testGetAllVfsConfigByHostId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( org.ovirt.engine.core.dao.network.HostNicVfsConfigDaoTest.HOST_ID ) ; org.junit.Assert.assertEquals ( 2 , vfsConfigs.size ( ) ) ; }
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 ) ) : 0 ; }
Source:
private void mockVdsDao ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = createHost ( ) ; org.mockito.Mockito.when ( vdsDao.get ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ) . thenReturn ( vds ) ; org.mockito.Mockito.when ( dbFacade.getVdsDao ( ) ) . thenReturn ( vdsDao ) ; }

Target:
private void mockVdsDao ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = createHost ( ) ; org.mockito.Mockito.when ( vdsDao.get ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ) . thenReturn ( vds ) ; }
Source:
public void setCallBackEnabled ( boolean enabled ) { childCmdEntity.setCallbackEnabled ( enabled ) ; }

Target:
public void setCallbackEnabled ( boolean enabled ) { childCmdEntity.setCallbackEnabled ( enabled ) ; }
Source:
public void setReportBaseUrl ( java.lang.String reportBaseUrl ) { this . reportBaseUrl = reportBaseUrl ; this . urlInitialized = true ; checkIfInitFinished ( ) ; }

Target:
public void setReportBaseUrl ( java.lang.String reportBaseUrl ) { if ( reportBaseUrl != null ) { this . reportBaseUrl = reportBaseUrl ; } checkIfInitFinished ( ) ; }
Source:
private boolean hasFreeSpace ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { if ( ( getDiskImageInfo ( ) . getvolume_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ) ) { return doesStorageDomainhaveSpaceForRequest ( storageDomain ) ; } return isStorageDomainWithinThresholds ( storageDomain ) ; }

Target:
private boolean hasFreeSpace ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { if ( ( getDiskImageInfo ( ) . getvolume_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ) ) { return doesStorageDomainhaveSpaceForRequest ( storageDomain ) ; } return isStorageDomainWithinThresholds ( storageDomain ) ; }
Source:
private void fetchImageTemplates ( ) { if ( ( imageTemplates ) == null ) { imageTemplates = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplateId ( ) ) , false , false ) ; } }

Target:
private void fetchImageTemplates ( ) { if ( ( imageTemplates ) == null ) { imageTemplates = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplateId ( ) ) , false , false , true ) ; } }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult allDomainsExistAndActive ( ) { return validOrFirstFailure ( new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator.ValidatorPredicate ( ) { @ java.lang.Override public org.ovirt.engine.core.bll.ValidationResult evaluate ( java.util.Map.Entry < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator > entry ) { return getStorageDomainValidator ( entry ) . isDomainExistAndActive ( ) ; } } ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult allDomainsExistAndActive ( ) { return validOrFirstFailure ( ( entry ) -> getStorageDomainValidator ( entry ) . isDomainExistAndActive ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getstorage_pool_id ( ) { return this . id.getStoragePoolId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return this . id.getStoragePoolId ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.StartRebalanceGlusterVolumeCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.StartRebalanceGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRebalanceParameters ( volumeId , false , false ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.StartRebalanceGlusterVolumeCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.StartRebalanceGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRebalanceParameters ( volumeId , false , false ) , null ) ; }
Source:
public void testAddWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Template model = org.ovirt.engine.api.restapi.resource.BackendTemplatesResourceTest.getModel ( 0 ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestAddWithClonePermissions ( model , true ) ; }

Target:
public void testAddWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Template model = org.ovirt.engine.api.restapi.resource.BackendTemplatesResourceTest.getModel ( 0 ) ; doTestAddWithClonePermissions ( model , true ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network network ) { return network.getname ( ) . equals ( getParameters ( ) . getInterface ( ) . getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getname ( ) . equals ( getNetworkName ( ) ) ; }
Source:
private boolean isLiveSnapshotEnabled ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.LiveSnapshotEnabled , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getStoragePool ( ) . getcompatibility_version ( ) . getValue ( ) ) ; }

Target:
private boolean isLiveSnapshotEnabled ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.LiveSnapshotEnabled , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getStoragePool ( ) . getcompatibility_version ( ) . getValue ( ) ) ; }
Source:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createNetworkParametersMapper ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vfs_config_id" , vfsConfigId ) . addValue ( "network_id" , networkId ) ; return parameterSource ; }

Target:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createNetworkParametersMapper ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vfs_config_id" , vfsConfigId ) . addValue ( "network_id" , networkId ) ; }
Source:
public int getPriority ( ) { return vmStatic.getpriority ( ) ; }

Target:
public int getPriority ( ) { return vmStatic.getPriority ( ) ; }
Source:
public void validateDiskIsLocked ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; mockGetVmsListForDisk ( ) ; command.getImage ( ) . setImageStatus ( ImageStatus.LOCKED ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED ) ; }

Target:
public void validateDiskIsLocked ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setImageStatus ( ImageStatus.LOCKED ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED ) ; }
Source:
public boolean canBeSelected ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( getEntity ( ) . getOs ( ) ) ; }

Target:
public boolean canBeSelected ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . isWindowsOsType ( getEntity ( ) . getOs ( ) ) ; }
Source:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; org.mockito.Mockito.doReturn ( snapshotDao ) . when ( validator ) . getSnapshotDao ( ) ; }

Target:
public void setUp ( ) { org.mockito.Mockito.doReturn ( snapshotDao ) . when ( validator ) . getSnapshotDao ( ) ; }
Source:
public boolean isSingleSelectionOnly ( ) { return false ; }

Target:
protected boolean isSingleSelectionOnly ( ) { return true ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , true , null , false , null ) ; }
Source:
protected java.lang.String transform ( java.util.ArrayList < java.lang.String > fileNameList , org.ovirt.engine.core.common.businessentities.storage.RepoImage repoImage ) { return ( org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.ISO_PREFIX ) + ( super . transform ( fileNameList , repoImage ) ) ; }

Target:
protected java.lang.String transform ( org.ovirt.engine.core.common.businessentities.storage.RepoImage repoImage ) { return ( org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.ISO_PREFIX ) + ( super . transform ( repoImage ) ) ; }
Source:
void init ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.log.info ( "Initializing the DbFacade" ) ; dbFacadeLocator.configure ( this ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.instance = this ; }

Target:
private void init ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.log.info ( "Initializing the DbFacade" ) ; dbFacadeLocator.configure ( this ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.instance = this ; }
Source:
public boolean validateBrickCount ( ) { return org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickModel.validateBrickCount ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType ) ( getTypeList ( ) . getSelectedItem ( ) ) ) , getBricks ( ) , getReplicaCountValue ( ) , getStripeCountValue ( ) ) ; }

Target:
public boolean validateBrickCount ( ) { return org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickModel.validateBrickCount ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType ) ( getTypeList ( ) . getSelectedItem ( ) ) ) , getBricks ( ) , getReplicaCountValue ( ) , getStripeCountValue ( ) , true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; storageDomain.setStorage ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; storageDomain.setStorageFormat ( StorageFormatType.V3 ) ; return storageDomain ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; storageDomain.setStorage ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; storageDomain.setStorageFormat ( StorageFormatType.V3 ) ; return storageDomain ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getEntity ( ) ) ) ; if ( vm == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.GetAllVmSnapshotsByVmIdParameters ( vm.getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getEntity ( ) ) ) ; if ( vm == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }
Source:
protected void handleRootDSEFailure ( org.ovirt.engine.core.bll.adbroker.DirectorySearcher directorySearcher ) { java.lang.Exception ex = directorySearcher.getException ( ) ; org.ovirt.engine.core.bll.adbroker.UserAuthenticationResult authResult = handleDirectorySearcherException ( ex ) ; setReturnValue ( authResult ) ; }

Target:
protected void handleRootDSEFailure ( org.ovirt.engine.core.bll.adbroker.DirectorySearcher directorySearcher ) { java.lang.Exception ex = directorySearcher.getException ( ) ; handleDirectorySearcherException ( ex ) ; }
Source:
public abstract java.lang.String getReactorName ( ) ;

Target:
protected abstract java.lang.String getReactorName ( ) ;
Source:
void initComboBoxEditors ( ) { networkListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < java.lang.String > ( ) ; networkNameEditor = new org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxEditor ( ) ; networkComboBox = new org.ovirt.engine.ui.common.widget.ComboBox < java.lang.String > ( networkListEditor , networkNameEditor ) ; }

Target:
void initComboBoxEditors ( ) { networkListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( ) ; networkNameEditor = new org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxEditor ( ) ; networkComboBox = new org.ovirt.engine.ui.common.widget.ComboBox ( networkListEditor , networkNameEditor ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.getOptions ( ) . setWanDisableEffects ( ( ( java.util.List < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > returnValue ) { spice.getOptions ( ) . setWanDisableEffects ( returnValue ) ; }
Source:
private org.ovirt.engine.api.model.Disks createDisksCollection ( ) { org.ovirt.engine.api.model.Disks disks = new org.ovirt.engine.api.model.Disks ( ) ; disks.setClone ( true ) ; disks.getDisks ( ) . add ( map ( createDiskList ( ) . get ( 0 ) , null ) ) ; return disks ; }

Target:
private org.ovirt.engine.api.model.Disks createDisksCollection ( ) { org.ovirt.engine.api.model.Disks disks = new org.ovirt.engine.api.model.Disks ( ) ; disks.getDisks ( ) . add ( map ( createDiskList ( ) . get ( 0 ) , null ) ) ; return disks ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookManageParameters ( HOOK_ID ) ) ) ; setUpMocksForRemove ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookManageParameters ( HOOK_ID ) , null ) ) ; setUpMocksForRemove ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public java.lang.String call ( ) { com.woorea.openstack.cinder.model.SnapshotForCreate snapshotForCreate = new com.woorea.openstack.cinder.model.SnapshotForCreate ( ) ; snapshotForCreate.setVolumeId ( cinderDisk.getId ( ) . toString ( ) ) ; snapshotForCreate.setForce ( force ) ; return proxy.createSnapshot ( snapshotForCreate ) ; }

Target:
public java.lang.String call ( ) { com.woorea.openstack.cinder.model.SnapshotForCreate snapshotForCreate = new com.woorea.openstack.cinder.model.SnapshotForCreate ( ) ; snapshotForCreate.setVolumeId ( cinderDisk.getId ( ) . toString ( ) ) ; return proxy.createSnapshot ( snapshotForCreate ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.Provider provider ) { return network.isExternal ( ) ? provider.getId ( ) . equals ( network.getProvidedBy ( ) . getProviderId ( ) ) : false ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.Provider provider ) { return ( network.isExternal ( ) ) && ( provider.getId ( ) . equals ( network.getProvidedBy ( ) . getProviderId ( ) ) ) ; }
Source:
protected int getMaxNameLength ( ) { return isWindows ( ) ? org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getMaxVmNameLengthWin ( ) : org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getMaxVmNameLengthNonWin ( ) ; }

Target:
protected int getMaxNameLength ( ) { return isWindows ( ) ? org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getMaxVmNameLengthWin ( ) : org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getMaxVmNameLengthNonWin ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.HostNetworkQos getHostNetworkQos ( ) { return networkAttachmentModel.getQosModel ( ) . getEntity ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.HostNetworkQos getHostNetworkQos ( ) { return ( networkAttachmentModel.getQosModel ( ) ) != null ? networkAttachmentModel.getQosModel ( ) . getEntity ( ) : null ; }
Source:
protected void executeVmCommand ( ) { initVdss ( ) ; perform ( ) ; processVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }

Target:
protected void executeVmCommand ( ) { initVdss ( ) ; perform ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }
Source:
public java.lang.String getTagNameAndChildrenNames ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagById ( tagId ) ; java.lang.StringBuilder sb = tag.getTagNameAndChildrenNames ( ) ; return sb.toString ( ) ; }

Target:
public java.lang.String getTagNameAndChildrenNames ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagById ( tagId ) ; java.lang.StringBuilder sb = getTagNameAndChildrenNames ( tag ) ; return sb.toString ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getActionGroupDao ( ) ) ; existingActionMap = dao.getActionVersionMapByActionType ( VdcActionType.AddVm ) ; newActionMap = new org.ovirt.engine.core.common.businessentities.ActionVersionMap ( org.ovirt.engine.core.common.action.VdcActionType.ActivateStorageDomain , "3.0" , "3.0" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getActionGroupDao ( ) ; existingActionMap = dao.getActionVersionMapByActionType ( VdcActionType.AddVm ) ; newActionMap = new org.ovirt.engine.core.common.businessentities.ActionVersionMap ( org.ovirt.engine.core.common.action.VdcActionType.ActivateStorageDomain , "3.0" , "3.0" ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) { return sourceVmFromDb.getstorage_pool_id ( ) . getValue ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) { return sourceVmFromDb.getStoragePoolId ( ) . getValue ( ) ; }
Source:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendDisksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) , index ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface getExistingIfaceByNetwork ( java.lang.String network ) { for ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface : getExistingIfaces ( ) . values ( ) ) { if ( network.equals ( iface.getNetworkName ( ) ) ) { return iface ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getExistingIfaceByNetwork ( java.lang.String network ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface : getExistingIfaces ( ) . values ( ) ) { if ( network.equals ( iface.getNetworkName ( ) ) ) { return iface ; } } return null ; }
Source:
private org.ovirt.engine.core.common.action.SetupNetworksParameters createParametersForSync ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface nic ) { return createParametersForSync ( nic.getNetworkName ( ) , nic ) ; }

Target:
private org.ovirt.engine.core.common.action.SetupNetworksParameters createParametersForSync ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { return createParametersForSync ( nic.getNetworkName ( ) , nic ) ; }
Source:
types.ImageFileType fileType ( ) ;

Target:
types.ImageFileType type ( ) ;
Source:
protected abstract boolean showTransportProperties ( ) ;

Target:
protected abstract boolean showTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetHostListByCluster ( query , cluster.getname ( ) ) ; }

Target:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getHostListByCluster ( query , cluster.getname ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { notifyEvent.raise ( this , new org.ovirt.engine.ui.uicommonweb.models.hosts.ValueEventArgs < T > ( ( ( T ) ( returnValue ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { notifyEvent.raise ( this , new org.ovirt.engine.ui.uicommonweb.models.hosts.ValueEventArgs ( ( ( T ) ( returnValue ) ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { mappings.setExplanation ( org.ovirt.engine.ui.webadmin.widget.provider.NeutronAgentWidget.templates.italicText ( ( ( java.lang.String ) ( model.getInterfaceMappingsExplanation ( ) . getEntity ( ) ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { mappings.setExplanation ( org.ovirt.engine.ui.webadmin.widget.provider.NeutronAgentWidget.templates.italicText ( model.getInterfaceMappingsExplanation ( ) . getEntity ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) , clusterId ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , clusterId.toString ( ) ) ; }
Source:
public void setVmId ( org.ovirt.engine.core.compat.Guid value ) { org.ovirt.engine.core.bll.AttachUserToVmFromPoolAndRunCommand.getParameters ( ) . setVmId ( value ) ; }

Target:
public void setVmId ( org.ovirt.engine.core.compat.Guid value ) { super . setVmId ( value ) ; org.ovirt.engine.core.bll.AttachUserToVmFromPoolAndRunCommand.getParameters ( ) . setVmId ( value ) ; }
Source:
protected boolean canDoAction ( ) { return networkNotAttachedToCluster ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return validate ( networkNotAttachedToCluster ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetwork ( ) ) ) ; }
Source:
public java.lang.String getMasterStorageDomainId ( ) { return ( masterStorageDomainId ) == null ? this . id : masterStorageDomainId ; }

Target:
public java.lang.String getMasterStorageDomainId ( ) { return ( masterStorageDomainId ) == null ? id : masterStorageDomainId ; }
Source:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , version ) ; return cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat ( configValue , version ) ; return cachedConfigValuesPreConvert.get ( key ) ; }
Source:
private void mockVdsGroupDAO ( ) { org.mockito.Mockito.when ( dbFacada.getVdsGroupDAO ( ) ) . thenReturn ( vdsGroupDAO ) ; org.mockito.Mockito.when ( vdsGroupDAO.get ( vdsGroupId ) ) . thenReturn ( vdsGroup ) ; }

Target:
private void mockVdsGroupDAO ( ) { org.mockito.Mockito.doReturn ( vdsGroupDAO ) . when ( command ) . getVdsGroupDAO ( ) ; org.mockito.Mockito.when ( vdsGroupDAO.get ( vdsGroupId ) ) . thenReturn ( vdsGroup ) ; }
Source:
public void testIllegalRpmSplitNoDashes ( ) { org.junit.Assert.assertEquals ( ( - 1 ) , org.ovirt.engine.core.common.utils.RpmVersionUtils.splitRpmToParts ( "abcdef" ) ) ; }

Target:
public void testIllegalRpmSplitNoDashes ( ) { org.ovirt.engine.core.common.utils.RpmVersionUtils.splitRpmToParts ( "abcdef" ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeDiskVDSCommand.getBroker ( ) . changeDisk ( mVmId.toString ( ) , mIsoLocation ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeDiskVDSCommand.ProceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getstatus ( ) ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeDiskVDSCommand.getBroker ( ) . changeDisk ( mVmId.toString ( ) , mIsoLocation ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeDiskVDSCommand.ProceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllUsingQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllUsingQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance ) ; }
Source:
protected void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { this . tooltipText = tooltipText ; setHeaderTooltipStyle ( tooltipText ) ; }

Target:
protected void setTooltip ( java.lang.String tooltipText ) { this . tooltipText = tooltipText ; setHeaderTooltipStyle ( tooltipText ) ; }
Source:
public java.lang.Object runInTransaction ( ) { getStoragePoolDao ( ) . updatePartial ( storagePool ) ; updateMemberDomainsFormat ( targetFormat ) ; if ( org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( spVersion ) ) { getVmStaticDao ( ) . incrementDbGenerationForAllInStoragePool ( spId ) ; } return null ; }

Target:
public java.lang.Object runInTransaction ( ) { getStoragePoolDao ( ) . updatePartial ( storagePool ) ; updateMemberDomainsFormat ( targetFormat ) ; if ( org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( spVersion ) ) { getVmStaticDao ( ) . incrementDbGenerationForAllInStoragePool ( storagePool.getId ( ) ) ; } return null ; }
Source:
private java.lang.String resolveMessage ( java.lang.String message , java.util.HashMap < java.lang.String , java.lang.String > variables ) { org.apache.commons.lang.text.StrSubstitutor sub = new org.apache.commons.lang.text.StrSubstitutor ( variables ) ; return sub.replace ( message ) ; }

Target:
private java.lang.String resolveMessage ( java.lang.String message , java.util.Map < java.lang.String , java.lang.String > variables ) { org.apache.commons.lang.text.StrSubstitutor sub = new org.apache.commons.lang.text.StrSubstitutor ( variables ) ; return sub.replace ( message ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { return ( source != null ) && ( ! ( ( java.lang.Boolean ) ( source ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getForStoragePool ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.NGuid storagepool ) { return getCallsHandler ( ) . executeRead ( "Getstorage_domains_By_id_and_by_storage_pool_id" , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) . addValue ( "storage_pool_id" , storagepool ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getForStoragePool ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid storagepool ) { return getCallsHandler ( ) . executeRead ( "Getstorage_domains_By_id_and_by_storage_pool_id" , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) . addValue ( "storage_pool_id" , storagepool ) ) ; }
Source:
public void tJDBCOutput_2_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.hourlytimekeepingjob_3_6.HourlyTimeKeepingJob.TalendException { end_Hash.put ( "tJDBCOutput_2" , java.lang.System.currentTimeMillis ( ) ) ; tRowGenerator_1_onSubJobError ( exception , errorComponent , globalMap ) ; }

Target:
public void tJDBCOutput_2_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.hourlytimekeepingjob_3_6.HourlyTimeKeepingJob.TalendException { end_Hash.put ( errorComponent , java.lang.System.currentTimeMillis ( ) ) ; tRowGenerator_1_onSubJobError ( exception , errorComponent , globalMap ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , SnapshotStatus.OK , memoryVolume , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , SnapshotStatus.OK , memoryVolume , null , compensationContext ) ; }
Source:
public void canRunVmPassStatelessWhenVmHAandStatelessFalse ( ) { org.ovirt.engine.core.bll.RunVmCommandTest.canRunStatelessVmTest ( true , true , java.lang.Boolean.FALSE , true ) ; }

Target:
public void canRunVmPassStatelessWhenVmHAandStatelessFalse ( ) { canRunStatelessVmTest ( true , true , java.lang.Boolean.FALSE , true ) ; }
Source:
public void sufficientDiskSpace ( ) { final int extraDiskSpaceRequired = 0 ; final int diskSpacePct = 0 ; final org.ovirt.engine.core.bll.ImportVmCommand c = setupDiskSpaceTest ( extraDiskSpaceRequired , diskSpacePct ) ; org.junit.Assert.assertTrue ( c.canDoAction ( ) ) ; }

Target:
public void sufficientDiskSpace ( ) { final int extraDiskSpaceRequired = 0 ; final org.ovirt.engine.core.bll.ImportVmCommand c = setupDiskSpaceTest ( extraDiskSpaceRequired ) ; org.junit.Assert.assertTrue ( c.canDoAction ( ) ) ; }
Source:
public static void adjustPopupLocationToFitScreenAndShow ( final com.google.gwt.user.client.ui.PopupPanel popup , com.google.gwt.user.client.ui.UIObject relativeObject ) { org.ovirt.engine.ui.common.utils.PopupUtils.adjustPopupLocationToFitScreenAndShow ( popup , relativeObject.getAbsoluteLeft ( ) , relativeObject.getAbsoluteTop ( ) , relativeObject.getOffsetWidth ( ) , relativeObject.getOffsetHeight ( ) ) ; }

Target:
public static void adjustPopupLocationToFitScreenAndShow ( final com.google.gwt.user.client.ui.PopupPanel popup , com.google.gwt.user.client.ui.UIObject relativeObject ) { org.ovirt.engine.ui.common.utils.PopupUtils.adjustPopupLocationToFitScreenAndShow ( popup , relativeObject.getAbsoluteLeft ( ) , relativeObject.getAbsoluteTop ( ) , relativeObject.getOffsetWidth ( ) , relativeObject.getOffsetHeight ( ) , 0 ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( returnValue ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
public static void RemoveAllVdsAlerts ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.Guid vdsId , boolean removeConfigAlerts ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllForVds ( vdsId , removeConfigAlerts ) ; }

Target:
public static void RemoveAllVdsAlerts ( org.ovirt.engine.core.compat.Guid vdsId , boolean removeConfigAlerts ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllForVds ( vdsId , removeConfigAlerts ) ; }
Source:
public static org.slf4j.Logger getLogger ( java.lang.Class < ? > loggedClass ) { return new org.slf4j.Logger ( java.util.logging.Logger.getLogger ( "" ) ) ; }

Target:
public static org.slf4j.Logger getLogger ( java.lang.String name ) { return new org.slf4j.Logger ( java.util.logging.Logger.getLogger ( name ) ) ; }
Source:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }

Target:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }
Source:
public org.ovirt.engine.core.compat.Guid runInTransaction ( ) { getCompensationContext ( ) . resetCompensation ( ) ; return createTaskInCurrentTransaction ( taskId1 , ret1.getCreationInfo ( ) , VdcActionType.HibernateVm , VdcObjectType.Storage , getStorageDomainId ( ) . getValue ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid runInTransaction ( ) { getCompensationContext ( ) . resetCompensation ( ) ; return createTaskInCurrentTransaction ( taskId1 , ret1.getCreationInfo ( ) , VdcActionType.HibernateVm , VdcObjectType.Storage , getStorageDomainId ( ) ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allBonds = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; initNetworkModels ( ) ; initNicModels ( ) ; stopProgress ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { allBonds = returnValue.getReturnValue ( ) ; initNetworkModels ( ) ; initNicModels ( ) ; stopProgress ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment createNetworkAttachment ( java.lang.String nicName , org.ovirt.engine.core.common.businessentities.network.Network network ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment result = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; result.setNicName ( nicName ) ; result.setNetworkId ( network.getId ( ) ) ; return result ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment createNetworkAttachment ( java.lang.String nicName , org.ovirt.engine.core.common.businessentities.network.Network network ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment result = createNetworkAttachment ( network ) ; result.setNicName ( nicName ) ; return result ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > returnValue ) { doInit ( ) ; }
Source:
private static void handleNotLoggedInEvent ( java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator.translateErrorTextSingle ( "USER_IS_NOT_LOGGED_IN" , false ) ) ) ) { org.ovirt.engine.ui.frontend.Frontend.frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }

Target:
private static void handleNotLoggedInEvent ( java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( "USER_IS_NOT_LOGGED_IN" ) ) ) { org.ovirt.engine.ui.frontend.Frontend.frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }
Source:
java.lang.String sizeUnitString ( java.lang.String size , @ com.google.gwt.i18n.client.Messages.Select org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit sizeUnit ) ;

Target:
java.lang.String sizeUnitString ( java.lang.String size , java.lang.String sizeUnit ) ;
Source:
public void testGetAsyncTaskIdsByStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByStoragePoolId ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( guids.size ( ) , 2 ) ; }

Target:
public void testGetAsyncTaskIdsByStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByStoragePoolId ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( 2 , guids.size ( ) ) ; }
Source:
public void testSubCollectionInjection ( ) throws java.lang.Exception { control.replay ( ) ; injectSubCollectionAndTest ( ) ; }

Target:
public void testSubCollectionInjection ( ) throws java.lang.Exception { injectSubCollectionAndTest ( ) ; }
Source:
boolean isFeatureSupported ( org.ovirt.engine.core.compat.Version clusterVersion ) { return ( mockCompatibilityVersion.compareTo ( Version.v3_5 ) ) >= 0 ; }

Target:
protected boolean isFeatureSupported ( org.ovirt.engine.core.compat.Version clusterVersion ) { return ( mockCompatibilityVersion.compareTo ( Version.v3_5 ) ) >= 0 ; }
Source:
protected org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.EngineFault > runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return new org.ovirt.engine.core.common.utils.Pair ( true , null ) ; }

Target:
protected org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.EngineFault > runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return runConnectionStorageToDomain ( storageDomain , vdsId , type , null , storageDomain.getStoragePoolId ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml doubleImageContainer ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , com.google.gwt.safehtml.shared.SafeHtml decoratorHtml , int left , int top , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml doubleImageContainer ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , com.google.gwt.safehtml.shared.SafeHtml decoratorHtml , int left , int top , java.lang.String id , java.lang.String status ) ;
Source:
public static boolean isNulOrEmpty ( java.lang.String string ) { return ( string.equals ( null ) ) || ( "" . equals ( string ) ) ; }

Target:
public static boolean isNulOrEmpty ( java.lang.String string ) { return ( string == null ) || ( "" . equals ( string ) ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( org.ovirt.engine.core.searchbackend.StringHelper.EqOp ( fieldName , "TYPE" ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.VmPoolType.class ) ; } else { } return retval ; }

Target:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( "TYPE" . equals ( fieldName ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.VmPoolType.class ) ; } return retval ; }
Source:
protected void updateVmDevices ( java.util.List < java.lang.String > vmsToUpdate ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] vms = getVmInfo ( vmsToUpdate ) ; if ( vms != null ) { for ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct vm : vms ) { processVmDevices ( vm ) ; } } }

Target:
protected void updateVmDevices ( java.util.List < java.lang.String > vmsToUpdate ) { java.util.Map [ ] vms = getVmInfo ( vmsToUpdate ) ; if ( vms != null ) { for ( java.util.Map vm : vms ) { processVmDevices ( vm ) ; } } }
Source:
private void initCollection ( ) { org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setBackend ( backend ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setMappingLocator ( mapperLocator ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setSessionHelper ( sessionHelper ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setMessageBundle ( messageBundle ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setHttpHeaders ( httpHeaders ) ; }

Target:
private void initCollection ( ) { org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setBackend ( backend ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setMappingLocator ( mapperLocator ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setMessageBundle ( messageBundle ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setHttpHeaders ( httpHeaders ) ; }
Source:
public java.lang.String render ( E object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( object ) ; }

Target:
public java.lang.String render ( E object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . get ( object ) ; }