auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddVmFromTemplateCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.ArgumentMatchers.anyInt ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }

Target:
private void mockMaxPciSlots ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddVmFromTemplateCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.ArgumentMatchers.anyInt ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsId ( ) { return ( getVm ( ) . getRunOnVds ( ) ) != null ? getVm ( ) . getRunOnVds ( ) . getValue ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsId ( ) { return ( getVm ( ) . getRunOnVds ( ) ) != null ? getVm ( ) . getRunOnVds ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( diskImage , org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getVmDeviceUtils ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( diskImage ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( null ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatus getstatus ( ) { if ( ( persistentStorageDomainStatus ) == null ) { return null ; } return org.ovirt.engine.core.common.businessentities.StorageDomainStatus.forValue ( persistentStorageDomainStatus ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatus getStatus ( ) { if ( ( persistentStorageDomainStatus ) == null ) { return null ; } return org.ovirt.engine.core.common.businessentities.StorageDomainStatus.forValue ( persistentStorageDomainStatus ) ; }
Source:
public void getAllUnfinishedKdumpStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsKdumpStatus > result = dbFacade.getVdsKdumpStatusDao ( ) . getAllUnfinishedVdsKdumpStatus ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }

Target:
public void getAllUnfinishedKdumpStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsKdumpStatus > result = dao.getAllUnfinishedVdsKdumpStatus ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network FindNetworkByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( n.getname ( ) , name ) ) { return n ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.Network FindNetworkByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( n.getName ( ) , name ) ) { return n ; } } return null ; }
Source:
org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > createActionTable ( org.ovirt.engine.ui.common.uicommon.model.SearchableTabModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , ? > modelProvider ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > ( modelProvider , getTableResources ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getClientStorage ( ) ) ; }

Target:
org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > createActionTable ( org.ovirt.engine.ui.common.uicommon.model.SearchableTabModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , ? > modelProvider ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > ( modelProvider , getTableResources ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getClientStorage ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.LunDisk createISCSILunDisk ( org.ovirt.engine.core.common.businessentities.storage.ScsiGenericIO sgio , boolean isUsingScsiReservation , org.ovirt.engine.core.common.businessentities.storage.DiskInterface diskInterface ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = org.ovirt.engine.core.bll.storage.disk.AddDiskCommandTest.createISCSILunDisk ( ) ; disk.setSgio ( sgio ) ; disk.setUsingScsiReservation ( isUsingScsiReservation ) ; disk.setDiskInterface ( diskInterface ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.LunDisk createISCSILunDisk ( org.ovirt.engine.core.common.businessentities.storage.ScsiGenericIO sgio , boolean isUsingScsiReservation , org.ovirt.engine.core.common.businessentities.storage.DiskInterface diskInterface ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = org.ovirt.engine.core.bll.storage.disk.AddDiskCommandTest.createISCSILunDisk ( ) ; disk.setSgio ( sgio ) ; disk.setUsingScsiReservation ( isUsingScsiReservation ) ; return disk ; }
Source:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VDS , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > > call ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > storageDevices = getStorageDevicesFromServer ( server ) ; return new org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VDS , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > > ( server , storageDevices ) ; }

Target:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VDS , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > > call ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > storageDevices = getStorageDevicesFromServer ( server ) ; return new org.ovirt.engine.core.common.utils.Pair ( server , storageDevices ) ; }
Source:
private void printSuccessMessage ( java.lang.String domainName , java.lang.String action ) { if ( args.containsKey ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_ADD_PERMISSIONS ) ) { java.lang.System.out.print ( java.lang.String.format ( SUCCESS_MESSAGE_FOR_ACTION_WITH_ADD_PERMISSIONS , "added" , domainName ) ) ; } java.lang.System.out.println ( SERVICE_RESTART_MESSAGE ) ; }

Target:
private void printSuccessMessage ( java.lang.String domainName , java.lang.String action ) { java.lang.System.out.println ( SERVICE_RESTART_MESSAGE ) ; }
Source:
public void sortDisks ( ) { org.ovirt.engine.ui.uicommonweb.Linq.sort ( disks , new org.ovirt.engine.ui.uicommonweb.Linq.DiskModelByAliasComparer ( ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; }

Target:
public void sortDisks ( ) { if ( ( disks ) != null ) { org.ovirt.engine.ui.uicommonweb.Linq.sort ( disks , new org.ovirt.engine.ui.uicommonweb.Linq.DiskModelByAliasComparer ( ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.glusterHookRowMapper ) ; return glusterHooks ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.glusterHookRowMapper ) ; }
Source:
public void updateCommandExecuted ( org.ovirt.engine.core.compat.Guid commandId ) { commandsRepository.getCommandsCache ( ) . updateCommandExecuted ( commandId ) ; }

Target:
public void updateCommandExecuted ( org.ovirt.engine.core.compat.Guid commandId ) { commandsRepository.updateCommandExecuted ( commandId ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.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 getNfsVersion ( ) { return ( nfsVersion ) == null ? null : nfsVersion.toString ( ) ; }

Target:
public java.lang.String getNfsVersion ( ) { return nfsVersion ; }
Source:
public void setMemCommited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; calculateFreeVirtualMemory ( ) ; }

Target:
public void setMemCommited ( java.lang.Integer value ) { this . mVdsDynamic.setMemCommited ( value ) ; calculateFreeVirtualMemory ( ) ; }
Source:
public void fullCorrect ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "someProtocol://someHostname:4040" ) . getSuccess ( ) ) ; }

Target:
public void fullCorrect ( ) { org.junit.Assert.assertTrue ( validation.validate ( "someProtocol://someHostname:4040" ) . getSuccess ( ) ) ; }
Source:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertEquals ( validator.diskImagesAlreadyExist ( ) , ValidationResult.VALID ) ; }

Target:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , validator.diskImagesAlreadyExist ( ) ) ; }
Source:
public org.ovirt.engine.sdk.entities.ProductInfo getProductInfo ( ) { return this . entryPoint.getProductInfo ( ) ; }

Target:
public org.ovirt.engine.sdk.entities.ProductInfo getProductInfo ( ) { if ( ( this . entryPoint ) != null ) { return this . entryPoint.getProductInfo ( ) ; } return null ; }
Source:
public void setUp ( ) { super . setUp ( ) ; vmBuilder.id ( VM1_GUID ) . cluster ( clusterBuilder.reset ( ) . persist ( ) ) . persist ( ) ; }

Target:
public void setUp ( ) { vmBuilder.id ( VM1_GUID ) . cluster ( clusterBuilder.reset ( ) . persist ( ) ) . persist ( ) ; }
Source:
public void setvm_domain ( java.lang.String value ) { this . mVmStatic.setdomain ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_domain" ) ) ; }

Target:
public void setvm_domain ( java.lang.String value ) { this . mVmStatic.setdomain ( value ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.Map.Entry < java.lang.String , java.lang.String > entry = ( ( java.util.Map.Entry < java.lang.String , java.lang.String > ) ( object ) ) ; return entry.getValue ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.util.Map.Entry < java.lang.String , java.lang.String > object ) { return object.getValue ( ) ; }
Source:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getRevertTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.deleteImage ; }

Target:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getRevertTaskType ( ) { return null ; }
Source:
public javax.ws.rs.core.Response detach ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.RemoveVmFromPool , new org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters ( guid , false , true ) , action ) ; }

Target:
public javax.ws.rs.core.Response detach ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.RemoveVmFromPool , new org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters ( guid , true , true ) , action ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > newItems = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ; java.util.Collections.sort ( newItems , new org.ovirt.engine.core.common.businessentities.comparators.NameableComparator ( ) ) ; setItems ( newItems ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > newItems = returnValue.getReturnValue ( ) ; java.util.Collections.sort ( newItems , new org.ovirt.engine.core.common.businessentities.comparators.NameableComparator ( ) ) ; setItems ( newItems ) ; }
Source:
public static void clean ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.httpSessionId.remove ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.userKeeper.remove ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.correlationId.remove ( ) ; }

