auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel PrepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.storage_domains storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getstorage_domain_type ( ) ) ; PrepareSanStorageForEdit ( model ) ; return model ; }

Target:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel PrepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getstorage_domain_type ( ) ) ; PrepareSanStorageForEdit ( model ) ; return model ; }
Source:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) , null ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
protected static void updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.common.businessentities.ImageStatus status ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; }

Target:
public static void updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.common.businessentities.ImageStatus status ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%svars/ssl" , VdsmEnv.CONFIG_PREFIX ) , org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.EncryptHostCommunication ) . toString ( ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%svars/ssl" , VdsmEnv.CONFIG_PREFIX ) , org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.EncryptHostCommunication ) . toString ( ) ) ; return true ; }
Source:
public org.ovirt.engine.api.model.GlusterBricks list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = getBackendCollection ( VdcQueryType.GetGlusterVolumeBricks , new org.ovirt.engine.core.common.queries.gluster.IdQueryParameters ( asGuid ( getVolumeId ( ) ) ) ) ; return mapCollection ( bricks ) ; }

Target:
public org.ovirt.engine.api.model.GlusterBricks list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = getBackendCollection ( VdcQueryType.GetGlusterVolumeBricks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( getVolumeId ( ) ) ) ) ; return mapCollection ( bricks ) ; }
Source:
public synchronized void clear ( ) { super . clear ( ) ; reapableMap.clear ( ) ; while ( ( queue.poll ( ) ) != null ) ; }

Target:
public synchronized void clear ( ) { super . clear ( ) ; reapableMap.clear ( ) ; while ( ( queue.poll ( ) ) != null ) { } }
Source:
public static boolean isRangeValid ( java.lang.String start , java.lang.String end ) { return ! ( org.ovirt.engine.core.utils.MacAddressRangeUtils.innerInitRange ( start , end , true ) . isEmpty ( ) ) ; }

