auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.VM result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.WebadminRunOnceModel ( result , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.WebadminRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }
Source:
public boolean isHibernating ( ) { return ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.SavingState ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.PreparingForHibernate ) ) ; }

Target:
public boolean isHibernating ( ) { return ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.SavingState ) ; }
Source:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.GetHostsByClusterIdParameters ( cluster.getId ( ) ) , query ) ; }

Target:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( cluster.getId ( ) ) , query ) ; }
Source:
public static void getGlusterVolumeBrickDetails ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.compat.Guid brickId ) { org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters ( clusterId , volumeId , brickId , true ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeAdvancedDetails , parameters , aQuery ) ; }

Target:
public static void getGlusterVolumeBrickDetails ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.compat.Guid brickId ) { org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters ( clusterId , volumeId , brickId , true ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeAdvancedDetails , parameters , aQuery ) ; }
Source:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmCommand.failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfileForUser ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getGroupId ( ) { return org.ovirt.engine.core.bll.AdGroupsHandlingCommandBase.getParameters ( ) . getAdElementId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getGroupId ( ) { return org.ovirt.engine.core.bll.AdGroupsHandlingCommandBase.getParameters ( ) . getId ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > provider = new org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > ( ) ; provider.setId ( generateNonExistingId ( ) ) ; provider.setName ( "brovider" ) ; provider.setUrl ( "http://brovider.com/" ) ; provider.setType ( ProviderType.OPENSTACK_NETWORK ) ; org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties additionalProperties = new org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties ( ) ; additionalProperties.setTenantName ( "10ant" ) ; additionalProperties.setPluginType ( OpenstackNetworkPluginType.LINUX_BRIDGE.name ( ) ) ; provider.setAdditionalProperties ( additionalProperties ) ; provider.setAuthUrl ( "http://keystone-server:35357/v2.0/" ) ; return provider ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > provider = new org.ovirt.engine.core.common.businessentities.Provider ( ) ; provider.setId ( generateNonExistingId ( ) ) ; provider.setName ( "brovider" ) ; provider.setUrl ( "http://brovider.com/" ) ; provider.setType ( ProviderType.OPENSTACK_NETWORK ) ; org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties additionalProperties = new org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties ( ) ; additionalProperties.setTenantName ( "10ant" ) ; additionalProperties.setPluginType ( OpenstackNetworkPluginType.LINUX_BRIDGE.name ( ) ) ; provider.setAdditionalProperties ( additionalProperties ) ; provider.setAuthUrl ( "http://keystone-server:35357/v2.0/" ) ; return provider ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = getNonReadOnlyExternalNetworkProviders ( result ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = getNonReadOnlyExternalNetworkProviders ( result ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; }
Source:
private < T > void bindTypeAndImplAsSingleton ( java.lang.Class < T > type , java.lang.Class < ? extends T > impl ) { bind ( type ) . to ( impl ) ; bind ( impl ) . in ( com.google.inject.Singleton.class ) ; }

Target:
protected < T > void bindTypeAndImplAsSingleton ( java.lang.Class < T > type , java.lang.Class < ? extends T > impl ) { bind ( type ) . to ( impl ) ; bind ( impl ) . in ( com.google.inject.Singleton.class ) ; }
Source:
private boolean isExceedMaxBlockDiskSize ( ) { if ( org.ovirt.engine.core.bll.AddDiskCommand.getStorageDomain ( ) . getStorageType ( ) . isBlockDomain ( ) ) { return ( getRequestDiskSpace ( ) ) > ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.MaxBlockDiskSize ) ) ; } return false ; }

Target:
private boolean isExceedMaxBlockDiskSize ( ) { if ( org.ovirt.engine.core.bll.AddDiskCommand.getStorageDomain ( ) . getStorageType ( ) . isBlockDomain ( ) ) { return ( getRequestDiskSpace ( ) ) > ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxBlockDiskSize ) ) ; } return false ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VnicProfile getProfile ( ) { return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.VnicProfile getProfile ( ) { return null ; }
Source:
public boolean canConnectToConsole ( ) { return consoleModels.get ( selectedProtocol ) . canConnect ( ) ; }

Target:
public boolean canConnectToConsole ( ) { return ( selectedProtocol ) == null ? false : consoleModels.get ( selectedProtocol ) . canConnect ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { editedVm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ; vmInitLoaded ( editedVm ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.VM result ) { editedVm = result ; vmInitLoaded ( editedVm ) ; }
Source:
protected void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; queryFreeBonds ( ) ; validate ( ) ; getNetworksChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }

Target:
protected void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; validate ( ) ; getNetworksChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
void updateHibernationMemory ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid memoryDumpDiskId , org.ovirt.engine.core.compat.Guid memoryMetadataDiskId , java.lang.String memoryVolume ) ;

Target:
void updateHibernationMemory ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid memoryDumpDiskId , org.ovirt.engine.core.compat.Guid memoryMetadataDiskId ) ;
Source:
public void endStepJob ( org.ovirt.engine.core.common.job.Step step ) { getJobRepository ( ) . updateStep ( step ) ; org.ovirt.engine.core.bll.job.ExecutionContext finalContext = org.ovirt.engine.core.bll.job.ExecutionHandler.createFinalizingContext ( step.getId ( ) ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.endTaskJob ( finalContext , isTaskSuccess ( step ) ) ; }

Target:
public void endStepJob ( org.ovirt.engine.core.common.job.Step step ) { getJobRepository ( ) . updateStep ( step ) ; org.ovirt.engine.core.bll.job.ExecutionContext finalContext = org.ovirt.engine.core.bll.job.ExecutionHandler.createFinalizingContext ( step.getId ( ) ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.endTaskJob ( finalContext , isTaskSuccess ( step.getStatus ( ) ) ) ; }
Source:
private void initDbFacadeMock ( ) { org.powermock.api.mockito.PowerMockito.when ( dbFacade.getAuditLogDAO ( ) ) . thenReturn ( auditLogDao ) ; }

Target:
private void initDbFacadeMock ( ) { org.mockito.Mockito.when ( dbFacade.getAuditLogDAO ( ) ) . thenReturn ( auditLogDao ) ; }
Source:
public int getConnectionId ( ) { return this . getConnectionId ( ) ; }

Target:
public int getConnectionId ( ) { return this . client.getConnectionId ( ) ; }
Source:
public void testExistJobMessages ( ) { org.ovirt.engine.core.dal.job.ExecutionMessageDirector messageDirector = org.ovirt.engine.core.dal.job.ExecutionMessageDirector.getInstance ( ) ; messageDirector.initialize ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.TEST_BUNDLE_NAME ) ; java.lang.String updateClusterMessage = messageDirector.getJobMessage ( VdcActionType.UpdateCluster ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.UPDATE_CLUSTER_CLUSTERS_MESSAGE.equals ( updateClusterMessage ) ) ; }

Target:
public void testExistJobMessages ( ) { org.ovirt.engine.core.dal.job.ExecutionMessageDirector messageDirector = org.ovirt.engine.core.dal.job.ExecutionMessageDirector.getInstance ( ) ; messageDirector.initialize ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.TEST_BUNDLE_NAME ) ; java.lang.String updateClusterMessage = messageDirector.getJobMessage ( VdcActionType.UpdateCluster ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.UPDATE_CLUSTER_CLUSTERS_MESSAGE , updateClusterMessage ) ; }
Source:
protected void expectGetLunsMap ( ) { for ( org.ovirt.engine.core.compat.Guid GUID : org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.GUIDS ) { expectGetLunsMap ( GUID.toString ( ) , GUID.toString ( ) ) ; } }

