auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.bll.ValidationResult versionSupported ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) . unless ( org.ovirt.engine.core.bll.utils.VersionSupport.checkVersionSupported ( cluster.getcompatibility_version ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult versionSupported ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) . unless ( org.ovirt.engine.core.bll.utils.VersionSupport.checkVersionSupported ( cluster.getCompatibilityVersion ( ) ) ) ; }
Source:
public org.ovirt.engine.sdk.utils.UrlBuilder add ( java.lang.String key , java.lang.Object value , org.ovirt.engine.sdk.web.UrlParameterType type ) { this . params.add ( new org.ovirt.engine.sdk.utils.UrlBuilder.UrlParsameter ( key , ( value != null ? java.lang.String.valueOf ( value ) : null ) , type ) ) ; return this ; }

Target:
public org.ovirt.engine.sdk.utils.UrlBuilder add ( java.lang.String key , java.lang.Object value , org.ovirt.engine.sdk.web.UrlParameterType type ) { this . params.add ( new org.ovirt.engine.sdk.utils.UrlBuilder.UrlParameter ( key , ( value != null ? java.lang.String.valueOf ( value ) : null ) , type ) ) ; return this ; }
Source:
private void mockDbDao ( ) { mockVdsGroupDao ( ) ; mockVMPoolDao ( ) ; mockVMTemplateDao ( ) ; mockVmNetworkInterfaceDao ( ) ; mockStoragePoolDao ( ) ; }

Target:
private void mockDbDao ( ) { mockClusterDao ( ) ; mockVMPoolDao ( ) ; mockVMTemplateDao ( ) ; mockVmNetworkInterfaceDao ( ) ; mockStoragePoolDao ( ) ; }
Source:
public void testFailWhenReturningMacOutsideOfRange ( ) throws java.lang.Exception { rangeOf10Macs.freeMac ( org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.MAC_OUTSIDE_OF_RANGE ) ; }

Target:
public void testFailWhenReturningMacOutsideOfRange ( ) throws java.lang.Exception { rangeOf10Macs.freeMac ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE ) ; }
Source:
protected boolean filterQueries ( ) { return false ; }

Target:
private org.ovirt.engine.core.common.users.VdcUser getLoggedInUser ( javax.servlet.http.HttpServletRequest request ) { return ( ( org.ovirt.engine.core.common.users.VdcUser ) ( runQuery ( VdcQueryType.GetUserBySessionId , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , request ) ) ) ; }
Source:
public boolean CheckIfCpusExist ( java.lang.String cpuName ) { return ( cpuName != null ) && ( ( ( _intelCpuByNameDictionary.containsKey ( cpuName ) ) || ( _amdCpuByNameDictionary.containsKey ( cpuName ) ) ) || ( _ibmCpuByNameDictionary.containsKey ( cpuName ) ) ) ; }

Target:
public boolean checkIfCpusExist ( java.lang.String cpuName ) { return ( cpuName != null ) && ( ( ( _intelCpuByNameDictionary.containsKey ( cpuName ) ) || ( _amdCpuByNameDictionary.containsKey ( cpuName ) ) ) || ( _ibmCpuByNameDictionary.containsKey ( cpuName ) ) ) ; }
Source:
public void testIgnoreCaseOn ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[A-Z]" , RegexOptions.IgnoreCase ) ; org.junit.Assert.assertTrue ( "A cap should match" , regex.IsMatch ( "K" ) ) ; org.junit.Assert.assertTrue ( "A lowercase should match" , regex.IsMatch ( "k" ) ) ; }

Target:
public void testIgnoreCaseOn ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[A-Z]" , RegexOptions.IgnoreCase ) ; org.junit.Assert.assertTrue ( "A cap should match" , regex.isMatch ( "K" ) ) ; org.junit.Assert.assertTrue ( "A lowercase should match" , regex.isMatch ( "k" ) ) ; }
Source:
protected void initTemplateDisks ( ) { if ( ( vmDisksSource ) != null ) { org.ovirt.engine.core.bll.VmTemplateHandler.UpdateDisksFromDb ( vmDisksSource ) ; } }

