auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > getUpdateParameters ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > ( updateParametersMap.values ( ) ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > getUpdateParameters ( ) { return new java.util.ArrayList ( updateParametersMap.values ( ) ) ; }
Source:
public static boolean IsVdsAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , int vdsId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForVdsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }

Target:
public static boolean IsVdsAttachedToTag ( org.ovirt.engine.core.compat.Guid tagId , int vdsId ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForVdsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageServerConnections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getStorage ( ) ) } ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageServerConnections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getStorage ( ) ) } ) ) ; }
Source:
public void freeMac ( java.lang.String mac ) { macsStorage.freeMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return id ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.storage_domains source ) { return name.equals ( source.getstorage_name ( ) ) ; }

Target:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return name.equals ( source.getstorage_name ( ) ) ; }
Source:
public void setUsageMemPercent ( java.lang.Integer value ) { this . usageMemPercent = value ; }

Target:
public void setUsageMemPercent ( java.lang.Integer value ) { usageMemPercent = value ; }
Source:
protected org.ovirt.engine.core.common.scheduling.ClusterPolicy getSchedulingPolicy ( ) { return getEntity ( new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetClusterPolicyById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , false ) ; }

Target:
protected org.ovirt.engine.core.common.scheduling.ClusterPolicy getSchedulingPolicy ( ) { return getEntity ( new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetClusterPolicyById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , false ) ; }
Source:
protected java.lang.String getOrganizationName ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.OrganizationName ) ; }

Target:
protected java.lang.String getOrganizationName ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.OrganizationName ) ; }
Source:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; spice.setWANDisableEffects ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ( ) ) ; spice.setWanOptionsEnabled ( false ) ; spice.setSpiceProxyEnabled ( isSpiceProxyDefined ( ) ) ; }

Target:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; spice.setWANDisableEffects ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ( ) ) ; spice.setWanOptionsEnabled ( false ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ) ( returnValue ) ) ; setItems ( glusterHooks ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks ) { setItems ( glusterHooks ) ; }
Source:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getParameters ( ) { return new org.ovirt.engine.core.common.action.DiskProfileParameters ( getProfile ( ) , getProfile ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getParameters ( ) { return new org.ovirt.engine.core.common.action.DiskProfileParameters ( getProfile ( ) ) ; }
Source:
private void setupNetworkDao ( ) { org.ovirt.engine.core.dao.network.NetworkDao networkDaoMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.network.NetworkDao.class ) ; org.mockito.Mockito.when ( networkDaoMock.get ( networkId ) ) . thenReturn ( network ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getNetworkDao ( ) ) . thenReturn ( networkDaoMock ) ; }

Target:
private void setupNetworkDao ( ) { org.mockito.Mockito.when ( networkDaoMock.get ( networkId ) ) . thenReturn ( network ) ; }
Source:
public boolean isDeviceNetworkFree ( org.ovirt.engine.core.common.businessentities.HostDevice hostDevice ) { org.ovirt.engine.core.common.businessentities.HostDevice firstChild = getFirstChildDevice ( hostDevice , null ) ; if ( ( firstChild == null ) || ( ! ( isNetworkDevice ( firstChild ) ) ) ) { return true ; } return isNetworkDeviceFree ( firstChild ) ; }

Target:
public boolean isDeviceNetworkFree ( org.ovirt.engine.core.common.businessentities.HostDevice hostDevice ) { org.ovirt.engine.core.common.businessentities.HostDevice firstChild = getFirstChildDevice ( hostDevice , null ) ; if ( ( firstChild == null ) || ( ! ( isNetworkDevice ( firstChild ) ) ) ) { return true ; } return isNetworkDeviceFree ( hostDevice ) ; }
Source:
public static < T extends org.ovirt.engine.core.common.businessentities.BusinessEntity < ID > , ID extends java.io.Serializable & java.lang.Comparable < ? super ID > > org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityComparator < T , ID > newInstance ( ) { return new org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityComparator < T , ID > ( ) ; }

Target:
public static < T extends org.ovirt.engine.core.common.businessentities.BusinessEntity < ID > , ID extends java.io.Serializable & java.lang.Comparable < ? super ID > > org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityComparator < T , ID > newInstance ( ) { return new org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityComparator ( ) ; }
Source:
public void initTable ( ) { getTable ( ) . enableColumnResizing ( ) ; addGeneralTypeColumn ( ) ; addDeviceTypeColumn ( ) ; addAddressColumn ( ) ; addBootOrderColumn ( ) ; addReadOnlyColumn ( ) ; addPluggedColumn ( ) ; addManagedColumn ( ) ; addSpecParamsColumn ( ) ; }

Target:
public void initTable ( ) { getTable ( ) . enableColumnResizing ( ) ; addGeneralTypeColumn ( ) ; addDeviceTypeColumn ( ) ; addAddressColumn ( ) ; addReadOnlyColumn ( ) ; addPluggedColumn ( ) ; addManagedColumn ( ) ; addSpecParamsColumn ( ) ; }
Source:
private boolean deviceExists ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType generalType , org.ovirt.engine.core.common.utils.VmDeviceType deviceType ) { return ! ( vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmTemplateId ( ) , generalType , deviceType.getName ( ) ) . isEmpty ( ) ) ; }

