auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void validateValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Integer > entity , java.lang.Integer maxValue ) { entity.validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.IntegerValidation ( 0 , maxValue ) } ) ; }

Target:
private void validateValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Integer > entity , java.lang.Integer maxValue ) { entity.validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.IntegerValidation ( 0 , maxValue ) } ) ; }
Source:
public java.lang.String getname ( ) { return this . name ; }

Target:
public java.lang.String getName ( ) { return this . name ; }
Source:
public static void updateAllDiskImageSnapshotsStatusWithCompensation ( final org.ovirt.engine.core.compat.Guid diskId , final org.ovirt.engine.core.common.businessentities.storage.ImageStatus status , org.ovirt.engine.core.common.businessentities.storage.ImageStatus statusForCompensation , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImagesSnapshotsStatusInTransactionWithCompensation ( java.util.Collections.singletonList ( diskId ) , status , statusForCompensation , compensationContext ) ; }

Target:
public void updateAllDiskImageSnapshotsStatusWithCompensation ( final org.ovirt.engine.core.compat.Guid diskId , final org.ovirt.engine.core.common.businessentities.storage.ImageStatus status , org.ovirt.engine.core.common.businessentities.storage.ImageStatus statusForCompensation , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { updateAllDiskImagesSnapshotsStatusInTransactionWithCompensation ( java.util.Collections.singletonList ( diskId ) , status , statusForCompensation , compensationContext ) ; }
Source:
private void attachLabeledNetwork ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter attachNetworkToClusterParameter = getParameters ( ) ; runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( java.util.Collections.singleton ( attachNetworkToClusterParameter.getNetworkCluster ( ) ) ) ) ; }

Target:
private void attachLabeledNetwork ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter attachNetworkToClusterParameter = getParameters ( ) ; runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( new java.util.ArrayList ( java.util.Collections.singleton ( attachNetworkToClusterParameter.getNetworkCluster ( ) ) ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { cpuThreadsPanel.setVisible ( ( ( java.lang.Boolean ) ( model.getCluster ( ) . getVersionSupportsCpuThreads ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { cpuThreadsPanel.setVisible ( model.getCluster ( ) . getVersionSupportsCpuThreads ( ) . getEntity ( ) ) ; }
Source:
private void assertVmGuestAgentInterfaceForVm ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces ) { org.junit.Assert.assertEquals ( interfaces.size ( ) , org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.VM_GUEST_AGENT_INTERFACES_SIZE ) ; for ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface : interfaces ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.EXISTING_VM_ID , vmGuestAgentInterface.getVmId ( ) ) ; } }

Target:
private void assertVmGuestAgentInterfaceForVm ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.VM_GUEST_AGENT_INTERFACES_SIZE , interfaces.size ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface : interfaces ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.EXISTING_VM_ID , vmGuestAgentInterface.getVmId ( ) ) ; } }
Source:
protected void beforeUiCommonInitEvent ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.init ( eventBus , user , loginModel , frontendFailureEventListener ) ; }

Target:
protected void beforeUiCommonInitEvent ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.init ( eventBus ) ; }
Source:
protected void mockBackendStatusChange ( T cmd , boolean succeeded ) { mockBackendStatusChange ( cmd , succeeded , EngineError.GlusterHookEnableFailed ) ; }

Target:
protected void mockBackendStatusChange ( boolean succeeded ) { mockBackendStatusChange ( succeeded , EngineError.GlusterHookEnableFailed ) ; }
Source:
public void testGetManagedInterfaceForVdsFilteredForPriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface result = dao.getManagedInterfaceForVds ( org.ovirt.engine.core.dao.InterfaceDAOTest.VDS_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.InterfaceDAOTest.assertCorrectGetManagedInterfaceForVdsResult ( result ) ; }

Target:
public void testGetManagedInterfaceForVdsFilteredForPriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result = dao.getManagedInterfaceForVds ( org.ovirt.engine.core.dao.InterfaceDAOTest.VDS_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.InterfaceDAOTest.assertCorrectGetManagedInterfaceForVdsResult ( result ) ; }
Source:
public void testCheckGlusterQuorumWithoutBricks ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( true , org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.CLUSTER_ID ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.DUMMY_SERVER_ID , org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.Assert.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }

Target:
public void testCheckGlusterQuorumWithoutBricks ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( true ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.DUMMY_SERVER_ID , org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.Assert.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { org.ovirt.engine.ui.common.utils.WebUtils.openUrlInNewWindow ( windowName , guideUrl , WebUtils.OPTION_SCROLLBARS ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { org.ovirt.engine.ui.common.utils.WebUtils.openUrlInNewWindow ( windowName , guideUrl ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , false , false , false ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , false , false , false , false ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
private void AttachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( storageId , dataCenterId ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { } } , this ) ; }

Target:
private void AttachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( storageId , dataCenterId ) , null , this ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { cpuThreadsPanel.setVisible ( ( ( java.lang.Boolean ) ( object.getVersionSupportsCpuThreads ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { cpuThreadsPanel.setVisible ( object.getVersionSupportsCpuThreads ( ) . getEntity ( ) ) ; }
Source:
public void syncWithBackend ( ) { super . syncWithBackend ( ) ; if ( firstInit ) { firstInit = false ; addCommands ( ) ; } }

Target:
public void syncWithBackend ( ) { super . syncWithBackend ( ) ; }
Source:
public void testGetAllForStoragePoolWithNoPermissionsFilteringDisabled ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( existingVds.getstorage_pool_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForStoragePoolCorrectResult ( result ) ; }

Target:
public void testGetAllForStoragePoolWithNoPermissionsFilteringDisabled ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( existingVds.getStoragePoolId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForStoragePoolCorrectResult ( result ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( VdsmEnv.CERTIFICATE_ENROLLMENT , Const.CERTIFICATE_ENROLLMENT_INLINE ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( VdsmEnv.CERTIFICATE_ENROLLMENT , Const.CERTIFICATE_ENROLLMENT_INLINE ) ; return true ; }
Source:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return poolPerDc.poolForDataCenter ( getStoragePoolId ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return poolPerDc.poolForDataCenter ( getStoragePoolId ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getName ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getName ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllAdGroupsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getAdGroupDao ( ) . getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllAdGroupsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAdGroupDao ( ) . getAll ( ) ) ; }
Source:
public java.util.Set < org.ovirt.engine.core.compat.Version > getSupportedClusterLevels ( ) { java.util.Set < org.ovirt.engine.core.compat.Version > versions = org.ovirt.engine.core.common.config.Config.< java.util.HashSet < org.ovirt.engine.core.compat.Version > > GetValue ( ConfigValues.SupportedClusterLevels ) ; return versions ; }

Target:
public java.util.Set < org.ovirt.engine.core.compat.Version > getSupportedClusterLevels ( ) { java.util.Set < org.ovirt.engine.core.compat.Version > versions = org.ovirt.engine.core.common.config.Config.< java.util.HashSet < org.ovirt.engine.core.compat.Version > > getValue ( ConfigValues.SupportedClusterLevels ) ; return versions ; }
Source:
protected org.ovirt.engine.core.compat.Guid extractStoragePoolIdNullSafe ( org.ovirt.engine.core.common.businessentities.VM entity ) { return entity.getstorage_pool_id ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid extractStoragePoolIdNullSafe ( org.ovirt.engine.core.common.businessentities.VM entity ) { return entity.getStoragePoolId ( ) ; }
Source:
public void testIsNotUp ( ) { validator = mockHostForActivation ( VDSStatus.Down ) ; org.junit.Assert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_STATUS_ILLEGAL , "$hostStatus Up" ) ) ; }

Target:
public void testIsNotUp ( ) { mockHostForActivation ( VDSStatus.Down ) ; org.junit.Assert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_STATUS_ILLEGAL , "$hostStatus Up" ) ) ; }
Source:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false ) ; }

Target:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null ) ; }
Source:
public void testUpdateWithNonGuidId ( ) { try { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "hosts" , "00000001-0001-0001-0001-000000000011" , "nics" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/apidoc#services/host_nic/methods/update" , fault.getDetail ( ) ) ; } catch ( java.net.URISyntaxException | java.lang.ClassNotFoundException | java.io.IOException e ) { fail ( ) ; } }

Target:
public void testUpdateWithNonGuidId ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "hosts" , "00000001-0001-0001-0001-000000000011" , "nics" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/apidoc#services/host_nic/methods/update" , fault.getDetail ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.List < java.lang.String > images = ( ( java.util.List < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.List < java.lang.String > images = ( ( java.util.List < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }
Source:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createParameterSourceForUpdate ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmDevice.getVmId ( ) ) . addValue ( "device_id" , vmDevice.getDeviceId ( ) ) ; return parameterSource ; }

Target:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createParameterSourceForUpdate ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmDevice.getVmId ( ) ) . addValue ( "device_id" , vmDevice.getDeviceId ( ) ) ; }
Source:
private 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.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( commandType , parameters ) ; }

