auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetAllWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertCorrectGetAllResult ( result ) ; }

Target:
public void testGetAllWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.uutils.ssh.SSHClient _getSSHClient ( ) { org.ovirt.engine.core.bll.utils.EngineSSHClient client = new org.ovirt.engine.core.bll.utils.EngineSSHClient ( ) ; client.setVds ( _vds ) ; return client ; }

Target:
protected org.ovirt.engine.core.uutils.ssh.SSHClient getSSHClient ( ) { org.ovirt.engine.core.bll.utils.EngineSSHClient client = new org.ovirt.engine.core.bll.utils.EngineSSHClient ( ) ; client.setVds ( _vds ) ; return client ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return this . mVmStatic.getQuotaId ( ) ; }

Target:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . vmStatic.setQuotaDefault ( isQuotaDefault ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( ) { network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setname ( "test network" ) ; return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( ) { network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setName ( "test network" ) ; return network ; }
Source:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setOs ( value ) ; }

Target:
public void setRuntimeDeviceCustomProperties ( java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.util.Map < java.lang.String , java.lang.String > > runtimeDeviceCustomProperties ) { this . runtimeDeviceCustomProperties = runtimeDeviceCustomProperties ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.AttachDetachStorageConnectionParameters params = new org.ovirt.engine.core.common.action.AttachDetachStorageConnectionParameters ( parent.storageDomainId , id ) ; return performAction ( VdcActionType.DetachStorageConnectionFromStorageDomain , params ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.AttachDetachStorageConnectionParameters params = new org.ovirt.engine.core.common.action.AttachDetachStorageConnectionParameters ( parent.storageDomainId , id ) ; return performAction ( ActionType.DetachStorageConnectionFromStorageDomain , params ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network getNetworkByVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { if ( vnicProfileId == null ) { return null ; } org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVnicProfileDao ( ) . get ( vnicProfileId ) ; return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getNetworkByVnicProfile ( vnicProfile ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VnicProfile getVnicProfile ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { if ( vnicProfileId == null ) { return null ; } return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVnicProfileDao ( ) . get ( vnicProfileId ) ; }
Source:
public boolean isHostedEngine ( ) { return ( ( OriginType.HOSTED_ENGINE ) == ( getOrigin ( ) ) ) || ( ( OriginType.MANAGED_HOSTED_ENGINE ) == ( getOrigin ( ) ) ) ; }

Target:
public boolean isHostedEngine ( ) { return vmStatic.isHostedEngine ( ) ; }
Source:
private void UpdateVmData ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStaticDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getVmStaticData ( ) ) ; }

Target:
private boolean isVmExist ( ) { return ( ( org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getVmStaticData ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) ) != null ) ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedAllLunsHaveDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , false ) , createLunWithDiscardFunctionality ( 2048L , true ) ) , storageDomain ) ) ; }

Target:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteDoesntBreak ( ) { storageDomain.setDiscardAfterDelete ( true ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
public static java.lang.String getDisplayStringForPluginName ( java.lang.String pluginName ) { try { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType.valueOf ( pluginName ) ) ; } catch ( java.lang.Exception e ) { return pluginName == null ? new java.lang.String ( ) : pluginName ; } }

Target:
public static java.lang.String getDisplayStringForPluginName ( java.lang.String pluginName ) { try { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType.valueOf ( pluginName ) ) ; } catch ( java.lang.Exception e ) { return pluginName == null ? "" : pluginName ; } }
Source:
public void networkChanged ( ) { mockVnicProfileNetworkChange ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void portMirroringNotChanged ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setname ( "BadName" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "BadName" ) ; return group ; }
Source:
java.lang.String getActualPassword ( ) { return org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( org.ovirt.engine.core.bll.CreateComputerAccountCommand.getParameters ( ) . getUserPassword ( ) ) ? org.ovirt.engine.core.bll.CreateComputerAccountCommand.getCurrentUser ( ) . getPassword ( ) : org.ovirt.engine.core.bll.CreateComputerAccountCommand.getParameters ( ) . getUserPassword ( ) ; }