Target:
protected void initTemplateDisks ( ) { if ( ( vmDisksSource ) != null ) { org.ovirt.engine.core.bll.VmTemplateHandler.updateDisksFromDb ( vmDisksSource ) ; } }
Source:
private org.ovirt.engine.api.model.VM removeRestrictedInfo ( org.ovirt.engine.api.model.VM vm ) { if ( isFiltered ( ) ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } return vm ; }

Target:
private org.ovirt.engine.api.model.Vm removeRestrictedInfo ( org.ovirt.engine.api.model.Vm vm ) { if ( isFiltered ( ) ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } return vm ; }
Source:
protected boolean canDoAction ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__NETWORK ) ; return org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.CommonNetworkValidation ( org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) , org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean canDoAction ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__NETWORK ) ; return org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.CommonNetworkValidation ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) , org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . status = value ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . status = value ; }
Source:
public void vmNotRunningOnHost ( org.ovirt.engine.core.vdsbroker.monitoring.VmTestPairs data ) { initMocks ( data , false ) ; org.junit.Assume.assumeTrue ( ( ( data.vdsmVm ( ) ) == null ) ) ; vmAnalyzer.analyze ( ) ; org.junit.Assert.assertTrue ( vmAnalyzer.isMovedToDown ( ) ) ; }

Target:
public void vmNotRunningOnHost ( org.ovirt.engine.core.vdsbroker.monitoring.VmTestPairs data ) { initMocks ( data , false ) ; org.junit.jupiter.api.Assumptions.assumeTrue ( ( ( data.vdsmVm ( ) ) == null ) ) ; vmAnalyzer.analyze ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmAnalyzer.isMovedToDown ( ) ) ; }
Source:
private void validateAndExpectNoViolations ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper ) { java.util.List < java.lang.String > violations = helper.validate ( ) ; junit.framework.Assert.assertTrue ( ( "Expected no violations, but got: " + violations ) , violations.isEmpty ( ) ) ; }

