auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.templates.CopyDiskModel copyDiskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.CopyDiskModel ) ( target ) ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( returnValue ) ) ; copyDiskModel.onInitStorageDomains ( storageDomains ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { onInitStorageDomains ( storageDomains ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getStorageDomainId ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.core.compat.Guid returnValue = org.ovirt.engine.core.compat.Guid.Empty ; org.ovirt.engine.core.common.businessentities.StorageDomain domain = getStorageDomain ( poolId , type ) ; if ( domain != null ) { returnValue = domain.getId ( ) ; } return returnValue ; }

Target:
private org.ovirt.engine.core.compat.Guid getStorageDomainId ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getStorageDomainId ( poolId , type , null ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) , null , null , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return createHostSetupNetworksValidator ( networks , new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.get ( existing_bookmark.getbookmark_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existing_bookmark.getbookmark_id ( ) , result.getbookmark_id ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.get ( existing_bookmark.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existing_bookmark.getId ( ) , result.getId ( ) ) ; }
Source:
public < T > void bind ( java.lang.Class < T > pureClsType , T instance ) { org.ovirt.engine.core.di.InjectorRule.beansCache.put ( pureClsType.getName ( ) , instance ) ; }

Target:
public < T > void bind ( java.lang.Class < T > pureClsType , T instance ) { org.ovirt.engine.core.di.InjectorRule.beansCache.put ( pureClsType , instance ) ; }
Source:
protected boolean showTransportProperties ( ) { return true ; }

Target:
protected boolean showTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return true ; }
Source:
public void snapshotNameEmpty ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final java.lang.String e = "" ; b.setSnapshotName ( e ) ; final java.lang.String s = b.getSnapshotName ( ) ; org.junit.Assert.assertEquals ( e , s ) ; }

Target:
public void snapshotNameEmpty ( ) { final java.lang.String e = "" ; b.setSnapshotName ( e ) ; final java.lang.String s = b.getSnapshotName ( ) ; org.junit.Assert.assertEquals ( e , s ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { java.lang.String version = ( ( java.lang.String ) ( result ) ) ; getView ( ) . setVersion ( version ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.lang.String version = ( ( java.lang.String ) ( result ) ) ; getView ( ) . setVersion ( version ) ; }
Source:
private void validateNetworkQos ( ) { validateQosOverriddenInterfaces ( ) ; validateQosNotPartiallyConfigured ( ) ; validateQosCommitment ( ) ; }

Target:
private void validateNetworkQos ( ) { validateQosNotPartiallyConfigured ( ) ; }
Source:
public void areAllVfsFreeTrue ( ) { freeVfCommon ( 5 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertTrue ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }

Target:
public void areAllVfsFreeTrue ( ) { freeVfCommon ( 5 , 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertTrue ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }
Source:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool , boolean isNewSpm ) { if ( isNewSpm ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . StopStoragePoolTasks ( storagePool ) ; } else { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . AddStoragePoolExistingTasks ( storagePool ) ; } }

Target:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . AddStoragePoolExistingTasks ( storagePool ) ; }
Source:
public void onSuccess ( java.lang.Object model1 , java.lang.Object result1 ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > clusterNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( result1 ) ) ; profilesQuery.setModel ( clusterNetworks ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getVnicProfilesByDcId ( profilesQuery , dcId ) ; }

Target:
public void onSuccess ( java.lang.Object model1 , java.lang.Object result1 ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > clusterNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( result1 ) ) ; profilesQuery.setModel ( clusterNetworks ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getVnicProfilesByDcId ( profilesQuery , dcId ) ; }
Source:
public java.lang.String getname ( ) { return this . name ; }

Target:
public java.lang.String getname ( ) { return super . getName ( ) ; }
Source:
private org.ovirt.engine.core.compat.Guid createTaskImpl ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.createTask ( taskId , this , asyncTaskCreationInfo , getRootCommandType ( parentCommand ) , description , entitiesMap ) ; }

Target:
private org.ovirt.engine.core.compat.Guid createTaskImpl ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.createTask ( taskId , this , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }
Source:
private static org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacadeInstance ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
public static org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacadeInstance ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > templatesChain = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ) ; initTemplateWithVersion ( templatesChain , templateId , useLatest ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > templatesChain = new java.util.ArrayList < > ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ) ; initTemplateWithVersion ( templatesChain , templateId , useLatest ) ; }
Source:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( "00000000-0000-0000-0000-000000000012" ) ) ; }

