auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static boolean isInWhiteList ( java.lang.String type , java.lang.String device ) { java.lang.String expr = org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.getDeviceTypeSearchExpr ( type , device ) ; java.lang.String whiteList = org.ovirt.engine.core.common.config.Config.GetValue ( ConfigValues.ManagedDevicesWhiteList ) ; return ( whiteList.indexOf ( expr ) ) >= 0 ; }

Target:
public static boolean isInWhiteList ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType type , java.lang.String device ) { java.lang.String expr = org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.getDeviceTypeSearchExpr ( type , device ) ; java.lang.String whiteList = org.ovirt.engine.core.common.config.Config.GetValue ( ConfigValues.ManagedDevicesWhiteList ) ; return ( whiteList.indexOf ( expr ) ) >= 0 ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; button.getCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; beforeCommandExecuted ( button.getCommand ( ) ) ; button.getCommand ( ) . Execute ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; cnx.setid ( GUIDS [ index ] . toString ( ) ) ; cnx.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; cnx.setId ( GUIDS [ index ] . toString ( ) ) ; cnx.setConnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }

Target:
private org.ovirt.engine.api.model.Host getVdsByVdsId ( ) { return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
protected void initDetailModels ( ) { org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel ( ) ) ; setDetailModels ( list ) ; }

Target:
private void setDetailList ( final org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.ui.uicommonweb.models.macpool.SharedMacPoolListModel > permissionListModel ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( permissionListModel ) ; setDetailModels ( list ) ; }
Source:
protected void updateImage ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.bll.ImportVmCommand.getImageDao ( ) . update ( disk.getImage ( ) ) ; }

Target:
protected void updateImage ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.bll.ImportVmCommand.getImageDao ( ) . update ( disk.getImage ( ) ) ; }
Source:
protected void endSuccessfullySynchronous ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; this . updateSnapshotOvf ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfullySynchronous ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( vm ) ; this . updateSnapshotOvf ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }
Source:
public final void removeSession ( ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId != null ) { removeSession ( sessionId ) ; } }

Target:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }
Source:
public void updatesAvailable ( ) { org.mockito.Mockito.when ( host.isUpdateAvailable ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.updatesAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void updatesAvailable ( ) { host.getDynamicData ( ) . setUpdateAvailable ( true ) ; org.junit.Assert.assertThat ( validator.updatesAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean isVersionSupportedForShareable ( org.ovirt.engine.core.common.businessentities.storage.Disk disk , java.lang.String compVersion ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ShareableDiskEnabled , compVersion ) ; } return true ; }

Target:
protected boolean isVersionSupportedForShareable ( org.ovirt.engine.core.common.businessentities.storage.Disk disk , java.lang.String compVersion ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ShareableDiskEnabled , compVersion ) ; } return true ; }
Source:
public org.ovirt.engine.core.vdsbroker.VdsManager GetVdsManager ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManger = vdsManagersDict.get ( vdsId ) ; if ( vdsManger == null ) { if ( ! newHost ) { org.ovirt.engine.core.vdsbroker.ResourceManager.log.error ( "Cannot get vdsManager for vdsid='{}'." , vdsId ) ; } } return vdsManger ; }

Target:
public org.ovirt.engine.core.vdsbroker.VdsManager getVdsManager ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManger = vdsManagersDict.get ( vdsId ) ; if ( vdsManger == null ) { if ( ! newHost ) { org.ovirt.engine.core.vdsbroker.ResourceManager.log.error ( "Cannot get vdsManager for vdsid='{}'." , vdsId ) ; } } return vdsManger ; }
Source:
public boolean isStatusUp ( ) { return org.ovirt.engine.core.common.businessentities.VM.isStatusUp ( getstatus ( ) ) ; }

Target:
public void setImages ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > value ) { vmStatic.setImages ( value ) ; }
Source:
private static java.lang.String AddLeadingZero ( int k ) { return k <= 15 ? "0" + ( java.lang.Integer.toHexString ( k ) ) : java.lang.Integer.toHexString ( k ) ; }

Target:
private static java.lang.String addLeadingZero ( int k ) { return k <= 15 ? "0" + ( java.lang.Integer.toHexString ( k ) ) : java.lang.Integer.toHexString ( k ) ; }
Source:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { endRemoveTemplate ( ) ; }
Source:
public void testIsNotUp ( ) { mockHostForActivation ( VDSStatus.Down ) ; org.junit.Assert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_STATUS_ILLEGAL , "$hostStatus Up" ) ) ; }

