auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getAndSetVdsStatic ( ) { if ( ( vdsStatic ) == null ) { vdsStatic = getDbFacade ( ) . getVdsStaticDao ( ) . get ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.getParameters ( ) . getVdsId ( ) ) ; } return vdsStatic ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VdsStatic getAndSetVdsStatic ( ) { if ( ( vdsStatic ) == null ) { vdsStatic = getDbFacade ( ) . getVdsStaticDao ( ) . get ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.getParameters ( ) . getVdsId ( ) ) ; } return vdsStatic ; }
Source:
public static boolean hasGraphicsDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getGraphicsDevices ( vmId , type ) . isEmpty ( ) ) ; }

Target:
public boolean hasGraphicsDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return ! ( getGraphicsDevices ( vmId , type ) . isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Disk get ( ) ;

Target:
org.ovirt.engine.api.model.Disk get ( ) ;
Source:
public void testEncodingDecoding ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "DiskDescription" ) ) ; org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.assertDiskDescriptionDecoding ( disk ) ; }

Target:
public void testEncodingDecoding ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , generateDiskAliasJsonEntry ( "DiskAlias" ) , generateDiskDescriptionJsonEntry ( "DiskDescription" ) ) ; assertDiskDescriptionDecoding ( disk ) ; }
Source:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) , VdcBllMessages.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType , 0 ) , VdcBllMessages.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResource ( null , "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResource ( null , "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > result = dao.getAllForStorageDomain ( existingDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( existingDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void testGetByClusterIdAndServiceType ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService service = dao.getByClusterIdAndServiceType ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( org.ovirt.engine.core.dao.gluster.GlusterClusterServiceDaoTest.CLUSTER_ID ) , ServiceType.GLUSTER ) ; org.junit.Assert.assertNotNull ( service ) ; org.junit.Assert.assertTrue ( ( ( service.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServiceStatus.RUNNING ) ) ) ; }

Target:
public void testGetByClusterIdAndServiceType ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService service = dao.getByClusterIdAndServiceType ( org.ovirt.engine.core.dao.gluster.GlusterClusterServiceDaoTest.CLUSTER_ID , ServiceType.GLUSTER ) ; org.junit.Assert.assertNotNull ( service ) ; org.junit.Assert.assertTrue ( ( ( service.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServiceStatus.RUNNING ) ) ) ; }
Source:
private int getVramMultiplier ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; return osRepository.getVramMultiplier ( vmBase.getOsId ( ) ) ; }

Target:
private static int getVramMultiplier ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; return osRepository.getVramMultiplier ( vmBase.getOsId ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vm.vm_name=%s, nic=%s, vmDevice=%s" , super . toString ( ) , ( ( getVm ( ) ) == null ? "" : getVm ( ) . getVmName ( ) ) , getNic ( ) , getVmDevice ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vm.vm_name=%s, nic=%s, vmDevice=%s" , super . toString ( ) , ( ( getVm ( ) ) == null ? "" : getVm ( ) . getName ( ) ) , getNic ( ) , getVmDevice ( ) ) ; }
Source:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false , org.mockito.Mockito.times ( 0 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID ) ; }

Target:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , true ) ; }
Source:
public boolean Validate ( boolean validateCpu ) { return Validate ( true , validateCpu ) ; }

Target:
public boolean validate ( boolean validateCpu ) { return validate ( true , validateCpu ) ; }
Source:
public void setUsedDiskSize ( java.lang.Integer usedDiskSize ) { getStorageDynamicData ( ) . setused_disk_size ( usedDiskSize ) ; UpdateTotalDiskSize ( ) ; }

Target:
public void setUsedDiskSize ( java.lang.Integer usedDiskSize ) { getStorageDynamicData ( ) . setUsedDiskSize ( usedDiskSize ) ; UpdateTotalDiskSize ( ) ; }
Source:
public boolean matches ( java.lang.Object argument ) { return ( argument instanceof org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ) && ( ( ( ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ) ( argument ) ) . getConfigValue ( ) ) == configValue ) ; }