Target:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; }
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.Integer result ) { setMaxNameLength ( result ) ; }
Source:
public void defaultClusterInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuExists ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuManufacturersMatch ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.clusterVersionIsSupported ( ) ; allQueriesEmpty ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }

Target:
public void defaultClusterInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesEmpty ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; if ( object.getIsNew ( ) ) { object.getNumOfDesktops ( ) . setEntity ( 1 ) ; prestartedVmsEditor.setEnabled ( false ) ; } }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; if ( object.getIsNew ( ) ) { object.getNumOfDesktops ( ) . setEntity ( 1 ) ; } }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getNodeObjects ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( template.getDiskImageMap ( ) . values ( ) ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getNodeObjects ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { return new java.util.ArrayList ( template.getDiskImageMap ( ) . values ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.network.Network x , org.ovirt.engine.core.common.businessentities.network.Network y ) { return x.getname ( ) . compareTo ( y.getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.network.Network x , org.ovirt.engine.core.common.businessentities.network.Network y ) { return x.getName ( ) . compareTo ( y.getName ( ) ) ; }
Source:
protected void init ( ) { resource.setBackend ( backend ) ; resource.setMappingLocator ( mapperLocator ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }

Target:
protected void init ( ) { resource.setMappingLocator ( mapperLocator ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }
Source:
private javax.ws.rs.core.Response actionSuccess ( org.ovirt.engine.api.model.Action action , java.lang.Object result ) { setActionItem ( action , result ) ; action.setStatus ( org.ovirt.engine.api.common.util.StatusUtils.create ( CreationStatus.COMPLETE ) ) ; return javax.ws.rs.core.Response.ok ( ) . entity ( action ) . build ( ) ; }

Target:
private javax.ws.rs.core.Response actionSuccess ( org.ovirt.engine.api.model.Action action , java.lang.Object result ) { setActionItem ( action , result ) ; action.setStatus ( CreationStatus.COMPLETE.value ( ) ) ; return javax.ws.rs.core.Response.ok ( ) . entity ( action ) . build ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( name ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_name" , new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper ( ) , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( name ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_name" , org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper.instance , parameterSource ) ; }
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 ( ) , 1 , 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 ( ) , 2 , ginjector.getSubTabClusterNetworkModelProvider ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( org.ovirt.engine.core.common.businessentities.network.Network managementNetwork ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getId ( ) , managementNetwork.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true ) ; return networkCluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( org.ovirt.engine.core.common.businessentities.network.Network managementNetwork ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getId ( ) , managementNetwork.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false ) ; return networkCluster ; }
Source:
protected void updateVmDevicesOnRun ( ) { org.ovirt.engine.core.bll.RunVmCommand.getVmDeviceUtils ( ) . updateVmDevicesOnRun ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void updateVmDevicesOnRun ( ) { org.ovirt.engine.core.bll.RunVmCommand.getVmDeviceUtils ( ) . updateVmDevicesOnRun ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; }
Source:
public void run ( ) { switch ( getVdsGroup ( ) . getMigrateOnError ( ) ) { case YES : MigrateAllVms ( getExecutionContext ( ) ) ; break ; case HA_ONLY : MigrateAllVms ( getExecutionContext ( ) , true ) ; break ; } }

Target:
public void run ( ) { switch ( getVdsGroup ( ) . getMigrateOnError ( ) ) { case YES : MigrateAllVms ( getExecutionContext ( ) ) ; break ; case HA_ONLY : MigrateAllVms ( getExecutionContext ( ) , true ) ; break ; default : break ; } }
Source:
public void reorder ( java.net.URI server , java.util.List < java.net.URI > servers ) { if ( servers.remove ( server ) ) { reorderImpl ( server , servers ) ; } }

Target:
public void reorder ( java.lang.String server , java.util.List < java.lang.String > servers ) { if ( servers.remove ( server ) ) { reorderImpl ( server , servers ) ; } }
Source:
public void setspice ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice value ) { privatespice = value ; }

Target:
private void setspice ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice value ) { privatespice = value ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 100 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 100 ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnection ( int idx ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.ADDRESS , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.GUIDS [ idx ] . toString ( ) , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.IQNS [ idx ] , null , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , null , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.PORT , null ) ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnection ( int idx ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.ADDRESS , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.GUIDS [ idx ] . toString ( ) , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.IQNS [ idx ] , null , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , null , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.PORT , null ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_CREATE ; } else { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_CREATE_FAILED : errorType ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( ! ( getSucceeded ( ) ) ) { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_CREATE_FAILED : errorType ; } return super . getAuditLogTypeValue ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgradeInternal ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) . when ( ( ( getHost ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VDSStatus.Maintenance ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgradeInternal ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) . when ( ( ( host.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VDSStatus.Maintenance ) ) ) ; }
Source:
public boolean Validate ( ) { getPath ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LocalfsLinuxMountPointValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.NonUtfValidation ( ) } ) ; return getPath ( ) . getIsValid ( ) ; }

Target:
public boolean validate ( ) { getPath ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LocalfsLinuxMountPointValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.NonUtfValidation ( ) } ) ; return getPath ( ) . getIsValid ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( VdcQueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( org.ovirt.engine.core.common.businessentities.ProviderType.FOREMAN ) ) ; } else { return getBackendCollection ( SearchType.Provider , getConstraint ( ) ) ; } }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( VdcQueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( org.ovirt.engine.core.common.businessentities.ProviderType.FOREMAN ) , SearchType.Provider ) ; } else { return getBackendCollection ( SearchType.Provider , getConstraint ( ) ) ; } }
Source:
private void assertDbWasCalled ( int expectedNumOfCalls ) { org.junit.Assert.assertTrue ( java.lang.String.format ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_NUMBER_OF_DB_CALLS , expectedNumOfCalls , dbCalls ) , ( expectedNumOfCalls == ( dbCalls ) ) ) ; dbCalls = 0 ; }