Target:
public void testIsNotUp ( ) { mockHostForActivation ( VDSStatus.Down ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_STATUS_ILLEGAL , "$hostStatus Up" ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getBalloonDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }

Target:
public static boolean vmDeviceChanged ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceType , org.ovirt.engine.core.common.businessentities.VmDevice device ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceChanged ( vmId , deviceType , null , device ) ; }
Source:
public static void setUp ( ) throws java.lang.Exception { final org.reflections.Reflections reflections = new org.reflections.Reflections ( "org.ovirt.engine" ) ; org.ovirt.engine.core.dao.DaoCdiIntegrationTest.daos = java.util.Collections.unmodifiableSet ( reflections.getSubTypesOf ( org.ovirt.engine.core.dao.DAO.class ) ) ; }

Target:
public static void setUp ( ) throws java.lang.Exception { final org.reflections.Reflections reflections = new org.reflections.Reflections ( "org.ovirt.engine" ) ; org.ovirt.engine.core.dao.DaoCdiIntegrationTest.daoClasses = java.util.Collections.unmodifiableSet ( reflections.getSubTypesOf ( org.ovirt.engine.core.dao.DAO.class ) ) ; }
Source:
public void failZeroValuesToShow ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = ", " ; org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 0 ) ; }

Target:
public void separatorNotNull ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = null ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 5 ) ) ; }
Source:
public void init ( java.util.List items , final org.ovirt.engine.core.compat.Guid storageDomainId ) { setItems ( items , storageDomainId ) ; }

Target:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { startProgress ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVm , buildImportVmParameters ( ) , callback , this ) ; }
Source:
public void setLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser value ) { if ( ( loggedInUser ) != value ) { loggedInUser = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "LoggedInUser" ) ) ; } }

Target:
public void setLastEvent ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { if ( ( lastEvent ) != value ) { lastEvent = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LastEvent" ) ) ; } }
Source:
private boolean isManagementOriginally ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( ( clusterNetworkModel.getOriginalNetworkCluster ( ) ) != null ) && ( clusterNetworkModel.getOriginalNetworkCluster ( ) . isManagement ( ) ) ; }

Target:
protected boolean isUnsetRoleProhibited ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( isMultipleSelectionAllowed ( ) ) && ( isRoleSet ( clusterNetworkModel ) ) ; }
Source:
public abstract void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) ;

Target:
void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) ;
Source:
public void setPrincipal ( java.lang.String principal ) { setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }

Target:
public java.lang.String getPrincipal ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , false ) ) ) ; }
Source:
public void updateGlusterHookContent ( org.ovirt.engine.core.compat.Guid id , java.lang.String content ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHookContent" , createGlusterHookIdParams ( id ) . addValue ( "content" , content ) ) ; }

Target:
public void updateGlusterHookContent ( org.ovirt.engine.core.compat.Guid id , java.lang.String checksum , java.lang.String content ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHookContent" , createIdParameterMapper ( id ) . addValue ( "checksum" , checksum ) . addValue ( "content" , content ) ) ; }
Source:
public void testWrongPassword ( ) throws java.lang.Exception { client.setPassword ( ( ( TestCommon.password ) + "A" ) ) ; client.connect ( ) ; client.authenticate ( ) ; client.executeCommand ( org.ovirt.engine.core.uutils.ssh.BasicTest.hello_command , null , null , null ) ; }

Target:
public void testWrongPassword ( ) throws java.lang.Exception { client.setPassword ( ( ( TestCommon.password ) + "A" ) ) ; client.connect ( ) ; client.authenticate ( ) ; client.executeCommand ( org.ovirt.engine.core.uutils.ssh.BasicTest.helloCommand , null , null , null ) ; }
Source:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) ; }

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) ; }
Source:
protected void endSuccessfully ( ) { endCommandActions ( ) ; }

Target:
protected void endSuccessfully ( ) { endCommandActions ( ) ; incrementDbGenerationForRelatedEntities ( ) ; }
Source:
private boolean isQuotaValidationNeeded ( ) { return ( ( ( getOldDisk ( ) ) != null ) && ( ( getNewDisk ( ) ) != null ) ) && ( ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) == ( getOldDisk ( ) . getDiskStorageType ( ) ) ) ; }