Target:
private void validateAndExpectNoViolations ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper ) { java.util.List < java.lang.String > violations = helper.validate ( ) ; org.junit.Assert.assertTrue ( ( "Expected no violations, but got: " + violations ) , violations.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.NetworkClusterParameters eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { return new org.ovirt.engine.core.common.action.NetworkClusterParameters ( networkCluster ) ; }

Target:
public org.ovirt.engine.core.common.action.NetworkClusterParameters apply ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { return new org.ovirt.engine.core.common.action.NetworkClusterParameters ( networkCluster ) ; }
Source:
protected org.ovirt.engine.api.model.Host postPopulate ( org.ovirt.engine.api.model.Host from ) { while ( ( from.getPort ( ) ) == 0 ) { from.setPort ( org.ovirt.engine.api.restapi.types.MappingTestHelper.rand ( 65535 ) ) ; } from.getStorageManager ( ) . setPriority ( 3 ) ; return from ; }

Target:
protected org.ovirt.engine.api.model.Host postPopulate ( org.ovirt.engine.api.model.Host from ) { while ( ( from.getPort ( ) ) == 0 ) { from.setPort ( org.ovirt.engine.api.restapi.types.MappingTestHelper.rand ( 65535 ) ) ; } from.getSpm ( ) . setPriority ( 3 ) ; return from ; }
Source:
protected void revertTasks ( ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.revertTasks ( this ) ; }

Target:
protected void revertTasks ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.revertTasks ( this ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return null ; }
Source:
protected void executeCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > watchdogs = getWatchdogs ( ) ; org.ovirt.engine.core.common.businessentities.VmDevice watchdogDevice = watchdogs.get ( 0 ) ; watchdogDevice.setSpecParams ( getSpecParams ( ) ) ; getVmDeviceDao ( ) . update ( watchdogDevice ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > watchdogs = getWatchdogs ( ) ; org.ovirt.engine.core.common.businessentities.VmDevice watchdogDevice = watchdogs.get ( 0 ) ; watchdogDevice.setSpecParams ( getSpecParams ( ) ) ; vmDeviceDao.update ( watchdogDevice ) ; setSucceeded ( true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VolumeType getVolumeType ( ) { return ( ( org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getstorage_pool_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.NFS ) ) || ( ( org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getstorage_pool_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS ) ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; }

Target:
private org.ovirt.engine.core.common.businessentities.VolumeType getVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getstorage_pool_type ( ) . isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . get ( org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getParameters ( ) . isFiltered ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( dbUserDao.get ( org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public abstract org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface generateVdsNetworkInterface ( java.lang.String value ) ;

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface generateVdsNetworkInterface ( java.lang.String value ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; setIfaceProperty ( iface , value ) ; return iface ; }
Source:
protected javax.ws.rs.core.Response doAction ( final org.ovirt.engine.core.common.action.VdcActionType task , final org.ovirt.engine.core.common.action.VdcActionParametersBase params , final org.ovirt.engine.api.model.Action action , org.ovirt.engine.api.restapi.resource.EntityResolver entityResolver ) { return doAction ( task , params , action , PollingType.VDSM_TASKS , entityResolver ) ; }

Target:
protected javax.ws.rs.core.Response doAction ( final org.ovirt.engine.core.common.action.ActionType task , final org.ovirt.engine.core.common.action.VdcActionParametersBase params , final org.ovirt.engine.api.model.Action action , org.ovirt.engine.api.restapi.resource.EntityResolver entityResolver ) { return doAction ( task , params , action , PollingType.VDSM_TASKS , entityResolver ) ; }
Source:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; junit.framework.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }

Target:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainsByConnId ( java.lang.String connectionId ) { return getStorageDomainDao ( ) . getAllByConnectionId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( connectionId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainsByConnId ( java.lang.String connectionId ) { return org.ovirt.engine.core.bll.storage.StorageServerConnectionCommandBase.getStorageDomainDao ( ) . getAllByConnectionId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( connectionId ) ) ; }
Source:
public void noVdsGroup ( ) { simulateVdsGroupDoesNotExist ( ) ; assertCanDoActionFailure ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }

Target:
public void noVdsGroup ( ) { simulateVdsGroupDoesNotExist ( ) ; assertValidateFailure ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }
Source:
public void writeElement ( java.lang.String name , java.lang.String value ) { writeStartElement ( name ) ; writeCharacters ( value ) ; writeEndElement ( ) ; }

Target:
public void writeStartElement ( java.lang.String name ) { try { writer.writeStartElement ( name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( int idx ) { org.ovirt.engine.core.common.businessentities.storage_domains dom = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomain ( int idx ) { org.ovirt.engine.api.model.StorageDomain dom = new org.ovirt.engine.api.model.StorageDomain ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }
Source:
public org.slf4j.Logger produceLogger ( javax.enterprise.inject.spi.InjectionPoint injectionPoint ) { return org.slf4j.LoggerFactory.getLogger ( injectionPoint.getMember ( ) . getDeclaringClass ( ) ) ; }

Target:
private org.ovirt.engine.core.dao.VdsDAO produceVdsDao ( org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacade ) { return dbFacade.getVdsDao ( ) ; }
Source:
private void bootProtocolChanged ( ) { updateCanSpecify ( ) ; getAddress ( ) . setIsValid ( true ) ; getSubnet ( ) . setIsValid ( true ) ; getGateway ( ) . setIsValid ( true ) ; }

Target:
private void bootProtocolChanged ( ) { updateCanSpecify ( ) ; getIpv4Address ( ) . setIsValid ( true ) ; getIpv4Subnet ( ) . setIsValid ( true ) ; getIpv4Gateway ( ) . setIsValid ( true ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setstorage_pool_id ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return group ; }
Source:
public void testGetTemplatesForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_1 , VmEntityType.TEMPLATE ) ; org.junit.Assert.assertTrue ( "A Template should be fetched for the specified storage domain" , ( ! ( ovfEntityDataList.isEmpty ( ) ) ) ) ; }

Target:
public void testGetTemplatesForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_1 , VmEntityType.TEMPLATE ) ; org.junit.Assert.assertTrue ( "A Template should be fetched for the specified storage domain" , ( ! ( ovfEntityDataList.isEmpty ( ) ) ) ) ; }
Source:
private boolean isVmMigratingToThisVds ( ) { return ( ( dbVm.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ) && ( getVdsManager ( ) . getVdsId ( ) . equals ( dbVm.getMigratingToVds ( ) ) ) ; }

Target:
private boolean isVmMigratingToThisVds ( org.ovirt.engine.core.common.businessentities.VMStatus vmStatus , org.ovirt.engine.core.compat.Guid migratingToVds ) { return ( vmStatus == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ) && ( getVdsManager ( ) . getVdsId ( ) . equals ( migratingToVds ) ) ; }
Source:
public static org.ovirt.engine.api.resteasy.json.CustomObjectMapper get ( ) { org.ovirt.engine.api.resteasy.json.CustomObjectMapper mapper = new org.ovirt.engine.api.resteasy.json.CustomObjectMapper ( ) ; mapper.setSerializer ( new org.ovirt.engine.api.resteasy.json.CustomBeanFactory ( ) ) . includeDefaults ( false ) . indent ( true ) . addSerializationConfig ( ) ; return mapper ; }

Target:
public static org.ovirt.engine.api.json.CustomObjectMapper get ( ) { org.ovirt.engine.api.json.CustomObjectMapper mapper = new org.ovirt.engine.api.json.CustomObjectMapper ( ) ; mapper.setSerializer ( new org.ovirt.engine.api.json.CustomBeanFactory ( ) ) . includeDefaults ( false ) . indent ( true ) . addSerializationConfig ( ) ; return mapper ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml glusterCapcityProgressBar ( int progress , java.lang.String sizeString , java.lang.String color , java.lang.String toolTip , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml glusterCapcityProgressBar ( com.google.gwt.safecss.shared.SafeStyles styles , java.lang.String sizeString , java.lang.String toolTip , java.lang.String id ) ;
Source:
private void addGhostEntry ( ) { addEntry ( createGhostValue ( ) ) ; }

Target:
private org.ovirt.engine.core.common.utils.Pair < T , V > addGhostEntry ( ) { T value = createGhostValue ( ) ; V widget = addEntry ( value ) ; return new org.ovirt.engine.core.common.utils.Pair < T , V > ( value , widget ) ; }
Source:
protected void TestVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }

Target:
protected void testVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { org.ovirt.engine.core.bll.pm.PmHealthCheckManager.getInstance ( ) . pmHealthCheck ( vdsStatic.getId ( ) ) ; } }
Source:
public void testGetStorageDomainWithNoStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , null ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_NFS_INACTIVE_ISO , result.getId ( ) ) ; }

Target:
public void testGetStorageDomainWithNoStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , null ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_NFS_INACTIVE_ISO , result.get ( 0 ) . getId ( ) ) ; }
Source:
public void testExistingDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { setSdFullDiscardFunctionality ( ) ; junit.framework.Assert.assertTrue ( discardHelper.isExistingDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { setSdFullDiscardSupport ( ) ; junit.framework.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }
Source:
public void setDisplayIp ( java.lang.String value ) { this . vmDynamic.setDisplayIp ( value ) ; }

Target:
public void addMemoryUsageHistory ( java.lang.Integer memoryUsageHistory , int limit ) { this . vmStatistics.addMemoryUsageHistory ( memoryUsageHistory , limit ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . StopProgress ( ) ; vmListModel1.Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . stopProgress ( ) ; vmListModel1.cancel ( ) ; }
Source:
public static void Sort ( java.util.List source , java.util.Comparator comparer ) { java.util.Collections.sort ( source , comparer ) ; }

Target:
public static final java.lang.Iterable < org.ovirt.engine.core.common.businessentities.Provider > filterNetworkProviders ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.Provider > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.filterProvidersByProvidedType ( source , VdcObjectType.Network ) ; }
Source:
public void testGetWithRunningVmsWhereThereAreNone ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getWithRunningVms ( groupWithNoRunningVms.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithRunningVmsWhereThereAreNone ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getWithRunningVms ( groupWithNoRunningVms.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private boolean doesUserHavePemissionsOnStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStoragePoolDAO ( ) . get ( getStoragePoolId ( ) , org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getParameters ( ) . isFiltered ( ) ) ; return pool != null ; }

Target:
private boolean doesUserHavePemissionsOnStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStoragePoolDao ( ) . get ( getStoragePoolId ( ) , org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getParameters ( ) . isFiltered ( ) ) ; return pool != null ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; updateVirtioScsiAvailability ( ) ; }
Source:
public void testShortMessage ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEcho ( generateRandomMessage ( 16 ) , 60625 ) ; }

Target:
public void testShortMessage ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEcho ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClientTestCase.generateRandomMessage ( 16 ) , 60625 ) ; }
Source:
public void onManualRefresh ( org.ovirt.engine.ui.common.widget.refresh.ManualRefreshEvent event ) { if ( this . isVisible ( ) ) { getView ( ) . removeContent ( ) ; } }

Target:
public void onManualRefresh ( org.ovirt.engine.ui.common.widget.refresh.ManualRefreshEvent event ) { if ( ( this . isVisible ( ) ) && ( this . getModelProvider ( ) . getModel ( ) . equals ( event.getSource ( ) ) ) ) { getView ( ) . removeContent ( ) ; } }
Source:
public void testIsDataDomainValid ( ) { domain.setStorageDomainType ( StorageDomainType.Data ) ; org.junit.Assert.assertThat ( validator.isDataDomain ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIsDataDomainValid ( ) { domain.setStorageDomainType ( StorageDomainType.Data ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isDataDomain ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetLunsThatBreakPassDiscardFunctionalityDiscardFunctionalityDoesntBreak ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , true ) ; assertGetLunsThatBreakPassDiscardFunctionalityContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , true ) ) , java.util.Collections.emptyList ( ) ) ; }

Target:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteDoesntBreak ( ) { storageDomain.setDiscardAfterDelete ( true ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VmTemplateStatus value ) { status = value ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VmTemplateStatus value ) { status = value ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap ) . validateNetworkExclusiveOnNics ( ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator validator = new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap , networkExclusivenessValidator ) ; return validator.validateNetworkExclusiveOnNics ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; vm.setstorage_pool_id ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return vm ; }

Target:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; vm.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return vm ; }
Source:
public static boolean isBondModeValidForVmNetwork ( java.lang.String bondOptions ) { org.ovirt.engine.core.common.businessentities.network.BondMode bondMode = org.ovirt.engine.core.common.businessentities.network.BondMode.getBondMode ( bondOptions ) ; if ( bondMode == null ) { return false ; } return bondMode.isBondModeValidForVmNetwork ( ) ; }

Target:
public static boolean isBondModeValidForVmNetwork ( java.lang.String bondOptions ) { org.ovirt.engine.core.common.businessentities.network.BondMode bondMode = org.ovirt.engine.core.common.businessentities.network.BondMode.parseBondMode ( bondOptions ) ; if ( bondMode == null ) { return false ; } return bondMode.isBondModeValidForVmNetwork ( ) ; }
Source:
public void validateFailsDiffInterface ( ) { initTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ; prepareInterfaceMocks ( ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsDiffInterface ( ) { initTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ; prepareInterfaceMocks ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; junit.framework.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 0L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) , storageDomain ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 0L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) , storageDomain ) ) ; }
Source:
public void testReturnNullWhenGivenNullIp ( ) { org.ovirt.engine.api.model.IpVersion version = org.ovirt.engine.api.restapi.types.IpHelper.getVersion ( null ) ; org.junit.Assert.assertEquals ( null , version ) ; }

Target:
public void testReturnNullWhenGivenNullIp ( ) { org.ovirt.engine.api.model.IpVersion version = org.ovirt.engine.api.restapi.types.IpHelper.getVersion ( null ) ; org.junit.Assert.assertNull ( version ) ; }
Source:
public void managementNetworkNotExternalValidNotManagementNotExternal ( ) { testmanagementNetworkNotExternal ( false , false , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }

Target:
public void managementNetworkNotExternalValidNotManagementNotExternal ( ) { testManagementNetworkNotExternal ( false , false , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }
Source:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > allTemplateImages ) { return ovfManager.ExportTemplate ( template , allTemplateImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( template ) ) ; }

Target:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > allTemplateImages ) { return ovfManager.exportTemplate ( template , allTemplateImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( template ) ) ; }
Source:
public void setparent_id ( org.ovirt.engine.core.compat.Guid parent ) { this . parent = parent ; }

Target:
public void setParentId ( org.ovirt.engine.core.compat.Guid parent ) { this . parent = parent ; }
Source:
public void testCheckGlusterQuorumWithoutGluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( false ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = new java.util.LinkedList < > ( ) ; org.junit.Assert.assertTrue ( "Quorum checks runs for Cluster without gluster service" , hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }

Target:
public void testCheckGlusterQuorumWithoutGluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( false ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = new java.util.LinkedList < > ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) , "Quorum checks runs for Cluster without gluster service" ) ; }
Source:
public void testGetProtocolsByPriority ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol.getProtocolsByPriority ( ) , org.hamcrest.core.Is.is ( java.util.Arrays.asList ( new org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol [ ] { ConsoleProtocol.RDP , ConsoleProtocol.VNC , ConsoleProtocol.SPICE } ) ) ) ; }

