auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void mockVdsCommand ( ) { vdsBrokerFrontendMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend.class ) ; org.mockito.Mockito.doReturn ( vdsBrokerFrontendMock ) . when ( getQuery ( ) ) . getVdsBroker ( ) ; }

Target:
private void mockVdsDao ( org.ovirt.engine.core.common.businessentities.VDSStatus vdsStatus , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > listVds ) { org.mockito.Mockito.when ( vdsDaoMock.getAllForStoragePoolAndStatus ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.Matchers.eq ( vdsStatus ) ) ) . thenReturn ( listVds ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { if ( object != null ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . gethost_name ( ) ; } else { return "" ; } }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { if ( object != null ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getHostName ( ) ; } else { return "" ; } }
Source:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase getCommandReturnValue ( org.ovirt.engine.core.compat.Guid cmdId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEnity = org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.getCommandEntity ( cmdId ) ; return cmdEnity == null ? null : cmdEnity.getReturnValue ( ) ; }

Target:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase getCommandReturnValue ( org.ovirt.engine.core.compat.Guid cmdId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEnity = org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.getCommandEntity ( cmdId ) ; return cmdEnity == null ? null : cmdEnity.getReturnValue ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllNics ( ) { return allNics ; }

Target:
public void postOnSetupNetworks ( ) { org.ovirt.engine.ui.uicommonweb.action.UiAction setupNetworksAction = createSetupNetworksAction ( ) ; setupNetworksAction.then ( getVfsConfigAction ( ) ) . then ( getCommitNetworkChangesAction ( ) ) . onAllExecutionsFinish ( getCloseAction ( ) ) ; setupNetworksAction.runAction ( ) ; }
Source:
public void addColumnAndSetWidth ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) { addColumn ( column , headerHtml ) ; setColumnWidth ( column , width ) ; }

Target:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) { com.google.gwt.user.cellview.client.Header < ? > header = new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( headerHtml ) ; addColumn ( column , header ) ; }
Source:
void handleRefreshButtonClick ( com.google.gwt.event.dom.client.ClickEvent event ) { runOnceModel.updateIsoList ( true ) ; }

Target:
void handleIsoImagesRefreshButtonClick ( com.google.gwt.event.dom.client.ClickEvent event ) { runOnceModel.updateIsoList ( true ) ; }
Source:
public java.util.List < org.ovirt.api.metamodel.concepts.Parameter > getParameters ( ) { return parameters ; }

Target:
public java.util.List < org.ovirt.api.metamodel.concepts.Parameter > getParameters ( ) { return new java.util.concurrent.CopyOnWriteArrayList ( parameters ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeChildCopyingCommand ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase result = runInternalAction ( getChildActionType ( ) , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getExecutionContext ( ) ) ) ; return result ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeChildCopyingCommand ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runInternalActionWithTasksContext ( getChildActionType ( ) , parameters ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeEmptyCheck ( java.lang.String volumeName ) ;
Source:
public void storageDomainIdWithStorageDomain ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; s.setId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStorageDomain ( s ) ; final org.ovirt.engine.core.compat.Guid g = b.getStorageDomainId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }

Target:
public void storageDomainIdWithStorageDomain ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; s.setId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStorageDomain ( s ) ; final org.ovirt.engine.core.compat.Guid g = b.getStorageDomainId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }
Source:
public void setlast_vds_run_on ( org.ovirt.engine.core.compat.NGuid value ) { this . mVmDynamic.setlast_vds_run_on ( value ) ; }

Target:
public void setLastVdsRunOn ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setlast_vds_run_on ( value ) ; }
Source:
public void testGetWithPm ( ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE_PM_PROFILE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VM_NETWORK_INTERFACE_PM_PROFILE , result.getId ( ) ) ; org.junit.Assert.assertEquals ( true , result.isPortMirroring ( ) ) ; }