Target:
private void assertDbWasCalled ( int expectedNumOfCalls ) { org.junit.Assert.assertEquals ( java.lang.String.format ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_NUMBER_OF_DB_CALLS , expectedNumOfCalls , dbCalls ) , expectedNumOfCalls , dbCalls ) ; dbCalls = 0 ; }
Source:
private static void mockConfig ( final int lowGB , final int lowPct ) { org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceCheckerTest.mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , lowGB ) ; org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceCheckerTest.mcr.mockConfigValue ( ConfigValues.FreeSpaceLow , lowPct ) ; }

Target:
private static void mockConfig ( final int lowGB ) { org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceCheckerTest.mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , lowGB ) ; }
Source:
public java.lang.String toString ( ) { if ( ( uuid ) == null ) { return "[null]" ; } return uuid.toString ( ) ; }

Target:
public java.lang.String toString ( ) { return uuid.toString ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "user_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetUserByUserId" , new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper ( ) , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "user_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetUserByUserId" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( target ) ) ; java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.postUpdateHost ( hosts ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( model ) ) ; java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.postUpdateHost ( hosts ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) ; } else { return super . getVm ( ) ; } }

Target:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) ; } return super . getVm ( ) ; }
Source:
public void setWidget ( com.google.gwt.user.client.ui.Widget widget ) { panel.setWidget ( widget ) ; }

Target:
public void setWidget ( com.google.gwt.user.client.ui.Widget widget ) { panel.add ( widget ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { if ( ( this . mVdsDynamic.getstatus ( ) ) != value ) { this . mVdsDynamic.setstatus ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "status" ) ) ; } }

Target:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { this . mVdsDynamic.setstatus ( value ) ; }
Source:
public static void getGlusterRebalanceStatus ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId ) { aQuery.setHandleFailure ( true ) ; org.ovirt.engine.core.common.queries.gluster.GlusterVolumeQueriesParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeQueriesParameters ( clusterId , volumeId ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeRebalanceStatus , parameters , aQuery ) ; }