Target:
private 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.Backend.getInstance ( ) . getResourceManager ( ) . runVdsCommand ( commandType , parameters ) ; }
Source:
public java.lang.String getVdsDestination ( ) { if ( ( getDestinationVds ( ) ) != null ) { return getDestinationVds ( ) . getVdsName ( ) ; } else { return null ; } }

Target:
public java.lang.String getVdsDestination ( ) { if ( ( getDestinationVds ( ) ) != null ) { return getDestinationVds ( ) . getName ( ) ; } else { return null ; } }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm.getDynamicData ( ) , vm.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm.getDynamicData ( ) , vm.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
public abstract com.google.gwt.safehtml.shared.SafeHtml getTooltip ( T object ) ;

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( T object ) { return null ; }
Source:
public void calculateNetworkImplementationDetailsUnmanagedNetwork ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertManaged ( iface , false , java.util.Collections.< java.lang.String , org.ovirt.engine.core.common.businessentities.Network > emptyMap ( ) ) ; }

Target:
public void calculateNetworkImplementationDetailsUnmanagedNetwork ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertManaged ( iface , false , java.util.Collections.< java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > emptyMap ( ) ) ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService swiftService = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService ) ( returnValue ) ) ; if ( swiftService != null ) { setGlusterSwiftStatus ( swiftService.getStatus ( ) ) ; } else { setGlusterSwiftStatus ( GlusterServiceStatus.UNKNOWN ) ; } }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService swiftService ) { if ( swiftService != null ) { setGlusterSwiftStatus ( swiftService.getStatus ( ) ) ; } else { setGlusterSwiftStatus ( GlusterServiceStatus.UNKNOWN ) ; } }
Source:
private org.ovirt.engine.core.common.utils.Pair < T , K > getPair ( ) { if ( ( pair ) == null ) { pair = new org.ovirt.engine.core.common.utils.Pair < T , K > ( null , null ) ; } return pair ; }

Target:
private org.ovirt.engine.core.common.utils.Pair < T , K > getPair ( ) { if ( ( pair ) == null ) { pair = new org.ovirt.engine.core.common.utils.Pair ( null , null ) ; } return pair ; }
Source:
private java.lang.String getJsonDiskDescription ( ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getJsonDiskDescription ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getParameters ( ) . getDiskInfo ( ) ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }

Target:
private java.lang.String getJsonDiskDescription ( ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . getJsonDiskDescription ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getParameters ( ) . getDiskInfo ( ) ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }
Source:
public void setbookmark_value ( java.lang.String value ) { this . value = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "bookmark_value" ) ) ; }

Target:
public void setbookmark_value ( java.lang.String value ) { this . value = value ; }
Source:
protected boolean canDoAction ( ) { return ( validate ( networkClusterAttachmentExists ( ) ) ) && ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.validateAttachment ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return ( validate ( networkClusterAttachmentExists ( ) ) ) && ( validateAttachment ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getName ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterNetworkSubTabLabel ( ) , 2 , ginjector.getSubTabClusterNetworkModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterNetworkSubTabLabel ( ) , 1 , ginjector.getSubTabClusterNetworkModelProvider ( ) ) ; }
Source:
private static java.lang.String nullSafeGetVmName ( org.ovirt.engine.core.common.businessentities.VM vm ) { return vm == null ? "" : vm.getVmName ( ) ; }

Target:
private static java.lang.String nullSafeGetVmName ( org.ovirt.engine.core.common.businessentities.VM vm ) { return vm == null ? "" : vm.getName ( ) ; }
Source:
public void testRemoveNotFound ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( true ) ; control.replay ( ) ; try { resource.remove ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNotFound ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( true ) ; try { resource.remove ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.StorageType getRawValue ( org.ovirt.engine.core.common.businessentities.storage_pool object ) { return object.getstorage_pool_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageType getRawValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getstorage_pool_type ( ) ; }
Source:
protected void configure ( ) { bind ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotListModel.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
protected void configure ( ) { }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue vdcValue = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity rebalanceStatusEntity = vdcValue.getReturnValue ( ) ; if ( rebalanceStatusEntity != null ) { showStatus ( rebalanceStatusEntity ) ; } }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity rebalanceStatusEntity = returnValue.getReturnValue ( ) ; if ( rebalanceStatusEntity != null ) { showStatus ( rebalanceStatusEntity ) ; } }
Source:
public static void getTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.GetVmTemplatesByStoragePoolIdParameters ( dataCenterId ) , aQuery ) ; }