Target:
public static boolean isRangeValid ( java.lang.String start , java.lang.String end ) { return ! ( org.ovirt.engine.core.utils.MacAddressRangeUtils.innerInitRange ( start , end , 1 ) . isEmpty ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { setTitle ( object.getSecond ( ) . getVmFQDN ( ) ) ; return object.getSecond ( ) . getVmFQDN ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getSecond ( ) . getVmFQDN ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void updateVisibility ( ) { super . updateVisibility ( ) ; messageLabel.setVisible ( false ) ; apply.setVisible ( false ) ; publicUseEditor.setVisible ( true ) ; }

Target:
public void updateVisibility ( ) { super . updateVisibility ( ) ; messageLabel.setVisible ( false ) ; publicUseEditor.setVisible ( true ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VmTemplate x , org.ovirt.engine.core.common.businessentities.VmTemplate y ) { return x.getname ( ) . compareTo ( y.getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VmTemplate x , org.ovirt.engine.core.common.businessentities.VmTemplate y ) { return x.getName ( ) . compareTo ( y.getName ( ) ) ; }
Source:
private boolean isRemovableStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { switch ( status ) { case Up : case Down : case Maintenance : return true ; default : return false ; } }

Target:
private boolean isRemovableStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { switch ( status ) { case Up : case Down : return true ; default : return false ; } }
Source:
private void swithAccordingToMode ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.common.widget.popup.AbstractVmBasedPopupPresenterWidget.getView ( ) . switchMode ( ( ( java.lang.Boolean ) ( model.getAdvancedMode ( ) . getEntity ( ) ) ) ) ; }

Target:
private void swithAccordingToMode ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.common.widget.popup.AbstractVmBasedPopupPresenterWidget.getView ( ) . switchMode ( model.getAdvancedMode ( ) . getEntity ( ) ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "bootProtocol" , getBootProtocol ( ) ) . append ( "ipv4Addresses" , getIPv4Addresses ( ) ) . build ( ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "ipv4Addresses" , getIPv4Addresses ( ) ) . build ( ) ; }
Source:
private void remove ( ) { if ( ( getConfirmWindow ( ) ) != null ) { return ; } setConfirmWindow ( new org.ovirt.engine.ui.uicommonweb.models.providers.RemoveProvidersModel ( this ) ) ; }

Target:
private void remove ( ) { if ( ( getConfirmWindow ( ) ) != null ) { return ; } setConfirmWindow ( new org.ovirt.engine.ui.uicommonweb.models.providers.RemoveProvidersModel ( this , false ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > ) ( returnValue ) ) ; java.util.Collections.sort ( snapshots , new org.ovirt.engine.ui.uicommonweb.Linq.GlusterVolumeSnapshotComparer ( ) ) ; setItems ( snapshots ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots ) { java.util.Collections.sort ( snapshots , new org.ovirt.engine.ui.uicommonweb.Linq.GlusterVolumeSnapshotComparer ( ) ) ; setItems ( snapshots ) ; }
Source:
public void getVdsDefault ( ) { 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.VDS v = b.getVds ( ) ; org.junit.Assert.assertNull ( v ) ; }

Target:
public void getVdsDefault ( ) { final org.ovirt.engine.core.common.businessentities.VDS v = b.getVds ( ) ; org.junit.Assert.assertNull ( v ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getVdsDao ( ) ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDAOTest.EXISTING_VDS_ID ) ; existingVds2 = dao.get ( org.ovirt.engine.core.dao.VdsDAOTest.EXISTING_VDS_ID_2 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsDao ( ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDAOTest.EXISTING_VDS_ID ) ; existingVds2 = dao.get ( org.ovirt.engine.core.dao.VdsDAOTest.EXISTING_VDS_ID_2 ) ; }
Source:
private boolean isBond ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface ) { return java.lang.Boolean.TRUE.equals ( iface.getBonded ( ) ) ; }

Target:
private boolean isBond ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return java.lang.Boolean.TRUE.equals ( iface.getBonded ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.dataCenterFoundById = ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( returnValue ) ) ; rollback2 ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool returnValue ) { context.dataCenterFoundById = returnValue ; rollback2 ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , nicName , false , null , null , networkName ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , nicName , false , null , null , networkName , true ) ; }
Source:
protected boolean isEndOfKeysFile ( ) throws java.io.IOException { return ! ( ( ( keysObjectInStream.available ( ) ) > ( PersistentSortedLookupManager.USE_JBOSS_IMPLEMENTATION ? 1 : 0 ) ) || ( ( keysBufferedInStream.available ( ) ) > 0 ) ) ; }

Target:
protected boolean isEndOfKeysFile ( ) throws java.io.IOException { return ! ( ( ( keysObjectInStream.available ( ) ) > 0 ) || ( ( keysBufferedInStream.available ( ) ) > 0 ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.hostFoundById = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; rollback3 ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.hostFoundById = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; rollback3 ( ) ; }
Source:
public void canSetNumaConfigurationWithVmFromDb ( ) { mockCommandWithVmFromDb ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massSaveNumaNode ( org.mockito.ArgumentMatchers.eq ( paramNumaNodes ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }

Target:
public void canSetNumaConfigurationWithVmFromDb ( ) { mockCommandWithVmFromDb ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massSaveNumaNode ( org.mockito.ArgumentMatchers.eq ( paramNumaNodes ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void diskSnapshotsDontExist ( ) { org.junit.Assert.assertThat ( validator.diskSnapshotsNotExist ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) , org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_NOT_EXIST ) ) ) ; }

Target:
public void diskSnapshotsDontExist ( ) { org.junit.Assert.assertThat ( validator.diskSnapshotsNotExist ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_NOT_EXIST ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _goingToReboot = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( SysEnv.REBOOT ) ) ) ; if ( _goingToReboot ) { _messages.post ( InstallerMessages.Severity.INFO , "Reboot scheduled" ) ; } return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _goingToReboot = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( SysEnv.REBOOT ) ) ) ; if ( _goingToReboot ) { _messages.post ( InstallerMessages.Severity.INFO , "Reboot scheduled" ) ; } return true ; }
Source:
protected void handleEnterKey ( org.ovirt.engine.ui.common.uicommon.model.DeferredModelCommandInvoker commandInvoker ) { if ( ! ( getView ( ) . handleEnterKeyDisabled ( ) ) ) { super . handleEnterKey ( commandInvoker ) ; } }

Target:
protected void handleEnterKey ( ) { if ( ! ( getView ( ) . handleEnterKeyDisabled ( ) ) ) { super . handleEnterKey ( ) ; } }
Source:
public org.ovirt.engine.api.model.Watchdog update ( org.ovirt.engine.api.model.Watchdog watchdog ) { validateEnums ( org.ovirt.engine.api.model.Watchdog.class , watchdog ) ; return performUpdate ( watchdog , new org.ovirt.engine.api.restapi.resource.BackendVmWatchdogResource.WatchdogResolver ( ) , VdcActionType.UpdateWatchdog , new org.ovirt.engine.api.restapi.resource.BackendVmWatchdogResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Watchdog update ( org.ovirt.engine.api.model.Watchdog watchdog ) { return performUpdate ( watchdog , new org.ovirt.engine.api.restapi.resource.BackendVmWatchdogResource.WatchdogResolver ( ) , VdcActionType.UpdateWatchdog , new org.ovirt.engine.api.restapi.resource.BackendVmWatchdogResource.UpdateParametersProvider ( ) ) ; }
Source:
protected java.util.List < T > getSelectedItems ( ) { return org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel.getDataProvider ( ) . getModel ( ) . getSelectedItems ( ) ; }

Target:
public java.util.List < T > getSelectedItems ( ) { return org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel.getDataProvider ( ) . getModel ( ) . getSelectedItems ( ) ; }
Source:
private void DataCenter_SelectedItemChanged ( ) { UpdateItemsAvailability ( ) ; UpdateFormat ( ) ; UpdateHost ( ) ; }

Target:
private void DataCenter_SelectedItemChanged ( ) { UpdateItemsAvailability ( ) ; }
Source:
public static java.lang.String resolveOVirtISOsRepositoryPath ( ) { return org.ovirt.engine.core.common.config.ConfigUtil.resolvePath ( org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.DataDir ) , org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.oVirtISOsRepositoryPath ) ) ; }

Target:
public static java.lang.String resolveOVirtISOsRepositoryPath ( ) { return org.ovirt.engine.core.common.config.ConfigUtil.resolvePath ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.DataDir ) , org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.oVirtISOsRepositoryPath ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.Iterator < org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel > lineModelIterator = orderedDisksIterator ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( returnValue ) ) ) ; storeNextDisk ( lineModelIterator , vm ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.Iterator < org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel > lineModelIterator = orderedDisksIterator ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( returnValue ) ) , vm ) ; storeNextDisk ( lineModelIterator , vm ) ; }
Source:
public void parse ( java.lang.String [ ] args ) { org.ovirt.engine.core.config.EngineConfigCLIParser.log.debug ( "parse: beginning to parse passed arguments." ) ; validateNonEmpty ( args ) ; parseAction ( args ) ; parseArguments ( args ) ; org.ovirt.engine.core.config.EngineConfigCLIParser.log.debug ( "parse: Finished parsing arguments." ) ; }