Target:
private void expectGetLunsMap ( ) { for ( org.ovirt.engine.core.compat.Guid GUID : org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.GUIDS ) { expectGetLunsMap ( GUID.toString ( ) , GUID.toString ( ) ) ; } }
Source:
protected java.lang.String composeRegex ( ) { return ( ( start ( ) ) + ( acceptEmptyInput ? hostnameOrIpOrEmpty ( ) : hostnameOrIp ( ) ) ) + ( end ( ) ) ; }

Target:
protected java.lang.String composeRegex ( ) { return ( ( start ( ) ) + ( hostnameOrIp ( ) ) ) + ( end ( ) ) ; }
Source:
private void cancel ( ) { sourceListModel.setWindow ( null ) ; sourceListModel.setConfirmWindow ( null ) ; }

Target:
private void cancel ( ) { sourceListModel.setWindow ( null ) ; }
Source:
public void setup ( ) { validator = new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( host ) ; }

Target:
public void setup ( ) { host = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; validator = new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( host ) ; }
Source:
protected void executeCommand ( ) { addVmToDb ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = getVm ( ) ; if ( vm.getImages ( ) . isEmpty ( ) ) { endVmRelatedOps ( ) ; } else { processImages ( ) ; } setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { addVmToDb ( ) ; processImages ( ) ; setSucceeded ( true ) ; }
Source:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , null , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ) , false , VdcBllMessages.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }

Target:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , null , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) , null ) , false , VdcBllMessages.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source != null ) && ( ! ( ( java.lang.Boolean ) ( source ) ) ) ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { return ( source != null ) && ( ! ( ( java.lang.Boolean ) ( source ) ) ) ; }
Source:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue RunVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) { return org.ovirt.engine.core.bll.VdsHandler.handleVdsResult ( getResourceManager ( ) . runVdsCommand ( commandType , parameters ) ) ; }

Target:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) { return org.ovirt.engine.core.bll.VdsHandler.handleVdsResult ( getResourceManager ( ) . runVdsCommand ( commandType , parameters ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > siblingVlanInterfaces = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ) ( source ) ) ; if ( ( siblingVlanInterfaces.size ( ) ) > 0 ) { return true ; } return false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > siblingVlanInterfaces = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ) ( source ) ) ; return ! ( siblingVlanInterfaces.isEmpty ( ) ) ; }
Source:
public void setKdumpStatus ( org.ovirt.engine.core.common.businessentities.KdumpStatus kdumpStatus ) { this . kdumpStatus = kdumpStatus.getAsNumber ( ) ; }

Target:
public void setKdumpStatus ( org.ovirt.engine.core.common.businessentities.KdumpStatus kdumpStatus ) { this . kdumpStatus = kdumpStatus ; }
Source:
public void setTotalDiskSize ( java.lang.Integer value ) { value = ( value == null ) ? java.lang.Integer.valueOf ( 0 ) : value ; if ( ! ( totalDiskSize.equals ( value ) ) ) { totalDiskSize = value ; } }

Target:
public void setTotalDiskSize ( java.lang.Integer value ) { totalDiskSize = value ; }
Source:
private java.lang.String composeObjectId ( ) { return new org.ovirt.engine.core.dal.dbbroker.auditloghandling.EventKeyComposer ( event , logType ) . composeObjectId ( ) ; }

Target:
private java.lang.String composeObjectId ( ) { return org.ovirt.engine.core.dal.dbbroker.auditloghandling.EventKeyComposer.composeObjectId ( event , logType ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchInstanceTypes ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVmTemplateDao ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchInstanceTypes ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVmTemplateDao ( ) , true ) ; }
Source:
public static java.util.List < java.lang.String > runAndAssertCanDoActionFailure ( java.lang.String assertionMessage , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.errors.VdcBllMessages message ) { org.junit.Assert.assertFalse ( "Command's canDoAction expected to fail, but succeeded" , command.canDoAction ( ) ) ; return org.ovirt.engine.core.bll.CanDoActionTestUtils.assertCanDoActionMessages ( assertionMessage , command , message ) ; }

Target:
public static java.util.List < java.lang.String > runAndAssertCanDoActionFailure ( java.lang.String assertionMessage , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.errors.EngineMessage message ) { org.junit.Assert.assertFalse ( "Command's canDoAction expected to fail, but succeeded" , command.canDoAction ( ) ) ; return org.ovirt.engine.core.bll.CanDoActionTestUtils.assertCanDoActionMessages ( assertionMessage , command , message ) ; }
Source:
protected boolean canDoAction ( ) { return ( super . canDoAction ( ) ) && ( validate ( getQosValidator ( org.ovirt.engine.core.bll.qos.AddQosCommand.getQos ( ) ) . nameNotTakenInDc ( ) ) ) ; }