Target:
public static void getTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > filterClusters ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.filterClustersWithoutArchitecture ( clusters ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > filterClusters ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . filterClustersWithoutArchitecture ( clusters ) ; }
Source:
public java.util.List < java.lang.String > allocateMacAddresses ( int numberOfAddresses ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { checkIfInitialized ( ) ; return allocateNewMacsWithoutLocking ( numberOfAddresses ) ; } }

Target:
public java.util.List < java.lang.String > allocateMacAddresses ( int numberOfAddresses ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { return allocateNewMacsWithoutLocking ( numberOfAddresses ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getQuotaByStoragePoolGuid ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , storagePoolId ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = getCallsHandler ( ) . executeReadList ( "GetQuotaByStoragePoolGuid" , getQuotaFromResultSet ( ) , parameterSource ) ; return quotaList ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getQuotaByStoragePoolGuid ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , storagePoolId ) ; return getCallsHandler ( ) . executeReadList ( "GetQuotaByStoragePoolGuid" , getQuotaFromResultSet ( ) , parameterSource ) ; }
Source:
public void testEmptyAttr ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm id=\"\"></vm>" ) ; org.junit.Assert.assertEquals ( "" , object.getId ( ) ) ; }

Target:
public void testEmptyAttr ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm id=\"\"></vm>" ) ; org.junit.Assert.assertEquals ( "" , object.id ( ) ) ; }
Source:
public static org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , java.lang.Long datum ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.setDatum ( statistic , ( datum == null ? null : new java.math.BigDecimal ( datum ) ) ) ; }

Target:
public static org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , java.lang.Long datum ) { if ( datum != null ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.setDatum ( statistic , new java.math.BigDecimal ( datum ) ) ; } return statistic ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { management = ( ( java.lang.Boolean ) ( returnValue ) ) ; }

Target:
public void onSuccess ( java.lang.Boolean returnValue ) { management = returnValue ; }
Source:
public void testNullElement ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm></vm>" ) ; org.junit.Assert.assertNull ( object.getName ( ) ) ; }

Target:
public void testNullElement ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm></vm>" ) ; org.junit.Assert.assertNull ( object.name ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel dataCenterModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel ) ( model ) ) ; dataCenterModel.setMaxNameLength ( ( ( java.lang.Integer ) ( result ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel dataCenterModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel ) ( model ) ) ; dataCenterModel.setMaxNameLength ( ( ( java.lang.Integer ) ( result ) ) ) ; }
Source:
public org.ovirt.engine.api.resource.VmReportedDevicesResource getReportedDevicesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmReportedDevicesResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.VmReportedDevicesResource getReportedDevicesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmReportedDevicesResource ( vmId ) ) ; }
Source:
private static org.ovirt.engine.core.compat.Guid ensureIconInDatabase ( java.nio.file.Path dir , java.lang.String osName ) { try { return org.ovirt.engine.core.bll.IconLoader.ensureIconInDatabaseUnchecked ( dir , osName ) ; } catch ( java.lang.RuntimeException e ) { org.ovirt.engine.core.bll.IconLoader.log.warn ( e.toString ( ) ) ; return null ; } }

Target:
private org.ovirt.engine.core.compat.Guid ensureIconInDatabase ( java.nio.file.Path dir , java.lang.String osName ) { try { return ensureIconInDatabaseUnchecked ( dir , osName ) ; } catch ( java.lang.RuntimeException e ) { org.ovirt.engine.core.bll.IconLoader.log.warn ( e.toString ( ) ) ; return null ; } }
Source:
public void resizeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , int newWidth ) { setColumnWidth ( column , ( newWidth + "px" ) ) ; }

Target:
public void resizeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , int newWidth ) { setColumnWidth ( column , ( newWidth + "px" ) , true ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains a ) { return ( a.getstorage_domain_type ( ) ) == type ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getstorage_domain_type ( ) ) == type ; }
Source:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { java.lang.String message = consoleManager.connectToConsole ( consoleUtils.determineConnectionProtocol ( model ) , model ) ; if ( message != null ) { errorPopupManager.show ( message ) ; } }

