auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.getTagResource ( "foo" ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendAssignedTagsResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { collection.getTagResource ( "foo" ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendAssignedTagsResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , true ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { boolean isConsistent = ( ( java.lang.Boolean ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; setConsoleAddressPartiallyOverridden ( ( ! isConsistent ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { boolean isConsistent = ( ( java.lang.Boolean ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; setConsoleAddressPartiallyOverridden ( ( ! isConsistent ) ) ; }
Source:
private synchronized boolean findProxyHostExcluding ( org.ovirt.engine.core.compat.Guid exludedHostId ) { skippedProxyHostId = exludedHostId ; boolean res = findProxyHost ( ) ; skippedProxyHostId = null ; return res ; }

Target:
public boolean findProxyHost ( ) { return findProxyHost ( skippedProxyHostId ) ; }
Source:
java.lang.String ovirtVersionAbout ( java.lang.String version ) ;

Target:
java.lang.String ovirtVersionAbout ( ) ;
Source:
private org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) , getClusterVersion ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) ) ; }
Source:
private void addVmInterfaceStatisticsToList ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > list ) { if ( list.isEmpty ( ) ) { return ; } vmInterfaceStatisticsToSave.put ( list.get ( 0 ) . getVmId ( ) , list ) ; }

Target:
protected void addVmInterfaceStatisticsToList ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > list ) { if ( list.isEmpty ( ) ) { return ; } vmInterfaceStatisticsToSave.add ( list ) ; }
Source:
public void testGetWithTrailingSlashVirtOnly ( ) { doTestGet ( ApplicationMode.VirtOnly , ( ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) + "/" ) ) ; }

Target:
public void testGetWithTrailingSlashVirtOnly ( ) { doTestGet ( ApplicationMode.VirtOnly ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return ( java.lang.String.valueOf ( object.getvm_mem_size_mb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getvm_mem_size_mb ( ) ) ) + " MB" ; }
Source:
public void getNonExistentVariable ( ) { org.ovirt.engine.core.common.ExternalVariable found = dbFacade.getExternalVariableDao ( ) . get ( "non-existent" ) ; org.junit.Assert.assertNull ( found ) ; }

Target:
public void getNonExistentVariable ( ) { org.ovirt.engine.core.common.ExternalVariable found = dao.get ( "non-existent" ) ; org.junit.Assert.assertNull ( found ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain electNewMaster ( boolean duringReconstruct ) { return electNewMaster ( duringReconstruct , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain electNewMaster ( boolean duringReconstruct ) { return electNewMaster ( duringReconstruct , false , false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_pool mockStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool storagePool = new org.ovirt.engine.core.common.businessentities.storage_pool ( ) ; storagePool.setId ( storagePoolUUID ) ; storagePool.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; return storagePool ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool mockStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setId ( storagePoolUUID ) ; storagePool.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; return storagePool ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > cpuProfiles = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; getCpuProfiles ( ) . setItems ( cpuProfiles ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > cpuProfiles = returnValue.getReturnValue ( ) ; getCpuProfiles ( ) . setItems ( cpuProfiles ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStatic ( int idx ) { org.ovirt.engine.api.restapi.resource.StorageDomainStatic dom = new org.ovirt.engine.api.restapi.resource.StorageDomainStatic ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStatic ( int idx ) { org.ovirt.engine.api.restapi.resource.StorageDomainStatic dom = new org.ovirt.engine.api.restapi.resource.StorageDomainStatic ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }
Source:
public int getRetryTimeOut ( ) { return retryTimeOut ; }

Target:
public int getRetryTimeOut ( ) { return this . retryTimeOut ; }
Source:
public void setPmOptionsMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { pmOptionsMap = value ; pmOptions = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsMapToString ( value ) ; }

Target:
public void setPmOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { pmOptionsMap = value ; pmOptions = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsMapToString ( value ) ; }
Source:
public void setstorage_pool_name ( java.lang.String value ) { storage_pool_nameField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "storage_name" ) ) ; }

Target:
public void setstorage_pool_name ( java.lang.String value ) { storage_pool_nameField = value ; }
Source:
public void setUp ( ) { org.mockito.Mockito.doReturn ( mockNetworkClusterDao ) . when ( underTest ) . getNetworkClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkDao ) . when ( underTest ) . getNetworkDao ( ) ; }

Target:
public void setUp ( ) { org.mockito.Mockito.doReturn ( mockNetworkClusterDao ) . when ( underTest ) . getNetworkClusterDao ( ) ; }
Source:
public void testGetUserAndSetUserWithoutSessionParam ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.ovirt.engine.core.common.interfaces.IVdcUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.interfaces.IVdcUser.class ) ; container.setUser ( user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( ) ) ; }

Target:
public void testGetUserAndSetUserWithoutSessionParam ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.ovirt.engine.core.common.interfaces.IVdcUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.interfaces.IVdcUser.class ) ; container.setUser ( user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( false ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntityStatus ( snapshot , snapshot.getStatus ( ) ) ; getSnapshotDao ( ) . updateStatus ( getParameters ( ) . getSnapshotId ( ) , SnapshotStatus.LOCKED ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntityStatus ( snapshot ) ; getSnapshotDao ( ) . updateStatus ( getParameters ( ) . getSnapshotId ( ) , SnapshotStatus.LOCKED ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
private void setNetworks ( java.util.Map < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel > networks ) { networkMap = networks ; getNetworksChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }

Target:
private void setNetworks ( java.util.Map < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel > networks ) { networkMap = networks ; }
Source:
protected javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return performAction ( task , params , ( ( org.ovirt.engine.api.model.Action ) ( null ) ) ) ; }

Target:
protected javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }
Source:
public void setPriority ( int value ) { vmStatic.setpriority ( value ) ; }

Target:
public void setPriority ( int value ) { vmStatic.setPriority ( value ) ; }
Source:
public void logoutUser ( final java.lang.Object userObject , final org.ovirt.engine.ui.frontend.communication.UserCallback < ? > callback ) { loggedIn = false ; processor.logoutUser ( userObject , callback ) ; }

Target:
public void logoutUser ( final org.ovirt.engine.ui.frontend.communication.UserCallback < ? > callback ) { loggedIn = false ; processor.logoutUser ( callback ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > createActionTable ( ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > ( modelProvider , getTableHeaderlessResources ( ) , getTableResources ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getClientStorage ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > createActionTable ( ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > ( modelProvider , getTableHeaderlessResources ( ) , getTableResources ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getClientStorage ( ) ) ; }
Source:
java.lang.String emptyJobMessage ( ) ;

Target:
java.lang.String size ( ) ;
Source:
private static boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return ! ( user.getIsGroup ( ) ) ; }

Target:
private static boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return ( user != null ) && ( ! ( user.getIsGroup ( ) ) ) ; }
Source:
private static void addOrUpdateTaskInDB ( org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.bll.tasks.AsyncTaskUtils.getAsyncTaskDao ( ) . saveOrUpdate ( asyncTask , null , ( ( org.ovirt.engine.core.compat.Guid [ ] ) ( null ) ) ) ; }

Target:
private static void addOrUpdateTaskInDB ( org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.bll.tasks.AsyncTaskUtils.getAsyncTaskDao ( ) . saveOrUpdate ( asyncTask ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.clusterList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ; SetDefaultNames4 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.clusterList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ; SetDefaultNames4 ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( result ) ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; stopProgress ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( result ) ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; }
Source:
public static boolean networkLinkingSupported ( java.lang.String version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.NetworkLinkingSupported , version ) ; }

Target:
public static boolean networkLinkingSupported ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.NetworkLinkingSupported , version.getValue ( ) ) ; }
Source:
protected void setVm ( final org.ovirt.engine.core.common.businessentities.VM value ) { vm = value ; }

Target:
public void setVm ( final org.ovirt.engine.core.common.businessentities.VM value ) { vm = value ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskCompleted , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback ) ( target ) ) ; org.ovirt.engine.ui.uicompat.Event notifyEvent = callback.getNotifyEvent ( ) ; notifyEvent.raise ( this , new org.ovirt.engine.ui.uicommonweb.models.hosts.ValueEventArgs ( returnValue ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback ) ( target ) ) ; org.ovirt.engine.ui.uicompat.Event notifyEvent = callback.getNotifyEvent ( ) ; notifyEvent.raise ( this , new org.ovirt.engine.ui.uicommonweb.models.hosts.ValueEventArgs ( returnValue ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getParentEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( getEntity ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return ( getEntity ( ) ) != null ? getEntity ( ) . getStoragePoolId ( ) : null ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetPermissionsByAdElementId , new org.ovirt.engine.core.common.queries.MultilevelAdministrationByAdElementIdParameters ( getEntity ( ) . getuser_id ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > ( value , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion , returnValue ) ; }

Target:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor ( value , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion , returnValue ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatus getRawValue ( org.ovirt.engine.core.common.businessentities.storage_domains object ) { return object.getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatus getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getstatus ( ) ; }
Source:
private void mockDaos ( ) { mockVmDao ( ) ; mockDiskImageDao ( ) ; mockValidators ( ) ; }

Target:
private void mockDaos ( ) { mockVmDao ( ) ; mockValidators ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.storage_pool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = new org.ovirt.engine.core.common.businessentities.storage_pool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; pool.setname ( "Default" ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; pool.setname ( "Default" ) ; return pool ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { customPropertiesList = ( ( java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > ) ( returnValue ) ) ; }

Target:
public void onSuccess ( java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > returnValue ) { customPropertiesList = returnValue ; }
Source:
protected javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return performAction ( task , params , ( ( org.ovirt.engine.api.model.Action ) ( null ) ) ) ; }

Target:
protected javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return performAction ( task , params , ( ( org.ovirt.engine.api.model.Action ) ( null ) ) , false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getnetwork_id ( ) ) ; } return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getnetwork_id ( ) ) ; } return network ; }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; }
Source:
private void stubDaos ( ) { mockStatistics ( ) ; mockVmDynamic ( ) ; mockVmStatic ( true ) ; mockVmJob ( ) ; mockCluster ( ) ; mockVdsDao ( ) ; }

Target:
private void stubDaos ( ) { mockStatistics ( ) ; mockVmDynamic ( ) ; mockVmStatic ( true ) ; mockVdsDao ( ) ; }
Source:
public java.lang.String getFQN ( ) { java.lang.String domain = getDomainControler ( ) ; java.lang.String username = getUserName ( ) ; if ( ( ( org.apache.commons.lang.StringUtils.isEmpty ( username ) ) || ( username.contains ( "@" ) ) ) || ( org.apache.commons.lang.StringUtils.isEmpty ( domain ) ) ) { return username ; } else { return ( username + "@" ) + domain ; } }

Target:
public java.lang.String getFQN ( ) { java.lang.String domain = getDomainControler ( ) ; java.lang.String username = getUserName ( ) ; if ( ( ( ( username == null ) || ( ( username.length ( ) ) == 0 ) ) || ( username.contains ( "@" ) ) ) || ( ( domain == null ) || ( ( domain.length ( ) ) == 0 ) ) ) { return username ; } else { return ( username + "@" ) + domain ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetRoleByNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getRoleDao ( ) . getByName ( org.ovirt.engine.core.bll.GetRoleByNameQuery.getParameters ( ) . getRoleName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetRoleByNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getRoleDao ( ) . getByName ( org.ovirt.engine.core.bll.GetRoleByNameQuery.getParameters ( ) . getName ( ) ) ) ; }
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addCiscoUcsPmTypeListener ( model ) ; addRadioButtonsListeners ( model ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addRadioButtonsListeners ( model ) ; }
Source:
private < T > java.util.Map < java.lang.String , java.lang.Object > executeImpl ( java.lang.String procedureName , org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsSource , org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator callCreatorr ) { return executeImpl ( procedureName , paramsSource , callCreatorr , null ) ; }

Target:
private java.util.Map < java.lang.String , java.lang.Object > executeImpl ( java.lang.String procedureName , org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsSource , org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator callCreatorr ) { return executeImpl ( procedureName , paramsSource , callCreatorr , null ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Template update ( org.ovirt.engine.api.v3.types.V3Template template ) { return org.ovirt.engine.api.v3.helpers.V3TemplateHelper.addDisksLink ( adaptUpdate ( getDelegate ( ) :: update , template ) ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Template update ( org.ovirt.engine.api.v3.types.V3Template template ) { template = adaptUpdate ( getDelegate ( ) :: update , template ) ; org.ovirt.engine.api.v3.helpers.V3TemplateHelper.addDisksLink ( template ) ; return template ; }
Source:
public static org.ovirt.engine.core.compat.Guid getGuidValue ( org.ovirt.engine.core.compat.NGuid id ) { return id == null ? null : id.getValue ( ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid getGuidValue ( org.ovirt.engine.core.compat.Guid id ) { return id == null ? null : id.getValue ( ) ; }
Source:
public VmRngDevice.Source getUrandomOrRandomRngSource ( ) { return VmRngDevice.Source.getUrandomOrRandomFor ( getModel ( ) . getSelectedCluster ( ) . getCompatibilityVersion ( ) ) ; }

Target:
public VmRngDevice.Source getUrandomOrRandomRngSource ( ) { return VmRngDevice.Source.getUrandomOrRandomFor ( getModel ( ) . getCompatibilityVersion ( ) ) ; }
Source:
protected void endStepJobCommitted ( ) { endStepJob ( JobExecutionStatus.FINISHED , getStepMessageMap ( JobExecutionStatus.FINISHED ) , true ) ; }

Target:
protected void endStepJobCommitted ( ) { endStepJob ( JobExecutionStatus.FINISHED , getStepMessageMap ( JobExecutionStatus.FINISHED , null ) , true ) ; }
Source:
public void setused_disk_size ( java.lang.Integer value ) { getStorageDynamicData ( ) . setused_disk_size ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "used_disk_size" ) ) ; UpdateTotalDiskSize ( ) ; }

Target:
public void setused_disk_size ( java.lang.Integer value ) { getStorageDynamicData ( ) . setused_disk_size ( value ) ; UpdateTotalDiskSize ( ) ; }
Source:
private static org.ovirt.engine.core.common.action.InstallVdsParameters createParameters ( ) { org.ovirt.engine.core.common.action.InstallVdsParameters param = new org.ovirt.engine.core.common.action.InstallVdsParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; param.setIsReinstallOrUpgrade ( true ) ; return param ; }

Target:
private static org.ovirt.engine.core.common.action.InstallVdsParameters createParameters ( ) { org.ovirt.engine.core.common.action.InstallVdsParameters param = new org.ovirt.engine.core.common.action.InstallVdsParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , null ) ; param.setIsReinstallOrUpgrade ( true ) ; return param ; }
Source:
public java.lang.Integer getPendingVcpusCount ( ) { return mVdsDynamic.getpending_vcpus_count ( ) ; }

Target:
public java.lang.Integer getPendingVcpusCount ( ) { return mVdsDynamic.getPendingVcpusCount ( ) ; }
Source:
public java.lang.Boolean getKvmEnabled ( ) { return this . mVdsDynamic.getkvm_enabled ( ) ; }

Target:
public java.lang.Boolean getKvmEnabled ( ) { return this . mVdsDynamic.getKvmEnabled ( ) ; }
Source:
private void addSubCollection ( org.ovirt.engine.sdk.generator.utils.Tree < org.ovirt.engine.sdk.generator.Location > collectionTree ) { java.lang.String className = org.ovirt.engine.sdk.generator.BrokerRules.getBrokerType ( collectionTree ) ; java.lang.String classCode = new org.ovirt.engine.sdk.generator.java.templates.SubCollectionTemplate ( ) . evaluate ( collectionTree ) ; code.put ( className , classCode ) ; }

Target:
private java.lang.String addSubCollection ( java.lang.String className , org.ovirt.engine.sdk.generator.utils.Tree < org.ovirt.engine.sdk.generator.Location > collectionTree ) { return new org.ovirt.engine.sdk.generator.java.templates.SubCollectionTemplate ( ) . evaluate ( className , collectionTree ) ; }
Source:
private void onCancelUpload ( ) { org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.onCancelUpload ( ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( getWindow ( ) ) ) , org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.storage.DiskImage > cast ( getSelectedItems ( ) ) ) ; }

Target:
private void onCancelUpload ( ) { org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.onCancelUpload ( ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( getWindow ( ) ) ) , getSelectedItems ( ) ) ; }
Source:
private void mockCommandParameters ( ) { org.mockito.Mockito.doReturn ( unregisteredDisksDaoMock ) . when ( cmd ) . getUnregisteredDisksDao ( ) ; org.mockito.Mockito.doReturn ( diskImageDaoMock ) . when ( cmd ) . getDiskImageDao ( ) ; }

Target:
private void mockCommandParameters ( ) { org.mockito.Mockito.doReturn ( diskImageDaoMock ) . when ( cmd ) . getDiskImageDao ( ) ; }
Source:
public void setUp ( ) { this . macPoolValidator = createMacPoolValidator ( macPool ) ; injectorRule.bind ( org.ovirt.engine.core.dao.MacPoolDao.class , macPoolDaoMock ) ; injectorRule.bind ( org.ovirt.engine.core.dao.ClusterDao.class , clusterDao ) ; }

Target:
public void setUp ( ) { this . macPoolValidator = createMacPoolValidator ( macPool ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.common.AboutModel aboutModel = ( ( org.ovirt.engine.ui.uicommonweb.models.common.AboutModel ) ( model ) ) ; aboutModel.setProductVersion ( ( ( java.lang.String ) ( result ) ) ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.common.AboutModel aboutModel = ( ( org.ovirt.engine.ui.uicommonweb.models.common.AboutModel ) ( model ) ) ; aboutModel.setProductVersion ( ( ( java.lang.String ) ( returnValue ) ) ) ; }
Source:
private boolean hasTasks ( ) { return ! ( getReturnValue ( ) . getVdsmTaskIdList ( ) . isEmpty ( ) ) ; }

Target:
public boolean hasTasks ( ) { return ! ( getReturnValue ( ) . getVdsmTaskIdList ( ) . isEmpty ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( ) { return getEntities ( false , false ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( ) { return getEntities ( false , false , false ) ; }
Source:
public static void Sort ( java.util.List source , java.util.Comparator comparer ) { java.util.Collections.sort ( source , comparer ) ; }

Target:
public static void sort ( java.util.List source , java.util.Comparator comparer ) { java.util.Collections.sort ( source , comparer ) ; }
Source:
public void setVdsStrength ( int value ) { this . vdsStrength = ( value < 1 ) ? 1 : value > 100 ? 100 : value ; }

Target:
public void setVdsStrength ( int value ) { vdsStrength = ( value < 1 ) ? 1 : value > 100 ? 100 : value ; }
Source:
public void testGetByNameAndCluster ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndCluster ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , cluster ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }

Target:
public void testGetByNameAndCluster ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndCluster ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , cluster ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getName ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getstatus ( ) ) ; vm.setstatus ( VMStatus.Down ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
public void setOtpValidity ( java.lang.Long value ) { vdsStatic.setOtpValidity ( value ) ; }

Target:
public void setOtpValidity ( long value ) { vdsStatic.setOtpValidity ( value ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap map ) { updateStatus ( map.getId ( ) , map.getstatus ( ) ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap map ) { updateStatus ( map.getId ( ) , map.getStatus ( ) ) ; }
Source:
public static void getAttachedTagsToUser ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.setAttachedTagsConverter ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetTagsByUserId , new org.ovirt.engine.core.common.queries.GetTagsByUserIdParameters ( id.toString ( ) ) , aQuery ) ; }

Target:
public void getAttachedTagsToUser ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { setAttachedTagsConverter ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetTagsByUserId , new org.ovirt.engine.core.common.queries.GetTagsByUserIdParameters ( id.toString ( ) ) , aQuery ) ; }
Source:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) ; return true ; }

Target:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return true ; }
Source:
public void removeForNonExistentVds ( ) { dbFacade.getVdsKdumpStatusDao ( ) . remove ( new org.ovirt.engine.core.compat.Guid ( "11111111-2222-3333-4444-555555555555" ) ) ; }

Target:
public void removeForNonExistentVds ( ) { dao.remove ( new org.ovirt.engine.core.compat.Guid ( "11111111-2222-3333-4444-555555555555" ) ) ; }
Source:
public void setup ( ) { org.mockito.Mockito.doReturn ( vdsDao ) . when ( dbFacade ) . getVdsDao ( ) ; mockVdsFenceOptions ( true ) ; mockFencedHost ( ) ; }

Target:
public void setup ( ) { org.mockito.Mockito.when ( dbFacade.getVdsDao ( ) ) . thenReturn ( vdsDao ) ; mockVdsFenceOptions ( true ) ; mockFencedHost ( ) ; }
Source:
protected boolean canDoAction ( ) { addCustomValue ( "NewUserName" , org.ovirt.engine.core.bll.aaa.AddUserCommand.getParameters ( ) . getUserToAdd ( ) . getLoginName ( ) ) ; return true ; }

Target:
protected boolean validate ( ) { addCustomValue ( "NewUserName" , org.ovirt.engine.core.bll.aaa.AddUserCommand.getParameters ( ) . getUserToAdd ( ) . getLoginName ( ) ) ; return true ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getStorageName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomain model ) { return model.getStorageName ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getFiltered ( java.lang.String filter ) { java.lang.String url = ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.HOSTS_ENTRY_POINT ) + ( java.lang.String.format ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.SEARCH_QUERY_FORMAT , filter ) ) ; org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( url ) ; return runHostListMethod ( method ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getFiltered ( java.lang.String filter ) { return runHostListMethod ( ( ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.HOSTS_ENTRY_POINT ) + ( java.lang.String.format ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.SEARCH_QUERY_FORMAT , filter ) ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult updatesAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NO_AVAILABLE_UPDATES_FOR_HOST ) . unless ( ( ( ( getHost ( ) . getVdsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) || ( getHost ( ) . isUpdateAvailable ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult updatesAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NO_AVAILABLE_UPDATES_FOR_HOST ) . unless ( ( ( ( host.getVdsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) || ( host.isUpdateAvailable ( ) ) ) ) ; }
Source:
public void updateAllInBatch ( java.lang.String procedureName , java.util.Collection < T > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > mapper ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getCallsHandler ( ) . executeStoredProcAsBatch ( ( procedureName == null ? org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) : procedureName ) , paramValues , mapper ) ; }

Target:
protected void updateAllInBatch ( java.lang.String procedureName , java.util.Collection < T > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > mapper ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getCallsHandler ( ) . executeStoredProcAsBatch ( ( procedureName == null ? org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) : procedureName ) , paramValues , mapper ) ; }
Source:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { resource.getApplicationResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { try { resource.getApplicationResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public static void getGlusterHosts ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String hostAddress , java.lang.String rootPassword , java.lang.String fingerprint ) { org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters ( hostAddress , rootPassword ) ; parameters.setFingerprint ( fingerprint ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterServersForImport , parameters , aQuery ) ; }

Target:
public static void getGlusterHosts ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String hostAddress , java.lang.String rootPassword , java.lang.String fingerprint ) { org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters ( hostAddress , rootPassword ) ; parameters.setFingerprint ( fingerprint ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterServersForImport , parameters , aQuery ) ; }
Source:
public void run ( org.ovirt.engine.core.common.businessentities.storage_pool item , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetLocalStorageHost ( callback.getAsyncQuery ( ) , item.getname ( ) ) ; }

Target:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetLocalStorageHost ( callback.getAsyncQuery ( ) , item.getname ( ) ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( org.ovirt.engine.core.vdsbroker.VmsListFetcher fetcher , long fetchTime ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( vdsManager , fetcher.getChangedVms ( ) , fetcher.getVmsWithChangedDevices ( ) , auditLogDirector , fetchTime , isTimeToRefreshStatistics ( ) ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( long fetchTime ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( vdsManager , auditLogDirector , fetchTime , isTimeToRefreshStatistics ( ) ) ; }
Source:
private long getConfigurableDelay ( java.lang.String configurableDelayKeyName ) { org.ovirt.engine.core.common.config.ConfigValues configDelay = org.ovirt.engine.core.common.config.ConfigValues.valueOf ( configurableDelayKeyName ) ; return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( configDelay ) . longValue ( ) ; }

Target:
private long getConfigurableDelay ( java.lang.String configurableDelayKeyName ) { org.ovirt.engine.core.common.config.ConfigValues configDelay = org.ovirt.engine.core.common.config.ConfigValues.valueOf ( configurableDelayKeyName ) ; return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( configDelay ) . longValue ( ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vmModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; vmModel.set_MaxMemSize64 ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vmModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; vmModel.set_MaxMemSize64 ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; }
Source:
public void setUp ( ) { parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; parameters.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.SyncLunsInfoForBlockStorageDomainCommand < org.ovirt.engine.core.common.action.StorageDomainParametersBase > ( parameters ) ) ; }

Target:
public void setUp ( ) { parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; parameters.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.SyncLunsInfoForBlockStorageDomainCommand < org.ovirt.engine.core.common.action.StorageDomainParametersBase > ( parameters , null ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.storage_domains x , org.ovirt.engine.core.common.businessentities.storage_domains y ) { return x.getstorage_name ( ) . compareTo ( y.getstorage_name ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.StorageDomain x , org.ovirt.engine.core.common.businessentities.StorageDomain y ) { return x.getstorage_name ( ) . compareTo ( y.getstorage_name ( ) ) ; }
Source:
public void setVds ( final org.ovirt.engine.core.common.businessentities.VDS value ) { mVds = value ; mVdsName = null ; mVdsId = ( value == null ) ? org.ovirt.engine.core.compat.Guid.Empty : value.getId ( ) ; }

Target:
public void setVds ( final org.ovirt.engine.core.common.businessentities.VDS value ) { mVds = value ; mVdsName = null ; if ( value != null ) { mVdsId = value.getId ( ) ; } }
Source:
public void addPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setStoragePoolId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }

Target:
public void addPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }
Source:
public void setHighlyAvailableScore ( java.lang.Integer value ) { this . mVdsStatistics.setHighlyAvailableScore ( value ) ; }

Target:
public void setHighlyAvailableScore ( int value ) { this . mVdsStatistics.setHighlyAvailableScore ( value ) ; }
Source:
protected boolean canDoAction ( ) { return ( ( validate ( getVfsConfigValidator ( ) . nicExists ( ) ) ) && ( validate ( getVfsConfigValidator ( ) . nicSriovEnabled ( ) ) ) ) && ( validate ( getVfsConfigValidator ( ) . sriovFeatureSupported ( ) ) ) ; }

Target:
protected boolean validate ( ) { return ( ( validate ( getVfsConfigValidator ( ) . nicExists ( ) ) ) && ( validate ( getVfsConfigValidator ( ) . nicSriovEnabled ( ) ) ) ) && ( validate ( getVfsConfigValidator ( ) . sriovFeatureSupported ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , version ) ; }

Target:
protected org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( interfaceDao , networkDao , networkCluster ) ; }
Source:
protected org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }
Source:
protected org.ovirt.engine.api.model.Template getFromExportDomain ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate entity = getEntity ( ) ; return addLinks ( populate ( map ( entity , null ) , entity ) , null , new java.lang.String [ 0 ] ) ; }

Target:
private org.ovirt.engine.api.model.Template getFromExportDomain ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate entity = getEntity ( ) ; return addLinks ( populate ( map ( entity , null ) , entity ) , null , new java.lang.String [ 0 ] ) ; }