Target:
private boolean isDiskImage ( ) { return ( ( ( getOldDisk ( ) ) != null ) && ( ( getNewDisk ( ) ) != null ) ) && ( ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) == ( getOldDisk ( ) . getDiskStorageType ( ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVmDynamicDao ( ) ; existingVm = dao.get ( new org.ovirt.engine.core.compat.Guid ( "77296e00-0cad-4e5a-9299-008a7b6f4355" ) ) ; existingVm.setstatus ( VMStatus.Up ) ; newVmDynamic = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVmDynamicDao ( ) ; existingVm = dao.get ( new org.ovirt.engine.core.compat.Guid ( "77296e00-0cad-4e5a-9299-008a7b6f4355" ) ) ; existingVm.setStatus ( VMStatus.Up ) ; newVmDynamic = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; }
Source:
public void testCanDoActionOvfDiskNotIllegal ( ) { ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( disk ) ) . setImageStatus ( ImageStatus.OK ) ; disk.setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_IN_APPLICABLE_STATUS ) ; }

Target:
public void testValidateOvfDiskNotIllegal ( ) { ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( disk ) ) . setImageStatus ( ImageStatus.OK ) ; disk.setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_IN_APPLICABLE_STATUS ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveNetwork , new org.ovirt.engine.core.common.action.RemoveNetworkParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }
Source:
public void setvmt_guid ( org.ovirt.engine.core.compat.Guid value ) { this . vmt_guid = value ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmtGuid ( ) { return this . vmtGuid ; }
Source:
public void configureElementId ( java.lang.String elementIdPrefix , java.lang.String columnId ) { getCell ( ) . setElementIdPrefix ( elementIdPrefix ) ; getCell ( ) . setColumnId ( columnId ) ; }

Target:
public void configureElementId ( java.lang.String elementIdPrefix , java.lang.String columnId ) { org.ovirt.engine.ui.common.widget.table.column.AbstractCheckboxColumn.getCell ( ) . setElementIdPrefix ( elementIdPrefix ) ; org.ovirt.engine.ui.common.widget.table.column.AbstractCheckboxColumn.getCell ( ) . setColumnId ( columnId ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getParameters ( ) . getContainerId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , getVmIsBeingImportedMessage ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.ImportValidator getImportValidator ( ) { if ( ( importValidator ) == null ) { importValidator = new org.ovirt.engine.core.bll.validator.ImportValidator ( getParameters ( ) ) ; } return importValidator ; }
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 ( ) . volumeParameterSubTabLabel ( ) , 2 , ginjector.getSubTabVolumeParameterModelProvider ( ) ) ; }

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.gluster.GlusterVolumeOptionEntity , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeParameterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.volumeParameterSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public boolean getIsResiliencePolicyTabAvailable ( ) { return getisResiliencePolicyTabAvailable ( ) ; }

Target:
public void setMigrationTabAvailable ( boolean value ) { if ( ( isMigrationTabAvailable ( ) ) != value ) { migrationTabAvailable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "isMigrationTabAvailable" ) ) ; } }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailesOnDownVolume ( ) { cmd.setGlusterVolumeId ( volumeId2 ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected boolean validateImageNotActive ( ) { return ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getDiskImageDao ( ) . get ( getRepresentativeSourceImageId ( ) ) ) == null ; }

Target:
protected boolean validateSnapshotType ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getParameters ( ) . getSnapshotId ( ) ) ; return validate ( createSnapshotValidator ( ) . snapshotTypeSupported ( snapshot , java.util.Collections.singletonList ( Snapshot.SnapshotType.REGULAR ) ) ) ; }
Source:
public void testRemoveAll ( ) { dao.removeAll ( ) ; final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = dao.getAll ( ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testRemoveAll ( ) { dao.removeAll ( ) ; final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml strongTextWithColor ( java.lang.String text , java.lang.String color ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml strongTextWithColor ( java.lang.String text , com.google.gwt.safecss.shared.SafeStyles color ) ;
Source:
protected void setUpGetEntityExpectations ( boolean filter ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVdsByVdsId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" , "Filtered" } , new java.lang.Object [ ] { GUIDS [ 0 ] , filter } , getEntity ( 0 ) ) ; }

Target:
protected void setUpGetEntityExpectations ( boolean filter ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetVdsByVdsId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" , "Filtered" } , new java.lang.Object [ ] { GUIDS [ 0 ] , filter } , getEntity ( 0 ) ) ; }
Source:
private void addPermission ( ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( new org.ovirt.engine.core.common.businessentities.Permission ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.DISK_PROFILE_USER.getId ( ) , getProfileId ( ) , org.ovirt.engine.core.common.VdcObjectType.DiskProfile ) ) ; }

Target:
protected void addPermissions ( ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( new org.ovirt.engine.core.common.businessentities.Permission ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.DISK_PROFILE_USER.getId ( ) , getProfileId ( ) , org.ovirt.engine.core.common.VdcObjectType.DiskProfile ) ) ; }
Source:
public void testDisableVerboseMode ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL0 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }

Target:
public void testAllEmpty ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_LOG_LEVEL , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }
Source:
private void setupGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getStorageDomain ( GUIDS [ 0 ] , type ) ) ; }