Target:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { java.lang.String message = consoleManager.connectToConsole ( model ) ; if ( message != null ) { errorPopupManager.show ( message ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getGlusterVolumeSnapshotDao ( ) ; volumeDao = dbFacade.getGlusterVolumeDao ( ) ; existingSnapshot = dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotDaoTest.EXISTING_SNAPSHOT_ID ) ; existingSnapshot1 = dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotDaoTest.EXISTING_SNAPSHOT_ID_1 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; existingSnapshot = dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotDaoTest.EXISTING_SNAPSHOT_ID ) ; existingSnapshot1 = dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotDaoTest.EXISTING_SNAPSHOT_ID_1 ) ; }
Source:
public void validate ( ) { validateCommon ( ) ; validateSmtp ( ) ; validateFilter ( ) ; }

Target:
public void validate ( ) { validateCommon ( ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.StorageDomain , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
private void stopProgress ( java.lang.Object target ) { if ( target instanceof org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) { org.ovirt.engine.ui.uicommonweb.models.Model window = ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( target ) ) . getWindow ( ) ; if ( window != null ) { window.StopProgress ( ) ; } } }

Target:
private void stopProgress ( java.lang.Object target ) { if ( target instanceof org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) { org.ovirt.engine.ui.uicommonweb.models.Model window = ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( target ) ) . getWindow ( ) ; if ( window != null ) { window.stopProgress ( ) ; } } }
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.LdapUser populateUserData ( org.ovirt.engine.core.common.businessentities.aaa.LdapUser user , java.lang.String domain ) { return populateUserData ( user , domain , true ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.LdapUser populateUserData ( org.ovirt.engine.core.common.businessentities.aaa.LdapUser user , java.lang.String domain ) { return populateUserData ( user , domain , true , true ) ; }
Source:
public void cleanup ( ) { driver.cleanup ( ) ; super . cleanup ( ) ; }

Target:
public void cleanup ( ) { driver.cleanup ( ) ; }
Source:
protected org.ovirt.engine.core.bll.AttachActionGroupsToRoleCommand < ? extends org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter > generateCommand ( ) { return new org.ovirt.engine.core.bll.AttachActionGroupsToRoleCommand < org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter > ( getParams ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.AttachActionGroupsToRoleCommand < ? extends org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter > generateCommand ( ) { return new org.ovirt.engine.core.bll.AttachActionGroupsToRoleCommand ( getParams ( ) ) ; }
Source:
public void before ( ) { for ( org.ovirt.engine.core.vdsbroker.monitoring.VmTestPairs data : org.ovirt.engine.core.vdsbroker.monitoring.VmTestPairs.values ( ) ) { data.reset ( ) ; } org.mockito.MockitoAnnotations.initMocks ( this ) ; }

Target:
public void before ( ) { for ( org.ovirt.engine.core.vdsbroker.monitoring.VmTestPairs data : org.ovirt.engine.core.vdsbroker.monitoring.VmTestPairs.values ( ) ) { data.reset ( ) ; } }
Source:
public void search ( ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getEntity ( ) ) ) ; if ( ( getEntity ( ) ) != null ) { preSearchCalled ( vm ) ; super . search ( ) ; } }

Target:
public void search ( ) { org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; if ( ( getEntity ( ) ) != null ) { preSearchCalled ( vm ) ; super . search ( ) ; } }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( target ) ) ; vmListModel.PostMigrateGetUpHosts ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( target ) ) ; vmListModel.PostMigrateGetUpHosts ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }
Source:
public org.ovirt.engine.core.common.users.VdcUser getUserBySessionId ( java.lang.String sessionId ) { org.ovirt.engine.core.common.users.VdcUser user = ( ( org.ovirt.engine.core.common.users.VdcUser ) ( org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( sessionId ) ) ) ; return user ; }

Target:
public org.ovirt.engine.core.common.users.VdcUser getUserBySessionId ( java.lang.String sessionId ) { org.ovirt.engine.core.common.users.VdcUser user = ( ( org.ovirt.engine.core.common.users.VdcUser ) ( org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( sessionId , false ) ) ) ; return user ; }
Source:
private void setupMock ( ) throws java.lang.Exception { org.mockito.Mockito.when ( commandMock.canDoAction ( ) ) . thenCallRealMethod ( ) ; org.mockito.Mockito.when ( commandMock.getParameters ( ) ) . thenReturn ( parameters ) ; }

Target:
private void setupMock ( ) throws java.lang.Exception { org.mockito.Mockito.when ( commandMock.validate ( ) ) . thenCallRealMethod ( ) ; org.mockito.Mockito.when ( commandMock.getParameters ( ) ) . thenReturn ( parameters ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( ) { return policyUnit.filter ( java.util.Arrays.asList ( hostWithCpus , hostWithoutCpus ) , vm , null , perHostMessages ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( ) { return policyUnit.filter ( cluster , java.util.Arrays.asList ( hostWithCpus , hostWithoutCpus ) , vm , null , perHostMessages ) ; }
Source:
public void testGetAllForDc ( ) { org.junit.Assert.assertTrue ( ( ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) . size ( ) ) == 3 ) ) ; org.junit.Assert.assertTrue ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_NFS ) . isEmpty ( ) ) ; }