Target:
public boolean matches ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters argument ) { return ( argument.getConfigValue ( ) ) == configValue ; }
Source:
protected void executeVDSCommand ( ) { if ( ( _vdsManager ) != null ) { synchronized ( _vdsManager.getLockObj ( ) ) { executeVdsIdCommand ( ) ; } } else { executeVdsIdCommand ( ) ; } }

Target:
protected void executeVDSCommand ( ) { if ( ( _vdsManager ) != null ) { synchronized ( _vdsManager ) { executeVdsIdCommand ( ) ; } } else { executeVdsIdCommand ( ) ; } }
Source:
protected boolean verifyAddVM ( java.util.List < java.lang.String > reasons , org.ovirt.engine.core.compat.Guid storagePoolId , int vmPriority ) { return org.ovirt.engine.core.bll.VmHandler.VerifyAddVm ( reasons , getVmInterfaces ( ) . size ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) , storagePoolId , vmPriority ) ; }

Target:
protected boolean verifyAddVM ( java.util.List < java.lang.String > reasons , int vmPriority ) { return org.ovirt.engine.core.bll.VmHandler.VerifyAddVm ( reasons , getVmInterfaces ( ) . size ( ) , vmPriority ) ; }
Source:
protected org.ovirt.engine.api.model.Snapshot getSnapshotById ( org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.api.model.Snapshot snapshot : getBackendCollection ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.GetAllVmSnapshotsByVmIdParameters ( parentId ) ) ) { if ( snapshot.getId ( ) . equals ( id ) ) { return snapshot ; } } return null ; }

Target:
protected org.ovirt.engine.api.model.Snapshot getSnapshotById ( org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.api.model.Snapshot snapshot : getBackendCollection ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( parentId ) ) ) { if ( snapshot.getId ( ) . equals ( id ) ) { return snapshot ; } } return null ; }
Source:
protected org.ovirt.engine.core.dao.VmDAO getVmDAO ( ) { return getDbFacade ( ) . getVmDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.VmDAO getVmDAO ( ) { return getDbFacade ( ) . getVmDao ( ) ; }
Source:
private int getDefaultOsId ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture ) { org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; java.lang.Integer defaultArchOsId = osRepository.getDefaultOSes ( ) . get ( architecture ) ; return defaultArchOsId == null ? 0 : defaultArchOsId ; }

Target:
private int getDefaultOsId ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture ) { java.lang.Integer defaultArchOsId = osRepository.getDefaultOSes ( ) . get ( architecture ) ; return defaultArchOsId == null ? 0 : defaultArchOsId ; }
Source:
void init ( java.lang.String title , java.lang.String width , java.lang.String height , boolean resizeEnabled , boolean closeIconVisible ) ;

Target:
void init ( java.lang.String title , java.lang.String width , java.lang.String height , boolean closeIconVisible ) ;
Source:
protected void restoreStateAfterUpdate ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap map , boolean setSucceeded ) { updateStatus ( map , StorageDomainStatus.Maintenance ) ; disconnectFromStorage ( ) ; org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.setSucceeded ( setSucceeded ) ; }