Target:
private void setupGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { setUpEntityQueryExpectations ( QueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getStorageDomain ( GUIDS [ 0 ] , type ) ) ; }
Source:
public void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.EndExternalStepParameters ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.stepId , true ) ; }

Target:
public void validateOkSucceeds ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.stepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity o1 , org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity o2 ) { return ( org.ovirt.engine.ui.frontend.utils.GlusterVolumeUtils.getVolumeStatus ( o1 ) . ordinal ( ) ) - ( org.ovirt.engine.ui.frontend.utils.GlusterVolumeUtils.getVolumeStatus ( o2 ) . ordinal ( ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getNewVolumeCommand ( ) ; }
Source:
public org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , java.math.BigDecimal datum ) { statistic.getValues ( ) . getValues ( ) . get ( 0 ) . setDatum ( datum ) ; return statistic ; }

Target:
public org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , java.math.BigDecimal datum ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.setDatum ( statistic , datum ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.commonModel = null ; loginModel.resetAfterLogout ( ) ; user.onUserLogout ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.commonModel = null ; loginModel.resetAfterLogout ( ) ; user.onUserLogout ( ) ; frontendFailureEventListener.hide ( ) ; }
Source:
protected abstract void onGetClusterList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusterList ) ;

Target:
protected abstract void executeSave ( ) ;
Source:
public static boolean IsUserAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , org.ovirt.engine.core.bll.Guid userId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForUsersWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }

Target:
public static boolean IsUserGroupAttachedToTag ( org.ovirt.engine.core.compat.Guid tagId , org.ovirt.engine.core.compat.Guid groupId ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForUsersWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }
Source:
public void vmNameNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVmName ( null ) ; final java.lang.String n = b.getVmName ( ) ; org.junit.Assert.assertNull ( n ) ; }

Target:
public void vmNameDefault ( ) { final java.lang.String n = b.getVmName ( ) ; org.junit.Assert.assertNull ( n ) ; }
Source:
public static boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.DisplayType > > getGraphicsAndDisplays ( int osId , org.ovirt.engine.core.compat.Version version ) { return graphicsAndDisplays.get ( osId ) . get ( version ) ; }
Source:
public org.ovirt.engine.core.bll.storage.IStorageHelper getItem ( org.ovirt.engine.core.common.businessentities.StorageType index ) { return _helpers.get ( index ) ; }

Target:
public org.ovirt.engine.core.bll.storage.IStorageHelper getItem ( org.ovirt.engine.core.common.businessentities.storage.StorageType index ) { return _helpers.get ( index ) ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackSubnetResource getOpenStackSubnet ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackSubnetResource ( providerId , networkId , id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.openstack.OpenstackSubnetResource getSubnetResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackSubnetResource ( providerId , networkId , id , this ) ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Network ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Network , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void diskSnapshotsExist ( ) { org.junit.Assert.assertEquals ( ValidationResult.VALID , validator.diskSnapshotsNotExist ( java.util.Arrays.asList ( disk1.getImageId ( ) , disk2.getImageId ( ) ) ) ) ; }

Target:
public void diskSnapshotsExist ( ) { org.junit.jupiter.api.Assertions.assertEquals ( ValidationResult.VALID , validator.diskSnapshotsNotExist ( java.util.Arrays.asList ( disk1.getImageId ( ) , disk2.getImageId ( ) ) ) ) ; }
Source:
private org.ovirt.engine.api.model.Version getCurrentVersion ( ) { if ( ( org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion ) == null ) { org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion = org.ovirt.engine.api.restapi.util.VersionHelper.parseVersion ( getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdcVersion , null ) ) ; } return org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion ; }

Target:
private org.ovirt.engine.api.model.Version getCurrentVersion ( ) { if ( ( org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion ) == null ) { org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion = org.ovirt.engine.api.restapi.util.VersionHelper.parseVersion ( getConfigurationValueDefault ( java.lang.String.class , ConfigurationValues.VdcVersion ) ) ; } return org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion ; }
Source:
public void checkMaskNetworkAddressValidation ( ) { runSetup ( TEST_MASK , true , false , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_VALUE.name ( ) ) ; runVerify ( TEST_MASK , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_VALUE.name ( ) ) ; }

Target:
public void checkMaskNetworkAddressValidation ( ) { runSetup ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , true , false , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_VALUE.name ( ) ) ; runVerify ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_VALUE.name ( ) ) ; }
Source:
public static java.lang.Class < org.ovirt.engine.core.bll.CommandBase < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > > getCommandClass ( java.lang.String name ) { return org.ovirt.engine.core.bll.CommandsFactory.getCommandClass ( name , org.ovirt.engine.core.bll.CommandsFactory.CommandSuffix ) ; }