Target:
public void testGetProtocolsByPriority ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol.getProtocolsByPriority ( ) , org.hamcrest.core.Is.is ( java.util.Arrays.asList ( new org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol [ ] { ConsoleProtocol.RDP , ConsoleProtocol.VNC , ConsoleProtocol.SPICE } ) ) ) ; }
Source:
protected void addCanDoActionMessage ( org.ovirt.engine.core.dal.VdcBllMessages message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message.name ( ) ) ; }

Target:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message.name ( ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , size , url , timeout , transferTypes , fileName ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , size , url , timeout , transferTypes , fileName , active , transferred ) ; }
Source:
public void testNonExistingSnapshotQuery ( ) { org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > query = setupQueryBySnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.common.queries.QueryReturnValue returnValue = query.getQueryReturnValue ( ) ; org.ovirt.engine.core.common.businessentities.VM returnedVm = returnValue.getReturnValue ( ) ; org.junit.Assert.assertNull ( "Return value from non existent query should be null" , returnedVm ) ; }

Target:
public void testNonExistingSnapshotQuery ( ) { org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > query = setupQueryBySnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.common.queries.QueryReturnValue returnValue = query.getQueryReturnValue ( ) ; org.ovirt.engine.core.common.businessentities.VM returnedVm = returnValue.getReturnValue ( ) ; org.junit.jupiter.api.Assertions.assertNull ( returnedVm , "Return value from non existent query should be null" ) ; }
Source:
protected void configure ( ) { bindModels ( ) ; bindIntegration ( ) ; install ( new org.ovirt.engine.ui.userportal.gin.UserPortalModule ( ) ) ; }