Target:
public static void getGlusterRebalanceStatus ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId ) { aQuery.setHandleFailure ( true ) ; org.ovirt.engine.core.common.queries.gluster.GlusterVolumeQueriesParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeQueriesParameters ( clusterId , volumeId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeRebalanceStatus , parameters , aQuery ) ; }
Source:
protected java.lang.String getNetworkName ( ) { return getInterface ( ) . getNetworkName ( ) ; }

Target:
public java.lang.String getNetworkName ( ) { return getInterface ( ) . getNetworkName ( ) ; }
Source:
protected org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao getVmNetworkInterfaceDao ( ) { return org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao.class ) ; }

Target:
public org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao getVmNetworkInterfaceDao ( ) { return org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao.class ) ; }
Source:
private void handleFinalizingFailure ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.error ( "Finalizing failed upload to {}" , getUploadDescription ( ) ) ; org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.unLockImage ( ) ; setImageStatus ( ImageStatus.ILLEGAL ) ; stopImageTransferSession ( context.entity ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_FAILURE ) ; }

Target:
private void handleFinalizingFailure ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.error ( "Finalizing failed upload to {}" , getUploadDescription ( ) ) ; stopImageTransferSession ( context.entity ) ; setImageStatus ( ImageStatus.ILLEGAL ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_FAILURE ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpBasicUriExpectations ( ) ; setUriInfo ( uriInfo ) ; setUpEntityQueryExpectations ( 1 , false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpBasicUriExpectations ( ) ; setUriInfo ( uriInfo ) ; setUpEntityQueryExpectations ( 1 , false ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getstorage_id ( ) { return id.getStorageId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStorageId ( ) { return id.getStorageId ( ) ; }
Source:
public void rerun ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . GetAsyncCommandForVm ( vmId ) ; if ( command != null ) { command.Rerun ( ) ; } }

Target:
public void rerun ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . GetAsyncCommandForVm ( vmId ) ; if ( command != null ) { command.rerun ( ) ; } }
Source:
public void run ( ) { checkVdsClusterChangeSucceeded ( dataCenterGuideModel , searchString , parameterList , activateVdsParameterList ) ; }

Target:
public void run ( ) { checkVdsClusterChangeSucceeded ( searchString , parameterList , activateVdsParameterList ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Provider getDeletedProvider ( ) { if ( ( deletedProvider ) == null ) { deletedProvider = org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getDbFacade ( ) . getProviderDao ( ) . get ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; } return deletedProvider ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getDeletedProvider ( ) { if ( ( deletedProvider ) == null ) { deletedProvider = getProviderDao ( ) . get ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; } return deletedProvider ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.storage_pool storage ) { return storage.getname ( ) ; }

Target:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.StoragePool storage ) { return storage.getname ( ) ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( stoppedVolumeId , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( stoppedVolumeId , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getInterfaces ( ) { if ( ( interfaces ) == null ) { interfaces = getVmNicDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } return interfaces ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getInterfaces ( ) { if ( ( interfaces ) == null ) { interfaces = org.ovirt.engine.core.bll.VmCommand.getVmNicDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } return interfaces ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setWindow ( null ) ; setWindow ( importVmsModel ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setWindow ( null ) ; setWindow ( model ) ; }
Source:
public void testGetByNameForUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getname ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameForUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getName ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private void checkJson ( java.lang.String json ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) final java.util.HashMap < java.lang.String , java.lang.Boolean > map = new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) . deserialize ( json , java.util.HashMap.class ) ; org.junit.Assert.assertTrue ( map.get ( "success" ) ) ; }

Target:
private void checkJson ( java.lang.String json ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) final java.util.Map < java.lang.String , java.lang.Boolean > map = new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) . deserialize ( json , java.util.HashMap.class ) ; org.junit.Assert.assertTrue ( map.get ( "success" ) ) ; }
Source:
private void domainsInMaintenanceCheck ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StoragePool pool ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain domainInDb : storageDomains ) { if ( ( domainInDb.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.PreparingForMaintenance ) ) { queueDomainMaintenanceCheck ( domainInDb , pool ) ; } } }

Target:
private void domainsInMaintenanceCheck ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain domainInDb : storageDomains ) { if ( ( domainInDb.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.PreparingForMaintenance ) ) { queueDomainMaintenanceCheck ( domainInDb ) ; } } }
Source:
public java.lang.Integer getReservedMem ( ) { return this . mVdsDynamic.getreserved_mem ( ) ; }

Target:
public java.lang.Integer getReservedMem ( ) { return this . mVdsDynamic.getReservedMem ( ) ; }
Source:
private void initTables ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationMessages messages ) { initQuotaClusterTable ( constants , messages ) ; initQuotaStorageTable ( constants , messages ) ; }

