auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , getQuotaMetaDataFromResultSet ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , getQuotaMetaDataFromResultSet ( ) ) ; }
Source:
private void setClusterEmulatedMachine ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.String matchedEmulatedMachine ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . setEmulatedMachine ( vds.getVdsGroupId ( ) , matchedEmulatedMachine ) ; }

Target:
private void setClusterEmulatedMachine ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.String matchedEmulatedMachine ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . setEmulatedMachine ( vds.getVdsGroupId ( ) , matchedEmulatedMachine , false ) ; }
Source:
public void storagePoolDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.StoragePool p = b.getStoragePool ( ) ; org.junit.Assert.assertNull ( p ) ; }

Target:
public void storagePoolDefault ( ) { final org.ovirt.engine.core.common.businessentities.StoragePool p = b.getStoragePool ( ) ; org.junit.Assert.assertNull ( p ) ; }
Source:
public void setPendingVcpusCount ( java.lang.Integer value ) { mVdsDynamic.setpending_vcpus_count ( value ) ; }

Target:
public void setPendingVcpusCount ( java.lang.Integer value ) { mVdsDynamic.setPendingVcpusCount ( value ) ; }
Source:
protected void removeVmNetwork ( ) { if ( ( getInterfaces ( ) ) != null ) { for ( org.ovirt.engine.core.common.businessentities.network.VmNic iface : getInterfaces ( ) ) { org.ovirt.engine.core.bll.VmCommand.getMacPool ( ) . freeMac ( iface.getMacAddress ( ) ) ; } } }

Target:
protected void removeVmNetwork ( ) { if ( ( getInterfaces ( ) ) != null ) { for ( org.ovirt.engine.core.common.businessentities.network.VmNic iface : getInterfaces ( ) ) { getMacPool ( ) . freeMac ( iface.getMacAddress ( ) ) ; } } }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( org.ovirt.engine.core.bll.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( org.ovirt.engine.core.bll.UpdateNetworkOnClusterCommand.getParameters ( ) . getNetworkCluster ( ) . getId ( ) ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( org.ovirt.engine.core.bll.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( getNetworkCluster ( ) . getId ( ) ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : ValidationResult.VALID ; }
Source:
private boolean isLastTaskHandler ( ) { return ( getParameters ( ) . getExecutionIndex ( ) ) == ( ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getTaskHandlers ( ) . size ( ) ) - 1 ) ; }

Target:
private boolean isLastTaskHandler ( ) { return ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getExecutionIndex ( ) ) == ( ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getTaskHandlers ( ) . size ( ) ) - 1 ) ; }
Source:
public void testExistsNonExisting ( ) { org.junit.Assert.assertFalse ( prepareDao ( ) . exists ( org.ovirt.engine.core.dao.VmIconDaoTest.NON_EXISTING_ICON_ID ) ) ; }