Target:
java.lang.String getActualPassword ( ) { return org.apache.commons.lang.StringUtils.isEmpty ( org.ovirt.engine.core.bll.CreateComputerAccountCommand.getParameters ( ) . getUserPassword ( ) ) ? org.ovirt.engine.core.bll.CreateComputerAccountCommand.getCurrentUser ( ) . getPassword ( ) : org.ovirt.engine.core.bll.CreateComputerAccountCommand.getParameters ( ) . getUserPassword ( ) ; }
Source:
protected void setActionMessageParameters ( ) { if ( ( getMoveOrCopyImageOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__MOVE ) ; } else { addCanDoActionMessage ( EngineMessage.VAR__ACTION__COPY ) ; } addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM_TEMPLATE ) ; }

Target:
protected void setActionMessageParameters ( ) { if ( ( getMoveOrCopyImageOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) { addValidationMessage ( EngineMessage.VAR__ACTION__MOVE ) ; } else { addValidationMessage ( EngineMessage.VAR__ACTION__COPY ) ; } addValidationMessage ( EngineMessage.VAR__TYPE__VM_TEMPLATE ) ; }
Source:
public boolean isIommuPlaceholder ( ) { return java.lang.Boolean.TRUE.equals ( getSpecParams ( ) . get ( org.ovirt.engine.core.common.businessentities.VmHostDevice.IOMMU_PLACEHOLDER ) ) ; }

Target:
public boolean isIommuPlaceholder ( ) { return org.ovirt.engine.core.common.businessentities.VmHostDevice.isIommuPlaceHolder ( getSpecParams ( ) ) ; }
Source:
public void setcpu_user ( java.lang.Double value ) { this . mVmStatistics.setcpu_user ( value ) ; }

Target:
public void setHash ( java.lang.String hash ) { vmDynamic.setHash ( hash ) ; }
Source:
public void testGetStorageDomainIdWithNoPermissions ( ) { mockStoragePoolDAO ( null ) ; org.junit.Assert.assertNull ( "No storage domains should have been returned" , getQuery ( ) . getStorageDomainIdForQuery ( ) ) ; }

Target:
public void testGetStorageDomainIdWithNoPermissions ( ) { mockStoragePoolDao ( null ) ; org.junit.Assert.assertNull ( "No storage domains should have been returned" , getQuery ( ) . getStorageDomainIdForQuery ( ) ) ; }
Source:
public void macAddressIsNullForVmNicUpdate ( ) throws java.lang.Exception { assertNicValidation ( createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.UpdateVmNic.class , true , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }

Target:
public void macAddressIsNullForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertNicValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , false , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }
Source:
private void updateFencingPolicyTabVisibility ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel object ) { fencingPolicyTab.setVisible ( object.getSkipFencingIfSDActiveEnabled ( ) . getIsChangable ( ) ) ; }

Target:
private void updateFencingPolicyTabVisibility ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel object ) { fencingPolicyTab.setVisible ( ( ( object.getSkipFencingIfSDActiveEnabled ( ) . getIsChangable ( ) ) || ( object.getSkipFencingIfConnectivityBrokenEnabled ( ) . getIsChangable ( ) ) ) ) ; }
Source:
public void execute ( ) { attachAlert ( createAlert ( type , message ) ) ; }

Target:
public void run ( ) { detachAlert ( alert ) ; }
Source:
public void validVnicProfileNullNetworkFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validVnicProfileNetworkFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.utils.VmDeviceType getDisplayDevice ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.DisplayType displayType ) { org.ovirt.engine.core.common.utils.VmDeviceType vmDeviceType = parseDisplayProtocols ( osId , version ) . get ( displayType ) ; return vmDeviceType == null ? displayType.getDefaultVmDeviceType ( ) : vmDeviceType ; }

Target:
public java.lang.String getSysprepFileName ( int osId , org.ovirt.engine.core.compat.Version version ) { return getValueByVersion ( idToUnameLookup.get ( osId ) , "sysprepFileName" , version ) ; }
Source:
public static org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.retrieveCommand ( commandId ) ; }

Target:
public static < C extends org.ovirt.engine.core.bll.CommandBase < ? > > C retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) { return ( ( C ) ( org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.retrieveCommand ( commandId ) ) ) ; }
Source:
public java.util.Date getvm_creation_date ( ) { return this . mVmStatic.getcreation_date ( ) ; }