Target:
public void parse ( java.lang.String [ ] args ) { validateNonEmpty ( args ) ; parseAction ( args ) ; parseArguments ( args ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.rebootVm ( ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.rebootVm ( ) ; }
Source:
public void testValidateImageHasParent ( ) { getDiskImage ( ) . setParentId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
public void testValidateImageHasParent ( ) { diskImage.setParentId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }
Source:
private void setAllValidationsValid ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . wasNumOfVfsChanged ( ) ; nicExists ( true ) ; sriovFeatureSupported ( true ) ; nicSriovEnabled ( true ) ; allVfsAreFree ( true ) ; numOfVfsInValidRange ( true ) ; }

Target:
private void setAllValidationsValid ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . wasNumOfVfsChanged ( ) ; nicExists ( true ) ; nicSriovEnabled ( true ) ; allVfsAreFree ( true ) ; numOfVfsInValidRange ( true ) ; }
Source:
protected void performBootstrap ( ) { super . performBootstrap ( ) ; com.google.gwt.user.client.Window.setTitle ( dynamicMessages.applicationTitle ( ) ) ; placeManager.revealCurrentPlace ( ) ; }

Target:
protected void performBootstrap ( ) { super . performBootstrap ( ) ; com.google.gwt.user.client.Window.setTitle ( dynamicMessages.applicationTitle ( ) ) ; }
Source:
public void testGetPermittedStorageDomainsById ( ) { org.ovirt.engine.core.common.businessentities.storage_domains result = dao.getPermittedStorageDomainsById ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_USER_ID , ActionGroup.CONFIGURE_VM_STORAGE , existingDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( result.getId ( ) , existingDomain.getId ( ) ) ; }

Target:
public void testGetPermittedStorageDomainsById ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getPermittedStorageDomainsById ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_USER_ID , ActionGroup.CONFIGURE_VM_STORAGE , existingDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( result.getId ( ) , existingDomain.getId ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hostList = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > ) ( result ) ) ; hostList.add ( 0 , null ) ; getHostList ( ) . setItems ( hostList ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hostList ) { hostList.add ( 0 , null ) ; getHostList ( ) . setItems ( hostList ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , int availableSize , int usedSize ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , int availableSize , int usedSize ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN , new org.ovirt.engine.core.compat.Version ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpBasicUriExpectations ( ) ; setUriInfo ( uriInfo ) ; setUpEntityQueryExpectations ( 1 ) ; initParetResource ( resource.parent , uriInfo ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpBasicUriExpectations ( ) ; setUriInfo ( uriInfo ) ; setUpEntityQueryExpectations ( 1 , false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getAffinityGroupMap ( ) { return affinityGroupMap ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getAffinityGroupMap ( ) { return affinityGroupMap ; }
Source:
public void setup ( ) { existingGroup.setCompatibilityVersion ( Version.v3_1 ) ; param = new org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter ( getExistingCluster ( ) , getNetwork ( ) ) ; underTest = new org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommandTest.TestAttachNetworkToClusterCommand ( param ) ; }

Target:
public void setup ( ) { param = new org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter ( getExistingCluster ( ) , getNetwork ( ) ) ; underTest = new org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommandTest.TestAttachNetworkToClusterCommand ( param ) ; }
Source:
void bindIntegration ( ) { bindCommonIntegration ( ) ; bindConfiguratorIntegration ( org.ovirt.engine.ui.userportal.uicommon.UserPortalConfigurator.class ) ; bind ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelResolver.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
void bindIntegration ( ) { bindCommonIntegration ( ) ; bindConfiguratorIntegration ( org.ovirt.engine.ui.userportal.uicommon.UserPortalConfigurator.class ) ; bind ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel.class ) . in ( com.google.inject.Singleton.class ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmDiskServer getDiskResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmDiskServer ( getDelegate ( ) . getDiskResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmDiskServer getDiskResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmDiskServer ( id , getDelegate ( ) . getDiskResource ( id ) ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetAllNetworksByClusterId , new org.ovirt.engine.core.common.queries.VdsGroupQueryParamenters ( getEntity ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetAllNetworksByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return group ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return group ; }
Source:
private void mockVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType cmdType , org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( resourceManager ) . runVdsCommand ( org.mockito.ArgumentMatchers.eq ( cmdType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.vdscommands.VDSParametersBase.class ) ) ; }

Target:
private void mockVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType cmdType , org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( resourceManager ) . runVdsCommand ( org.mockito.ArgumentMatchers.eq ( cmdType ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public static org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , java.lang.Double datum ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.setDatum ( statistic , ( datum == null ? null : new java.math.BigDecimal ( datum , new java.math.MathContext ( 2 ) ) ) ) ; }

Target:
public static org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , java.lang.Double datum ) { if ( datum != null ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.setDatum ( statistic , new java.math.BigDecimal ( datum , new java.math.MathContext ( 2 ) ) ) ; } return statistic ; }
Source:
private boolean checkDerivedDisksFromDiskNotExist ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return validate ( createDiskImagesValidator ( diskImage ) . diskImagesHaveNoDerivedDisks ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getStorageDomainId ( ) ) ) ; }

Target:
protected boolean checkDerivedDisksFromDiskNotExist ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return validate ( createDiskImagesValidator ( diskImage ) . diskImagesHaveNoDerivedDisks ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getStorageDomainId ( ) ) ) ; }
Source:
public static void RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback successCallback ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleActions ( actionType , parameters , successCallback , null ) ; }

Target:
public static void RunMultipleActions ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback successCallback ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleActions ( actionType , parameters , successCallback , null ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return ( object.getNetwork ( ) . getvlan_id ( ) ) == null ? "-" : object.getNetwork ( ) . getvlan_id ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return ( object.getvlan_id ( ) ) == null ? "-" : object.getvlan_id ( ) . toString ( ) ; }
Source:
public void testGetAllByStoragePoolAndConnectionWithInvalidStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_CONNECTION ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnectionWithInvalidStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_CONNECTION ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void setConsoleCurrentUserName ( java.lang.String consoleCurUserName ) { this . consoleCurrentUserName = consoleCurUserName ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String consoleCurUserName ) { this . consoleCurUserName = consoleCurUserName ; }
Source:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) , taskKey ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) ) ; }
Source:
public void validate ( ) { validateCommon ( ) ; validateSmtp ( ) ; }