Target:
public void testGetWithPm ( ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE_PM_PROFILE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VM_NETWORK_INTERFACE_PM_PROFILE , result.getId ( ) ) ; org.junit.Assert.assertTrue ( result.isPortMirroring ( ) ) ; }
Source:
public void swapButton ( com.google.gwt.user.client.ui.PushButton newButton ) { remove ( button ) ; append ( newButton ) ; button = newButton ; }

Target:
public void swapButton ( com.google.gwt.user.client.ui.PushButton newButton ) { remove ( button ) ; remove ( div ) ; append ( newButton ) ; add ( div ) ; button = newButton ; }
Source:
public void setstorage_pool_name ( java.lang.String value ) { storagePoolName = value ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { return vmId ; }
Source:
public static void saveAsyncTaskToDb ( org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.saveAsyncTaskToDb ( asyncTask ) ; }

Target:
public static void saveAsyncTaskToDb ( org.ovirt.engine.core.common.businessentities.AsyncTask asyncTask ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.saveAsyncTaskToDb ( asyncTask ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; changeIsAttached ( clusterNetworkManageModel , value ) ; refreshNetworksTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel , java.lang.Boolean value ) { networks.asEditor ( ) . flush ( ) . setDisplayNetwork ( clusterNetworkModel , value ) ; refreshNetworksTable ( ) ; }
Source:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; junit.framework.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.VM_CANNOT_UPDATE_CLUSTER ) ; }
Source:
public void getOsMaxRam ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.GetMaxOsRam , osId , version ) , asyncQuery ) ; }

Target:
public void getNumberOfVmsInCluster ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNumberOfVmsInClusterByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , aQuery ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , parentDeviceName , capability , iommuGroup , productName , productId , vendorName , vendorId , parentPhysicalFunction , totalVirtualFunctions , networkInterfaceName , vmId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , parentDeviceName , capability , iommuGroup , productName , productId , vendorName , vendorId , parentPhysicalFunction , totalVirtualFunctions , networkInterfaceName , driver , assignable , vmId ) ; }
Source:
public void ExpandAll ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel a : getEventGroupModels ( ) ) { a.setIsExpanded ( true ) ; } }

Target:
public void expandAll ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel a : getEventGroupModels ( ) ) { a.setIsExpanded ( true ) ; } }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.VmTemplate source ) { return source.getId ( ) . equals ( id ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.VmTemplate source ) { return source.getId ( ) . equals ( id ) ; }
Source:
public org.ovirt.engine.core.bll.job.ExecutionContext getExecutionContext ( ) { return super . getExecutionContext ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }
Source:
protected abstract void updateInterface ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) ;

Target:
public void updateInterface ( org.ovirt.engine.core.compat.Version clusterVersion ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskInterfaceList ( clusterVersion ) ) ; }
Source:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.EntityModel object , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { super . render ( context , object , sb ) ; sb.append ( templates.textForCheckBox ( constants.assign ( ) ) ) ; }

Target:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel object , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { super . render ( context , object , sb ) ; sb.append ( templates.textForCheckBox ( constants.assign ( ) ) ) ; }
Source:
public void onHeaderOffsetChange ( org.ovirt.engine.ui.common.system.HeaderOffsetChangeEvent event ) { getView ( ) . setOffset ( event.getWidth ( ) , wantsOffset ) ; if ( ( resizeHandlerRegistration ) != null ) { resizeHandlerRegistration.removeHandler ( ) ; resizeHandlerRegistration = null ; } }

Target:
public void onSetDynamicTabAccessible ( org.ovirt.engine.ui.common.presenter.SetDynamicTabAccessibleEvent event ) { onTabAccessibleChanged ( ) ; }
Source:
public java.lang.String getDataCenterName ( ) { return org.ovirt.engine.core.bll.network.vm.VnicProfileCommandBase.getStoragePoolDao ( ) . get ( getNetwork ( ) . getDataCenterId ( ) ) . getName ( ) ; }