Target:
public void testExistsNonExisting ( ) { org.junit.Assert.assertFalse ( dao.exists ( org.ovirt.engine.core.dao.VmIconDaoTest.NON_EXISTING_ICON_ID ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > getParameters ( ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > parameters = new org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > ( ) ; parameters.setQos ( getQos ( ) ) ; return parameters ; }

Target:
protected org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > getParameters ( ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > parameters = new org.ovirt.engine.core.common.action.QosParametersBase ( ) ; parameters.setQos ( getQos ( ) ) ; return parameters ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { volumeSnapshotConfigModel.getClusterName ( ) . setEntity ( ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) . getName ( ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { volumeSnapshotConfigModel.getClusterName ( ) . setEntity ( cluster.getName ( ) ) ; }
Source:
protected void init ( ) { parent.setBackend ( backend ) ; parent.setMappingLocator ( mapperLocator ) ; sessionHelper.setSessionId ( sessionId ) ; parent.setSessionHelper ( sessionHelper ) ; parent.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }

Target:
protected void init ( ) { parent.setBackend ( backend ) ; parent.setMappingLocator ( mapperLocator ) ; parent.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }
Source:
public void execute ( ) { org.ovirt.engine.ui.common.presenter.popup.numa.UpdatedVnumaEvent.fire ( this , nodeModel.getVm ( ) . getId ( ) , nodeModel.isPinned ( ) , nodeModel.getVmNumaNode ( ) . getIndex ( ) , nodeIndex ) ; org.ovirt.engine.ui.common.view.popup.numa.DraggableVirtualNumaPanel.menuPopup.hide ( ) ; }

Target:
public void execute ( ) { org.ovirt.engine.ui.common.presenter.popup.numa.UpdatedVnumaEvent.fire ( this , nodeModel.getVm ( ) . getId ( ) , true , nodeModel.getIndex ( ) , nodeIndex ) ; org.ovirt.engine.ui.common.view.popup.numa.DraggableVirtualNumaPanel.menuPopup.hide ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.UsbPolicy getUsbPolicyAccordingToUsbType ( org.ovirt.engine.api.model.UsbType usbType ) { switch ( usbType ) { case LEGACY : return org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_LEGACY ; case NATIVE : return org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; default : return null ; } }

Target:
private static org.ovirt.engine.core.common.businessentities.UsbPolicy getUsbPolicyAccordingToUsbType ( org.ovirt.engine.api.model.UsbType usbType ) { switch ( usbType ) { case LEGACY : case NATIVE : return org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; default : return null ; } }
Source:
protected void executeCommand ( ) { setStorageDomainId ( org.ovirt.engine.core.bll.storage.disk.cinder.RestoreFromCinderSnapshotCommand.getParameters ( ) . getStorageDomainId ( ) ) ; if ( isRemoveEntireDisk ( ) ) { removeEntireDisk ( ) ; } else { removeCinderVolume ( ) ; } org.ovirt.engine.core.bll.storage.disk.cinder.RestoreFromCinderSnapshotCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { setStorageDomainId ( org.ovirt.engine.core.bll.storage.disk.cinder.RestoreFromCinderSnapshotCommand.getParameters ( ) . getStorageDomainId ( ) ) ; removeCinderVolume ( ) ; org.ovirt.engine.core.bll.storage.disk.cinder.RestoreFromCinderSnapshotCommand.setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig getConfigByClusterIdAndName ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String paramName ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig config = getCallsHandler ( ) . executeRead ( "GetGlusterVolumeSnapshotConfigByClusterIdAndName" , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoImpl.snapshotConfigRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) . addValue ( "param_name" , paramName ) ) ; return config ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig getConfigByClusterIdAndName ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String paramName ) { return getCallsHandler ( ) . executeRead ( "GetGlusterVolumeSnapshotConfigByClusterIdAndName" , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoImpl.snapshotConfigRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) . addValue ( "param_name" , paramName ) ) ; }
Source:
protected org.ovirt.engine.ui.webadmin.widget.template.StoragesTree getTree ( ) { return new org.ovirt.engine.ui.webadmin.widget.template.StoragesTree ( resources , constants , templates ) ; }

Target:
protected org.ovirt.engine.ui.webadmin.widget.template.StoragesTree getTree ( ) { return new org.ovirt.engine.ui.webadmin.widget.template.StoragesTree ( ) ; }
Source:
public boolean canNetworkCompatabilityBeDecreased ( ) { return ( vmNetworkSetCorrectly ( ) . isValid ( ) ) && ( mtuValid ( ) . isValid ( ) ) ; }

Target:
public boolean canNetworkCompatabilityBeDecreased ( ) { return mtuValid ( ) . isValid ( ) ; }
Source:
public void networkDidntChange ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface nic = createNic ( "nic0" , "net" ) ; mockExistingIfaces ( nic ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( nic ) ) ; validateAndAssertNoChanges ( helper ) ; }

Target:
public void networkDidntChange ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = createNic ( "nic0" , "net" ) ; mockExistingIfaces ( nic ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( nic ) ) ; validateAndAssertNoChanges ( helper ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains createStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.storage_domains sd = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; sd.setstorage_domain_type ( StorageDomainType.Data ) ; sd.setstatus ( StorageDomainStatus.Active ) ; sd.setavailable_disk_size ( 2 ) ; return sd ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setstorage_domain_type ( StorageDomainType.Data ) ; sd.setstatus ( StorageDomainStatus.Active ) ; sd.setavailable_disk_size ( 2 ) ; return sd ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getName ( ) ; }
Source:
public static java.lang.Boolean mapFromInheritableBoolean ( java.lang.String value ) { return org.ovirt.engine.api.restapi.types.InheritableBooleanMapper.map ( org.ovirt.engine.api.model.InheritableBoolean.fromValue ( value ) ) ; }

Target:
public static java.lang.Boolean mapFromInheritableBoolean ( org.ovirt.engine.api.model.InheritableBoolean value ) { return org.ovirt.engine.api.restapi.types.InheritableBooleanMapper.map ( value ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.get ( org.ovirt.engine.core.compat.NGuid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void setVdsId ( org.ovirt.engine.core.compat.NGuid vdsId ) { this . vdsId = vdsId ; this . statistics.setVdsId ( ( vdsId != null ? vdsId.getValue ( ) : null ) ) ; }

Target:
public void setVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { this . vdsId = vdsId ; this . statistics.setVdsId ( ( vdsId != null ? vdsId.getValue ( ) : null ) ) ; }
Source:
protected static boolean canAttachPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vmId , java.util.ArrayList < java.lang.String > messages ) { return ( ! ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmAssignedToUser ( vmId , messages ) ) ) && ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmIsRunningStateless ( vmId ) ) ; }

Target:
protected static boolean canAttachPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vmId , java.util.List < java.lang.String > messages ) { return ( ! ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmAssignedToUser ( vmId , messages ) ) ) && ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmIsRunningStateless ( vmId ) ) ; }
Source:
public static java.util.UUID instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { long l = streamReader.readLong ( ) ; long m = streamReader.readLong ( ) ; java.util.UUID instance = new java.util.UUID ( m , l ) ; return instance ; }

Target:
public static java.util.UUID instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { long l = streamReader.readLong ( ) ; long m = streamReader.readLong ( ) ; return new java.util.UUID ( m , l ) ; }
Source:
public void validateCanDoAction ( ) { mockVMPoolDao ( ) ; setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void validate ( ) { mockVMPoolDao ( ) ; setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
protected java.lang.String getElementId ( ) { return elementId ; }

Target:
public java.lang.String getElementId ( ) { return elementId ; }
Source:
public synchronized org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters , boolean pollingEnabled ) { org.ovirt.engine.core.bll.SPMAsyncTask task = org.ovirt.engine.core.bll.AsyncTaskFactory.Construct ( taskType , taskParameters ) ; AddTaskToManager ( task ) ; return task == null ? org.ovirt.engine.core.compat.Guid.Empty : task.getTaskID ( ) ; }

Target:
public synchronized org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { org.ovirt.engine.core.bll.SPMAsyncTask task = org.ovirt.engine.core.bll.AsyncTaskFactory.Construct ( taskType , taskParameters ) ; AddTaskToManager ( task ) ; return task == null ? org.ovirt.engine.core.compat.Guid.Empty : task.getTaskID ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return snapshotsManager.addActiveSnapshot ( snapshotId , getVm ( ) , getMemoryVolumeForNewActiveSnapshot ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getCompensationContext ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return snapshotsManager.addActiveSnapshot ( snapshotId , org.ovirt.engine.core.bll.ImportVmCommand.getVm ( ) , getMemoryVolumeForNewActiveSnapshot ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getCompensationContext ( ) ) ; }
Source:
private void validateNonEmpty ( java.lang.String [ ] args ) { if ( ( args.length ) == 0 ) { org.ovirt.engine.core.config.EngineConfigCLIParser.log.debug ( "parse error: no arguments given." ) ; throw new java.lang.IllegalArgumentException ( "Error: at least 1 argument needed for configuration utility to run." ) ; } }

Target:
private void validateNonEmpty ( java.lang.String [ ] args ) { if ( ( args.length ) == 0 ) { throw new java.lang.IllegalArgumentException ( "Error: at least 1 argument needed for configuration utility to run." ) ; } }
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.getStoragePoolId ( ) . getUuid ( ) ) ) ; params.setRunSilent ( true ) ; return params ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.ProviderProxy proxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.create ( org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand.getParameters ( ) . getProvider ( ) ) ; proxy.testConnection ( ) ; org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.ProviderProxy proxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand.getParameters ( ) . getProvider ( ) ) ; proxy.testConnection ( ) ; org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand.setSucceeded ( true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return mockStorageDomain ( storageId , 6 , 4 , storageType ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , new org.ovirt.engine.core.compat.Version ( ) ) ; }
Source:
private void newMacPool ( ) { org.ovirt.engine.ui.uicommonweb.models.macpool.SharedMacPoolModel model = new org.ovirt.engine.ui.uicommonweb.models.macpool.NewSharedMacPoolModel ( this , false ) ; model.setEntity ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; setWindow ( model ) ; }

Target:
private void newMacPool ( ) { org.ovirt.engine.ui.uicommonweb.models.macpool.SharedMacPoolModel model = new org.ovirt.engine.ui.uicommonweb.models.macpool.NewSharedMacPoolModel ( this ) ; model.setEntity ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; setWindow ( model ) ; }
Source:
public org.ovirt.engine.api.resource.StatisticResource getStatisticResource ( java.lang.String id ) { return org.ovirt.engine.api.restapi.resource.BackendStatisticsResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendStatisticResource < R , Q > ( id , entityType , subjectId , query ) ) ; }