Target:
public void validate ( ) { validateCommon ( ) ; }
Source:
public void parseArguments ( java.util.List < java.lang.String > argsList ) throws java.lang.Exception ;

Target:
public void parseArguments ( java.util.List < java.lang.String > args ) throws java.lang.Exception ;
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData model ) { return ( ( java.lang.Boolean ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( model ) ) . getClone ( ) . getEntity ( ) ) ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData model ) { return model.getClone ( ) . getEntity ( ) ; }
Source:
public void testRemoveIfUnusedWithUsed ( ) { prepareDao ( ) . removeIfUnused ( FixturesTool.SMALL_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon survivor = prepareDao ( ) . get ( FixturesTool.SMALL_ICON_ID ) ; org.junit.Assert.assertEquals ( FixturesTool.SMALL_ICON_ID , survivor.getId ( ) ) ; }

Target:
public void testRemoveIfUnusedWithUsed ( ) { dao.removeIfUnused ( FixturesTool.SMALL_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon survivor = dao.get ( FixturesTool.SMALL_ICON_ID ) ; org.junit.Assert.assertEquals ( FixturesTool.SMALL_ICON_ID , survivor.getId ( ) ) ; }
Source:
private void prepareMocks ( org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand command ) { org.mockito.Mockito.doReturn ( glusterUtils ) . when ( command ) . getGlusterUtils ( ) ; org.mockito.Mockito.doReturn ( getUpServers ( ) ) . when ( glusterUtils ) . getAllUpServers ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }

Target:
private void prepareMocks ( ) { org.mockito.Mockito.doReturn ( getUpServers ( ) ) . when ( glusterUtils ) . getAllUpServers ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }
Source:
public void setis_readonly ( boolean value ) { this . readOnly = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "is_readonly" ) ) ; }