Target:
protected void configure ( ) { bindModels ( ) ; bindModelProviders ( ) ; bindIntegration ( ) ; }
Source:
private org.ovirt.engine.core.compat.Guid addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMemoryDisk ( vm , getStorageType ( ) , vmOverheadCalculator ) ; return addDisk ( memoryDisk ) ; }

Target:
private org.ovirt.engine.core.compat.Guid addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMemoryDisk ( vm , getStorageType ( ) , vmOverheadCalculator , org.ovirt.engine.core.bll.memory.MemoryUtils.generateMemoryDiskDescription ( vm , snapshotDescription ) ) ; return addDisk ( memoryDisk ) ; }
Source:
public void Provisioning_SelectedItemChanged ( ) { }

Target:
public void provisioning_SelectedItemChanged ( ) { }
Source:
public void testNonExistingUsbControllerModel ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "windows_8" ) , null , ChipsetType.I440FX ) ; org.junit.Assert.assertNull ( model ) ; }

Target:
public void testNonExistingUsbControllerModel ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "windows_8" ) , null , ChipsetType.I440FX ) ; org.junit.jupiter.api.Assertions.assertNull ( model ) ; }
Source:
public void onCleanupModel ( org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent event ) { if ( ( hasModel ( ) ) && ( ! ( reusesModel ( ) ) ) ) { getModel ( ) . unsetEventBus ( ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ; if ( "WidgetModel" . equals ( propName ) ) { modelBoundWidgetChange ( ) ; } }
Source:
private void pause ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.HibernateVmParameters ( entity.getId ( ) ) ) ; }