Target:
public static java.lang.Class < org.ovirt.engine.core.bll.CommandBase < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > > getCommandClass ( java.lang.String name ) { return org.ovirt.engine.core.bll.CommandsFactory.getCommandClass ( name , org.ovirt.engine.core.bll.CommandsFactory.COMMAND_SUFFIX ) ; }
Source:
private void initIpConfigurationWithBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol ) { initIpConfigurationWithPrimaryAddress ( ) ; getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setBootProtocol ( networkBootProtocol ) ; }

Target:
private void initIpConfigurationWithBootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol ) { initIpConfigurationWithPrimaryAddress ( ) ; getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setBootProtocol ( ipv4BootProtocol ) ; }
Source:
public void failZeroValuesToShow ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = ", " ; org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 0 ) ; }

Target:
public void failZeroValuesToShow ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = ", " ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 0 ) ) ; }
Source:
public void setport ( int value ) { this . mVdsStatic.setport ( value ) ; }

Target:
public java.lang.String getManagementIp ( ) { return this . mVdsStatic.getManagementIp ( ) ; }
Source:
public org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic device ) { validateEnums ( org.ovirt.engine.api.model.Nic.class , device ) ; return super . update ( device ) ; }

Target:
public org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic nic ) { validateEnums ( org.ovirt.engine.api.model.Nic.class , nic ) ; return performUpdate ( nic , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.NicResolver ( ) , VdcActionType.UpdateVmInterface , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.UpdateParametersProvider ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface ) { return networkName.equals ( vdsNetworkInterface.getNetworkName ( ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface ) { return networkName.equals ( vdsNetworkInterface.getNetworkName ( ) ) ; }
Source:
public void setEntity ( java.lang.Boolean enableManualMac ) { super . setEntity ( enableManualMac ) ; getMAC ( ) . setIsChangable ( enableManualMac ) ; }

Target:
public void setEntity ( java.lang.Boolean enableManualMac ) { super . setEntity ( enableManualMac ) ; getMAC ( ) . setIsChangeable ( enableManualMac ) ; }
Source:
public void setusage_network_percent ( java.lang.Integer value ) { this . mVmStatistics.setusage_network_percent ( value ) ; }

Target:
public java.lang.Double getRoundedElapsedTime ( ) { return this . vmStatistics.getRoundedElapsedTime ( ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand.getBroker ( ) . clearTask ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand.getBroker ( ) . clearTask ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; proceedProxyReturnValue ( ) ; }
Source:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { org.ovirt.engine.core.bll.AddVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.CreateEntity.class ) ; return super . getValidationGroups ( ) ; }

Target:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { org.ovirt.engine.core.bll.AddVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.CreateVm.class ) ; return super . getValidationGroups ( ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( _vds.getvds_group_id ( ) ) ; _parser.cliEnvironmentSet ( GlusterEnv.ENABLE , vdsGroup.supportsGlusterService ( ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( _vds.getVdsGroupId ( ) ) ; _parser.cliEnvironmentSet ( VdsmEnv.CHECK_VIRT_HARDWARE , vdsGroup.supportsVirtService ( ) ) ; return null ; }
Source:
protected java.lang.String getText ( org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping model ) { return model.getExternalNetworkName ( ) ; }

Target:
protected java.lang.String getText ( org.ovirt.engine.ui.uicommonweb.models.vms.register.VnicProfileMappingEntity model ) { return model.getExternalNetworkName ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = getDbFacade ( ) . getNetworkDao ( ) . get ( vnicProfile.getNetworkId ( ) ) ; } return network ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.NetworkDao.class ) . get ( vnicProfile.getNetworkId ( ) ) ; } return network ; }
Source:
public void setVolumeType ( java.lang.String volumeType ) { this . volumeType = volumeType ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "VolumeType" ) ) ; }