Target:
public void setQuotaName ( java.lang.String value ) { this . vmStatic.setQuotaName ( value ) ; }
Source:
public void managementNetworkChangeInvalid ( ) { testUpdateManagementNetworkChange ( false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_CHANGED ) ) ; }

Target:
public void managementNetworkChangeInvalid ( ) { testUpdateManagementNetworkChange ( false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_CHANGED ) ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.AbstractUiCommandButton createCommandButton ( java.lang.String label ) { return new org.ovirt.engine.ui.common.widget.UiCommandButton ( label ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.AbstractUiCommandButton createCommandButton ( java.lang.String label , java.lang.String uniqueId ) { return new org.ovirt.engine.ui.common.widget.UiCommandButton ( label ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . templateEventSubTabLabel ( ) , 6 , ginjector.getSubTabTemplateEventModelProvider ( ) , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.templateEventSubTabLabel ( ) , 6 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvds_group_id ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_id" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . vmDynamic.getstatus ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getAllForCluster ( org.ovirt.engine.core.compat.Guid clusterId ) { return getAllForCluster ( clusterId , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getAllForCluster ( org.ovirt.engine.core.compat.Guid clusterId ) { return getAllForCluster ( clusterId , null , false , ActionGroup.ASSIGN_CPU_PROFILE ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { if ( ( isInstanceType ( ) ) || ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.isBlankTemplate ( ) ) ) { return true ; } return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplate ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { if ( ( isInstanceType ( ) ) || ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.isBlankTemplate ( ) ) ) { return true ; } return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplate ( ) , org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getUserId ( ) ) ) ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "red" ) ; getValidatedWidget ( ) . setTitle ( getValidationTitle ( validationHints ) ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { valid = false ; applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "red" ) ; getValidatedWidget ( ) . setTitle ( getValidationTitle ( validationHints ) ) ; }
Source:
public void setPmProxyPreferences ( java.lang.String pmProxyPreferences ) { vdsStatic.setPmProxyPreferences ( pmProxyPreferences ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType > getFenceProxySources ( ) { return vdsStatic.getFenceProxySources ( ) ; }
Source:
public void canDoActionSucceedsOnRemoveNotLastAdGroupWithSuperUserPrivileges ( ) throws java.lang.Exception { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.isLastSuperUserGroup ( adElementId ) ) . thenReturn ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
private void mockIsLastSuperUserGroup ( boolean isLast ) { org.mockito.Mockito.doReturn ( isLast ) . when ( command ) . isLastSuperUserGroup ( adElementId ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult vmNotInStatus ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus status , org.ovirt.engine.core.common.errors.EngineMessage msg ) { if ( getSnapshotDao ( ) . exists ( vmId , status ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( msg ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult vmNotInStatus ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus status , org.ovirt.engine.core.common.errors.EngineMessage msg ) { if ( snapshotDao.exists ( vmId , status ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( msg ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . mVdsStatic.setId ( value ) ; this . mVdsDynamic.setId ( value ) ; this . mVdsStatistics.setId ( value ) ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { vdsStatic.setId ( value ) ; vdsDynamic.setId ( value ) ; vdsStatistics.setId ( value ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( returnValue ) ) ; getPath ( ) . setEntity ( connection.getconnection ( ) ) ; prepareConnectionForEditing ( connection ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( returnValue ) ) ; getPath ( ) . setEntity ( connection.getConnection ( ) ) ; prepareConnectionForEditing ( connection ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , availableDiskSize , usedDiskSize , externalStatus , containsUnregisteredEntities ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , availableDiskSize , confirmedAvailableDiskSize , usedDiskSize , externalStatus , containsUnregisteredEntities ) ; }
Source:
public void testGetByOperatingSystemIdNonExisting ( ) { final org.ovirt.engine.core.common.businessentities.VmIconDefault vmIconDefault = dao.getByOperatingSystemId ( ( - 1 ) ) ; org.junit.Assert.assertNull ( vmIconDefault ) ; }

Target:
public void testGetByOperatingSystemIdNonExisting ( ) { final org.ovirt.engine.core.common.businessentities.VmIconDefault vmIconDefault = dao.getByOperatingSystemId ( ( - 1 ) ) ; org.junit.jupiter.api.Assertions.assertNull ( vmIconDefault ) ; }
Source:
java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > makeValueComparator ( ) { return new java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > ( ) { @ java.lang.Override public int compare ( org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem a , org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem b ) { return ( a.value ) - ( b.value ) ; } } ; }

Target:
java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > makeValueComparator ( ) { return java.util.Comparator.comparingInt ( ( t ) -> t.value ) ; }
Source:
public void onSaveInternal ( ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel ) ( getWindow ( ) ) ) ; if ( ( model.getProgress ( ) ) != null ) { return ; } cancelConfirmation ( ) ; onSaveInternalWithModel ( model ) ; }

Target:
public void onSaveInternal ( ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel ) ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel.getWindow ( ) ) ) ; if ( ( model.getProgress ( ) ) != null ) { return ; } cancelConfirmation ( ) ; onSaveInternalWithModel ( model ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.CdRom model , int index ) { org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.verifyModelWithIso ( model , org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.ISO_PATH ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Cdrom model , int index ) { org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.verifyModelWithIso ( model , org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.ISO_PATH ) ; verifyLinks ( model ) ; }
Source:
private void mockVmPropertiesUtils ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.class , vmPropertiesUtils ) ; }

Target:
private void mockVmPropertiesUtils ( ) { org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.class , vmPropertiesUtils ) ; }
Source:
public void queryFailed ( ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; }

Target:
public void setSetConsoleKeyCommand ( org.ovirt.engine.ui.uicommonweb.UICommand setConsoleKeyCommand ) { this . setConsoleKeyCommand = setConsoleKeyCommand ; }
Source:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.OFF ) ; }

Target:
public void enableCifs ( ) { accessProtocols.add ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.ENABLE ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > ( ) ; }

Target:
public void getGlusterBricksForServer ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > > aQuery , org.ovirt.engine.core.compat.Guid serverId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeBricksByServerId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( serverId ) , aQuery ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSaveInternal ( result.getReturnValue ( ) ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel ) ( result.getState ( ) ) ) ; localModel.getWindow ( ) . StopProgress ( ) ; Cancel ( ) ; }
Source:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = org.ovirt.engine.api.model.StorageDomainType.fromValue ( storageDomain.getType ( ) ) ; return ( type != null ) && ( type == ( org.ovirt.engine.api.model.StorageDomainType.ISO ) ) ? true : false ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain doPopulate ( org.ovirt.engine.api.model.StorageDomain model , org.ovirt.engine.api.model.StorageDomain entity ) { return model ; }
Source:
protected void AlertIfPowerManagementOperationSkipped ( java.lang.String operation ) { Alert ( AuditLogType.VDS_ALERT_FENCING_OPERATION_SKIPPED , operation ) ; }

Target:
protected void AlertIfPowerManagementOperationSkipped ( java.lang.String operation ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_SKIPPED , operation ) ; }
Source:
public void setnice_level ( int value ) { this . mVmStatic.setnice_level ( value ) ; }

Target:
public void setVmtMemSizeMb ( int value ) { this . vmtMemSizeMb = value ; }
Source:
public boolean getHasAsyncTasks ( ) { return ( ( getTaskIdList ( ) ) != null ) && ( ( getTaskIdList ( ) . size ( ) ) > 0 ) ; }

Target:
public boolean getHasAsyncTasks ( ) { return ( ( getVdsmTaskIdList ( ) ) != null ) && ( ( getVdsmTaskIdList ( ) . size ( ) ) > 0 ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.HostDevice createVf ( ) { org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = new org.ovirt.engine.core.common.businessentities.HostDevice ( ) ; hostDevice.setDeviceName ( getRandomString ( ) ) ; return hostDevice ; }

Target:
private org.ovirt.engine.core.common.businessentities.HostDevice createVf ( ) { org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = new org.ovirt.engine.core.common.businessentities.HostDevice ( ) ; hostDevice.setHostId ( hostId ) ; hostDevice.setDeviceName ( getRandomString ( ) ) ; return hostDevice ; }
Source:
private static void removeUsbSlots ( org.ovirt.engine.core.common.businessentities.VmBase vm , int numberOfSlotsToRemove ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list = org.ovirt.engine.core.bll.utils.VmDeviceUtils.getUsbRedirectDevices ( vm ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeNumberOfDevices ( list , numberOfSlotsToRemove ) ; }

Target:
public static void removeUsbSlots ( org.ovirt.engine.core.compat.Guid vmId , int numberOfSlotsToRemove ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getUsbSlots ( vmId ) , numberOfSlotsToRemove ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvm_guid ( ) { return this . vmId ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { return this . vmId ; }
Source:
public static java.lang.String hex2string ( java.lang.String hex ) { try { return new java.lang.String ( org.apache.commons.codec.binary.Hex.decodeHex ( hex.toCharArray ( ) ) , org.ovirt.engine.api.restapi.utils.HexUtils.UTF_8 ) ; } catch ( org.apache.commons.codec.DecoderException exception ) { throw org.ovirt.engine.api.restapi.utils.HexUtils.notValidHex ( hex , exception ) ; } }

Target:
public static java.lang.String hex2string ( java.lang.String hex ) { try { return new java.lang.String ( org.apache.commons.codec.binary.Hex.decodeHex ( hex.toCharArray ( ) ) , java.nio.charset.StandardCharsets.UTF_8 ) ; } catch ( org.apache.commons.codec.DecoderException exception ) { throw org.ovirt.engine.api.restapi.utils.HexUtils.notValidHex ( hex , exception ) ; } }
Source:
public java.lang.Void call ( ) { disconnect ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.CLIENT_CLOSED ) ; return null ; }

Target:
public java.util.concurrent.Future < java.lang.Void > close ( ) { return scheduleClose ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.CLIENT_CLOSED ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.hosts.InstallModel model ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostInstallPopupView.Driver.driver.edit ( model ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.hosts.InstallModel model ) { driver.edit ( model ) ; }
Source:
private org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery < org.ovirt.engine.api.model.Host , org.ovirt.engine.core.common.businessentities.VDS > getQuery ( ) { return ( ( org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery < org.ovirt.engine.api.model.Host , org.ovirt.engine.core.common.businessentities.VDS > ) ( control.createMock ( org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery.class ) ) ) ; }

Target:
private org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery < org.ovirt.engine.api.model.Host , org.ovirt.engine.core.common.businessentities.VDS > getQuery ( ) { return org.mockito.Mockito.mock ( org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery.class ) ; }
Source:
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper < org.ovirt.engine.core.compat.Guid > createGuidMapper ( ) { return new org.springframework.jdbc.core.simple.ParameterizedRowMapper < org.ovirt.engine.core.compat.Guid > ( ) { @ java.lang.Override public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.compat.Guid ( rs.getString ( 1 ) ) ; } } ; }

Target:
protected org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.compat.Guid > createGuidMapper ( ) { return new org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.compat.Guid > ( ) { @ java.lang.Override public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.compat.Guid ( rs.getString ( 1 ) ) ; } } ; }
Source:
private void serialNumberPolicyChanged ( ) { customSerialNumber.setIsChangable ( ( ( getSerialNumberPolicy ( ) . getEntity ( ) ) == ( org.ovirt.engine.core.common.businessentities.SerialNumberPolicy.CUSTOM ) ) ) ; }

Target:
private void serialNumberPolicyChanged ( ) { customSerialNumber.setIsChangeable ( ( ( getSerialNumberPolicy ( ) . getEntity ( ) ) == ( org.ovirt.engine.core.common.businessentities.SerialNumberPolicy.CUSTOM ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported ; }
Source:
private void providerChanged ( ) { clearValidations ( ) ; switch ( importSources.getSelectedItem ( ) ) { case VMWARE : vmwareProviderChanged ( ) ; break ; default : } }

Target:
private void providerChanged ( ) { clearValidations ( ) ; switch ( importSources.getSelectedItem ( ) ) { case VMWARE : vmwareProviderChanged ( ) ; break ; case KVM : kvmProviderChanged ( ) ; break ; default : } }
Source:
public org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand getCommand ( final org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , final org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics ) { return new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand ( getMenuTitle ( op1 , op2 ) , getTarget ( ) , op1 , op2 , allNics ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand getCommand ( final org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , final org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.DataFromHostSetupNetworksModel dataFromHostSetupNetworksModel ) { return new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand ( getMenuTitle ( op1 , op2 ) , getTarget ( ) , op1 , op2 , dataFromHostSetupNetworksModel ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondContainingNetwork ( ) { org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; iscsiBond.getNetworkIds ( ) . add ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.NETWORK_ID ) ; return iscsiBond ; }

Target:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondContainingNetwork ( ) { org.ovirt.engine.api.restapi.resource.IscsiBond iscsiBond = new org.ovirt.engine.api.restapi.resource.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; iscsiBond.getNetworkIds ( ) . add ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.NETWORK_ID ) ; return iscsiBond ; }
Source:
public void testCanDoActionOvfDiskNotIllegal ( ) { disk.setImageStatus ( ImageStatus.OK ) ; disk.setOvfStore ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_IN_APPLICABLE_STATUS ) ; }

Target:
public void testCanDoActionOvfDiskNotIllegal ( ) { disk.setImageStatus ( ImageStatus.OK ) ; disk.setOvfStore ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_IN_APPLICABLE_STATUS ) ; }
Source:
public org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getVmPropertiesUtils ( ) { return mockVmPropertiesUtils ( ) ; }

Target:
public void setup ( ) { mockVmPropertiesUtils ( ) ; mockIsoDomainListSyncronizer ( ) ; }
Source:
public void cancel ( ) { setWindow ( null ) ; }

Target:
public void newSubnet ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.providers.NewExternalSubnetModel model = new org.ovirt.engine.ui.uicommonweb.models.providers.NewExternalSubnetModel ( getEntity ( ) , this ) ; setWindow ( model ) ; }
Source:
public java.lang.String GetTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = GetTagById ( tagId ) ; if ( tag == null ) { return org.apache.commons.lang.StringUtils.EMPTY ; } java.lang.StringBuilder sb = tag.getTagIdAndChildrenIds ( ) ; return sb.toString ( ) ; }

Target:
public java.lang.String getTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagById ( tagId ) ; if ( tag == null ) { return org.apache.commons.lang.StringUtils.EMPTY ; } java.lang.StringBuilder sb = tag.getTagIdAndChildrenIds ( ) ; return sb.toString ( ) ; }
Source:
public boolean isWebSocketProxyDefined ( ) ;

Target:
public boolean webBasedClientsSupported ( ) ;
Source:
public void testRemoveNotFound ( ) { setUpEntityQueryExpectations ( true ) ; try { resource.remove ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNotFound ( ) { setUpEntityQueryExpectations ( true ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public final void disconnect ( ) { clearBuff ( ) ; closeChannel ( ) ; }

Target:
public final void disconnect ( ) { postDisconnect ( ) ; closeChannel ( ) ; }
Source:
public static void openUrlInNewWindow ( final java.lang.String name , final java.lang.String url , final java.lang.String options ) { com.google.gwt.user.client.Window.open ( url , name.replace ( " " , "_" ) , options ) ; }

Target:
public static void openUrlInNewTab ( final java.lang.String url ) { com.google.gwt.user.client.Window.open ( url , "_blank" , "" ) ; }
Source:
public void testGetFilteredWithNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.get ( existingCluster.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.get ( existingCluster.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void reestablishConnection ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( vdsId ) ; RemoveVds ( vds.getId ( ) ) ; AddVds ( vds , false ) ; }

Target:
public void reestablishConnection ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = hostDao.get ( vdsId ) ; RemoveVds ( vds.getId ( ) ) ; AddVds ( vds , false ) ; }
Source:
public void testRemove ( ) { dao.remove ( FixturesTool.EXISTING_AFFINITY_GROUP_ID ) ; org.junit.Assert.assertNull ( dao.get ( FixturesTool.EXISTING_AFFINITY_GROUP_ID ) ) ; org.junit.Assert.assertEquals ( ( ( org.ovirt.engine.core.dao.AffinityGroupDaoTest.NUM_OF_AFFINITY_GROUPS_IN_CLUSTER ) - 1 ) , dao.getAllAffinityGroupsByClusterId ( FixturesTool.CLUSTER_RHEL6_ISCSI ) . size ( ) ) ; }

Target:
public void testRemove ( ) { dao.remove ( FixturesTool.EXISTING_AFFINITY_GROUP_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( dao.get ( FixturesTool.EXISTING_AFFINITY_GROUP_ID ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( ( ( org.ovirt.engine.core.dao.AffinityGroupDaoTest.NUM_OF_AFFINITY_GROUPS_IN_CLUSTER ) - 1 ) , dao.getAllAffinityGroupsByClusterId ( FixturesTool.CLUSTER_RHEL6_ISCSI ) . size ( ) ) ; }
Source:
public void getAllForVmForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.EXISTING_VM_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( interfaces.isEmpty ( ) ) ; }

Target:
public void getAllForVmForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_50 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( interfaces.isEmpty ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > filterDisks ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > diskList ) { return doFilter ( diskList , org.ovirt.engine.core.bll.storage.disk.GetFilteredAttachableDisksQuery.getParameters ( ) . getOs ( ) , org.ovirt.engine.core.bll.storage.disk.GetFilteredAttachableDisksQuery.getParameters ( ) . getVdsGroupCompatibilityVersion ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > filterDisks ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > diskList ) { return doFilter ( diskList , org.ovirt.engine.core.bll.storage.disk.GetFilteredAttachableDisksQuery.getParameters ( ) . getOs ( ) , org.ovirt.engine.core.bll.storage.disk.GetFilteredAttachableDisksQuery.getParameters ( ) . getClusterCompatibilityVersion ( ) ) ; }
Source:
org.ovirt.engine.core.dao.InterfaceDAO getInterfaceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getInterfaceDAO ( ) ; }

Target:
org.ovirt.engine.core.dao.VmNetworkInterfaceDAO getVmNetworkInterfaceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmNetworkInterfaceDao ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , parentDeviceName , capability , iommuGroup , productName , productId , vendorName , vendorId , parentPhysicalFunction , totalVirtualFunctions , networkInterfaceName , driver , assignable , vmId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , parentDeviceName , capability , iommuGroup , productName , productId , vendorName , vendorId , parentPhysicalFunction , totalVirtualFunctions , networkInterfaceName , driver , assignable , vmId , address ) ; }
Source:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringWithoutPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , "disk" , "disk" , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( "A user without any permissions should not see any devices" , devices.isEmpty ( ) ) ; }

Target:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringWithoutPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( "A user without any permissions should not see any devices" , devices.isEmpty ( ) ) ; }
Source:
public void validateFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.assertFailsWithValidateMessage ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }

Target:
public void validateFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getLunDAO ( ) ) ; existingLUN = dao.get ( "1IET_00180001" ) ; newLUN = new org.ovirt.engine.core.common.businessentities.LUNs ( ) ; newLUN.setLUN_id ( "oicu812" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getLunDao ( ) ) ; existingLUN = dao.get ( "1IET_00180001" ) ; newLUN = new org.ovirt.engine.core.common.businessentities.LUNs ( ) ; newLUN.setLUN_id ( "oicu812" ) ; }
Source:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.compat.Guid diskId : diskIds ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; } compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.compat.Guid diskId : diskIds ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( diskId , status ) ; } return null ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.Cluster > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterPermissionPresenter.constants.clusterPermissionSubTabLabel ( ) , 8 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.Cluster > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterPermissionPresenter.constants.clusterPermissionSubTabLabel ( ) , 9 , modelProvider ) ; }
Source:
org.ovirt.engine.ui.webadmin.widget.host.InterfacePanel createInterfacePanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.InterfacePanel panel = new org.ovirt.engine.ui.webadmin.widget.host.InterfacePanel ( ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; panel.addInterfaces ( lineModel.getInterfaces ( ) ) ; return panel ; }

Target:
org.ovirt.engine.ui.webadmin.widget.host.InterfacePanel createInterfacePanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.InterfacePanel panel = new org.ovirt.engine.ui.webadmin.widget.host.InterfacePanel ( isSelectionAvailable ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; panel.addInterfaces ( lineModel.getInterfaces ( ) ) ; return panel ; }
Source:
protected void removeMemoryVolumes ( java.util.Set < java.lang.String > memoryVolumes ) { for ( java.lang.String memoryVols : memoryVolumes ) { removeMemoryVolume ( memoryVols ) ; } }

Target:
protected boolean removeMemoryVolumes ( java.util.Set < java.lang.String > memoryVolumes ) { boolean allVolumesRemovedSucessfully = true ; for ( java.lang.String memoryVols : memoryVolumes ) { allVolumesRemovedSucessfully &= removeMemoryVolume ( memoryVols ) ; } return allVolumesRemovedSucessfully ; }