Target:
public static void clean ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.correlationId.remove ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > getVdsInterfaces ( org.ovirt.engine.core.compat.Guid vdsId ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > interfaces = getInterfaceDAO ( ) . getAllInterfacesForVds ( vdsId ) ; return interfaces == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > ( ) : interfaces ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getVdsInterfaces ( org.ovirt.engine.core.compat.Guid vdsId ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = getInterfaceDAO ( ) . getAllInterfacesForVds ( vdsId ) ; return interfaces == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ( ) : interfaces ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getPermissionDao ( ) ) ; new_permissions = new org.ovirt.engine.core.common.businessentities.permissions ( org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_POOL_ID , org.ovirt.engine.core.common.VdcObjectType.StoragePool ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getPermissionDao ( ) ; new_permissions = new org.ovirt.engine.core.common.businessentities.permissions ( org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_POOL_ID , org.ovirt.engine.core.common.VdcObjectType.StoragePool ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setEnumTitle ( object.getDiskStorageType ( ) ) ; return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.LUN ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.resources.externalDiskIcon ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.LUN ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.resources.externalDiskIcon ( ) : null ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { int appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.ApplicationMode ) ; return getTreeForEntity ( id , type , userID , isFiltered , appMode ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { int appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getTreeForEntity ( id , type , userID , isFiltered , appMode ) ; }
Source:
public void testEventLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Event event = new org.ovirt.engine.api.model.Event ( ) ; event.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( setUpUriExpectations ( ) , event ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_HREF , event.getHref ( ) ) ; }

Target:
public void testEventLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Event event = new org.ovirt.engine.api.model.Event ( ) ; event.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( event ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.EVENT_HREF , event.getHref ( ) ) ; }
Source:
private void initDcNetworkParams ( ) { for ( org.ovirt.engine.core.common.businessentities.Network network : allNetworks ) { netTodcParams.put ( network.getname ( ) , new org.ovirt.engine.ui.uicommonweb.models.hosts.DcNetworkParams ( network ) ) ; } }

Target:
private void initDcNetworkParams ( ) { for ( org.ovirt.engine.core.common.businessentities.network.Network network : allNetworks ) { netTodcParams.put ( network.getname ( ) , new org.ovirt.engine.ui.uicommonweb.models.hosts.DcNetworkParams ( network ) ) ; } }
Source:
public java.util.Collection < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = java.util.Collections.emptyList ( ) ; } return new java.util.HashSet < org.ovirt.engine.core.compat.Guid > ( groupIds ) ; }