Target:
private boolean deviceExists ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType generalType , org.ovirt.engine.core.common.utils.VmDeviceType deviceType ) { return ! ( vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmTemplateId ( ) , generalType , deviceType ) . isEmpty ( ) ) ; }
Source:
public void setiso_path ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( mVmStatic.getiso_path ( ) , value ) ) ) { mVmStatic.setiso_path ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "iso_path" ) ) ; } }

Target:
public void setiso_path ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( mVmStatic.getiso_path ( ) , value ) ) ) { mVmStatic.setiso_path ( value ) ; } }
Source:
void addDetail ( java.lang.String detailName , java.lang.String detailValue ) { org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( detailName , detailValue , details , new org.ovirt.engine.core.utils.collections.MultiValueMapUtils.LinkedHashSetCreator < java.lang.String > ( ) ) ; }

Target:
void addDetail ( java.lang.String detailName , java.lang.String detailValue ) { org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( detailName , detailValue , details , new org.ovirt.engine.core.utils.collections.MultiValueMapUtils.LinkedHashSetCreator ( ) ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state , true ) ; }
Source:
protected void unlockEntities ( ) { getSnapshotDao ( ) . updateStatus ( sourceSnapshotId , SnapshotStatus.OK ) ; org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmDynamicDao ( ) . updateStatus ( org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmId ( ) , VMStatus.Down ) ; }

Target:
protected void unlockEntities ( ) { org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getSnapshotDao ( ) . updateStatus ( sourceSnapshotId , SnapshotStatus.OK ) ; org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmDynamicDao ( ) . updateStatus ( org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmId ( ) , VMStatus.Down ) ; }
Source:
protected void configure ( ) { install ( new org.ovirt.engine.ui.userportal.gin.SystemModule ( ) ) ; install ( new org.ovirt.engine.ui.userportal.gin.PresenterModule ( ) ) ; install ( new org.ovirt.engine.ui.userportal.gin.UiCommonModule ( ) ) ; install ( new org.ovirt.engine.ui.userportal.gin.UtilsModule ( ) ) ; }

Target:
protected void configure ( ) { install ( new org.ovirt.engine.ui.userportal.gin.SystemModule ( ) ) ; install ( new org.ovirt.engine.ui.userportal.gin.UiCommonModule ( ) ) ; install ( new org.ovirt.engine.ui.userportal.gin.PresenterModule ( ) ) ; install ( new org.ovirt.engine.ui.userportal.gin.UtilsModule ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmInit buildCloudInitParameters ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { if ( model.getVmInitEnabled ( ) . getEntity ( ) ) { return buildModelSpecificParameters ( model.getIsWindowsOS ( ) , model.getDomain ( ) . getEntity ( ) ) ; } else { return null ; } }

Target:
public org.ovirt.engine.core.common.businessentities.VmInit buildCloudInitParameters ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { if ( model.getVmInitEnabled ( ) . getEntity ( ) ) { return buildModelSpecificParameters ( model.getIsWindowsOS ( ) ) ; } else { return null ; } }
Source:
public void testHostLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( setUpUriExpectations ( ) , host ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_HREF , host.getHref ( ) ) ; }

Target:
public void testHostLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( host ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_HREF , host.getHref ( ) ) ; }
Source:
private java.lang.String getMemberId ( org.ovirt.engine.core.common.businessentities.IVdcQueryable member ) { if ( member != null ) { return member.getQueryableId ( ) . toString ( ) ; } return null ; }