Target:
public void testGetAllForDc ( ) { org.junit.Assert.assertEquals ( 3 , dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) . size ( ) ) ; org.junit.Assert.assertTrue ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_NFS ) . isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.tags getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "tag_name" , name ) ; return getCallsHandler ( ) . executeRead ( "GettagsBytag_name" , new org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper ( ) , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.tags getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "tag_name" , name ) ; return getCallsHandler ( ) . executeRead ( "GettagsBytag_name" , org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper.instance , parameterSource ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateConsoleModels ( ) ; updateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.MainTabHostView view = ( ( org.ovirt.engine.ui.webadmin.section.main.view.tab.MainTabHostView ) ( target ) ) ; view.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.MainTabHostView view = ( ( org.ovirt.engine.ui.webadmin.section.main.view.tab.MainTabHostView ) ( target ) ) ; view.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state , true ) ; }
Source:
public void updateQuotaForImageAndSnapshots ( org.ovirt.engine.core.compat.Guid imageGroupId , org.ovirt.engine.core.compat.NGuid quotaId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "image_group_id" , imageGroupId ) . addValue ( "quota_id" , quotaId ) ; getCallsHandler ( ) . executeModification ( "updateQuotaForImageAndSnapshots" , parameterSource ) ; }

Target:
public void updateQuotaForImageAndSnapshots ( org.ovirt.engine.core.compat.Guid imageGroupId , org.ovirt.engine.core.compat.Guid quotaId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "image_group_id" , imageGroupId ) . addValue ( "quota_id" , quotaId ) ; getCallsHandler ( ) . executeModification ( "updateQuotaForImageAndSnapshots" , parameterSource ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getFieldRelationshipAutoCompleter ( java.lang.String obj , java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IAutoCompleter retval = null ; org.ovirt.engine.core.searchbackend.IConditionFieldAutoCompleter curConditionFieldAC = getFieldAutoCompleter ( obj ) ; if ( curConditionFieldAC != null ) { retval = curConditionFieldAC.getFieldRelationshipAutoCompleter ( fieldName ) ; } return retval ; }

Target:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getFieldRelationshipAutoCompleter ( java.lang.String obj , java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionFieldAutoCompleter curConditionFieldAC = getFieldAutoCompleter ( obj ) ; if ( curConditionFieldAC != null ) { return curConditionFieldAC.getFieldRelationshipAutoCompleter ( fieldName ) ; } return null ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; cachedDefaultTimeZoneKey = ( ( java.lang.String ) ( returnValue ) ) ; behavior.PostUpdateDefaultTimeZone ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; cachedDefaultTimeZoneKey = ( ( java.lang.String ) ( returnValue ) ) ; behavior.PostUpdateDefaultTimeZone ( ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > cmds = dbFacade.getCommandEntityDao ( ) . getAll ( ) ; org.junit.Assert.assertNotNull ( cmds ) ; org.junit.Assert.assertTrue ( ( ( cmds.size ( ) ) > 0 ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > cmds = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( cmds ) ; org.junit.Assert.assertTrue ( ( ( cmds.size ( ) ) > 0 ) ) ; }
Source:
private void initSpyCommand ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand ( new org.ovirt.engine.core.common.action.MoveDisksParameters ( new java.util.ArrayList < > ( ) ) ) ) ; }

Target:
private void initSpyCommand ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand ( new org.ovirt.engine.core.common.action.MoveDisksParameters ( new java.util.ArrayList < > ( ) ) , null ) ) ; }
Source:
public void testIsNetworkInSyncWhenIfaceQosIsNull ( ) throws java.lang.Exception { iface.setQos ( null ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenIfaceQosIsNull ( ) throws java.lang.Exception { iface.setQos ( null ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > getDiskInterfaceList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > diskInterfaces = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.storage.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.VirtIO , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.VirtIO_SCSI , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.SPAPR_VSCSI } ) ) ; return diskInterfaces ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > getDiskInterfaceList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > diskInterfaces = new java.util.ArrayList ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.storage.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.VirtIO , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.VirtIO_SCSI , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.SPAPR_VSCSI } ) ) ; return diskInterfaces ; }