Target:
public java.util.Collection < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = java.util.Collections.emptyList ( ) ; } return new java.util.HashSet ( groupIds ) ; }
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 ) ; }

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 ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections entity = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; entity.setid ( GUIDS [ index ] . toString ( ) ) ; return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections entity = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; entity.setId ( GUIDS [ index ] . toString ( ) ) ; return entity ; }
Source:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ) ; }

Target:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType , 0 ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( getVm ( ) ) ; control.replay ( ) ; org.ovirt.engine.api.model.Cdrom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( getVm ( ) ) ; org.ovirt.engine.api.model.Cdrom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) { return sourceVmFromDb.getStoragePoolId ( ) . getValue ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) { return sourceVmFromDb.getStoragePoolId ( ) ; }
Source:
protected void buildVmConsoleDevice ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.CONSOLE , false , null ) ; }

Target:
public void buildVmConsoleDevice ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.CONSOLE , false , null ) ; }
Source:
boolean vdsUpEvent ( org.ovirt.engine.core.compat.Guid vdsId ) ;

Target:
boolean vdsUpEvent ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
public static org.ovirt.engine.core.common.network.SwitchType getDefaultSwitchType ( org.ovirt.engine.core.compat.Version clusterCompatibilityVersion ) { boolean ovsSupported = org.ovirt.engine.core.common.FeatureSupported.ovsSupported ( clusterCompatibilityVersion ) ; return ovsSupported ? SwitchType.OVS : SwitchType.LEGACY ; }