Target:
private java.lang.Object getMemberId ( org.ovirt.engine.core.common.businessentities.IVdcQueryable member ) { if ( member != null ) { return member.getQueryableId ( ) ; } return null ; }
Source:
public void testRemoveWithCustomGlobalHeader ( ) { clusterService.remove ( ) . send ( ) ; org.junit.Assert.assertEquals ( getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) , "value" ) ; }

Target:
public void testRemoveWithCustomGlobalHeader ( ) { clusterService.remove ( ) . send ( ) ; org.junit.Assert.assertEquals ( "value" , getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeWithRemoveBricksTask ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getVolume ( volumeId ) ; org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask asyncTask = new org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask ( ) ; asyncTask.setStatus ( JobExecutionStatus.STARTED ) ; asyncTask.setType ( GlusterTaskType.REMOVE_BRICK ) ; volume.setAsyncTask ( asyncTask ) ; return volume ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeWithRemoveBricksTask ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getVolume ( volumeId ) ; org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask asyncTask = new org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask ( ) ; asyncTask.setStatus ( JobExecutionStatus.STARTED ) ; asyncTask.setType ( GlusterTaskType.REMOVE_BRICK ) ; volume.setAsyncTask ( asyncTask ) ; return volume ; }
Source:
private java.lang.String asString ( org.ovirt.engine.api.model.Version version ) { return version == null ? null : java.text.MessageFormat.format ( org.ovirt.engine.api.restapi.resource.BackendResource.VERSION_FORMAT , version.getMajor ( ) , version.getMinor ( ) ) ; }

Target:
static java.lang.String asString ( org.ovirt.engine.api.model.Version version ) { return version == null ? null : java.text.MessageFormat.format ( org.ovirt.engine.api.restapi.resource.BackendResource.VERSION_FORMAT , version.getMajor ( ) , version.getMinor ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup group ) { java.lang.String vmNames = org.ovirt.engine.ui.uicompat.external.StringUtils.join ( getVmNames ( group ) , ", " ) ; if ( vmNames.isEmpty ( ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.AbstractSubTabAffinityGroupsView.constants.noMembersAffinityGroup ( ) ; } return vmNames ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup group ) { java.lang.String vmNames = java.lang.String.join ( ", " , getVmNames ( group ) ) ; if ( vmNames.isEmpty ( ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.AbstractSubTabAffinityGroupsView.constants.noMembersAffinityGroup ( ) ; } return vmNames ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmPool get ( org.ovirt.engine.core.compat.NGuid id ) { return get ( id , null , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmPool get ( org.ovirt.engine.core.compat.Guid id ) { return get ( id , null , false ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , int replicaCount , int stripeCount , boolean force ) { return new org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeBricksActionParameters ( volumeId , bricks , replicaCount , stripeCount , force ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , int replicaCount , int stripeCount , boolean force ) { return new org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeBricksActionParameters ( volumeId , bricks , replicaCount , stripeCount , force ) , null ) ; }
Source:
public javax.ws.rs.core.Response detach ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.RemoveVmFromPool , new org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters ( guid ) , action ) ; }

Target:
public javax.ws.rs.core.Response detach ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.RemoveVmFromPool , new org.ovirt.engine.core.common.action.RemoveVmFromPoolParameters ( guid , false , true ) , action ) ; }
Source:
public static void RunMultipleAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleAction ( actionType , parameters , null , null ) ; }

Target:
public static void RunMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleAction ( actionType , parameters , null , null ) ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; assertTrue ( ( ( resource.getApplicationResource ( org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.VM_ID.toString ( ) ) ) instanceof org.ovirt.engine.api.resource.VmApplicationResource ) ) ; }

Target:
public void testSubResourceLocator ( ) throws java.lang.Exception { assertTrue ( ( ( resource.getApplicationResource ( org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.VM_ID.toString ( ) ) ) instanceof org.ovirt.engine.api.resource.VmApplicationResource ) ) ; }
Source:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker createBackendSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; if ( ( org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ) == null ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.SearchResultsLimit ) ) ; } return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ; }