Target:
public org.ovirt.engine.api.resource.StatisticResource getStatisticResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStatisticResource ( id , entityType , subjectId , query ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
private java.lang.String createClientUrl ( ) { return ( ( ( ( ( ( ( ( Window.Location.getProtocol ( ) ) + "//" ) + ( Window.Location.getHost ( ) ) ) + "/" ) + ( clientPage ) ) + "?host=" ) + ( proxyConfig.getProxyHost ( ) ) ) + "&port=" ) + ( proxyConfig.getProxyPort ( ) ) ; }

Target:
private java.lang.String createClientUrl ( ) { return ( ( ( ( ( ( ( ( ( ( Window.Location.getProtocol ( ) ) + "//" ) + ( Window.Location.getHost ( ) ) ) + "/" ) + ( clientPage ) ) + "?host=" ) + ( proxyConfig.getProxyHost ( ) ) ) + "&port=" ) + ( proxyConfig.getProxyPort ( ) ) ) + "&title=" ) + ( consoleTitle ) ; }
Source:
protected void postSave ( ) { super . postSave ( ) ; sourceModel.updateOptions ( ) ; }

Target:
protected void postSave ( ) { super . postSave ( ) ; sourceModel.updateOptions ( true ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmWatchdogType map ( org.ovirt.engine.api.model.WatchdogModel model , org.ovirt.engine.core.common.businessentities.VmWatchdogType incoming ) { switch ( model ) { case I6300ESB : return org.ovirt.engine.core.common.businessentities.VmWatchdogType.i6300esb ; case IB700 : return org.ovirt.engine.core.common.businessentities.VmWatchdogType.ib700 ; default : return null ; } }

Target:
public static org.ovirt.engine.core.common.businessentities.VmWatchdogType map ( org.ovirt.engine.api.model.WatchdogModel model , org.ovirt.engine.core.common.businessentities.VmWatchdogType incoming ) { switch ( model ) { case I6300ESB : return org.ovirt.engine.core.common.businessentities.VmWatchdogType.i6300esb ; default : return null ; } }
Source:
public java.lang.String getIpv4Netmask ( ) { return networkAttachmentModel.getIpv4Subnet ( ) . getEntity ( ) ; }

Target:
public java.lang.String getIpv4Netmask ( ) { return ( networkAttachmentModel.getIpv4Subnet ( ) ) != null ? networkAttachmentModel.getIpv4Subnet ( ) . getEntity ( ) : null ; }
Source:
protected java.util.Date getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.Erratum > erratum ) { return erratum.getEntity ( ) . getIssued ( ) ; }

Target:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.Erratum erratum ) { return erratum.getIssued ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setStoragePool ( ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( returnValue ) ) ) ; callback.onSuccess ( model , returnValue ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool returnValue ) { setStoragePool ( returnValue ) ; callback.onSuccess ( returnValue ) ; }
Source:
public void mockVdsDao ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setVdsType ( VDSType.oVirtVintageNode ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }

Target:
public void mockVdsDao ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setVdsType ( VDSType.oVirtVintageNode ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( vds ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { java.lang.String status = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( snapshot.getStatus ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( status ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { java.lang.String status = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( snapshot.getStatus ( ) ) ; return status ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return iface.getNetworkName ( ) . equals ( n.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getName ( ) . equals ( iface.getNetworkName ( ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Method adapt ( org.ovirt.engine.api.model.Method from ) { org.ovirt.engine.api.v3.types.V3Method to = new org.ovirt.engine.api.v3.types.V3Method ( ) ; if ( from.isSetId ( ) ) { to.setId ( from.getId ( ) ) ; } return to ; }

Target:
public org.ovirt.engine.api.v3.types.V3Method adapt ( org.ovirt.engine.api.model.Method from ) { org.ovirt.engine.api.v3.types.V3Method to = new org.ovirt.engine.api.v3.types.V3Method ( ) ; if ( from.isSetId ( ) ) { to.setId ( from.getId ( ) . value ( ) ) ; } return to ; }
Source:
public void testExecuteQueryUserConfigFiltered ( ) { assertQueryExecution ( ConfigValues.PredefinedVMProperties , true , true ) ; }

Target:
public void testExecuteQueryUserConfigFiltered ( ) { assertQueryExecution ( ConfigValues.PredefinedVMProperties , true ) ; }
Source:
private static java.lang.String getRunActionErrorMessage ( java.util.ArrayList < java.lang.String > messages ) { if ( ( messages.size ( ) ) < 1 ) { return "No Message" ; } else { return messages.iterator ( ) . next ( ) ; } }

Target:
private java.lang.String getRunActionErrorMessage ( final java.util.List < java.lang.String > messages ) { if ( ( messages.size ( ) ) < 1 ) { return "No Message" ; } else { return messages.iterator ( ) . next ( ) ; } }
Source:
private void mockAuditLogDao ( ) { org.mockito.Mockito.doNothing ( ) . when ( auditLogDao ) . save ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.AuditLog.class ) ) ; org.mockito.Mockito.when ( dbFacade.getAuditLogDao ( ) ) . thenReturn ( auditLogDao ) ; }

Target:
private void mockAuditLogDao ( ) { org.mockito.Mockito.when ( dbFacade.getAuditLogDao ( ) ) . thenReturn ( auditLogDao ) ; }
Source:
protected org.ovirt.engine.api.model.HostNIC populate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface entity ) { return parent.addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.HostNIC populate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { return parent.addStatistics ( model , entity , uriInfo , httpHeaders ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; rollback5 ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { rollback5 ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( UsbPolicy.ENABLED_LEGACY , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
public void setUp ( ) { parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; parameters.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.SyncLunsInfoForBlockStorageDomainCommand < org.ovirt.engine.core.common.action.StorageDomainParametersBase > ( parameters , null ) ) ; }

Target:
public void setUp ( ) { parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; parameters.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.SyncLunsInfoForBlockStorageDomainCommand ( parameters , null ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { onLogin ( loginModel ) ; }

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 ) { onLogin ( loginModel ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getImageId ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getImageTemplateId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getImageId ( ) ) ; }
Source:
private void initHostWithOneVfsConfig ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > passthroughVnics , int numOfVfs , boolean allNetworksAllowed , boolean networkInSriovConfig , boolean labelInSriovConfig , boolean hasFreeVf ) { initHostWithOneVfsConfig ( passthroughVnics , numOfVfs , allNetworksAllowed , networkInSriovConfig , labelInSriovConfig , hasFreeVf , false ) ; }

Target:
private void initHostWithOneVfsConfig ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > passthroughVnics , int numOfVfs , boolean allNetworksAllowed , boolean networkInSriovConfig , boolean labelInSriovConfig , boolean hasFreeVf ) { initHostWithOneVfsConfig ( passthroughVnics , numOfVfs , allNetworksAllowed , networkInSriovConfig , labelInSriovConfig , hasFreeVf , false , false ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { if ( isRefreshStoragePool ( ) ) { refreshStoragePool ( ) ; } else { connectStoragePool ( ) ; } proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { connectStoragePool ( ) ; proceedProxyReturnValue ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ADD ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__INTERFACE ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ADD ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.ArrayList < java.lang.String > images = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }

Target:
public void onSuccess ( java.util.List < java.lang.String > images ) { setImagesToModel ( getModel ( ) , images ) ; }
Source:
private void initGraphicsData ( ) { org.ovirt.engine.core.bll.ImportUtils.updateGraphicsDevices ( getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
private void initGraphicsData ( ) { org.ovirt.engine.core.bll.ImportUtils.updateGraphicsDevices ( org.ovirt.engine.core.bll.ImportVmCommand.getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType ) { getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType , new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.RepoImageToImageFileNameAsyncConverter ( ) ) ; }

Target:
public void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType ) { getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType , new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.RepoImageToImageFileNameAsyncConverter ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return super . createTask ( taskId , asyncTaskCreationInfo , parentCommand ) ; }
Source:
protected org.ovirt.engine.api.model.Link masterLink ( java.lang.String id ) { org.ovirt.engine.api.model.Link master = new org.ovirt.engine.api.model.Link ( ) ; master.setRel ( "master" ) ; master.setHref ( idToHref ( id ) ) ; return master ; }

Target:
private org.ovirt.engine.api.model.Link masterLink ( java.lang.String id ) { org.ovirt.engine.api.model.Link master = new org.ovirt.engine.api.model.Link ( ) ; master.setRel ( "master" ) ; master.setHref ( idToHref ( id ) ) ; return master ; }
Source:
public void setAutoNumaBalancing ( org.ovirt.engine.core.common.businessentities.AutoNumaBalanceStatus autoNumaBalancing ) { this . autoNumaBalancing = autoNumaBalancing.getValue ( ) ; }

Target:
public void setAutoNumaBalancing ( org.ovirt.engine.core.common.businessentities.AutoNumaBalanceStatus autoNumaBalancing ) { this . autoNumaBalancing = autoNumaBalancing ; }
Source:
private static org.ovirt.engine.core.common.businessentities.storage_pool createDefaultStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setstorage_pool_type ( StorageType.LOCALFS ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createDefaultStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setstorage_pool_type ( StorageType.LOCALFS ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }
Source:
public void formatStringTest3 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" , "2.2.2" ) ; 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 formatStringTest3 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" , "2.2.2" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }
Source:
private void setVisibilityToChangedFieldsExpander ( boolean flag ) { changedFieldsPanel.setVisible ( flag ) ; applyNowTitleMessage.setVisible ( flag ) ; changedFieldsPanelTitle.setVisible ( flag ) ; }

Target:
private void setVisibilityToChangedFieldsExpander ( boolean flag ) { changedFieldsPanel.setVisible ( flag ) ; changedFieldsPanelTitle.setVisible ( flag ) ; }
Source:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { setVmStyle ( ) ; getView ( ) . hideDoubleClickBanner ( ) ; }

Target:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { setVmStyle ( ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpGetPayloadsExpectations ( 3 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Disk > searchDisk ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getDiskDao ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Disk > searchDisk ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getDiskDao ( ) , true ) ; }
Source:
protected void initQuery ( org.ovirt.engine.core.bll.GetAllRolesQuery < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > query ) { org.mockito.Mockito.doReturn ( java.lang.Boolean.TRUE ) . when ( query ) . isAdminUser ( ) ; }

Target:
protected void initQuery ( org.ovirt.engine.core.bll.GetAllRolesQuery < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > query ) { super . initQuery ( query ) ; org.mockito.Mockito.doReturn ( java.lang.Boolean.TRUE ) . when ( query ) . isAdminUser ( ) ; }
Source:
public void testConfigVmIdPolicy ( ) { setupConfigWithSerialNumber ( SerialNumberPolicy.VM_ID , null ) ; assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.VM_ID.toString ( ) ) ; }

Target:
public void testConfigVmIdPolicy ( ) { assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.VM_ID.toString ( ) ) ; }
Source:
public void dismissAlert ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = getSelectedItem ( ) ; org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters params = new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( auditLog.getAuditLogId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.RemoveAuditLogById , params ) ; }

Target:
public void dismissAlert ( org.ovirt.engine.core.common.businessentities.AuditLog auditLog ) { org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters params = new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( auditLog.getAuditLogId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.RemoveAuditLogById , params ) ; }
Source:
protected void endWithFailure ( ) { rollbackQuota ( ) ; HandleEndAction ( ) ; }

Target:
protected void endWithFailure ( ) { HandleEndAction ( ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel createNetworkClusterModel ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel = new org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel ( cluster ) ; networkClusterModel.setAttached ( false ) ; return networkClusterModel ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel createNetworkClusterModel ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel = new org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel ( cluster ) ; networkClusterModel.setAttached ( true ) ; return networkClusterModel ; }
Source:
private org.ovirt.engine.core.bll.CommandMultiAsyncTasks GetCommandMultiAsyncTasks ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = null ; synchronized ( org.ovirt.engine.core.bll.tasks.CommandAsyncTask._lockObject ) { entityInfo = org.ovirt.engine.core.bll.tasks.CommandAsyncTask._multiTasksByCommandIds.get ( getCommandId ( ) ) ; } return entityInfo ; }

Target:
public org.ovirt.engine.core.bll.CommandMultiAsyncTasks GetCommandMultiAsyncTasks ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = null ; synchronized ( org.ovirt.engine.core.bll.tasks.CommandAsyncTask._lockObject ) { entityInfo = org.ovirt.engine.core.bll.tasks.CommandAsyncTask._multiTasksByCommandIds.get ( getCommandId ( ) ) ; } return entityInfo ; }
Source:
public void setEntityNames ( java.util.List < java.lang.String > entityNames ) { this . entityNames = entityNames ; }

Target:
public void setEntityNames ( java.util.List < java.lang.String > entityNames ) { this . entityNames = entityNames ; if ( entityNames == null ) { this . entityNames = new java.util.ArrayList < > ( ) ; } }
Source:
protected org.ovirt.engine.api.model.VM getFromDataDomain ( ) { return performGet ( VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( guid ) ) ; }

Target:
protected org.ovirt.engine.api.model.VM getFromDataDomain ( ) { return performGet ( VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public static java.lang.String qosTypeToString ( org.ovirt.engine.api.model.QosType qosType ) { return org.ovirt.engine.api.restapi.types.QosTypeMapper.mapQosType ( qosType , null ) . name ( ) . toLowerCase ( ) ; }

Target:
public static java.lang.String qosTypeToString ( org.ovirt.engine.api.model.QosType qosType ) { return org.ovirt.engine.api.restapi.types.QosTypeMapper.map ( qosType , null ) . name ( ) . toLowerCase ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.VM object ) { return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.VM getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object ; }
Source:
public void initialize ( A constraintAnnotation ) { validValues = org.ovirt.engine.core.common.config.Config.< java.util.List < java.lang.String > > GetValue ( getConfigValue ( constraintAnnotation ) ) ; }

Target:
public void initialize ( A constraintAnnotation ) { validValues = org.ovirt.engine.core.common.config.Config.< java.util.List < java.lang.String > > getValue ( getConfigValue ( constraintAnnotation ) ) ; }
Source:
protected void removeVmFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; removeVmStatic ( getParameters ( ) . isRemovePermissions ( ) ) ; removeIcons ( ) ; }

Target:
protected void removeVmFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; removeVmStatic ( org.ovirt.engine.core.bll.RemoveVmCommand.getParameters ( ) . isRemovePermissions ( ) ) ; removeIcons ( ) ; }
Source:
protected void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; validate ( ) ; }

Target:
private void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; validate ( ) ; }
Source:
private void handleFinalizingSuccess ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.info ( "Finalizing successful upload to {}" , getUploadDescription ( ) ) ; org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.unLockImage ( ) ; stopImageTransferSession ( context.entity ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_SUCCESS ) ; }

Target:
private void handleFinalizingSuccess ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.info ( "Finalizing successful upload to {}" , getUploadDescription ( ) ) ; stopImageTransferSession ( context.entity ) ; org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.unLockImage ( ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_SUCCESS ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.storage_pool createStoragePoolLocalFS ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = new org.ovirt.engine.core.common.businessentities.storage_pool ( ) ; pool.setstorage_pool_type ( StorageType.LOCALFS ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFS ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setstorage_pool_type ( StorageType.LOCALFS ) ; return pool ; }
Source:
protected void executeVdsBrokerCommand ( ) { buildVmData ( ) ; mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getBroker ( ) . create ( createInfo ) ; logCommandInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , mVmReturn.mVm ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { buildVmData ( ) ; logCommandInfo ( ) ; mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getBroker ( ) . create ( createInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , mVmReturn.mVm ) ; }
Source:
public static void getAllVmTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , final boolean refresh ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.VdcQueryParametersBase params = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; params.setRefresh ( refresh ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllVmTemplates , params , aQuery ) ; }

Target:
public static void getAllVmTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , final boolean refresh ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.VdcQueryParametersBase params = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; params.setRefresh ( refresh ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllVmTemplates , params , aQuery ) ; }
Source:
protected int getBlockSparseInitSizeInGb ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.InitStorageSparseSizeInGB ) . intValue ( ) ; }

Target:
protected int getBlockSparseInitSizeInGb ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.InitStorageSparseSizeInGB ) . intValue ( ) ; }