Target:
private void initTables ( ) { initQuotaClusterTable ( ) ; initQuotaStorageTable ( ) ; }
Source:
protected boolean checkStorageDomainInDb ( ) { return ( getStorageDomainStaticDAO ( ) . get ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getId ( ) ) ) != null ; }

Target:
protected boolean checkStorageDomainInDb ( ) { return ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomainStaticDAO ( ) . get ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getId ( ) ) ) != null ; }
Source:
public java.lang.String getVdsName ( ) { if ( ( ( mVdsName ) == null ) && ( ( getVds ( ) ) != null ) ) { mVdsName = getVds ( ) . getVdsName ( ) ; } return mVdsName ; }

Target:
public java.lang.String getVdsName ( ) { if ( ( ( mVdsName ) == null ) && ( ( getVds ( ) ) != null ) ) { mVdsName = getVds ( ) . getName ( ) ; } return mVdsName ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network net ) { return net.getname ( ) . equals ( getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network net ) { return net.getname ( ) . equals ( getNetworkName ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.String address ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , true , false , address , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.String address ) { return addDiskDevice ( vmId , deviceId , true , false , address , false ) ; }
Source:
protected org.ovirt.engine.core.dao.DiskDao getDiskDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.DiskDao getDiskDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) ; }
Source:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.clearVdsFromCache ( vds.getStoragePoolId ( ) , vds.getId ( ) , vds.getVdsName ( ) ) ; return new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.VDSCLEARCACHE ) ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.clearVdsFromCache ( vds.getStoragePoolId ( ) , vds.getId ( ) , vds.getName ( ) ) ; return new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.VDSCLEARCACHE ) ; }
Source:
private void pauseUpload ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.pauseUploads ( org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.storage.DiskImage > cast ( getSelectedItems ( ) ) ) ; }

Target:
private void pauseUpload ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.pauseUploads ( getSelectedItems ( ) ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.provider.storage.LibvirtSecretValidator libvirtSecretValidator = new org.ovirt.engine.core.bll.provider.storage.LibvirtSecretValidator ( getParameters ( ) . getLibvirtSecret ( ) ) ; return validate ( libvirtSecretValidator.uuidExist ( ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.provider.storage.LibvirtSecretValidator libvirtSecretValidator = new org.ovirt.engine.core.bll.provider.storage.LibvirtSecretValidator ( getParameters ( ) . getLibvirtSecret ( ) ) ; return validate ( libvirtSecretValidator.uuidExist ( ) ) ; }
Source:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.storage.pool.AfterDeactivateSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , isLastMaster , newMasterStorageDomainId ) ) ; }

Target:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.pool.AfterDeactivateSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , isLastMaster , newMasterStorageDomainId ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { model.stopProgress ( ) ; if ( result.getReturnValue ( ) . getSucceeded ( ) ) { cancel ( ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { if ( model != null ) { model.stopProgress ( ) ; } if ( result.getReturnValue ( ) . getSucceeded ( ) ) { cancel ( ) ; } }
Source:
private void clearReferences ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel itemModel : currentItems ) { itemModel.clearReferences ( ) ; } }

Target:
private void clearReferences ( ) { if ( ( currentItems ) != null ) { for ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel itemModel : currentItems ) { itemModel.clearReferences ( ) ; } } }
Source:
public < U extends T > javax.enterprise.inject.Instance < U > select ( java.lang.Class < U > aClass , java.lang.annotation.Annotation ... annotations ) { return new org.ovirt.engine.core.di.InjectorRule.SimpleInstanceIdGenerator < U > ( ( ( U ) ( org.ovirt.engine.core.di.InjectorRule.beansCache.get ( aClass.getName ( ) ) ) ) ) ; }