Target:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker createBackendSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; if ( ( org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ) == null ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( ) ; } return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ; }
Source:
private java.lang.String createLockDescription ( java.util.Map.Entry < java.lang.String , org.ovirt.engine.core.bll.lock.InMemoryLockManager.InternalLockView > e ) { return new java.lang.StringBuilder ( "The object id is : " ) . append ( e.getKey ( ) ) . append ( ' ' ) . append ( e.getValue ( ) ) . toString ( ) ; }

Target:
private java.lang.String createLockDescription ( java.util.Map.Entry < java.lang.String , org.ovirt.engine.core.bll.lock.InMemoryLockManager.InternalLockView > e ) { return ( ( "The object id is : " + ( e.getKey ( ) ) ) + ' ' ) + ( e.getValue ( ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.storage_domains result = dao.get ( existingDomain.getId ( ) ) ; assertGetResult ( result ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.get ( existingDomain.getId ( ) ) ; assertGetResult ( result ) ; }
Source:
public boolean isPartOfBond ( java.lang.String bondName ) { return getBondName ( ) . equals ( bondName ) ; }

Target:
public boolean isPartOfBond ( java.lang.String bondName ) { return ( isPartOfBond ( ) ) && ( getBondName ( ) . equals ( bondName ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel flush ( ) { return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel flush ( ) { super . flush ( ) ; return driver.flush ( ) ; }
Source:
private void initializeVmDAOMock ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.powermock.api.mockito.PowerMockito.when ( vmDAO.get ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }

Target:
private void initializeVmDAOMock ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.mockito.Mockito.when ( vmDAO.get ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }
Source:
public void run ( ) throws java.lang.Exception { action.execute ( context , argMap ) ; }

Target:
public void run ( ) throws java.lang.Exception { action.execute ( this ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.scheduling.PolicyUnit result = dao.get ( FixturesTool.POLICY_UNIT_MIGRATION ) ; org.junit.Assert.assertTrue ( result.equals ( existingPolicyUnit ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.scheduling.PolicyUnit result = dao.get ( FixturesTool.POLICY_UNIT_MIGRATION ) ; org.junit.Assert.assertEquals ( result , existingPolicyUnit ) ; }
Source:
public void getUserName ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setUserName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; final java.lang.String n = b.getUserName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }

Target:
public void getUserName ( ) { b.setUserName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; final java.lang.String n = b.getUserName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }
Source:
protected boolean validateSnapshotType ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getParameters ( ) . getSnapshotId ( ) ) ; return validate ( createSnapshotValidator ( ) . snapshotTypeSupported ( snapshot , java.util.Collections.singletonList ( Snapshot.SnapshotType.REGULAR ) ) ) ; }

Target:
protected boolean validateSnapshotType ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = org.ovirt.engine.core.bll.RemoveSnapshotCommand.getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getParameters ( ) . getSnapshotId ( ) ) ; return validate ( createSnapshotValidator ( ) . snapshotTypeSupported ( snapshot , java.util.Collections.singletonList ( Snapshot.SnapshotType.REGULAR ) ) ) ; }
Source:
public void setEntity ( java.lang.Object value ) { super . setEntity ( ( value == null ? null : ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( value ) ) . getVm ( ) ) ) ; }

Target:
public void setEntity ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData value ) { super . setEntity ( ( value == null ? null : value.getVm ( ) ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getVdsGroups ( ) { return getBackendCollection ( VdcQueryType.GetVdsGroupsByStoragePoolId , new org.ovirt.engine.core.common.queries.StoragePoolQueryParametersBase ( dataCenterId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getVdsGroups ( ) { return getBackendCollection ( VdcQueryType.GetVdsGroupsByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType determineSnapshotType ( ) { return org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand.isInternalExecution ( ) ? getParameters ( ) . getSnapshotType ( ) : org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.REGULAR ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType determineSnapshotType ( ) { return org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand.isInternalExecution ( ) ? org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand.getParameters ( ) . getSnapshotType ( ) : org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.REGULAR ; }
Source:
public void formatStringTest4 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "2" , "3" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.2.1" , result ) ; }

Target:
public void formatStringTest4 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "2" , "3" ) ; org.junit.Assert.assertEquals ( "Testing 123: 1.2.1" , result ) ; }
Source:
public void setQuotaName ( java.lang.String value ) { this . quotaName = value ; }

Target:
public void setQuotaName ( java.lang.String quotaName ) { this . quotaName = quotaName ; }
Source:
public org.ovirt.engine.core.dao.StorageDomainOvfInfoDao getStorageDomainOvfInfoDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainOvfInfoDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.StorageDomainOvfInfoDao getStorageDomainOvfInfoDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainOvfInfoDao ( ) ; }
Source:
protected final void postConstruct ( ) { init ( ) ; }

Target:
protected final void postConstruct ( ) { if ( ( getParameters ( ) ) != null ) { init ( ) ; } }
Source:
private void testNonActiveVdsExecution ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { createStorageDomain ( status ) ; createUpStoragePool ( ) ; createNonUpVds ( ) ; createCommand ( ) ; }

Target:
private void testNonActiveVdsExecution ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { createStorageDomain ( status ) ; createUpStoragePool ( ) ; createCommand ( ) ; }
Source:
private void mockDbDao ( ) { mockClusterDao ( ) ; mockVMPoolDao ( ) ; mockVMTemplateDao ( ) ; mockVmNetworkInterfaceDao ( ) ; mockStoragePoolDao ( ) ; }

Target:
private void mockDbDao ( ) { mockClusterDao ( ) ; mockVMTemplateDao ( ) ; mockVmNetworkInterfaceDao ( ) ; mockStoragePoolDao ( ) ; }
Source:
public void testIsUp ( ) { validator = mockHostForActivation ( VDSStatus.Up ) ; org.junit.Assert.assertTrue ( validator.isUp ( ) . isValid ( ) ) ; }

Target:
public void testIsUp ( ) { mockHostForActivation ( VDSStatus.Up ) ; org.junit.Assert.assertTrue ( validator.isUp ( ) . isValid ( ) ) ; }
Source:
public static void getDefaultPmProxyPreferences ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.FenceProxyDefaultPreferences , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) , query ) ; }

Target:
public void getDefaultPmProxyPreferences ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.FenceProxyDefaultPreferences , getDefaultConfigurationVersion ( ) ) , query ) ; }
Source:
private boolean isEntityModelEmpty ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ! ( ( ( model.getEntity ( ) ) != null ) && ( ( model.getEntity ( ) ) != "" ) ) ; }

Target:
private boolean isEntityModelEmpty ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ! ( ( ( model.getEntity ( ) ) != null ) && ( ! ( model.getEntity ( ) . equals ( "" ) ) ) ) ; }
Source:
public void setUp ( ) { domain = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( domain ) ; }

Target:
public void setUp ( ) { domain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( domain ) ; }
Source:
public void logRenamedEntityNotRename ( ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.CommandBase.class ) ; org.mockito.Mockito.doCallRealMethod ( ) . when ( command ) . logRenamedEntity ( ) ; command.logRenamedEntity ( ) ; }