Target:
public void setis_readonly ( boolean value ) { this . readOnly = value ; }
Source:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; hostNicVfsConfigHelper.getFreeVf ( nic ) ; }

Target:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; hostNicVfsConfigHelper.getFreeVf ( nic , null ) ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { try { shutdown ( ) ; } finally { super . finalize ( ) ; } }

Target:
public void finalize ( ) throws java.lang.Exception { shutdown ( ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.Role left , org.ovirt.engine.core.common.businessentities.Role right ) { return left.getname ( ) . compareTo ( right.getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.Role left , org.ovirt.engine.core.common.businessentities.Role right ) { return left.getName ( ) . compareTo ( right.getName ( ) ) ; }
Source:
protected void updateBootOrder ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void updateBootOrder ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrder ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) . getId ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetGraphicsExpectations ( 1 ) ; setUpGetEntityExpectations ( 1 ) ; setUpGetBallooningExpectations ( ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetGraphicsExpectations ( 1 ) ; setUpGetEntityExpectations ( 1 ) ; setUpGetBallooningExpectations ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , ( ( _iptables.length ( ) ) > 0 ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , true ) ; return null ; }
Source:
public void Cluster_SelectedItemChanged ( ) { updateQuotaByCluster ( vm.getQuotaId ( ) ) ; }

Target:
public void Cluster_SelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : java.lang.Boolean.TRUE ; }
Source:
public void encodeWithNullDiskDescription ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "" ) ) ; }