Target:
public < U extends T > javax.enterprise.inject.Instance < U > select ( java.lang.Class < U > aClass , java.lang.annotation.Annotation ... annotations ) { return new org.ovirt.engine.core.di.InjectorRule.SimpleInstanceIdGenerator < > ( ( ( U ) ( org.ovirt.engine.core.di.InjectorRule.beansCache.get ( aClass ) ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { return ( getVmIdRef ( ) ) != null ? getVmIdRef ( ) . getValue ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { return ( getVmIdRef ( ) ) != null ? getVmIdRef ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }
Source:
public java.lang.String getPredefinedVMProperties ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.PredefinedVMProperties , version.getValue ( ) ) ; }

Target:
public java.lang.String getPredefinedVMProperties ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.PredefinedVMProperties , version.getValue ( ) ) ; }
Source:
public static void getGlusterVolumeOptionInfoList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeOptionsInfo , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( clusterId ) , aQuery ) ; }

Target:
public static void getGlusterVolumeOptionInfoList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeOptionsInfo , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( clusterId ) , aQuery ) ; }
Source:
protected < C extends org.ovirt.engine.api.model.ActionableResource > C addActions ( C model ) { org.ovirt.engine.api.restapi.util.LinkHelper.addActions ( org.ovirt.engine.api.restapi.resource.AbstractBackendCollectionResource.getUriInfo ( ) , model , this ) ; return model ; }

Target:
protected < C extends org.ovirt.engine.api.model.ActionableResource > C addActions ( C model ) { org.ovirt.engine.api.restapi.util.LinkHelper.addActions ( model , this ) ; return model ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) . getbookmark_id ( ) ) ; org.ovirt.engine.core.bll.RemoveBookmarkCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveBookmarkCommand.setSucceeded ( true ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getByClusterId ( org.ovirt.engine.core.compat.Guid clusterId ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = getCallsHandler ( ) . executeReadList ( "GetGlusterHooksByClusterId" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.glusterHookRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ) ; return glusterHooks ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getByClusterId ( org.ovirt.engine.core.compat.Guid clusterId ) { return getCallsHandler ( ) . executeReadList ( "GetGlusterHooksByClusterId" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.glusterHookRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ) ; }
Source:
public void setEntityIds ( java.util.List < org.ovirt.engine.core.compat.Guid > entityIds ) { this . entityIds = entityIds ; }

Target:
public void setEntityIds ( java.util.List < org.ovirt.engine.core.compat.Guid > entityIds ) { this . entityIds = entityIds ; if ( entityIds == null ) { this . entityIds = new java.util.ArrayList < > ( ) ; } }
Source:
public boolean isInInit ( ) { return ( ( this . nioEngine ) != null ) && ( this . nioEngine.handshakeInProgress ( ) ) ; }

Target:
public boolean isInInit ( ) { return ( ( this . nioEngine ) == null ) || ( this . nioEngine.handshakeInProgress ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { boolean isConsistent = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; setConsoleAddressPartiallyOverridden ( ( ! isConsistent ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { boolean isConsistent = returnValue.getReturnValue ( ) ; setConsoleAddressPartiallyOverridden ( ( ! isConsistent ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml statusWithAlertTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , com.google.gwt.safehtml.shared.SafeHtml alertImage ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml statusWithAlertTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , com.google.gwt.safehtml.shared.SafeHtml alertImage , java.lang.String id ) ;
Source:
protected void syncSearch ( ) { super . syncSearch ( ) ; doDataCenterSearch ( ) ; doClusterSearch ( ) ; doHostSearch ( ) ; doVolumeSearch ( ) ; doProviderSearch ( ) ; doErrataSearch ( ) ; getTimer ( ) . stop ( ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; doDataCenterSearch ( ) ; doClusterSearch ( ) ; doHostSearch ( ) ; doVolumeSearch ( ) ; doProviderSearch ( ) ; getTimer ( ) . stop ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransfer ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; return updateEntity ( updates ) ; }

Target:
protected void updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransfer ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; updateEntity ( updates ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VdsNetworkInterface lookupInterfaceByName ( java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface : getCollection ( ) ) { if ( iface.getName ( ) . equals ( name ) ) { return iface ; } } return null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface lookupInterfaceByName ( java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface : getCollection ( ) ) { if ( iface.getName ( ) . equals ( name ) ) { return iface ; } } return null ; }