Target:
public static org.ovirt.engine.core.common.network.SwitchType getDefaultSwitchType ( org.ovirt.engine.core.compat.Version clusterCompatibilityVersion ) { return SwitchType.LEGACY ; }
Source:
public void setStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatus curStatus = getStoragePoolIsoMapData ( ) . getstatus ( ) ; if ( ( curStatus == null ) || ( curStatus != status ) ) { getStoragePoolIsoMapData ( ) . setstatus ( status ) ; } }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { getStoragePoolIsoMapData ( ) . setstatus ( status ) ; }
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 , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }
Source:
public org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk disk ) { validateEnums ( org.ovirt.engine.api.model.Disk.class , disk ) ; return performUpdate ( disk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.DiskResolver ( ) , VdcActionType.UpdateVmDisk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk disk ) { return performUpdate ( disk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.DiskResolver ( ) , VdcActionType.UpdateVmDisk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.UpdateParametersProvider ( ) ) ; }
Source:
public java.lang.String getUserId ( ) { return isLoggedIn ( ) ? loggedUser.getUserId ( ) . toString ( ) : null ; }

Target:
public java.lang.String getUserId ( ) { return isLoggedIn ( ) ? loggedUser.getId ( ) . toString ( ) : null ; }
Source:
public void testGetUserAndSetUserWithSessionParam ( ) { org.ovirt.engine.core.common.interfaces.IVdcUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.interfaces.IVdcUser.class ) ; container.setUser ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ) ; }

Target:
public void testGetUserAndSetUserWithSessionParam ( ) { org.ovirt.engine.core.common.interfaces.IVdcUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.interfaces.IVdcUser.class ) ; container.setUser ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , false ) ) ; }
Source:
public void enablePluginInvocation ( ) { canInvokePlugins = true ; for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { if ( plugin.isInState ( PluginState.READY ) ) { initPlugin ( plugin.getMetaData ( ) . getName ( ) ) ; } } }

Target:
public void enablePluginInvocation ( ) { canInvokePlugins = true ; for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { initPlugin ( plugin ) ; } }
Source:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACES_ALREADY_SPECIFIED ) ; }

Target:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACES_ALREADY_SPECIFIED , bond.getName ( ) ) ; }
Source:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.getCdromResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { try { collection.getCdromResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
protected void clearSelection ( ) { if ( ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) ) != null ) { org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . clear ( ) ; } }