Target:
public void logRenamedEntityNotRename ( ) { command.logRenamedEntity ( ) ; }
Source:
private org.ovirt.engine.core.bll.utils.ClusterUtils getClusterUtils ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.utils.ClusterUtils getClusterUtils ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) ; }
Source:
public void vdsIdRef ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVdsIdRef ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsIdRef ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }

Target:
public void vdsIdRef ( ) { b.setVdsIdRef ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsIdRef ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }
Source:
public void testUpdateStatus ( ) { dao.updateStatus ( existingPool.getId ( ) , StoragePoolStatus.NotOperational ) ; existingPool.setstatus ( StoragePoolStatus.NotOperational ) ; org.ovirt.engine.core.common.businessentities.storage_pool result = dao.get ( existingPool.getId ( ) ) ; assertGetResult ( result ) ; }

Target:
public void testUpdateStatus ( ) { dao.updateStatus ( existingPool.getId ( ) , StoragePoolStatus.NotOperational ) ; existingPool.setstatus ( StoragePoolStatus.NotOperational ) ; org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( existingPool.getId ( ) ) ; assertGetResult ( result ) ; }
Source:
public void setUp ( ) { disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; metadataDiskDescriptionHandler = org.mockito.Mockito.spy ( org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandler.getInstance ( ) ) ; org.mockito.Mockito.doReturn ( auditLogDirector ) . when ( metadataDiskDescriptionHandler ) . getAuditLogDirector ( ) ; }