Target:
public void encodeWithNullDiskDescription ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; assertDiskDescriptionMap ( disk , generateDiskAliasJsonEntry ( "DiskAlias" ) , generateDiskDescriptionJsonEntry ( "" ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createVdsNetworkInterfaceWithStaticIp ( java.lang.String ip ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface networkInterface = new org.ovirt.engine.core.common.businessentities.VdsNetworkInterface ( ) ; networkInterface.setAddress ( ip ) ; networkInterface.setBootProtocol ( NetworkBootProtocol.StaticIp ) ; return networkInterface ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithStaticIp ( java.lang.String ip ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface networkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; networkInterface.setAddress ( ip ) ; networkInterface.setBootProtocol ( NetworkBootProtocol.StaticIp ) ; return networkInterface ; }
Source:
protected javax.ws.rs.core.Response actionSuccess ( org.ovirt.engine.api.model.Action action ) { action.setStatus ( org.ovirt.engine.api.common.util.StatusUtils.create ( CreationStatus.COMPLETE ) ) ; return javax.ws.rs.core.Response.ok ( ) . entity ( action ) . build ( ) ; }

Target:
protected javax.ws.rs.core.Response actionSuccess ( org.ovirt.engine.api.model.Action action ) { action.setStatus ( CreationStatus.COMPLETE.value ( ) ) ; return javax.ws.rs.core.Response.ok ( ) . entity ( action ) . build ( ) ; }
Source:
public void RemoveVds ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = GetVdsManager ( vdsId ) ; if ( vdsManager != null ) { vdsManager.dispose ( ) ; _vdsManagersDict.remove ( vdsId ) ; } }

Target:
public void RemoveVds ( org.ovirt.engine.core.compat.Guid vdsId ) { RemoveVds ( vdsId , false ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskImage getDiskImage ( ) { if ( ( diskImage ) == null ) { diskImage = getDiskImageDao ( ) . get ( org.ovirt.engine.core.bll.ExportRepoImageCommand.getParameters ( ) . getImageId ( ) ) ; } return diskImage ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return ( getDiskImage ( ) ) != null ? getDiskImage ( ) . getStoragePoolId ( ) : null ; }
Source:
public void testGetStorageDomainWithCorrectStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , StorageDomainStatus.Inactive ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_NFS_INACTIVE_ISO , result.getId ( ) ) ; }

Target:
public void testGetStorageDomainWithCorrectStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , StorageDomainStatus.Inactive ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_NFS_INACTIVE_ISO , result.getId ( ) ) ; }
Source:
protected java.lang.String clusterVersion ( ) { return java.lang.String.format ( "$clusterVersion %s" , version ) ; }