Target:
protected void clearSelection ( ) { if ( ( getTable ( ) ) != null ) { getTable ( ) . getSelectionModel ( ) . clear ( ) ; } }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > fetchedDiskProfiles = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; this . setDiskProfilesList ( diskProfiles , fetchedDiskProfiles ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > fetchedDiskProfiles = returnValue.getReturnValue ( ) ; this . setDiskProfilesList ( diskProfiles , fetchedDiskProfiles ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( org.ovirt.engine.core.compat.NGuid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void testList ( ) throws java.lang.Exception { setUpGetVmHostDevicesExpectations ( ) ; control.replay ( ) ; verifyHostDevices ( resource.list ( ) . getHostDevices ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { setUpGetVmHostDevicesExpectations ( ) ; verifyHostDevices ( resource.list ( ) . getHostDevices ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { linuxOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { linuxOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( returnValue.getReturnValue ( ) ) ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.UserProfile profile = org.ovirt.engine.core.bll.UpdateUserProfileCommand.getUserProfile ( ) ; profile.setUserPortalVmLoginAutomatically ( org.ovirt.engine.core.bll.UpdateUserProfileCommand.getParameters ( ) . getUserProfile ( ) . isUserPortalVmLoginAutomatically ( ) ) ; executeCommandUpdateSSHPublicKey ( profile ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.UserProfile profile = org.ovirt.engine.core.bll.UpdateUserProfileCommand.getUserProfile ( ) ; executeCommandUpdateSSHPublicKey ( profile ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.RequestBuilder withOptionalParameterAsList ( java.lang.String name , java.util.List value ) { if ( ( value != null ) && ( value.isEmpty ( ) ) ) { return withParameter ( name , value ) ; } return this ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.RequestBuilder withOptionalParameterAsList ( java.lang.String name , java.util.List value ) { if ( ( value != null ) && ( ! ( value.isEmpty ( ) ) ) ) { return withParameter ( name , value ) ; } return this ; }
Source:
public abstract void initTable ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) ;

Target:
public abstract void initTable ( ) ;
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( "OnSave" . equalsIgnoreCase ( command.getName ( ) ) ) { onSave ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( "OnSave" . equalsIgnoreCase ( command.getName ( ) ) ) { onSave ( ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getSourceImages ( ) { if ( ( _sourceImages ) == null ) { _sourceImages = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDAO ( ) . getAllSnapshotsForVmSnapshot ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getParameters ( ) . getSnapshotId ( ) ) ; } return _sourceImages ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getSourceImages ( ) { if ( ( _sourceImages ) == null ) { _sourceImages = org.ovirt.engine.core.bll.RemoveSnapshotCommand.getDiskImageDAO ( ) . getAllSnapshotsForVmSnapshot ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getParameters ( ) . getSnapshotId ( ) ) ; } return _sourceImages ; }
Source:
public com.google.gwt.editor.ui.client.adapters.ValueBoxEditor < T > asEditor ( ) { if ( ( editor ) == null ) { editor = new org.ovirt.engine.ui.common.widget.editor.generic.ObservableValueBoxEditor < T > ( this ) ; } return editor ; }

Target:
public com.google.gwt.editor.ui.client.adapters.ValueBoxEditor < T > asEditor ( ) { if ( ( editor ) == null ) { editor = new org.ovirt.engine.ui.common.widget.editor.generic.ObservableValueBoxEditor ( this ) ; } return editor ; }
Source:
public java.lang.String getName ( ) { return this . name ; }

Target:
public java.lang.String getName ( ) { return super . getName ( ) ; }
Source:
private void addVmInterfaceStatisticsToList ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > list ) { if ( ( list.size ( ) ) <= 0 ) { return ; } _vmInterfaceStatisticsToSave.put ( list.get ( 0 ) . getVmId ( ) . getValue ( ) , list ) ; }

Target:
private void addVmInterfaceStatisticsToList ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > list ) { if ( ( list.size ( ) ) <= 0 ) { return ; } _vmInterfaceStatisticsToSave.put ( list.get ( 0 ) . getVmId ( ) , list ) ; }
Source:
public void onSuccess ( java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue.getReturnValue ( ) ) ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.gluster.StorageDevice device ) { if ( device.getCanCreateBrick ( ) ) { return null ; } return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.widget.table.column.StorageDeviceStatusColumn.constants.deviceIsAlreadyUsed ( ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.gluster.StorageDevice device ) { if ( device.getCanCreateBrick ( ) ) { return null ; } return org.ovirt.engine.ui.webadmin.widget.table.column.StorageDeviceStatusColumn.constants.deviceIsAlreadyUsed ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond ) { return org.apache.commons.lang.StringUtils.equals ( bond.getBondName ( ) , i.getName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond ) { return org.apache.commons.lang.StringUtils.equals ( bond.getBondName ( ) , i.getName ( ) ) ; }
Source:
public double getTotal ( ) { return 100 ; }

Target:
public double getTotal ( ) { double result = super . getTotal ( ) ; if ( result != 0 ) { result = 100 ; } return result ; }
Source:
public java.lang.Void call ( ) { try { op.run ( ) ; updateInterestedOps ( ) ; selector.wakeup ( ) ; } catch ( org.ovirt.vdsm.jsonrpc.client.ClientConnectionException e ) { org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient.log.error ( "Unable to process messages" , e ) ; } return null ; }

Target:
public java.lang.Void call ( ) { op.run ( ) ; updateInterestedOps ( ) ; selector.wakeup ( ) ; return null ; }
Source:
protected void syncSearch ( ) { if ( ( getVM ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters ( getVM ( ) . getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getVM ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getVM ( ) . getId ( ) ) ) ; }
Source:
public void getVmDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.VM v = b.getVm ( ) ; org.junit.Assert.assertNull ( v ) ; }

Target:
public void getVmDefault ( ) { final org.ovirt.engine.core.common.businessentities.VM v = b.getVm ( ) ; org.junit.Assert.assertNull ( v ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.RequestBuilder withOptionalParameterAsMap ( java.lang.String name , java.util.Map value ) { if ( ( value != null ) && ( value.keySet ( ) . isEmpty ( ) ) ) { return withParameter ( name , value ) ; } return this ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.RequestBuilder withOptionalParameterAsMap ( java.lang.String name , java.util.Map value ) { if ( ( value != null ) && ( ! ( value.isEmpty ( ) ) ) ) { return withParameter ( name , value ) ; } return this ; }
Source:
public static void getAllNetworkProviders ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getAllProvidersByProvidedEntity ( query , VdcObjectType.Network ) ; }

Target:
public void getAllNetworkProviders ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { getAllProvidersByProvidedEntity ( query , VdcObjectType.Network ) ; }
Source:
public void setStatus ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus value ) { if ( ( status ) != value ) { status = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Status" ) ) ; } }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus value ) { status = value ; }
Source:
protected java.lang.String getClusterName ( ) { return getEntity ( ) . getVdsGroupName ( ) ; }

Target:
protected java.lang.String getClusterName ( ) { return getEntity ( ) . getClusterName ( ) ; }
Source:
private void setInterfaces ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > diskInterfaces ) { getDiskInterface ( ) . setItems ( diskInterfaces ) ; setDefaultInterface ( ) ; }

Target:
private void setInterfaces ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > diskInterfaces ) { getDiskInterface ( ) . setItems ( diskInterfaces ) ; setDefaultInterface ( ) ; }
Source:
public int getAvailableMacsCount ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.readLock ( ) ) ) { checkIfInitialized ( ) ; int availableMacsSize = macsStorage.getAvailableMacsCount ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerRanges.log.debug ( "Number of available Mac addresses = {}" , availableMacsSize ) ; return availableMacsSize ; } }

Target:
public int getAvailableMacsCount ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.readLock ( ) ) ) { int availableMacsSize = macsStorage.getAvailableMacsCount ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerRanges.log.debug ( "Number of available Mac addresses = {}" , availableMacsSize ) ; return availableMacsSize ; } }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel flush ( ) { org.ovirt.engine.ui.uicommonweb.models.ListModel model = driver.flush ( ) ; flush ( model ) ; return model ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel flush ( ) { return driver.flush ( ) ; }
Source:
protected java.lang.String mapType ( org.ovirt.engine.core.common.businessentities.storage.StorageType type ) { return getMapper ( org.ovirt.engine.core.common.businessentities.storage.StorageType.class , java.lang.String.class ) . map ( type , null ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.StorageType mapType ( org.ovirt.engine.core.common.businessentities.storage.StorageType type ) { return getMapper ( org.ovirt.engine.core.common.businessentities.storage.StorageType.class , org.ovirt.engine.core.common.businessentities.storage.StorageType.class ) . map ( type , null ) ; }
Source:
public void setCpuName ( org.ovirt.engine.core.common.businessentities.ServerCpu value ) { _cpuName = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "CpuName" ) ) ; }

Target:
public void setCpuName ( org.ovirt.engine.core.common.businessentities.ServerCpu value ) { _cpuName = value ; }
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { }

Target:
private void localize ( ) { }
Source:
private void mockJobDao ( org.ovirt.engine.core.common.job.Job job ) { org.mockito.Mockito.when ( jobDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( job ) ; }

Target:
private void mockJobDao ( org.ovirt.engine.core.common.job.Job job ) { org.mockito.Mockito.when ( jobDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( job ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANDisableEffects ( ( ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANDisableEffects ( ( ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ) ( returnValue ) ) ) ; }
Source:
protected void buildVmSoundDevices ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.SOUND , true , null ) ; }

Target:
public void buildVmSoundDevices ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.SOUND , true , null ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel itemModel ) { java.lang.String osName = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getOsName ( itemModel.getOsId ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( osName ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel itemModel ) { java.lang.String osName = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getOsName ( itemModel.getOsId ( ) ) ; return osName ; }
Source:
public final void createPool ( org.ovirt.engine.core.common.businessentities.MacPool macPool ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = writeLockResource ( ) ) { checkInitialized ( ) ; createPoolWithoutLocking ( macPool ) ; } }

Target:
public void createPool ( org.ovirt.engine.core.common.businessentities.MacPool macPool ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = writeLockResource ( ) ) { createPoolWithoutLocking ( macPool ) ; } }
Source:
public java.util.List < java.lang.Class < ? extends java.lang.Exception > > getExceptions ( ) { return exceptions ; }

Target:
public java.util.List < java.lang.Class < ? extends java.lang.Exception > > getExceptions ( ) { return this . exceptions ; }
Source:
private void setVmSnapshotIdForDisk ( org.ovirt.engine.core.common.action.AddImageFromScratchParameters parameters ) { if ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getDiskInfo ( ) . isAllowSnapshot ( ) ) { parameters.setVmSnapshotId ( getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.AddDiskCommand.getVmId ( ) , SnapshotType.ACTIVE ) ) ; } }

Target:
private void setVmSnapshotIdForDisk ( org.ovirt.engine.core.common.action.AddImageFromScratchParameters parameters ) { if ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getDiskInfo ( ) . isAllowSnapshot ( ) ) { parameters.setVmSnapshotId ( org.ovirt.engine.core.bll.AddDiskCommand.getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.AddDiskCommand.getVmId ( ) , SnapshotType.ACTIVE ) ) ; } }
Source:
public java.util.List < java.lang.String > getLunIds ( ) { return ( lunIds ) == null ? new java.util.ArrayList < > ( ) : lunIds ; }

Target:
public java.util.List < java.lang.String > getLunIds ( ) { if ( ( lunIds ) == null ) { lunIds = new java.util.ArrayList < > ( ) ; } return lunIds ; }
Source:
public void WriteNamespace ( java.lang.String prefix , java.lang.String uri ) { try { writer.writeNamespace ( prefix , uri ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write namespace" , e ) ; } }

Target:
public void writeNamespace ( java.lang.String prefix , java.lang.String uri ) { try { writer.writeNamespace ( prefix , uri ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write namespace" , e ) ; } }
Source:
protected org.ovirt.engine.core.utils.ovf.xml.XmlNode selectSingleNode ( org.ovirt.engine.core.utils.ovf.xml.XmlDocument doc , java.lang.String pattern , org.ovirt.engine.core.utils.ovf.xml.XmlNamespaceManager ns ) { this . lastReadEntry = pattern ; if ( ns == null ) { return doc.SelectSingleNode ( pattern ) ; } return doc.SelectSingleNode ( pattern , ns ) ; }

Target:
protected org.ovirt.engine.core.utils.ovf.xml.XmlNode selectSingleNode ( org.ovirt.engine.core.utils.ovf.xml.XmlDocument doc , java.lang.String pattern , org.ovirt.engine.core.utils.ovf.xml.XmlNamespaceManager ns ) { this . lastReadEntry = pattern ; if ( ns == null ) { return doc.selectSingleNode ( pattern ) ; } return doc.selectSingleNode ( pattern , ns ) ; }
Source:
java.lang.String vlanNetwork ( java.lang.String name , java.lang.String vlanId ) ;

Target:
java.lang.String vlanNetwork ( int vlanId ) ;