Target:
public java.lang.String getDataCenterName ( ) { return dcDao.get ( getNetwork ( ) . getDataCenterId ( ) ) . getName ( ) ; }
Source:
public java.lang.String getDefaultTitle ( ) { return org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.lunDisksLabel ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.lunDisksLabel ( ) ) ; } return null ; }
Source:
public void setLibvirtVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( libvirtVersion , value ) ) { libvirtVersion = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LibvirtVersion" ) ) ; } }

Target:
public void setLibvirtVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( libvirtVersion , value ) ) { libvirtVersion = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LibvirtVersion" ) ) ; } }
Source:
protected org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return new org.ovirt.engine.core.bll.validator.RunVmValidator ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) , org.ovirt.engine.core.bll.RunVmCommand.isInternalExecution ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return new org.ovirt.engine.core.bll.validator.RunVmValidator ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) , org.ovirt.engine.core.bll.RunVmCommand.isInternalExecution ( ) , getActiveIsoDomainId ( ) ) ; }
Source:
public static boolean validHostname ( java.lang.String s ) { if ( ( s == null ) || ( s.trim ( ) . isEmpty ( ) ) ) { return false ; } try { java.net.URI host = new java.net.URI ( ( "http://" + s ) ) ; return s.equals ( host.getHost ( ) ) ; } catch ( java.net.URISyntaxException use ) { return false ; } }

Target:
public static boolean validHostname ( java.lang.String address ) { if ( ( address == null ) || ( address.trim ( ) . isEmpty ( ) ) ) { return false ; } return ( org.ovirt.engine.core.common.utils.ValidationUtils.isValidIpAddressOrHostname ( address ) ) || ( org.ovirt.engine.core.common.utils.ValidationUtils.isValidIpv6Address ( address ) ) ; }
Source:
private double getRequestDiskSpace ( ) { if ( ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getDiskInfo ( ) . getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) { return getDiskImageInfo ( ) . getSizeInGigabytes ( ) ; } return 0 ; }

Target:
private double getRequestDiskSpace ( ) { if ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getDiskInfo ( ) . getDiskStorageType ( ) . isInternal ( ) ) { return getDiskImageInfo ( ) . getSizeInGigabytes ( ) ; } return 0 ; }
Source:
public void setUp ( ) { super . setUp ( ) ; initFilter ( ) ; initStorageDomainValidator ( ) ; }

Target:
public void setUp ( ) { storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; memoryDisks = new java.util.LinkedList < > ( ) ; initFilter ( ) ; initStorageDomainValidator ( ) ; }
Source:
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.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.quotaTemplateSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.quota.SubTabQuotaTemplatePresenter.constants.quotaTemplateSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
private void IsGrouppedByTargetChanged ( ) { InitializeItems ( null , null ) ; }

Target:
private void isGrouppedByTargetChanged ( ) { initializeItems ( null , null ) ; }
Source:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { networkClusterModel.setRequired ( value ) ; } refreshClustersTable ( ) ; }

Target:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { if ( networkClusterModel.getIsChangable ( ) ) { networkClusterModel.setAttached ( value ) ; } } refreshClustersTable ( ) ; }
Source:
public void getAllExistingVariables ( ) { for ( org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable var : org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable.values ( ) ) { if ( var != ( org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable.UNDEFINED ) ) { org.junit.Assert.assertNotNull ( dao.get ( var ) ) ; } } }

Target:
public void getAllExistingVariables ( ) { for ( org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable var : org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable.values ( ) ) { if ( var != ( org.ovirt.engine.core.common.businessentities.DwhHistoryTimekeepingVariable.UNDEFINED ) ) { org.junit.jupiter.api.Assertions.assertNotNull ( dao.get ( var ) ) ; } } }
Source:
public boolean isRepresentedAsAttribute ( org.ovirt.api.metamodel.concepts.Name name ) { return ( org.ovirt.api.metamodel.tool.SchemaNames.ID.equals ( name ) ) || ( org.ovirt.api.metamodel.tool.SchemaNames.HREF.equals ( name ) ) ; }