Target:
public void setUp ( ) { disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; }
Source:
public java.lang.String render ( java.lang.Object object ) { return object == null ? "" : ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getVdsName ( ) ; }

Target:
public java.lang.String render ( java.lang.Object object ) { return object == null ? "" : ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getName ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeChildCopyingCommand ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase result = org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getChildActionType ( ) , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getExecutionContext ( ) ) ) ; return result ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeChildCopyingCommand ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase result = org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( getChildActionType ( ) , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getExecutionContext ( ) ) ) ; return result ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( false ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryone ( false ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( true ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryone ( true ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
public void disable ( java.lang.String disabilityHint ) { tooltip.setText ( disabilityHint ) ; tooltip.reconfigure ( ) ; setEnabled ( false ) ; }

Target:
public void disable ( java.lang.String disabilityHint ) { tooltip.setText ( disabilityHint ) ; setEnabled ( false ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isFiltered ( ) ) { throw new javax.ws.rs.WebApplicationException ( Response.Status.FORBIDDEN ) ; } return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.GetVdsByVdsIdParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.GetVdsByVdsIdParameters ( guid ) ) ; }
Source:
public void storagePoolWithId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StoragePool p = b.getStoragePool ( ) ; org.junit.Assert.assertNotNull ( p ) ; }

Target:
public void storagePoolWithId ( ) { b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StoragePool p = b.getStoragePool ( ) ; org.junit.Assert.assertNotNull ( p ) ; }
Source:
org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > createActionTable ( org.ovirt.engine.ui.common.uicommon.model.SearchableTabModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , ? > modelProvider , com.google.gwt.event.shared.EventBus eventBus , org.ovirt.engine.ui.common.system.ClientStorage clientStorage ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > ( modelProvider , getTableResources ( ) , eventBus , clientStorage ) ; }

Target:
org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > createActionTable ( org.ovirt.engine.ui.common.uicommon.model.SearchableTabModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , ? > modelProvider , com.google.gwt.event.shared.EventBus eventBus , org.ovirt.engine.ui.common.system.ClientStorage clientStorage ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable ( modelProvider , getTableResources ( ) , eventBus , clientStorage ) ; }
Source:
protected org.ovirt.engine.api.model.GlusterVolume addParents ( org.ovirt.engine.api.model.GlusterVolume model ) { org.ovirt.engine.api.model.Cluster cluster = new org.ovirt.engine.api.model.Cluster ( ) ; cluster.setId ( parent.getParent ( ) . get ( ) . getId ( ) ) ; model.setCluster ( cluster ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.GlusterVolume addParents ( org.ovirt.engine.api.model.GlusterVolume model ) { model.setId ( id ) ; parent.addParents ( model ) ; return model ; }
Source:
public void validateDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }

Target:
public void validateDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }
Source:
protected boolean CanAddDomain ( ) { boolean returnValue = CheckStorageConnection ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getstorage ( ) ) ; return returnValue ; }

Target:
protected boolean CanAddDomain ( ) { return CheckStorageConnection ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getstorage ( ) ) ; }
Source:
public void supportsHostedEngineDeploy ( ) { org.mockito.Mockito.when ( hostedEngineHelper.isVmManaged ( ) ) . thenReturn ( true ) ; mockCluster ( Version.v4_0 ) ; org.junit.Assert.assertThat ( validator.supportsDeployingHostedEngine ( new org.ovirt.engine.core.common.businessentities.HostedEngineDeployConfiguration ( HostedEngineDeployConfiguration.Action.DEPLOY ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void supportsHostedEngineDeploy ( ) { org.mockito.Mockito.when ( hostedEngineHelper.isVmManaged ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.supportsDeployingHostedEngine ( new org.ovirt.engine.core.common.businessentities.HostedEngineDeployConfiguration ( HostedEngineDeployConfiguration.Action.DEPLOY ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.DiskProfile incoming , org.ovirt.engine.api.model.DiskProfile entity ) { org.ovirt.engine.api.model.DiskProfile map = map ( incoming , entity ) ; return new org.ovirt.engine.core.common.action.DiskProfileParameters ( map , map.getId ( ) ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.DiskProfile incoming , org.ovirt.engine.api.model.DiskProfile entity ) { org.ovirt.engine.api.model.DiskProfile map = map ( incoming , entity ) ; return new org.ovirt.engine.core.common.action.DiskProfileParameters ( map ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase checkAndPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return attemptRollback ( commandType , params , null ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase checkAndPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return attemptRollback ( commandType , params ) ; }
Source:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { this . status = value ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { status = value ; }
Source:
public boolean checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( ( vm.getDedicatedVmForVdsList ( ) . size ( ) ) > 0 ) && ( org.ovirt.engine.core.bll.hostdev.HostDeviceManager.supportsHostDevicePassthrough ( vm ) ) ) && ( checkVmNeedsDirectPassthrough ( vm.getId ( ) ) ) ; }

Target:
public boolean checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( vm.getDedicatedVmForVdsList ( ) . size ( ) ) > 0 ) && ( checkVmNeedsDirectPassthrough ( vm.getId ( ) ) ) ; }
Source:
private javax.ws.rs.core.Response fence ( org.ovirt.engine.api.model.Action action , org.ovirt.engine.core.common.action.VdcActionType vdcAction , org.ovirt.engine.core.common.businessentities.pm.FenceActionType fenceType ) { return doAction ( vdcAction , new org.ovirt.engine.core.common.action.FenceVdsActionParameters ( guid , fenceType ) , action ) ; }

Target:
private javax.ws.rs.core.Response fence ( org.ovirt.engine.api.model.Action action , org.ovirt.engine.core.common.action.VdcActionType vdcAction ) { return doAction ( vdcAction , new org.ovirt.engine.core.common.action.FenceVdsActionParameters ( guid ) , action ) ; }
Source:
public void setHostName ( java.lang.String value ) { this . hostName = value ; }

Target:
public void setHostName ( java.lang.String value ) { hostName = value ; }
Source:
private org.ovirt.engine.core.common.action.ActionReturnValue verifyCalled ( org.ovirt.engine.core.common.action.ActionType actionType , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( backend , times ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( actionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.ActionParametersBase.class ) ) ; }

Target:
private org.ovirt.engine.core.common.action.ActionReturnValue verifyCalled ( org.ovirt.engine.core.common.action.ActionType actionType , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( backend , times ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( actionType ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { glusterMetaVolumeName = ( ( java.lang.String ) ( returnValue ) ) ; }

Target:
public void onSuccess ( java.lang.String returnValue ) { glusterMetaVolumeName = returnValue ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity object ) { java.lang.String status = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( object.getStatus ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( status ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity object ) { java.lang.String status = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( object.getStatus ( ) ) ; return status ; }
Source:
private void initTree ( ) { tree = new org.ovirt.engine.ui.webadmin.widget.editor.EntityModelCellTree < org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel , org.ovirt.engine.ui.webadmin.uicommon.model.SimpleSelectionTreeNodeModel > ( org.ovirt.engine.ui.webadmin.section.main.view.popup.configure.RolePopupView.res ) ; }

Target:
private void initTree ( ) { tree = new org.ovirt.engine.ui.webadmin.widget.editor.EntityModelCellTree ( org.ovirt.engine.ui.webadmin.section.main.view.popup.configure.RolePopupView.res ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { switch ( object.getStatus ( ) ) { case PreparingForHibernate : return org.ovirt.engine.core.common.businessentities.VMStatus.SavingState ; default : return object.getStatus ( ) ; } }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getStatus ( ) ; }
Source:
public static void updateSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId , boolean smartcardEnabled ) { if ( smartcardEnabled ) { if ( ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasSmartcardDevice ( vmId ) ) ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addSmartcardDevice ( vmId ) ; } } else { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeSmartcardDevices ( vmId ) ; } }

Target:
public void updateSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId , boolean smartcardEnabled ) { if ( smartcardEnabled ) { if ( ! ( hasSmartcardDevice ( vmId ) ) ) { addSmartcardDevice ( vmId ) ; } } else { removeSmartcardDevices ( vmId ) ; } }
Source:
private int getServerCount ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForVdsGroup ( clusterId ) . size ( ) ; }

Target:
public int getServerCount ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForVdsGroup ( clusterId ) . size ( ) ; }