Target:
protected java.lang.String clusterVersion ( ) { return java.lang.String.format ( "$clusterVersion %s" , version.getValue ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic device ) ;

Target:
org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic device ) ;
Source:
public org.ovirt.engine.api.model.Permission get ( ) { return performGet ( VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.MultilevelAdministrationByPermissionIdParameters ( guid ) , suggestedParentType ) ; }

Target:
public org.ovirt.engine.api.model.Permission get ( ) { return performGet ( VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , suggestedParentType ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , _customizationConditions.contains ( org.ovirt.engine.core.bll.VdsDeploy.CustomizationCondition.IPTABLES_OVERRIDE ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , true ) ; return null ; }
Source:
public void setStatus ( org.ovirt.engine.core.common.businessentities.NetworkStatus value ) { cluster.setstatus ( value.getValue ( ) ) ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.NetworkStatus value ) { cluster.setstatus ( value ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_OPENVSWITCH_CONFIG_PREFIX ) + "OVS/bridge_mappings" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getNetworkMappings ( ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_OPENVSWITCH_CONFIG_PREFIX ) + "OVS/bridge_mappings" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getNetworkMappings ( ) ) ; return true ; }
Source:
private java.lang.String getVirtioIsoPath ( ) { return ( org.ovirt.engine.core.bll.ConvertVmCommand.getParameters ( ) . getVirtioIsoName ( ) ) == null ? null : new java.io.File ( getIsoPrefix ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getParameters ( ) . getVirtioIsoName ( ) ) . getPath ( ) ; }

Target:
protected java.lang.String getVirtioIsoPath ( ) { return ( org.ovirt.engine.core.bll.ConvertVmCommand.getParameters ( ) . getVirtioIsoName ( ) ) == null ? null : new java.io.File ( getIsoPrefix ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getParameters ( ) . getVirtioIsoName ( ) ) . getPath ( ) ; }
Source:
public void execute ( ) { enforceScrollPosition ( ) ; doAutoSelect = true ; }