Target:
private void pause ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.VmOperationParameterBase ( entity.getId ( ) ) ) ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { markValidation ( true , validationHints ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { lunsListPanel.markAsInvalid ( validationHints ) ; targetsToLunsPanel.markAsInvalid ( validationHints ) ; }
Source:
protected java.lang.String getTransferDescription ( ) { return java.lang.String.format ( "%s '%s' (id '%s')" , getImageType ( ) , getImageAlias ( ) , getImageIdNullSafe ( ) ) ; }

Target:
protected java.lang.String getTransferDescription ( ) { return java.lang.String.format ( "%s %s '%s' (id '%s')" , org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getTransferType ( ) . name ( ) , getImageType ( ) , getImageAlias ( ) , getImageIdNullSafe ( ) ) ; }
Source:
public void run ( ) { SleepOnReboot ( status ) ; }

Target:
public void run ( ) { sleepOnReboot ( status ) ; }
Source:
public boolean disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.RemoveStorageServerConnection.getValue ( ) ) ; }

Target:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.DisconnectStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }
Source:
public static void AddVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert ) { alert.setVdsId ( vdsId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.Alert ( alert , type ) ; }

Target:
public static void AddVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert ) { alert.setVdsId ( vdsId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.Alert ( alert , type , auditLogDirector ) ; }
Source:
public void addListener ( java.lang.String name , java.lang.String type , org.ovirt.engine.core.compat.IEventListener listener ) { listenerMap.put ( getKey ( name , type ) , listener ) ; }

Target:
public void addListener ( java.lang.String name , java.lang.String type , org.ovirt.engine.ui.uicompat.IEventListener listener ) { listenerMap.put ( getKey ( name , type ) , listener ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.FormatStorageDomainVDSCommand.getBroker ( ) . formatStorageDomain ( org.ovirt.engine.core.vdsbroker.vdsbroker.FormatStorageDomainVDSCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.FormatStorageDomainVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.FormatStorageDomainVDSCommand.getBroker ( ) . formatStorageDomain ( org.ovirt.engine.core.vdsbroker.vdsbroker.FormatStorageDomainVDSCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.FormatStorageDomainVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . vmDynamic.getstatus ( ) ; }

Target:
public void setDisplaySecurePort ( java.lang.Integer value ) { this . vmDynamic.setDisplaySecurePort ( value ) ; }
Source:
public void Rollback ( ) { super . Rollback ( ) ; try { org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . freeMac ( getMacAddress ( ) ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void rollback ( ) { super . rollback ( ) ; try { org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . freeMac ( getMacAddress ( ) ) ; } catch ( java.lang.Exception e ) { } }
Source:
private void removeAllLabelsByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createVfsConfigIdParameter ( vfsConfigId ) ; getCallsHandler ( ) . executeModification ( "DeleteAllvfsConfigLabels" , parameterSource ) ; }

Target:
public void addNetwork ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { getCallsHandler ( ) . executeModification ( "InsertVfsConfigNetwork" , createNetworkParametersMapper ( vfsConfigId , networkId ) ) ; }
Source:
private void updateArrayOfVmStaticsInDb ( org.ovirt.engine.core.common.businessentities.VmStatic [ ] vmStaticArray ) { for ( int i = 0 ; i < ( vmStaticArray.length ) ; i ++ ) { dbFacade.getVmStaticDao ( ) . update ( vmStaticArray [ i ] ) ; } }

Target:
private void updateArrayOfVmStaticsInDb ( org.ovirt.engine.core.common.businessentities.VmStatic [ ] vmStaticArray ) { for ( org.ovirt.engine.core.common.businessentities.VmStatic element : vmStaticArray ) { dbFacade.getVmStaticDao ( ) . update ( element ) ; } }
Source:
public void testSave ( ) { dao.save ( newGroup ) ; org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( newGroup.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newGroup , result ) ; }

Target:
public void testSave ( ) { dao.save ( newGroup ) ; org.ovirt.engine.core.common.businessentities.Cluster result = dao.getByName ( newGroup.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newGroup , result ) ; }
Source:
private void cancel ( ) { setWindow ( null ) ; }

Target:
private void cancel ( ) { setWindow ( null ) ; policyUnitModel = null ; }
Source:
public void execute ( ) { enforceScrollPosition ( ) ; }

Target:
public void execute ( ) { enforceScrollPosition ( ) ; doAutoSelect = true ; }
Source:
public abstract void init ( T qos ) ;

Target:
protected abstract org.ovirt.engine.core.common.action.QosParametersBase < T > getParameters ( ) ;
Source:
protected R injectSearchLinks ( R resource , java.lang.String [ ] rels ) { for ( java.lang.String rel : rels ) { resource.getLinks ( ) . add ( org.ovirt.engine.api.common.util.LinkHelper.createSearchLink ( resource.getHref ( ) , rel ) ) ; } return resource ; }

Target:
protected R injectSearchLinks ( R resource , java.lang.String [ ] rels ) { for ( java.lang.String rel : rels ) { resource.getLinks ( ) . add ( org.ovirt.engine.api.utils.LinkHelper.createSearchLink ( resource.getHref ( ) , rel ) ) ; } return resource ; }
Source:
public void updateVisibility ( ) { super . updateVisibility ( ) ; messageLabel.setVisible ( false ) ; apply.setVisible ( false ) ; }

Target:
public void updateVisibility ( ) { super . updateVisibility ( ) ; dataCenterEditor.setVisible ( false ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getStorageDomainByName ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.StorageDomainStatic > aQuery , java.lang.String storageDomainName ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStorageDomainByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( storageDomainName ) , aQuery ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAll ( ) ; assertNotNull ( result ) ; assertEquals ( org.ovirt.engine.core.dao.TagDAOTest.TAG_COUNT , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.TagDAOTest.TAG_COUNT , result.size ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.validator.StorageDomainValidator getValidator ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( getStorageDomainById ( domainId , storagePoolId ) ) ; }

Target:
private boolean validateDestStorageAndSourceStorageOfSameTypes ( org.ovirt.engine.core.common.businessentities.StorageDomain destDomain , org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain ) { if ( ( destDomain.getStorageType ( ) . getStorageSubtype ( ) ) != ( sourceDomain.getStorageType ( ) . getStorageSubtype ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_DESTINATION_AND_SOURCE_STORAGE_SUB_TYPES_DIFFERENT ) ; } return true ; }
Source:
public boolean isDebugEnabled ( ) { return log.isDebugEnabled ( ) ; }

Target:
public boolean isWarnEnabled ( ) { return log.isWarnEnabled ( ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( this , taskType , taskParameters , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTasks > getAllAsyncTasksFromDb ( ) { return coCoAsyncTaskHelper.getAllAsyncTasksFromDb ( this ) ; }