Target:
public void setVolumeType ( java.lang.String volumeType ) { this . volumeType = volumeType ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VolumeType" ) ) ; }
Source:
public void setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) super . setIsChangable ( value ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) super . setIsChangable ( value ) ; return this ; }
Source:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model : getNetworksTableItems ( ) ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; if ( clusterNetworkManageModel.getIsChangable ( ) ) { return true ; } } return false ; }

Target:
private boolean canEditAssign ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ! ( clusterNetworkModel.isManagement ( ) ) ; }
Source:
void setTestResultImage ( boolean succeeded ) ;

Target:
void setTestResultImage ( java.lang.String errorMessage ) ;
Source:
protected void updateVmDisks ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) , false , false , true ) ; mImages.addAll ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getVmDisksFromDB ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; return org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ; }
Source:
public void setStorageType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getStorageStaticData ( ) . setStorageType ( storageType ) ; }

Target:
public void setStorageType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { getStorageStaticData ( ) . setStorageType ( storageType ) ; }
Source:
public void onBootstrap ( ) { super . onBootstrap ( ) ; 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 ( ) ) ; placeManager.revealCurrentPlace ( ) ; }
Source:
public org.ovirt.engine.api.model.Templates list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllVmTemplates , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VmTemplate ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmTemplate ) ) ; } }

Target:
public org.ovirt.engine.api.model.Templates list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllVmTemplates , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) , SearchType.VmTemplate ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmTemplate ) ) ; } }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Host host ) { return adaptAdd ( delegate :: add , host ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Host host ) { return adaptAdd ( getDelegate ( ) :: add , host ) ; }
Source:
private void initRadioButtonEditors ( ) { globalClusterQuotaRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "1" ) ; specificClusterQuotaRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "1" ) ; globalStorageQuotaRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "2" ) ; specificStorageQuotaRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "2" ) ; }

Target:
private void initRadioButtonEditors ( ) { globalClusterQuotaRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "1" ) ; specificClusterQuotaRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "1" ) ; globalStorageQuotaRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "2" ) ; specificStorageQuotaRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "2" ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret libvirtSecret = map ( get ( ) , null ) ; org.ovirt.engine.core.common.action.LibvirtSecretParameters parameters = new org.ovirt.engine.core.common.action.LibvirtSecretParameters ( libvirtSecret ) ; return performAction ( VdcActionType.RemoveLibvirtSecret , parameters ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret libvirtSecret = map ( get ( ) , null ) ; org.ovirt.engine.core.common.action.LibvirtSecretParameters parameters = new org.ovirt.engine.core.common.action.LibvirtSecretParameters ( libvirtSecret ) ; return performAction ( ActionType.RemoveLibvirtSecret , parameters ) ; }
Source:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , false ) ; assertPostZeroValue ( parameters , true ) ; }

Target:
public void parametersWithSecureDeletionAreFixedOnFileDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , true ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
public void processOnVmStop ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.VmPoolHandler.ProcessVmPoolOnStopVm ( vmId , null ) ; }

Target:
public void processOnVmStop ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( vmId , null ) ; }
Source:
private void discover ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel discoverModel = new org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel ( this , getEntity ( ) ) ; setWindow ( discoverModel ) ; discoverModel.initBackendData ( ) ; }

Target:
private void discover ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel discoverModel = new org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel ( this , getEntity ( ) ) ; setWindow ( discoverModel ) ; discoverModel.discoverNetworks ( ) ; }
Source:
public void numOfVfsValidLessThanMax ( ) { numOfVfsInRangeTest ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS , ( ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS ) + 1 ) ) ; org.junit.Assert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void numOfVfsValidEqualsMax ( ) { numOfVfsInRangeTest ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS , org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS ) ; org.hamcrest.MatcherAssert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . hide ( ) ; }

Target:
protected void onBind ( ) { super . onBind ( ) ; roleModelProvider.getModel ( ) . Search ( ) ; systemPermissionModelProvider.getModel ( ) . Search ( ) ; }