Target:
public boolean isRepresentedAsAttribute ( org.ovirt.api.metamodel.concepts.Name name ) { return ( ( org.ovirt.api.metamodel.tool.SchemaNames.HREF.equals ( name ) ) || ( org.ovirt.api.metamodel.tool.SchemaNames.ID.equals ( name ) ) ) || ( org.ovirt.api.metamodel.tool.SchemaNames.REL.equals ( name ) ) ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendNetworkResource ( "foo" , null ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendNetworkResource ( "foo" , null ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testExceptionForCommandWithNoTasks ( ) { org.ovirt.engine.core.common.action.PermissionsOperationsParametes params = new org.ovirt.engine.core.common.action.PermissionsOperationsParametes ( ) ; org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > cmd = new org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > ( params ) ; cmd.concreteCreateTask ( org.ovirt.engine.core.bll.BackwardCompatibilityTaskCreationTest.nextAsyncTaskCreationInfo ( ) , VdcActionType.Unknown ) ; }

Target:
public void testExceptionForCommandWithNoTasks ( ) { org.ovirt.engine.core.common.action.PermissionsOperationsParametes params = new org.ovirt.engine.core.common.action.PermissionsOperationsParametes ( ) ; org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > ( params ) ) ; cmd.concreteCreateTask ( org.ovirt.engine.core.bll.BackwardCompatibilityTaskCreationTest.nextAsyncTaskCreationInfo ( ) , VdcActionType.Unknown ) ; }
Source:
private void updateVlanTagChangeability ( ) { getVLanTag ( ) . setIsChangable ( getHasVLanTag ( ) . getEntity ( ) ) ; }

Target:
private void updateVlanTagChangeability ( ) { getVLanTag ( ) . setIsChangeable ( getHasVLanTag ( ) . getEntity ( ) ) ; }
Source:
private void canDoActionFailedWithReason ( final org.ovirt.engine.core.common.errors.EngineMessage message ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( message.toString ( ) ) ) ; }

Target:
private void validateFailedWithReason ( final org.ovirt.engine.core.common.errors.EngineMessage message ) { org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( message.toString ( ) ) ) ; }
Source:
public void canDoActionFailesOnVolumeWithRebalanceTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeWithRebalanceTaskCompleted ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailesOnVolumeWithRebalanceTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeWithRebalanceTaskCompleted ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map entity = new org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map ( ) ; entity.setLunId ( rs.getString ( "lun_id" ) ) ; entity.setstorage_server_connection ( rs.getString ( "storage_server_connection" ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.LUN_storage_server_connection_map mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.LUN_storage_server_connection_map entity = new org.ovirt.engine.core.common.businessentities.storage.LUN_storage_server_connection_map ( ) ; entity.setLunId ( rs.getString ( "lun_id" ) ) ; entity.setstorage_server_connection ( rs.getString ( "storage_server_connection" ) ) ; return entity ; }
Source:
public void setDefaultConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel defaultConsoleModel ) { this . defaultConsoleModel = defaultConsoleModel ; }

Target:
public void setSelectedHasConsoleModels ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel > selectedHasConsoleModels ) { this . selectedHasConsoleModels = selectedHasConsoleModels ; }
Source:
private java.lang.String formatUsLocaleGMTZone ( final java.util.Calendar calendar ) { java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( org.ovirt.engine.ui.frontend.server.caching.CachingFilter.HTTP_DATE_FORMAT , java.util.Locale.US ) ; dateFormat.setTimeZone ( java.util.TimeZone.getTimeZone ( org.ovirt.engine.ui.frontend.server.caching.CachingFilter.GMT ) ) ; return dateFormat.format ( calendar.getTime ( ) ) ; }