Target:
protected void restoreStateAfterUpdate ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap map ) { updateStatus ( map , StorageDomainStatus.Maintenance ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > getVmLunDisksToSave ( ) { return java.util.Collections.unmodifiableList ( vmLunDisksToSave ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > getVmLunDisksToSave ( ) { return vmLunDisksToSave ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.AuditLog x , org.ovirt.engine.core.common.businessentities.AuditLog y ) { long xid = x.getaudit_log_id ( ) ; long yid = y.getaudit_log_id ( ) ; return new java.lang.Long ( xid ) . compareTo ( yid ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.AuditLog x , org.ovirt.engine.core.common.businessentities.AuditLog y ) { long xid = x.getaudit_log_id ( ) ; long yid = y.getaudit_log_id ( ) ; return java.lang.Long.valueOf ( xid ) . compareTo ( yid ) ; }
Source:
private org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters createParameters ( ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters params = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; params.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters createParameters ( ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters params = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return params ; }
Source:
protected void onAdd ( org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType value , org.ovirt.engine.ui.common.widget.profile.ProfileInstanceTypeEditor widget ) { super . onAdd ( value , widget ) ; vnics.add ( value.getNetworkInterface ( ) ) ; if ( isGhost ( value ) ) { ++ ( realEntryCount ) ; } updateHeaderLabel ( ) ; }

Target:
protected void onAdd ( org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType value , org.ovirt.engine.ui.common.widget.profile.ProfileInstanceTypeEditor widget ) { super . onAdd ( value , widget ) ; ++ ( realEntryCount ) ; updateHeaderLabel ( ) ; }
Source:
public void formatStringTest ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" ) ; org.junit.Assert.assertNotNull ( "There should be a result" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }

Target:
public void formatStringTest ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }
Source:
public static void mockVmNumaNodeDao ( final org.ovirt.engine.core.dao.VmNumaNodeDao vmNumaNodeDao , java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > vmNumaNodes ) { org.mockito.Mockito.when ( vmNumaNodeDao.getAllVmNumaNodeByVmId ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vmNumaNodes ) ; }

Target:
public static void mockVmNumaNodeDao ( final org.ovirt.engine.core.dao.VmNumaNodeDao vmNumaNodeDao , java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > vmNumaNodes ) { org.mockito.Mockito.when ( vmNumaNodeDao.getAllVmNumaNodeByVmId ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( vmNumaNodes ) ; }
Source:
public void testEvalNegative ( ) { mockExternalNetworkPredicate.setTestResult ( true ) ; org.junit.Assert.assertFalse ( underTest.test ( mockNetwork ) ) ; }

Target:
public void testEvalNegative ( ) { org.mockito.Mockito.doReturn ( true ) . when ( mockExternalNetworkPredicate ) . test ( mockNetwork ) ; org.junit.Assert.assertFalse ( underTest.test ( mockNetwork ) ) ; }
Source:
public static < T extends org.ovirt.engine.core.common.businessentities.VmBase > void updateVmDevices ( T entity ) { org.ovirt.engine.core.common.businessentities.VmBase vmBase = org.ovirt.engine.core.bll.utils.VmDeviceUtils.getBaseObject ( entity , entity.getId ( ) ) ; if ( vmBase != null ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateUSBSlots ( vmBase , vmBase ) ; } }

Target:
public static < T extends org.ovirt.engine.core.common.businessentities.VmBase > void updateVmDevices ( T entity ) { if ( entity != null ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateUSBSlots ( entity , entity ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.DisplayType getDisplayType ( ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.DisplayType > entityModel = getDisplayProtocol ( ) . getSelectedItem ( ) ; if ( entityModel == null ) { return null ; } return entityModel.getEntity ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DisplayType getDisplayType ( ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.DisplayType > entityModel = getDisplayProtocol ( ) . getSelectedItem ( ) ; if ( entityModel == null ) { return null ; } return entityModel.getEntity ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateBootSequenceItems ( ) ; bootSequenceBox.setSelectedIndex ( bootSequenceModel.getSelectedItemIndex ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateBootSequenceItems ( ) ; bootSequenceBox.setSelectedIndex ( bootSequenceModel.getSelectedItemIndex ( ) ) ; }
Source:
public void testGetForStoragePoolWithInvalidPool ( ) { org.ovirt.engine.core.common.businessentities.storage_domains result = dao.getForStoragePool ( existingDomain.getId ( ) , org.ovirt.engine.core.compat.NGuid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetForStoragePoolWithInvalidPool ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( existingDomain.getId ( ) , org.ovirt.engine.core.compat.NGuid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public boolean equalValues ( org.ovirt.engine.core.common.businessentities.qos.QosBase obj ) { if ( ! ( obj instanceof org.ovirt.engine.core.common.businessentities.qos.CpuQos ) ) { return false ; } org.ovirt.engine.core.common.businessentities.qos.CpuQos other = ( ( org.ovirt.engine.core.common.businessentities.qos.CpuQos ) ( obj ) ) ; return org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( cpuLimit , other.getCpuLimit ( ) ) ; }

Target:
public boolean equalValues ( org.ovirt.engine.core.common.businessentities.qos.CpuQos other ) { return org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( cpuLimit , other.getCpuLimit ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getName ( ) . equals ( iface.getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return n.getName ( ) . equals ( iface.getNetworkName ( ) ) ; }
Source:
private org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.Quota > getQuotaMetaDataFromResultSet ( ) { org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.Quota > mapper = new org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.Quota > ( ) { @ java.lang.Override public org.ovirt.engine.core.common.businessentities.Quota mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return getQuotaMetaDataFromResultSet ( rs ) ; } } ; return mapper ; }

Target:
private org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.Quota > getQuotaMetaDataFromResultSet ( ) { return new org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.Quota > ( ) { @ java.lang.Override public org.ovirt.engine.core.common.businessentities.Quota mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return getQuotaMetaDataFromResultSet ( rs ) ; } } ; }
Source:
public void persistCommandAssociatedEntities ( java.util.Collection < org.ovirt.engine.core.common.businessentities.CommandAssociatedEntity > cmdAssociatedEntities ) { commandsRepository.getCommandsCache ( ) . persistCommandAssociatedEntities ( cmdAssociatedEntities ) ; }

Target:
public void persistCommandAssociatedEntities ( java.util.Collection < org.ovirt.engine.core.common.businessentities.CommandAssociatedEntity > cmdAssociatedEntities ) { commandsRepository.persistCommandAssociatedEntities ( cmdAssociatedEntities ) ; }
Source:
private void updateVlanTagChangeability ( ) { getVLanTag ( ) . setIsChangable ( ( ( ( java.lang.Boolean ) ( getHasVLanTag ( ) . getEntity ( ) ) ) && ( ! ( ( java.lang.Boolean ) ( getExport ( ) . getEntity ( ) ) ) ) ) ) ; }

Target:
private void updateVlanTagChangeability ( ) { getVLanTag ( ) . setIsChangable ( ( ( java.lang.Boolean ) ( getHasVLanTag ( ) . getEntity ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase doWith ( final org.ovirt.engine.core.common.businessentities.storage_domains arg ) { final org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase params = new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( arg.getId ( ) , new org.ovirt.engine.core.compat.Guid ( arg.getstorage_pool_id ( ) . getUuid ( ) ) ) ; params.setRunSilent ( true ) ; return params ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase doWith ( final org.ovirt.engine.core.common.businessentities.StorageDomain arg ) { final org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase params = new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( arg.getId ( ) , new org.ovirt.engine.core.compat.Guid ( arg.getstorage_pool_id ( ) . getUuid ( ) ) ) ; params.setRunSilent ( true ) ; return params ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return iface.getNetworkName ( ) . equals ( n.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return iface.getNetworkName ( ) . equals ( n.getName ( ) ) ; }
Source:
private void initEditors ( ) { hostsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.ui.uicommonweb.models.hosts.HostDetailModel > > > ( org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable.SelectionMode.SINGLE , true ) ; useCommonPasswordEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; configureFirewallEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.LEFT ) ; configureFirewallEditor.setAccessible ( true ) ; }

Target:
private void initEditors ( ) { hostsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable.SelectionMode.SINGLE , true ) ; useCommonPasswordEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; configureFirewallEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.LEFT ) ; configureFirewallEditor.setAccessible ( true ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.disk.HotPlugDiskToVmCommand < org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters > createCommand ( ) { return new org.ovirt.engine.core.bll.storage.disk.HotPlugDiskToVmCommand ( createParameters ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.disk.HotPlugDiskToVmCommand < org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters > createCommand ( ) { return new org.ovirt.engine.core.bll.storage.disk.HotPlugDiskToVmCommand ( createParameters ( ) , null ) ; }
Source:
protected java.util.List < ? > getSelectedItems ( ) { return ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) ) != null ? org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . getSelectedList ( ) : null ; }

Target:
protected java.util.List < ? > getSelectedItems ( ) { return ( getTable ( ) ) != null ? getTable ( ) . getSelectionModel ( ) . getSelectedList ( ) : null ; }
Source:
public void saveAllInBatch ( java.util.Collection < T > entities ) { org.ovirt.engine.core.dao.MassOperationsGenericDao.getCallsHandler ( ) . executeStoredProcAsBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForSave ( ) , entities , getBatchMapper ( ) ) ; }

Target:
public void saveAllInBatch ( java.util.Collection < T > entities ) { if ( entities.isEmpty ( ) ) { return ; } org.ovirt.engine.core.dao.MassOperationsGenericDao.getCallsHandler ( ) . executeStoredProcAsBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForSave ( ) , entities , getBatchMapper ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( returnValue ) ) ; diskModel.getStorageDomain ( ) . setSelectedItem ( storageDomain ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( returnValue ) ) ; diskModel.getStorageDomain ( ) . setSelectedItem ( storageDomain ) ; }
Source:
public void testModifyPoolMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; new org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc ( ) . modifyPool ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; }

Target:
public void testModifyPoolMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; pool.modifyPool ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network net ) { return net.getname ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network net ) { return net.getname ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }
Source:
public void testRestore ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpTryBackExpectations ( ) ; setUpRestoreExpectations ( ) ; control.replay ( ) ; resource.restore ( new org.ovirt.engine.api.model.Action ( ) ) ; }

Target:
public void testRestore ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpTryBackExpectations ( ) ; setUpRestoreExpectations ( ) ; resource.restore ( new org.ovirt.engine.api.model.Action ( ) ) ; }
Source:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getAll ( ) { return filter ( new org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap.Predicate ( ) { @ java.lang.Override public boolean apply ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig config ) { return true ; } } ) ; }

Target:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getAll ( ) { return filter ( ( config ) -> true ) ; }
Source:
private void printUsage ( org.ovirt.engine.core.uutils.cli.parser.ArgumentsParser parser ) { java.lang.System.out.format ( "Usage: %s" , parser.getUsage ( ) . replace ( "@PROGRAM_NAME@" , ( ( java.lang.String ) ( context.get ( org.ovirt.engine.exttool.logger.PROGRAM_NAME ) ) ) ) . replace ( "@ACTION_LIST@" , org.apache.commons.lang.StringUtils.join ( actions.keySet ( ) , ", " ) ) ) ; }

Target:
private void printUsage ( org.ovirt.engine.core.uutils.cli.parser.ArgumentsParser parser ) { java.lang.System.out.format ( "Usage: %s" , parser.getUsage ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) ;

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) ;
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . vmDynamic.getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . vmDynamic.getStatus ( ) ; }
Source:
private void initEditors ( ) { statusEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelLabelEditor < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( ) ) ; clientsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel > ( false , true ) ; memoryPoolsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel > ( false , true ) ; }

Target:
private void initEditors ( ) { statusEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelLabelEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( ) ) ; clientsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; memoryPoolsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; }
Source:
public void testGetAllForStoragePoolAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePoolAndStatus ( existingVds.getStoragePoolId ( ) , existingVds.getstatus ( ) ) ; assertCorrectGetAllResult ( result ) ; }

Target:
public void testGetAllForStoragePoolAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePoolAndStatus ( existingVds.getStoragePoolId ( ) , existingVds.getStatus ( ) ) ; assertCorrectGetAllResult ( result ) ; }
Source:
protected void raiseLoggedInEvent ( ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.initCache ( this ) ; }

Target:
protected void raiseLoggedInEvent ( ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . initCache ( this ) ; }
Source:
public void setksm_state ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "ksm_state" ) ) ; }

Target:
public void setksm_state ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; }
Source:
public void setTarget ( org.ovirt.engine.ui.uicommonweb.ICommandTarget target ) { this . target = target ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand setTarget ( org.ovirt.engine.ui.uicommonweb.ICommandTarget target ) { this . target = target ; return this ; }
Source:
private void initParentResource ( ) { org.ovirt.engine.api.restapi.resource.AbstractBackendResource parent = collection.getParent ( ) . getParent ( ) ; parent.setBackend ( backend ) ; parent.setMappingLocator ( mapperLocator ) ; parent.setMessageBundle ( messageBundle ) ; parent.setHttpHeaders ( httpHeaders ) ; }

Target:
private void initParentResource ( ) { org.ovirt.engine.api.restapi.resource.AbstractBackendResource parent = collection.getParent ( ) . getParent ( ) ; parent.setMappingLocator ( mapperLocator ) ; parent.setMessageBundle ( messageBundle ) ; parent.setHttpHeaders ( httpHeaders ) ; }
Source:
private static boolean supportedInConfig ( org.ovirt.engine.core.common.config.ConfigValues feature , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( feature , version.getValue ( ) ) ; }

Target:
public static boolean supportedInConfig ( org.ovirt.engine.core.common.config.ConfigValues feature , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( feature , version.getValue ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getEntityGuid ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetEntityGuid ( getEntity ( ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getEntityGuid ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getEntityGuid ( getEntity ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePoolStatus getstatus ( ) { return status ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePoolStatus getStatus ( ) { return status ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( this . mVmDynamic.getstatus ( ) ) != value ) { this . mVmDynamic.setstatus ( value ) ; } }

Target:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . mVmDynamic.setstatus ( value ) ; }
Source:
private boolean allowDuplicate ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.AllowDuplicateMacAddresses ) ; }

Target:
private boolean allowDuplicate ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.AllowDuplicateMacAddresses ) ; }
Source:
public void testConvertBytestoMB ( ) { long bytes = 3160000L ; int megabytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( bytes , SizeConverter.SizeUnit.BYTES , SizeConverter.SizeUnit.MiB ) . intValue ( ) ; org.junit.Assert.assertEquals ( megabytes , 3 ) ; }

Target:
public void testConvertBytestoMB ( ) { long bytes = 3160000L ; int megabytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( bytes , SizeConverter.SizeUnit.BYTES , SizeConverter.SizeUnit.MiB ) . intValue ( ) ; org.junit.Assert.assertEquals ( 3 , megabytes ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.getOptions ( ) . setWanColorDepth ( ( ( org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth returnValue ) { spice.getOptions ( ) . setWanColorDepth ( returnValue ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_INVALID_SERVER_ID ) . when ( ( ( getHost ( ) ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_INVALID_SERVER_ID ) . when ( ( ( host ) == null ) ) ; }
Source:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , datacenter ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }

Target:
public void testGetByNameAndDataCenter ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndDataCenter ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , datacenter ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.validation.ValidationResult Validate ( java.lang.Object value ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult result = new org.ovirt.engine.ui.uicommonweb.validation.ValidationResult ( ) ; result.setSuccess ( ( ! ( collection.contains ( value ) ) ) ) ; return result ; }

Target:
public org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validate ( java.lang.Object value ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult result = new org.ovirt.engine.ui.uicommonweb.validation.ValidationResult ( ) ; result.setSuccess ( ( ! ( collection.contains ( value ) ) ) ) ; return result ; }
Source:
public void passthroughProfileContainsFilterId ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsFilterId ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public void RemoveVds ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = GetVdsManager ( vdsId , newHost ) ; if ( vdsManager != null ) { vdsManager.unsubscribeEvents ( ) ; vdsManager.dispose ( ) ; vdsManagersDict.remove ( vdsId ) ; } }

Target:
public void RemoveVds ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = GetVdsManager ( vdsId , newHost ) ; if ( vdsManager != null ) { vdsManager.dispose ( ) ; vdsManagersDict.remove ( vdsId ) ; } }
Source:
private void createUpVds ( ) { org.mockito.Mockito.when ( vdsDao.getAllForStoragePoolAndStatus ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.ArgumentMatchers.eq ( VDSStatus.Up ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.VDS ( ) ) ) ; }

Target:
private void createUpVds ( ) { org.mockito.Mockito.when ( vdsDao.getAllForStoragePoolAndStatus ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.eq ( VDSStatus.Up ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.VDS ( ) ) ) ; }
Source:
protected java.lang.String getIscsiBondName ( ) { return getIscsiBond ( ) . getName ( ) ; }

Target:
public java.lang.String getIscsiBondName ( ) { return getIscsiBond ( ) . getName ( ) ; }
Source:
protected void onReset ( ) { super . onReset ( ) ; clearSelection ( ) ; if ( ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) ) != null ) { org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) . resetScrollPosition ( ) ; } }

Target:
protected void onReset ( ) { super . onReset ( ) ; clearSelection ( ) ; if ( ( getTable ( ) ) != null ) { getTable ( ) . resetScrollPosition ( ) ; } }
Source:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getFieldRelationshipAutoCompleter ( java.lang.String fieldName ) { if ( org.ovirt.engine.core.searchbackend.StringHelper.EqOp ( fieldName , "TAG" ) ) { return StringOnlyEqualConditionRelationAutoCompleter.INSTANCE ; } else { return StringConditionRelationAutoCompleter.INSTANCE ; } }

Target:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getFieldRelationshipAutoCompleter ( java.lang.String fieldName ) { if ( "TAG" . equals ( fieldName ) ) { return StringOnlyEqualConditionRelationAutoCompleter.INSTANCE ; } else { return StringConditionRelationAutoCompleter.INSTANCE ; } }
Source:
public void setAuthority ( org.ovirt.engine.ui.uicommonweb.UriAuthority authority ) { this . authority = ( authority == null ) ? new org.ovirt.engine.ui.uicommonweb.UriAuthority ( null ) : authority ; if ( ! ( authority.isValid ( ) ) ) { valid = false ; } }

Target:
public void setAuthority ( org.ovirt.engine.ui.uicommonweb.UriAuthority authority ) { this . authority = ( authority == null ) ? new org.ovirt.engine.ui.uicommonweb.UriAuthority ( null ) : authority ; if ( ! ( this . authority.isValid ( ) ) ) { valid = false ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.tags > getAllForParent ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "parent_id" , id ) ; return getCallsHandler ( ) . executeReadList ( "GettagsByparent_id" , new org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.tags > getAllForParent ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "parent_id" , id ) ; return getCallsHandler ( ) . executeReadList ( "GettagsByparent_id" , org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper.instance , parameterSource ) ; }
Source:
public void testExecuteQueryAdminConfigFiltered ( ) { assertQueryExecution ( ConfigValues.DiscardAfterDeleteSupported , true , false ) ; }

Target:
public void testExecuteQueryAdminConfigFiltered ( ) { assertQueryExecution ( ConfigValues.DiscardAfterDeleteSupported , true ) ; }
Source:
protected void proposeDiscover ( ) { boolean proposeDiscover = ( org.ovirt.engine.ui.uicommonweb.Linq.count ( getTargets ( ) . getItems ( ) ) ) == 0 ; setProposeDiscoverTargets ( proposeDiscover ) ; }

Target:
protected void proposeDiscover ( ) { boolean proposeDiscover = getTargets ( ) . getItems ( ) . isEmpty ( ) ; setProposeDiscoverTargets ( proposeDiscover ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( getParameters ( ) . getOldNetworkName ( ) ) ; } return false ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( getParameters ( ) . getOldNetworkName ( ) ) ; } return false ; }
Source:
protected org.ovirt.engine.core.common.AuditLogType getAuditLogTypeForInvalidInterfaces ( ) { return org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_IMPORT_VM_INVALID_INTERFACES ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return super . getVdsGroup ( ) ; }
Source:
private org.ovirt.engine.api.model.Clusters mapCollection ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > entities ) { org.ovirt.engine.api.model.Clusters collection = new org.ovirt.engine.api.model.Clusters ( ) ; for ( org.ovirt.engine.core.common.businessentities.VDSGroup entity : entities ) { collection.getClusters ( ) . add ( addLinks ( map ( entity ) ) ) ; } return collection ; }

Target:
protected org.ovirt.engine.api.model.Clusters mapCollection ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > entities ) { org.ovirt.engine.api.model.Clusters collection = new org.ovirt.engine.api.model.Clusters ( ) ; for ( org.ovirt.engine.core.common.businessentities.VDSGroup entity : entities ) { collection.getClusters ( ) . add ( addLinks ( map ( entity ) ) ) ; } return collection ; }
Source:
public static org.ovirt.engine.core.common.job.Step addStep ( org.ovirt.engine.core.bll.job.ExecutionContext context , org.ovirt.engine.core.common.job.StepEnum stepName , java.lang.String description ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.addStep ( context , stepName , description , false ) ; }

Target:
public org.ovirt.engine.core.common.job.Step addStep ( org.ovirt.engine.core.bll.job.ExecutionContext context , org.ovirt.engine.core.common.job.StepEnum stepName , java.lang.String description ) { return addStep ( context , stepName , description , false ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; }
Source:
public boolean addHost ( org.ovirt.engine.core.common.businessentities.VDS entity ) { return vms.add ( entity.getId ( ) ) ; }

Target:
public boolean addHost ( org.ovirt.engine.core.common.businessentities.VDS entity ) { return hosts.add ( entity.getId ( ) ) ; }
Source:
public java.util.List < java.lang.String > getFilteredId ( ) { return this . filteredId ; }

Target:
public java.util.List < java.lang.String > getFilteredId ( ) { return new java.util.ArrayList < java.lang.String > ( this . filteredId ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.network.IPv4Address createDefaultIpv4Address ( ) { org.ovirt.engine.core.common.businessentities.network.IPv4Address ipv4Address = new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ; ipv4Address.setBootProtocol ( Ipv4BootProtocol.NONE ) ; return ipv4Address ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.IPv4Address createDefaultIpv4Address ( ) { org.ovirt.engine.core.common.businessentities.network.IPv4Address ipv4Address = new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ; ipv4Address.setBootProtocol ( Ipv4BootProtocol.NONE ) ; return ipv4Address ; }
Source:
public final org.ovirt.engine.core.compat.TimeSpan getTimeSpanValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( org.ovirt.engine.core.compat.TimeSpan ) ( GetValue ( DataType.TimeSpan , name , defaultValue ) ) ) ; }

Target:
public final org.ovirt.engine.core.compat.TimeSpan getTimeSpanValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( org.ovirt.engine.core.compat.TimeSpan ) ( getValue ( DataType.TimeSpan , name , defaultValue ) ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _setVdsmId ( ( ( java.lang.String ) ( _parser.cliEnvironmentGet ( VdsmEnv.VDSM_ID ) ) ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _setVdsmId ( ( ( java.lang.String ) ( _parser.cliEnvironmentGet ( VdsmEnv.VDSM_ID ) ) ) ) ; return true ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getname ( ) . equals ( networkName ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getName ( ) . equals ( networkName ) ; }