Target:
protected boolean validate ( ) { return ( super . validate ( ) ) && ( validate ( getQosValidator ( org.ovirt.engine.core.bll.qos.AddQosCommand.getQos ( ) ) . nameNotTakenInDc ( ) ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getInfo ( ) { mInfo = ( ( java.util.Map < java.lang.String , java.lang.Object > ) ( innerMap.get ( org.ovirt.engine.core.vdsbroker.irsbroker.OneImageInfoReturnForXmlRpc.INFO ) ) ) ; return mInfo ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > getInfo ( ) { return mInfo ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getname ( ) . equals ( getParameters ( ) . getInterface ( ) . getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getname ( ) . equals ( getInterface ( ) . getNetworkName ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.StorageDomain sp ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( sp.getStatus ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.StorageDomain sp ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( sp.getStatus ( ) ) ; return tooltipContent ; }
Source:
public void testValidPatternName ( ) { junit.framework.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.PoolNameValidationTest.TestablePoolNameValidation ( ) . Validate ( "pool-T4534f??" . replace ( '?' , VmPool.MASK_CHARACTER ) ) . getSuccess ( ) ) ; }

Target:
public void testValidPatternName ( ) { junit.framework.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.PoolNameValidationTest.TestablePoolNameValidation ( ) . validate ( "pool-T4534f??" . replace ( '?' , VmPool.MASK_CHARACTER ) ) . getSuccess ( ) ) ; }
Source:
public int hashCode ( ) { int hashCode = 23 ; hashCode = ( hashCode * 37 ) + ( new java.lang.Integer ( refreshRate ) . hashCode ( ) ) ; return hashCode ; }

Target:
public int hashCode ( ) { int hashCode = 23 ; hashCode = ( hashCode * 37 ) + ( java.lang.Integer.valueOf ( refreshRate ) . hashCode ( ) ) ; return hashCode ; }
Source:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; try { hostNicVfsConfigHelper.getFreeVf ( nic ) ; } catch ( java.lang.Exception exception ) { org.junit.Assert.assertTrue ( ( exception instanceof java.lang.UnsupportedOperationException ) ) ; } }

Target:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; hostNicVfsConfigHelper.getFreeVf ( nic ) ; }
Source:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result ) ; }

Target:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmDisksServer getDisksResource ( ) { return new org.ovirt.engine.api.v3.servers.V3VmDisksServer ( getDelegate ( ) . getDisksResource ( ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmDisksServer getDisksResource ( ) { return new org.ovirt.engine.api.v3.servers.V3VmDisksServer ( id , getDelegate ( ) . getDisksResource ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.DiskImage getRepresentativeImage ( ) { return getImages ( ) . get ( 0 ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskImage getRepresentativeImage ( ) { if ( ! ( getImages ( ) . isEmpty ( ) ) ) { return getImages ( ) . get ( 0 ) ; } return null ; }
Source:
protected < T > org.springframework.jdbc.core.simple.SimpleJdbcCall getCall ( java.lang.String procedureName , org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator callCreator ) { return getCall ( procedureName , callCreator , null ) ; }

Target:
protected org.springframework.jdbc.core.simple.SimpleJdbcCall getCall ( java.lang.String procedureName , org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator callCreator ) { return getCall ( procedureName , callCreator , null ) ; }
Source:
public static boolean isLibrbdAvailable ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getLibrbdVersion ( ) ) != null ; }

Target:
private static boolean isLibrbdAvailable ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getLibrbdVersion ( ) ) != null ; }
Source:
public static boolean isMemorySizeLegal ( int osId , int memSizeInMB , org.ovirt.engine.core.compat.Version clusterVersion ) { return ( memSizeInMB >= ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getMinMemorySizeInMb ( osId , clusterVersion ) ) ) && ( memSizeInMB <= ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getMaxMemorySizeInMb ( osId , clusterVersion ) ) ) ; }

Target:
public boolean isMemorySizeLegal ( int osId , int memSizeInMB , org.ovirt.engine.core.compat.Version clusterVersion ) { return ( memSizeInMB >= ( getMinMemorySizeInMb ( osId , clusterVersion ) ) ) && ( memSizeInMB <= ( getMaxMemorySizeInMb ( osId , clusterVersion ) ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.WatchDog watchDog = resource.get ( ) ; verifyModel ( watchDog , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.WatchDog watchDog = resource.get ( ) ; verifyModel ( watchDog , 0 ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }
Source:
public void contextDestroyed ( javax.servlet.ServletContextEvent event ) { java.lang.System.out.println ( "Application destroyed." ) ; final org.ovirt.vdsmfake.task.TaskProcessor taskProcessor = org.ovirt.vdsmfake.task.TaskProcessor.getInstance ( ) ; taskProcessor.destroy ( ) ; org.ovirt.vdsmfake.rpc.json.JsonRpcServer.shutdown ( ) ; }

Target:
public void contextDestroyed ( javax.servlet.ServletContextEvent event ) { java.lang.System.out.println ( "Application destroyed." ) ; final org.ovirt.vdsmfake.task.TaskProcessor taskProcessor = org.ovirt.vdsmfake.task.TaskProcessor.getInstance ( ) ; taskProcessor.destroy ( ) ; }
Source:
public void addRange ( long rangeStart , long rangeEnd ) { ranges.add ( new org.ovirt.engine.core.bll.network.macpool.Range ( rangeStart , rangeEnd ) ) ; }

Target:
public org.ovirt.engine.core.bll.network.macpool.Range addRange ( long rangeStart , long rangeEnd ) { return addRange ( new org.ovirt.engine.core.bll.network.macpool.Range ( rangeStart , rangeEnd ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network net ) { return net.getname ( ) . equals ( getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network net ) { return net.getName ( ) . equals ( getNetworkName ( ) ) ; }
Source:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getOsName ( value.getOsId ( ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getOsName ( value.getOsId ( ) ) ; }
Source:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertThat ( validator.diskImagesAlreadyExist ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.ArgumentMatchers.any ( ) ) ; org.junit.Assert.assertThat ( validator.diskImagesAlreadyExist ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String getVmName ( ) { return this . name ; }

Target:
public java.lang.String getName ( ) { return super . getName ( ) ; }
Source:
public static void updateVmDevicesBootOrder ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices , boolean isOldCluster ) { org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.updateVmDevicesBootOrder ( vm , vm.getDefaultBootSequence ( ) , devices , isOldCluster ) ; }

Target:
public static void updateVmDevicesBootOrder ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices ) { org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.updateVmDevicesBootOrder ( vm , vm.getDefaultBootSequence ( ) , devices ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > object ) { return object.getFirst ( ) . getname ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > object ) { return object.getFirst ( ) . getName ( ) ; }
Source:
protected void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getRelevantDiskImage ( ) ; diskImage.setimageStatus ( imageStatus ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImage ( ) . getId ( ) , imageStatus ) ; }

Target:
protected void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getRelevantDiskImage ( ) ; diskImage.setImageStatus ( imageStatus ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImage ( ) . getId ( ) , imageStatus ) ; }
Source:
public java.lang.String getStoragePoolName ( ) { if ( ( ( storagePoolName ) == null ) && ( ( getStoragePool ( ) ) != null ) ) { storagePoolName = getStoragePool ( ) . getName ( ) ; } return org.apache.commons.lang.StringUtils.defaultString ( storagePoolName ) ; }

Target:
public java.lang.String getStoragePoolName ( ) { if ( ( org.apache.commons.lang.StringUtils.isEmpty ( storagePoolName ) ) && ( ( getStoragePool ( ) ) != null ) ) { storagePoolName = getStoragePool ( ) . getName ( ) ; } return org.apache.commons.lang.StringUtils.defaultString ( storagePoolName ) ; }
Source:
public void validateFails ( ) { org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters params = new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( ) ; params.setActionType ( "InvalidActionType" ) ; cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand ( params , null ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { cmd.getParameters ( ) . setActionType ( "InvalidActionType" ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public final java.lang.Object getData ( java.lang.String key , boolean refresh ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId == null ) { return null ; } return getData ( sessionId , key , refresh ) ; }

Target:
public final java.lang.Object getData ( java.lang.String key , boolean refresh ) { return getData ( org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) , key , refresh ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return getStoragePoolIsoMapData ( ) . getstorage_pool_id ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return getStoragePoolIsoMapData ( ) . getStoragePoolId ( ) ; }
Source:
protected void buildSendDataToVdsm ( ) { sendInfo.add ( "vmId" , org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugDiskVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; sendInfo.add ( "drive" , initDriveData ( ) ) ; }

Target:
protected void buildSendDataToVdsm ( ) { sendInfo.put ( "vmId" , org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugDiskVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; sendInfo.put ( "drive" , initDriveData ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null ) ; }
Source:
public byte nextByte ( ) { return ( ( byte ) ( super . nextInt ( ) ) ) ; }

Target:
public byte nextByte ( ) { return ( ( byte ) ( nextInt ( ) ) ) ; }
Source:
public void setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) super . setIsChangable ( value ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) super . setIsChangable ( value ) ; return this ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , "null" ) ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , null ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { vmInitLoaded ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( result ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object result ) { vmInitLoaded ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( result ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getDiskMap ( ) . size ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return java.lang.String.valueOf ( object.getVm ( ) . getDiskMap ( ) . size ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = createDiskImage ( ) ; disk.setvolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; disk.setDiskInterface ( DiskInterface.VirtIO ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = createDiskImage ( ) ; disk.setvolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; return disk ; }
Source:
public void setRaidInfoMessages ( java.lang.String raidType , int stripeSize ) { deviceSelectionInfo.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.applicationMessages.getStorageDeviceSelectionInfo ( raidType ) ) ; this . stripeSizeWithInfo.setExplanation ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.templates.italicText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.applicationMessages.stripSizeInfoForGlusterBricks ( stripeSize , raidType ) ) ) ; }

Target:
public void setRaidInfoMessages ( java.lang.String raidType , int stripeSize ) { deviceSelectionInfo.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.applicationMessages.getStorageDeviceSelectionInfo ( raidType ) ) ; this . stripeSizeWithInfo.setExplanation ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.applicationMessages.stripSizeInfoForGlusterBricks ( stripeSize , raidType ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getGlusterVolume ( ) { if ( ( ( glusterVolume ) == null ) && ( ( glusterVolumeId ) != null ) ) { glusterVolume = getGlusterVolumeDao ( ) . getById ( glusterVolumeId.getValue ( ) ) ; } return glusterVolume ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getGlusterVolume ( ) { if ( ( ( glusterVolume ) == null ) && ( ( glusterVolumeId ) != null ) ) { glusterVolume = getGlusterVolumeDao ( ) . getById ( glusterVolumeId ) ; } return glusterVolume ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( command.getName ( ) , "OnSave" ) ) { onSave ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( "OnSave" . equals ( command.getName ( ) ) ) { onSave ( ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( id ) ; vds.setvds_group_compatibility_version ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainTest.VDS_COMPATIBILITY_VERSION ) ; return vds ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( id ) ; return vds ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
public void testGetStorageDomainIdWithNoPermissions ( ) { mockStoragePoolDAO ( null ) ; org.mockito.Mockito.verifyNoMoreInteractions ( getQuery ( ) . getDbFacade ( ) ) ; org.junit.Assert.assertNull ( "No storage domains should have been returned" , getQuery ( ) . getStorageDomainIdForQuery ( ) ) ; }

Target:
public void testGetStorageDomainIdWithNoPermissions ( ) { mockStoragePoolDAO ( null ) ; org.junit.Assert.assertNull ( "No storage domains should have been returned" , getQuery ( ) . getStorageDomainIdForQuery ( ) ) ; }
Source:
private void updateInstanceTypeFieldsFrom ( org.ovirt.engine.core.common.businessentities.VmBase template ) { if ( template == null ) { return ; } model.startProgress ( null ) ; doUpdateManagedFieldsFrom ( template ) ; }

Target:
private void updateInstanceTypeFieldsFrom ( org.ovirt.engine.core.common.businessentities.VmBase template ) { if ( template == null ) { return ; } model.startProgress ( ) ; doUpdateManagedFieldsFrom ( template ) ; }
Source:
protected java.lang.String getDiskAlias ( ) { if ( ( getDisk ( ) ) != null ) { return getDisk ( ) . getDiskAlias ( ) ; } return org.apache.commons.lang.StringUtils.EMPTY ; }

Target:
public java.lang.String getDiskAlias ( ) { if ( ( getDisk ( ) ) != null ) { return getDisk ( ) . getDiskAlias ( ) ; } return org.apache.commons.lang.StringUtils.EMPTY ; }
Source:
public static boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }

Target:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetRoleByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getRoleDao ( ) . get ( org.ovirt.engine.core.bll.GetRoleByIdQuery.getParameters ( ) . getRoleId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetRoleByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getRoleDao ( ) . get ( org.ovirt.engine.core.bll.GetRoleByIdQuery.getParameters ( ) . getRoleId ( ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . toggleSubnetVisibility ( ( ( java.lang.Boolean ) ( model.getExport ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . toggleSubnetVisibility ( model.getExport ( ) . getEntity ( ) ) ; }
Source:
public void testUltimateFallbackValues ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getUltimateFallback ( ) , "GMT Standard Time" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.common.TimeZoneTypeTest.general.getUltimateFallback ( ) , "Etc/GMT" ) ; }

Target:
public void testUltimateFallbackValues ( ) { org.junit.Assert.assertEquals ( "GMT Standard Time" , org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getUltimateFallback ( ) ) ; org.junit.Assert.assertEquals ( "Etc/GMT" , org.ovirt.engine.core.common.TimeZoneTypeTest.general.getUltimateFallback ( ) ) ; }
Source:
public void render ( org.ovirt.engine.ui.webadmin.widget.bookmark.Context context , org.ovirt.engine.core.common.businessentities.Bookmark value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { sb.append ( org.ovirt.engine.ui.webadmin.widget.bookmark.BookmarkListItemCell.templates.bookmarkItem ( org.ovirt.engine.ui.common.utils.ElementIdUtils.createElementId ( elementId , value.getbookmark_name ( ) ) , value.getbookmark_name ( ) ) ) ; }

Target:
public void render ( org.ovirt.engine.ui.webadmin.widget.bookmark.Context context , org.ovirt.engine.core.common.businessentities.Bookmark value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { sb.append ( org.ovirt.engine.ui.webadmin.widget.bookmark.BookmarkListItemCell.templates.bookmarkItem ( org.ovirt.engine.ui.common.utils.ElementIdUtils.createElementId ( elementId , value.getName ( ) ) , value.getName ( ) ) ) ; }
Source:
private org.ovirt.engine.api.model.Quota getModel ( ) { org.ovirt.engine.api.model.Quota quota = new org.ovirt.engine.api.model.Quota ( ) ; quota.setId ( GUIDS [ 0 ] . toString ( ) ) ; quota.setDescription ( DESCRIPTIONS [ 1 ] ) ; quota.setClusterHardLimitPct ( 30 ) ; return quota ; }

Target:
private org.ovirt.engine.api.model.Quota getModel ( ) { org.ovirt.engine.api.model.Quota quota = new org.ovirt.engine.api.model.Quota ( ) ; quota.setId ( GUIDS [ 0 ] . toString ( ) ) ; quota.setDescription ( DESCRIPTIONS [ 0 ] ) ; quota.setClusterHardLimitPct ( 30 ) ; return quota ; }
Source:
public void addConstraints ( java.util.List < org.ovirt.api.metamodel.concepts.Constraint > newConstraints ) { constraints.addAll ( newConstraints ) ; constraints.sort ( java.util.Comparator.comparing ( Constraint :: getName ) ) ; }

Target:
public void addConstraints ( java.util.List < org.ovirt.api.metamodel.concepts.Constraint > newConstraints ) { constraints.addAll ( newConstraints ) ; }
Source:
public void setInitrdUrl ( java.lang.String value ) { vmStatic.setinitrd_url ( value ) ; }

Target:
public void setInitrdUrl ( java.lang.String value ) { vmStatic.setInitrdUrl ( value ) ; }
Source:
private void assertLunIdInList ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns , org.ovirt.engine.core.compat.Guid requestedLunId ) { org.junit.Assert.assertEquals ( luns.stream ( ) . map ( LUNs :: getLUNId ) . findAny ( ) . orElse ( null ) , requestedLunId.toString ( ) ) ; }

Target:
private void assertLunIdInList ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns , java.lang.String requestedLunId ) { org.junit.Assert.assertEquals ( luns.stream ( ) . map ( LUNs :: getLUNId ) . findAny ( ) . orElse ( null ) , requestedLunId ) ; }
Source:
public static void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.compat.CommandStatus status ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.updateCommandStatus ( commandId , taskType , status ) ; }

Target:
public static void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.CommandStatus status ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.updateCommandStatus ( commandId , status ) ; }
Source:
private void buildVmSerialNumberFromConfig ( ) { final org.ovirt.engine.core.common.businessentities.SerialNumberPolicy policy = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.DefaultSerialNumberPolicy ) ; final java.lang.String customSerialNumber = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.DefaultCustomSerialNumber ) ; setSerialNumber ( getSerialNumberFromPolicy ( policy , customSerialNumber ) ) ; }

Target:
private java.lang.String buildVmSerialNumberFromConfig ( org.ovirt.engine.core.common.businessentities.VM vm ) { final org.ovirt.engine.core.common.businessentities.SerialNumberPolicy policy = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.DefaultSerialNumberPolicy ) ; final java.lang.String customSerialNumber = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.DefaultCustomSerialNumber ) ; return getSerialNumberFromPolicy ( policy , customSerialNumber , vm.getId ( ) ) ; }
Source:
public void setName ( java.lang.String name ) { nameLabel.setTitle ( name ) ; nameLabel.setText ( name ) ; }

Target:
public void setName ( java.lang.String name ) { nameLabel.setText ( name ) ; }