Target:
private java.lang.String formatUsLocaleGMTZone ( final java.util.Calendar calendar ) { java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( org.ovirt.engine.core.utils.servlet.CachingFilter.HTTP_DATE_FORMAT , java.util.Locale.US ) ; dateFormat.setTimeZone ( java.util.TimeZone.getTimeZone ( org.ovirt.engine.core.utils.servlet.CachingFilter.GMT ) ) ; return dateFormat.format ( calendar.getTime ( ) ) ; }
Source:
public void testSubResourceLocatorBadGuid ( ) { try { resource.getApplicationResource ( "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) { try { resource.getApplicationResource ( "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( getConfirmWindow ( ) ) ) ; localModel.stopProgress ( ) ; setConfirmWindow ( null ) ; showRebalanceStatus ( ) ; }
Source:
public void setClickHandler ( com.google.gwt.event.dom.client.ClickHandler clickHandler ) { allButton.addClickHandler ( clickHandler ) ; imagesButton.addClickHandler ( clickHandler ) ; lunsButton.addClickHandler ( clickHandler ) ; }

Target:
public void setClickHandler ( com.google.gwt.event.dom.client.ClickHandler clickHandler ) { allButton.addClickHandler ( clickHandler ) ; imagesButton.addClickHandler ( clickHandler ) ; lunsButton.addClickHandler ( clickHandler ) ; cinderButton.addClickHandler ( clickHandler ) ; }
Source:
public void setSearchString ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchString , value ) ) ) { searchString = value ; searchStringChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }

Target:
public void setSearchString ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchString , value ) ) ) { searchString = value ; pagingSearchString = null ; searchStringChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }
Source:
public static org.ovirt.engine.core.common.businessentities.DbUser sync ( org.ovirt.engine.core.common.businessentities.DbUser dbUser ) { java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > synchedUsers = org.ovirt.engine.core.bll.aaa.SyncUsers.sync ( java.util.Arrays.asList ( dbUser ) ) ; return synchedUsers.isEmpty ( ) ? null : synchedUsers.get ( 0 ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.aaa.DbUser sync ( org.ovirt.engine.core.common.businessentities.aaa.DbUser dbUser ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > synchedUsers = org.ovirt.engine.core.bll.aaa.SyncUsers.sync ( java.util.Arrays.asList ( dbUser ) ) ; return synchedUsers.isEmpty ( ) ? null : synchedUsers.get ( 0 ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( result.size ( ) , org.ovirt.engine.core.dao.ClusterPolicyDaoTest.NUMBER_OF_CLUSTER_POLICIES ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > result = dao.getAll ( java.util.Collections.emptyMap ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( result.size ( ) , org.ovirt.engine.core.dao.ClusterPolicyDaoTest.NUMBER_OF_CLUSTER_POLICIES ) ; }
Source:
public void nullTest ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( null ) ; org.junit.Assert.assertEquals ( failureValidationResultEmptyNotAllowed , validationResult ) ; }

Target:
public void nullTest ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( null ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }
Source:
public void addISCSIEmptyIqn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_IQN ) ; }

Target:
public void addISCSIEmptyIqn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "" , "3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_IQN ) ; }
Source:
protected java.lang.String getProgressText ( T object ) { java.lang.Integer progressValue = org.ovirt.engine.ui.webadmin.widget.table.column.PercentColumn.getProgressValue ( object ) ; return progressValue != null ? progressValue + "%" : "0%" ; }

Target:
protected java.lang.String getProgressText ( T object ) { java.lang.Integer progressValue = org.ovirt.engine.ui.webadmin.widget.table.column.AbstractPercentColumn.getProgressValue ( object ) ; return progressValue != null ? progressValue + "%" : "0%" ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = createDiskImage ( ) ; disk.setvolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; disk.setDiskInterface ( DiskInterface.VirtIO ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = createDiskImage ( ) ; disk.setvolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; disk.setDiskInterface ( DiskInterface.VirtIO ) ; return disk ; }
Source:
public void setoption_id ( int value ) { this . id = value ; }

Target:
public void setOptionId ( int value ) { this . id = value ; }
Source:
public org.ovirt.engine.core.common.errors.VdcBllErrors getErrorCode ( ) { return getVdsError ( ) . getCode ( ) ; }

Target:
public org.ovirt.engine.core.common.errors.EngineError getErrorCode ( ) { return getVdsError ( ) . getCode ( ) ; }
Source:
private void initTabAvailabilityListeners ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vm ) { boolean isDesktop = vm.getVmType ( ) . equals ( VmType.Desktop ) ; highAvailabilityTab.setVisible ( ( ! isDesktop ) ) ; isStatelessEditor.setVisible ( isDesktop ) ; numOfMonitorsEditor.setVisible ( isDesktop ) ; }

Target:
private void initTabAvailabilityListeners ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vm ) { boolean isDesktop = vm.getVmType ( ) . equals ( VmType.Desktop ) ; changeApplicationLevelVisibility ( highAvailabilityTab , ( ! isDesktop ) ) ; changeApplicationLevelVisibility ( isStatelessEditor , isDesktop ) ; changeApplicationLevelVisibility ( numOfMonitorsEditor , isDesktop ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForDiskProfile ( org.ovirt.engine.core.compat.Guid diskProfileId ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForDiskProfiles ( java.util.Collection < org.ovirt.engine.core.compat.Guid > diskProfileIds ) ;
Source:
public void testGetAllForVdsGroupWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getvds_group_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForVdsGroupCorrectResult ( result ) ; }

Target:
public void testGetAllForVdsGroupWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getVdsGroupId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForVdsGroupCorrectResult ( result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getCallsHandler ( ) . executeRead ( "Getstorage_domain_by_type_and_storagePoolId" , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , pool ) . addValue ( "storage_domain_type" , type.getValue ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getCallsHandler ( ) . executeRead ( "Getstorage_domain_by_type_and_storagePoolId" , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , poolId ) . addValue ( "storage_domain_type" , type.getValue ( ) ) ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { _messages.post ( InstallerMessages.Severity.INFO , java.lang.String.format ( "Logs at host located at: '%1$s'" , _parser.cliEnvironmentGet ( CoreEnv.LOG_FILE_NAME ) ) ) ; return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { userVisibleLog ( java.util.logging.Level.INFO , java.lang.String.format ( "Logs at host located at: '%1$s'" , _parser.cliEnvironmentGet ( CoreEnv.LOG_FILE_NAME ) ) ) ; return true ; }
Source:
public int compareTo ( ovirt_engine_dwh.aggregationtodaily_3_4.AggregationToDaily.row11Struct other ) { int returnValue = - 1 ; return returnValue ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.aggregationtodaily_3_4.AggregationToDaily.row11Struct other ) { other.var_name = this . var_name ; other.var_datetime = this . var_datetime ; }
Source:
public void testNested ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromJson ( "{'cpu':{'mode':'mymode'}}" ) ; org.junit.Assert.assertNotNull ( object.getCpu ( ) ) ; org.junit.Assert.assertEquals ( "mymode" , object.getCpu ( ) . getMode ( ) ) ; }

Target:
public void testNested ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromJson ( "{'cpu':{'mode':'mymode'}}" ) ; org.junit.Assert.assertNotNull ( object.cpu ( ) ) ; org.junit.Assert.assertEquals ( "mymode" , object.cpu ( ) . mode ( ) ) ; }
Source:
public void testGetAllForUserIdsWithInvalidIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsersWithIds ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . getUuid ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsersWithIds ( "d3ec3e01-ca89-48e1-8b43-a9b38f873b0c" ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
protected boolean CanAddDomain ( ) { return org.ovirt.engine.core.bll.storage.AddExistingSANStorageDomainCommand.CheckExistingStorageDomain ( ) ; }

Target:
protected boolean CanAddDomain ( ) { if ( ( org.ovirt.engine.core.bll.storage.AddExistingSANStorageDomainCommand.getStorageDomain ( ) . getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ImportExport ) ) { addCanDoActionMessage ( VdcBllMessages.ERROR_CANNOT_ADD_EXISTING_STORAGE_DOMAIN_CONNECTION_DATA_ILLEGAL ) ; return false ; } return org.ovirt.engine.core.bll.storage.AddExistingSANStorageDomainCommand.CheckExistingStorageDomain ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return createNetworkValidator ( ) . notRemovingManagementNetwork ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return getNetworkValidator ( ) . notRemovingManagementNetwork ( ) ; }
Source:
private static boolean isValidIpv6Address ( java.lang.String address ) { final java.lang.String quotedIpv6 = java.lang.String.format ( "[%s]" , address ) ; return org.ovirt.engine.core.common.utils.ValidationUtils.isValidIpAddressOrHostname ( quotedIpv6 ) ; }

Target:
private static boolean isValidIpv6Address ( java.lang.String address ) { final java.lang.String quotedIpv6 = ( "[" + address ) + "]" ; return org.ovirt.engine.core.common.utils.ValidationUtils.isValidIpAddressOrHostname ( quotedIpv6 ) ; }
Source:
protected boolean canPerformHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isOsSupportingHotPlug ( ) ) ; }

Target:
protected boolean canPerformNicHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isNicSupportedForPlugUnPlug ( ) ) ; }
Source:
public void onClose ( org.gwtbootstrap3.client.shared.event.AlertCloseEvent evt ) { timer.cancel ( ) ; }

Target:
public void onClose ( org.gwtbootstrap3.client.shared.event.AlertCloseEvent evt ) { timer.cancel ( ) ; alert = null ; }
Source:
public void init ( ) { }

Target:
public void init ( ) { context.put ( ExtensionProperties.AUTHOR , "The oVirt Project" ) ; context.put ( ExtensionProperties.EXTENSION_NAME , "Internal Authentication (Built-in)" ) ; context.put ( ExtensionProperties.LICENSE , "ASL 2.0" ) ; context.put ( ExtensionProperties.HOME , "http://www.ovirt.org" ) ; context.put ( ExtensionProperties.VERSION , "N/A" ) ; }
Source:
public static org.ovirt.engine.api.model.TemplateStatus map ( org.ovirt.engine.core.common.businessentities.VmTemplateStatus entityStatus , org.ovirt.engine.api.model.TemplateStatus incoming ) { switch ( entityStatus ) { case OK : return org.ovirt.engine.api.model.TemplateStatus.OK ; case Locked : return org.ovirt.engine.api.model.TemplateStatus.LOCKED ; case Illegal : return org.ovirt.engine.api.model.TemplateStatus.ILLEGAL ; default : return null ; } }

Target:
private static org.ovirt.engine.api.model.TemplateStatus mapTemplateStatus ( org.ovirt.engine.core.common.businessentities.VmTemplateStatus status ) { switch ( status ) { case OK : return org.ovirt.engine.api.model.TemplateStatus.OK ; case Locked : return org.ovirt.engine.api.model.TemplateStatus.LOCKED ; case Illegal : return org.ovirt.engine.api.model.TemplateStatus.ILLEGAL ; default : return null ; } }
Source:
public java.lang.String getDocumentationLibURL ( ) { return ( getDocumentationBaseURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCUMENTATION_LIB_PATH ) ; }

Target:
public java.lang.String getDocumentationLibURL ( ) { return ( ( getDocumentationBaseURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCUMENTATION_LIB_PATH ) ; }
Source:
public void testExistingUsbControllerModelWithVersion ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel6" ) , Version.v4_0 ) ; org.junit.Assert.assertEquals ( UsbControllerModel.NONE , model ) ; }

Target:
public void testExistingUsbControllerModelWithNonExistingVersion ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel6" ) , Version.v4_1 , ChipsetType.I440FX ) ; org.junit.Assert.assertEquals ( UsbControllerModel.NEC_XHCI , model ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = super . hashCode ( ) ; result = ( prime * result ) + ( java.util.Objects.hashCode ( commandId ) ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , commandId ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return object.isBoot ( ) ? getDefaultImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { boolean isBoot = object.getDiskVmElements ( ) . iterator ( ) . next ( ) . isBoot ( ) ; return isBoot ? getDefaultImage ( ) : null ; }
Source:
private java.lang.String getSchemaEnumTypeValuesName ( org.ovirt.api.metamodel.concepts.Name name ) { return ( getSchemaTypeName ( name ) ) + "Values" ; }

Target:
private java.lang.String getSchemaEnumTypeValuesName ( org.ovirt.api.metamodel.concepts.Name name ) { return ( schemaNames.getSchemaTypeName ( name ) ) + "Values" ; }
Source:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; junit.framework.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; org.junit.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
protected org.ovirt.engine.core.dao.QuotaDao getQuotaDao ( ) { return getDbFacade ( ) . getQuotaDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.QuotaDao getQuotaDao ( ) { return quotaDao ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc.getInstance ( ) . removePool ( getMacPool ( ) . getId ( ) ) ; }

Target:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser initUser ( ) { return org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . getUser ( engineContext.getSessionId ( ) , parameters.getRefresh ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser initUser ( ) { return getSessionDataContainer ( ) . getUser ( engineContext.getSessionId ( ) , parameters.getRefresh ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase CreateReturnValue ( ) { return new org.ovirt.engine.core.bll.storage.ConnectAllHostsToLunCommand.ConnectAllHostsToLunCommandReturnValue ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase createReturnValue ( ) { return new org.ovirt.engine.core.bll.storage.ConnectAllHostsToLunCommand.ConnectAllHostsToLunCommandReturnValue ( ) ; }
Source:
org.ovirt.engine.api.resource.ActionResource getActionResource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action ) ;

Target:
org.ovirt.engine.api.resource.ActionResource getActionResource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;
Source:
protected org.ovirt.engine.core.bll.profiles.DiskProfileValidator getProfileValidator ( ) { return new org.ovirt.engine.core.bll.profiles.DiskProfileValidator ( getProfile ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.profiles.DiskProfileValidator getProfileValidator ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.profiles.DiskProfileValidator ( getProfile ( ) ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__NETWORK_QOS ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ADD ) ; }
Source:
private static org.ovirt.engine.core.common.action.AddDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setDiskInterface ( DiskInterface.IDE ) ; org.ovirt.engine.core.common.action.AddDiskParameters parameters = new org.ovirt.engine.core.common.action.AddDiskParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , image ) ; return parameters ; }

Target:
private static org.ovirt.engine.core.common.action.AddDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setDiskInterface ( DiskInterface.IDE ) ; org.ovirt.engine.core.common.action.AddDiskParameters parameters = new org.ovirt.engine.core.common.action.AddDiskParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , image ) ; return parameters ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , null , 0 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { initTestCommand ( null , null , 0 , 0 , false ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , false ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllCanDoPass , false ) ; }
Source:
public void run ( ) { updateCachedIsoFileListFromVdsm ( repoFileMetaData , latch ) ; }

Target:
public java.lang.Void call ( ) { updateCachedIsoFileListFromVdsm ( repoFileMetaData ) ; return null ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPassPkWindow ( false ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.hosts.InstallModel model ) { driver.edit ( model ) ; }
Source:
public void setpm_type ( java.lang.String value ) { mVdsStatic.setpm_type ( value ) ; }

Target:
public void setpm_enabled ( boolean value ) { mVdsStatic.setPmEnabled ( value ) ; }