Target:
public void execute ( ) { doAutoSelect = true ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmStatic map ( org.ovirt.engine.api.model.InstanceType entity , org.ovirt.engine.core.common.businessentities.VmStatic vmStatic ) { return org.ovirt.engine.api.restapi.types.VmMapper.doMapVmBaseHwPartToVmStatic ( ( ( org.ovirt.engine.core.common.businessentities.VmBase ) ( entity ) ) , ( vmStatic != null ? vmStatic : new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ) ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmStatic map ( org.ovirt.engine.api.model.InstanceType entity , org.ovirt.engine.core.common.businessentities.VmStatic vmStatic , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.api.restapi.types.VmMapper.doMapVmBaseHwPartToVmStatic ( ( ( org.ovirt.engine.core.common.businessentities.VmBase ) ( entity ) ) , ( vmStatic != null ? vmStatic : new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ) , version ) ; }
Source:
protected abstract org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient.CertCallback certCallback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;

Target:
protected abstract org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;
Source:
protected boolean canDoAction ( ) { boolean result = ( isUserCanBeAuthenticated ( ) ) && ( attachUserToSession ( ) ) ; if ( ! result ) { logAutheticationFailure ( ) ; } return result ; }

Target:
protected boolean canDoAction ( ) { boolean result = isUserCanBeAuthenticated ( ) ; if ( ! result ) { logAutheticationFailure ( ) ; } return result ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler < java.lang.String > handler ) { return eventBus.addHandler ( com.google.gwt.event.logical.shared.ValueChangeEvent.getType ( ) , handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler < java.lang.Integer > handler ) { return eventBus.addHandler ( com.google.gwt.event.logical.shared.ValueChangeEvent.getType ( ) , handler ) ; }
Source:
protected void configure ( ) { super . configure ( ) ; bind ( org.ovirt.engine.ui.webadmin.widget.tab.WebadminMenuLayout.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.common.widget.tab.MenuLayout.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.webadmin.section.main.presenter.SearchStringCollector.class ) . asEagerSingleton ( ) ; }

Target:
protected void configure ( ) { super . configure ( ) ; bind ( org.ovirt.engine.ui.webadmin.widget.tab.WebadminMenuLayout.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.common.widget.tab.MenuLayout.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.section.main.presenter.SearchStringCollector.class ) . asEagerSingleton ( ) ; }
Source:
protected java.util.List < T > getSelectedItems ( ) { java.util.List < T > selectedItems = new java.util.ArrayList < T > ( ) ; selectedItems.add ( selectionModel.getSelectedObject ( ) ) ; return selectedItems ; }

Target:
public java.util.List < T > getSelectedItems ( ) { java.util.List < T > selectedItems = new java.util.ArrayList < T > ( ) ; selectedItems.add ( selectionModel.getSelectedObject ( ) ) ; return selectedItems ; }
Source:
protected void checkMaxMemoryOverCommitValue ( ) { if ( ( getVdsGroup ( ) . getmax_vds_memory_over_commit ( ) ) <= 0 ) { getVdsGroup ( ) . setmax_vds_memory_over_commit ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.MaxVdsMemOverCommit ) ) ; } }

Target:
protected void checkMaxMemoryOverCommitValue ( ) { if ( ( getVdsGroup ( ) . getmax_vds_memory_over_commit ( ) ) <= 0 ) { getVdsGroup ( ) . setmax_vds_memory_over_commit ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxVdsMemOverCommit ) ) ; } }
Source:
public org.ovirt.engine.api.resource.EventResource getEventSubResource ( java.lang.String id ) { return new org.ovirt.engine.api.restapi.resource.BackendEventResource ( id , this ) ; }

Target:
public org.ovirt.engine.api.resource.EventResource getEventSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendEventResource ( id , this ) ) ; }
Source:
private org.ovirt.engine.core.aaa.DirectoryGroup mapGroup ( org.ovirt.engine.core.common.businessentities.LdapGroup ldapGroup ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( this , ldapGroup.getid ( ) , ldapGroup.getname ( ) ) ; }

Target:
private org.ovirt.engine.core.aaa.DirectoryGroup mapGroup ( org.ovirt.engine.core.common.businessentities.LdapGroup ldapGroup ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( this . getName ( ) , ldapGroup.getid ( ) , ldapGroup.getname ( ) ) ; }
Source:
protected void executeCommand ( ) { super . executeCommand ( ) ; vmSlaPolicyUtils.refreshRunningVmsWithStorageQos ( getQosId ( ) , getQos ( ) ) ; }

Target:
protected void executeCommand ( ) { super . executeCommand ( ) ; if ( getSucceeded ( ) ) { vmSlaPolicyUtils.refreshRunningVmsWithStorageQos ( getQosId ( ) , getQos ( ) ) ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network net ) { return net.getname ( ) . equals ( getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getName ( ) . equals ( getNetworkName ( ) ) ; }
Source:
public abstract org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createConnectedClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , java.nio.channels.SocketChannel channel ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;

Target:
protected abstract org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createConnectedClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , java.nio.channels.SocketChannel channel ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;
Source:
protected boolean canDoAction ( ) { return checkAddEditValidations ( ) ; }

Target:
protected boolean validate ( ) { return checkAddEditValidations ( ) ; }
Source:
public void onResizeStart ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.dom.client.Element headerElement ) { headerElement.getStyle ( ) . setBackgroundColor ( "#D6DCFF" ) ; }

Target:
public void onResizeStart ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.dom.client.Element headerElement ) { }