auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getDetachables ( ) { return filter ( new org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap.Predicate ( ) { @ java.lang.Override public boolean apply ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig config ) { return config.isDetachable ( ) ; } } ) ; }

Target:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getDetachables ( ) { return filter ( ( config ) -> config.isDetachable ( ) ) ; }
Source:
public void setpm_enabled ( boolean value ) { mVdsStatic.setPmEnabled ( value ) ; }

Target:
public void setPmEnabled ( boolean value ) { mVdsStatic.setPmEnabled ( value ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.VolumeFormat > getVolumeFormats ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.VolumeFormat > ( java.util.Arrays.asList ( VolumeFormat.COW , VolumeFormat.RAW ) ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.VolumeFormat > getVolumeFormats ( ) { return new java.util.ArrayList ( java.util.Arrays.asList ( VolumeFormat.COW , VolumeFormat.RAW ) ) ; }
Source:
public java.lang.String TranslateErrorTextSingle ( java.lang.String errorMsg ) { return translateErrorTextSingle ( errorMsg , true ) ; }

Target:
public java.lang.String translateErrorTextSingle ( java.lang.String errorMsg ) { return translateErrorTextSingle ( errorMsg , true ) ; }
Source:
public void testGetAllForStoragePoolWithPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( existingVds.getstorage_pool_id ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetAllForStoragePoolCorrectResult ( result ) ; }

Target:
public void testGetAllForStoragePoolWithPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( existingVds.getStoragePoolId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetAllForStoragePoolCorrectResult ( result ) ; }
Source:
public boolean getAuthorizedKeysEnabled ( ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( ( ( java.lang.String ) ( getRootPassword ( ) . getEntity ( ) ) ) ) ) ; }

Target:
public boolean getAuthorizedKeysEnabled ( ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getRootPassword ( ) . getEntity ( ) ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REBALANCE_START ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REBALANCE_START ) ; super . setActionMessageParameters ( ) ; }
Source:
org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > getTable ( ) { return modelBoundTableWidget.getTable ( ) ; }

Target:
public org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > getTable ( ) { return modelBoundTableWidget.getTable ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getorigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getorigin ( ) ; }
Source:
public void forceAddMac ( java.lang.String mac ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { checkIfInitialized ( ) ; forceAddMacWithoutLocking ( mac ) ; } }

Target:
public void forceAddMac ( java.lang.String mac ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { forceAddMacWithoutLocking ( mac ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( ) { return cpuPolicyUnit.filter ( java.util.Arrays.asList ( vdsWithInvalidCpuInfo , vdsWithCores ) , vm , null , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.scheduling.PerHostMessages.class ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( ) { return cpuPolicyUnit.filter ( cluster , java.util.Arrays.asList ( vdsWithInvalidCpuInfo , vdsWithCores ) , vm , null , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.scheduling.PerHostMessages.class ) ) ; }
Source:
protected boolean isVisible ( org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport value ) { return ( value.getAsyncTask ( ) . getType ( ) ) == ( org.ovirt.engine.core.common.asynctasks.gluster.GlusterTaskType.REBALANCE ) ; }

Target:
protected boolean isVisible ( org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport value ) { return ( ( value.getAsyncTask ( ) ) != null ) && ( ( value.getAsyncTask ( ) . getType ( ) ) == ( org.ovirt.engine.core.common.asynctasks.gluster.GlusterTaskType.REBALANCE ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return iface.getNetworkName ( ) . equals ( n.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return iface.getNetworkName ( ) . equals ( n.getName ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml tagItem ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , java.lang.String text , java.lang.String backgroundColor , java.lang.String borderColor ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml tagItem ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , java.lang.String text , java.lang.String backgroundColor , java.lang.String borderColor , java.lang.String id ) ;
Source:
public void validateFailsIfHostDoesNotExists ( ) { org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; }

Target:
public void validateFailsIfHostDoesNotExists ( ) { org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; }
Source:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { delegate.render ( context , value , sb ) ; }

Target:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb , java.lang.String id ) { delegate.render ( context , value , sb ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( existing_bookmark.getbookmark_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existing_bookmark.getbookmark_name ( ) , result.getbookmark_name ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( existing_bookmark.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existing_bookmark.getName ( ) , result.getName ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.Disk getNewDisk ( ) { return org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.Disk getNewDisk ( ) { return org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter generateParameters ( ) { org.ovirt.engine.core.compat.Guid roleId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > groups = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ( java.util.Arrays.asList ( ActionGroup.DELETE_HOST , ActionGroup.CONFIGURE_ENGINE ) ) ; return new org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter ( roleId , groups ) ; }

Target:
protected org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter generateParameters ( ) { org.ovirt.engine.core.compat.Guid roleId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > groups = new java.util.ArrayList ( java.util.Arrays.asList ( ActionGroup.DELETE_HOST , ActionGroup.CONFIGURE_ENGINE ) ) ; return new org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter ( roleId , groups ) ; }
Source:
protected boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid templateId ) { return ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . getWatchdog ( ) ) != null ? true : org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasWatchdog ( templateId ) ; }

Target:
protected boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid templateId ) { return ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . getWatchdog ( ) ) != null ; }
Source:
public boolean IsDisplayTypeSupported ( org.ovirt.engine.core.common.businessentities.DisplayType displayType ) { switch ( displayType ) { case vnc : return true ; case qxl : return ( isClientWindownsExplorer ( ) ) || ( isClientLinuxFirefox ( ) ) ; } return false ; }

Target:
public boolean IsDisplayTypeSupported ( org.ovirt.engine.core.common.businessentities.DisplayType displayType ) { switch ( displayType ) { case vnc : return true ; case qxl : return true ; } return false ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase sanStorageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase ) ( result.getState ( ) ) ) ; sanStorageModel.postLogin ( result ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { sanStorageModel.postLogin ( result.getReturnValue ( ) , sanStorageModel ) ; }
Source:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.aaa.AuthzUtils.getName ( org.ovirt.engine.core.aaa.AuthenticationProfileRepository.getInstance ( ) . getProfiles ( ) . get ( 0 ) . getAuthz ( ) ) ; }

Target:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.aaa.AuthenticationProfileRepository.getInstance ( ) . getProfiles ( ) . get ( 0 ) . getName ( ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher getRefresherForVds ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager ) { org.ovirt.engine.core.common.businessentities.VDS vds = vdsManager.getCopyVds ( ) ; if ( ( org.ovirt.engine.core.common.businessentities.VdsProtocol.STOMP ) == ( vds.getProtocol ( ) ) ) { return new org.ovirt.engine.core.vdsbroker.monitoring.EventVmStatsRefresher ( vdsManager ) ; } return new org.ovirt.engine.core.vdsbroker.monitoring.PollListAndAllVmStatsRefresher ( vdsManager ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher getRefresherForVds ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager ) { return new org.ovirt.engine.core.vdsbroker.monitoring.EventVmStatsRefresher ( vdsManager ) ; }
Source:
public java.lang.String getRandomNum ( int length ) { return org.ovirt.vdsmfake.Utils.getRandomNum ( length ) ; }

Target:
public java.lang.String getRandomNum ( int length ) { return utils.getRandomNum ( length ) ; }
Source:
protected org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > getParameters ( ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > qosParametersBase = new org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > ( ) ; qosParametersBase.setQos ( getQos ( ) ) ; return qosParametersBase ; }

Target:
protected org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > getParameters ( ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.CpuQos > qosParametersBase = new org.ovirt.engine.core.common.action.QosParametersBase ( ) ; qosParametersBase.setQos ( getQos ( ) ) ; return qosParametersBase ; }
Source:
private void cinderStorageDomainContainsDisks ( boolean isCinderContainsDisks ) { org.mockito.Mockito.doReturn ( isCinderContainsDisks ) . when ( cmd ) . isCinderStorageHasNoDisks ( ) ; }

Target:
private void cinderStorageDomainContainsDisks ( ) { org.mockito.Mockito.doReturn ( false ) . when ( cmd ) . isCinderStorageHasNoDisks ( ) ; }
Source:
public java.lang.String getGateway ( ) { return nic.getIpv4Gateway ( ) ; }

Target:
public java.lang.String getIpv4Gateway ( ) { return nic.getIpv4Gateway ( ) ; }
Source:
public void removeMemoryVolume ( java.lang.String memoryVolumes ) { super . removeMemoryVolume ( org.ovirt.engine.core.bll.memory.MemoryUtils.changeStorageDomainAndPoolInMemoryState ( memoryVolumes , storageDomainId , storagePoolId ) ) ; }

Target:
protected void removeMemoryVolume ( java.lang.String memoryVolumes ) { super . removeMemoryVolume ( org.ovirt.engine.core.bll.memory.MemoryUtils.changeStorageDomainAndPoolInMemoryState ( memoryVolumes , storageDomainId , storagePoolId ) ) ; }
Source:
protected boolean isEnabled ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; return command != null ? command.getIsExecutionAllowed ( ) : false ; }

Target:
protected boolean isEnabled ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; return command != null ? command.getIsExecutionAllowed ( ) : true ; }
Source:
private void initTabAvailabilityListeners ( ) { highAvailabilityTab.setVisible ( false ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; allowConsoleReconnectEditor.setVisible ( true ) ; expander.setVisible ( true ) ; }

Target:
private void initTabAvailabilityListeners ( ) { highAvailabilityTab.setVisible ( false ) ; isStatelessEditor.setVisible ( true ) ; numOfMonitorsEditor.setVisible ( true ) ; }
Source:
public void setStorageFormat ( org.ovirt.engine.core.common.businessentities.StorageFormatType storage_format ) { this . storageFormat = storage_format ; }

Target:
public void setStorageFormat ( org.ovirt.engine.core.common.businessentities.StorageFormatType storageFormat ) { this . storageFormat = storageFormat ; }
Source:
public boolean canDoAction ( ) { org.ovirt.engine.core.bll.validator.HostValidator hostValidator = new org.ovirt.engine.core.bll.validator.HostValidator ( getVds ( ) ) ; return ( validate ( hostValidator.hostExists ( ) ) ) && ( validate ( hostValidator.validateStatusForEnrollCertificate ( ) ) ) ; }

Target:
public boolean validate ( ) { org.ovirt.engine.core.bll.validator.HostValidator hostValidator = new org.ovirt.engine.core.bll.validator.HostValidator ( getVds ( ) ) ; return ( validate ( hostValidator.hostExists ( ) ) ) && ( validate ( hostValidator.validateStatusForEnrollCertificate ( ) ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.MoveDiskModel moveDiskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MoveDiskModel ) ( target ) ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( returnValue ) ) ; moveDiskModel.onInitStorageDomains ( storageDomains ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.MoveDiskModel moveDiskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MoveDiskModel ) ( target ) ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( returnValue ) ) ; moveDiskModel.onInitStorageDomains ( storageDomains ) ; }
Source:
private void markOldEventsAsProcessed ( ) { org.ovirt.engine.core.notifier.NotificationService.log.debug ( "Processing old events" ) ; final int updatedEvents = eventsManager.markOldEventsAsProcessed ( prop.getInteger ( NotificationProperties.DAYS_TO_SEND_ON_STARTUP ) ) ; if ( updatedEvents > 0 ) { org.ovirt.engine.core.notifier.NotificationService.log.debug ( ( updatedEvents + " old records were marked as processed in the \"audit_log\" table." ) ) ; } }

Target:
private void markOldEventsAsProcessed ( ) { eventsManager.markOldEventsAsProcessed ( prop.getInteger ( NotificationProperties.DAYS_TO_SEND_ON_STARTUP ) ) ; }
Source:
private void mockVds ( ) { mockIsValidVdsCommand ( ) ; mockGetImageDomainsListVdsCommand ( 100 , 100 ) ; }

Target:
private void mockVds ( ) { mockGetImageDomainsListVdsCommand ( 100 , 100 ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vdsId , NonOperationalReason.STORAGE_DOMAIN_UNREACHABLE , true , true , domainId ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vdsId , NonOperationalReason.STORAGE_DOMAIN_UNREACHABLE , true , domainId ) ; }
Source:
protected boolean isGlusterSupportEnabled ( ) { return ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) . supportsGlusterService ( ) ) && ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . isGlusterPeerProbeNeeded ( ) ) ; }

Target:
protected boolean isGlusterSupportEnabled ( ) { return ( ( ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) ) != null ) && ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) . supportsGlusterService ( ) ) ) && ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . isGlusterPeerProbeNeeded ( ) ) ; }
Source:
public static java.lang.String getGuestToolsSetupIsoPrefix ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.GuestToolsSetupIsoPrefix ) ; }

Target:
public static java.lang.String getGuestToolsSetupIsoPrefix ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.GuestToolsSetupIsoPrefix ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineGeneralPresenter.constants.virtualMachineGeneralSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineGeneralPresenter.constants.virtualMachineGeneralSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public void setStoragesNames ( java.util.ArrayList < java.lang.String > value ) { storagesNames = value ; }

Target:
public void setStoragesNames ( java.util.ArrayList < java.lang.String > storagesNames ) { this . storagesNames = storagesNames ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( constants.bootableDisk ( ) ) ; } return null ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.isBoot ( ) ) { return constants.bootableDisk ( ) ; } return null ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.storage_pool item , java.lang.Object value ) { context.localStorageHostByDataCenterMap.put ( item , ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( value ) ) ) ; return false ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.StoragePool item , java.lang.Object value ) { context.localStorageHostByDataCenterMap.put ( item , ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( value ) ) ) ; return false ; }
Source:
public void poolUpdateOvfStoreOnAnyDomainSupported ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( true ) . when ( ovfDataUpdater ) . ovfOnAnyDomainSupported ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ) ; ovfDataUpdater.ovfUpdateTimer ( ) ; verify ( java.lang.Boolean.TRUE ) ; }

Target:
public void poolUpdateOvfStoreOnAnyDomainSupported ( ) throws java.lang.Exception { ovfDataUpdater.ovfUpdateTimer ( ) ; verify ( ) ; }
Source:
public void setModel ( java.lang.Object model ) { this . Model = model ; }

Target:
public void setModel ( java.lang.Object model ) { this . model = model ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface lookupInterfaceById ( java.lang.String id ) { for ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface : getCollection ( ) ) { if ( iface.getId ( ) . toString ( ) . equals ( id ) ) { return iface ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface lookupInterfaceById ( java.lang.String id ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface : getCollection ( ) ) { if ( iface.getId ( ) . toString ( ) . equals ( id ) ) { return iface ; } } return null ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.VM value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateVmActiveDisks ( ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.VM value ) { updateIsMemorySnapshotSupported ( value ) ; super . setEntity ( value ) ; updateVmActiveDisks ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ! ( ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) ) : false ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source != null ) && ( ! ( ( java.lang.Boolean ) ( source ) ) ) ; }
Source:
public org.ovirt.api.metamodel.tool.JavaClassName getInterfaceName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getTypesPackageName ( ) , org.ovirt.api.metamodel.tool.PlainJavaTypes.INTERFACE_SUFFIX ) ; }

Target:
public org.ovirt.api.metamodel.tool.JavaClassName getInterfaceName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getTypesPackageName ( ) , null , null ) ; }
Source:
protected void initAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( false ) ; }

Target:
protected void initAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( true ) ; }
Source:
public void testGetFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.storage_pool result = dao.get ( existingPool.getId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetResult ( result ) ; }

Target:
public void testGetFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( existingPool.getId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetResult ( result ) ; }
Source:
protected void removeCommand ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.removeCommand ( getCommandId ( ) ) ; } finally { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } }

Target:
protected void removeCommand ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.removeCommand ( getCommandId ( ) ) ; } finally { if ( transaction != null ) { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } } }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.Label > hostLabelsList = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Label > ) ( returnValue ) ) ; labelList.setItems ( allLabels ) ; labelList.setSelectedItems ( hostLabelsList ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Label > hostLabelsList ) { labelList.setItems ( allLabels ) ; labelList.setSelectedItems ( hostLabelsList ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state , true , false ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface x ) { return x.getName ( ) . equals ( i.getName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface x ) { return x.getName ( ) . equals ( i.getName ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > filterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.toList ( org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterNotStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > filterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterNotStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) ) ; }
Source:
public java.lang.String getusername ( ) { return this . username ; }

Target:
public int getStatus ( ) { return status ; }
Source:
protected void mockStoragePoolDao ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.mockito.Mockito.when ( storagePoolDaoMock.get ( org.ovirt.engine.core.bll.storage.domain.AbstractGetStorageDomainsWithAttachedStoragePoolGuidQueryTestCase.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( storagePool ) ; }

Target:
protected void mockStoragePoolDao ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.mockito.Mockito.when ( storagePoolDaoMock.get ( org.ovirt.engine.core.bll.storage.domain.AbstractGetStorageDomainsWithAttachedStoragePoolGuidQueryTestCase.any ( ) ) ) . thenReturn ( storagePool ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network createNetwork ( ) { network = new org.ovirt.engine.core.common.businessentities.network ( ) ; network.setname ( "test network" ) ; return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.Network createNetwork ( ) { network = new org.ovirt.engine.core.common.businessentities.Network ( ) ; network.setname ( "test network" ) ; return network ; }
Source:
public int nextInt ( int min , int max ) { if ( min > max ) { throw new java.lang.IllegalArgumentException ( org.ovirt.engine.core.utils.RandomUtils.MIN_MAX_ERROR ) ; } return min + ( super . nextInt ( ( ( max - min ) + 1 ) ) ) ; }

Target:
public int nextInt ( int min , int max ) { if ( min > max ) { throw new java.lang.IllegalArgumentException ( org.ovirt.engine.core.utils.RandomUtils.MIN_MAX_ERROR ) ; } return min + ( nextInt ( ( ( max - min ) + 1 ) ) ) ; }
Source:
public void testGetByNameForPrivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getname ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , false ) ; assertCorrectVDSGroup ( result ) ; }

Target:
public void testGetByNameForPrivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getName ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , false ) ; assertCorrectVDSGroup ( result ) ; }
Source:
protected java.lang.String getUserDefinedVMProperties ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.UserDefinedVMProperties , org.ovirt.engine.core.bll.GetVmCustomPropertiesQuery.Version3_0 ) ; }

Target:
protected java.lang.String getUserDefinedVMProperties ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.UserDefinedVMProperties , org.ovirt.engine.core.bll.GetVmCustomPropertiesQuery.Version3_0 ) ; }
Source:
public org.ovirt.engine.api.resource.TemplateDisksResource getDisksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateDisksResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.TemplateDisksResource getDisksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateDisksResource ( guid ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > getFenceAgents ( ) { return getBackendCollection ( VdcQueryType.GetFenceAgentsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( hostId ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > getFenceAgents ( ) { return getBackendCollection ( VdcQueryType.GetFenceAgentsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( hostId ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.UpdateVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskInfo = createDiskImage ( ) ; return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , diskImageGuid , diskInfo ) ; }

Target:
protected org.ovirt.engine.core.common.action.UpdateVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskInfo = createDiskImage ( ) ; return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , diskInfo ) ; }
Source:
public static void removeSmartcardDevices ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSmartcardDevices ( vmId ) ) ; }

Target:
public void removeSmartcardDevices ( org.ovirt.engine.core.compat.Guid vmId ) { removeVmDevices ( getSmartcardDevices ( vmId ) ) ; }
Source:
public static java.lang.String toISO ( long time ) { java.util.Date date = new java.util.Date ( time ) ; return org.ovirt.engine.extension.aaa.jdbc.DateUtils.ISO.format ( date ) ; }

Target:
public static java.lang.String toISO ( long time ) { return org.ovirt.engine.extension.aaa.jdbc.DateUtils.ISO.format ( new java.util.Date ( time ) ) ; }
Source:
protected boolean getDefaultDiscardAfterDelete ( org.ovirt.engine.core.compat.Version compatibilityVersion ) { return false ; }

Target:
protected boolean getDefaultDiscardAfterDelete ( ) { return false ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , java.lang.String value ) { transitionHandler.handlePlaceTransition ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , java.lang.String value ) { transitionHandler.handlePlaceTransition ( true ) ; }
Source:
public void validateBlockToBlock ( ) { validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.ISCSI , StorageType.ISCSI , true ) ; }

Target:
public void validateBlockToBlock ( ) { validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.ISCSI , StorageType.ISCSI ) ; }
Source:
private javax.ws.rs.core.Response fenceManually ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.FenceVdsManualyParameters params = new org.ovirt.engine.core.common.action.FenceVdsManualyParameters ( true ) ; params.setVdsId ( guid ) ; params.setStoragePoolId ( getEntity ( ) . getstorage_pool_id ( ) ) ; return doAction ( VdcActionType.FenceVdsManualy , params , action ) ; }

Target:
private javax.ws.rs.core.Response fenceManually ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.FenceVdsManualyParameters params = new org.ovirt.engine.core.common.action.FenceVdsManualyParameters ( true ) ; params.setVdsId ( guid ) ; params.setStoragePoolId ( getEntity ( ) . getStoragePoolId ( ) ) ; return doAction ( VdcActionType.FenceVdsManualy , params , action ) ; }
Source:
public final int getIntValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( java.lang.Integer ) ( GetValue ( DataType.Int , name , defaultValue ) ) ) . intValue ( ) ; }

Target:
public final int getIntValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( java.lang.Integer ) ( getValue ( DataType.Int , name , defaultValue ) ) ) . intValue ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object.getEntity ( ) ) ) . getVdsName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object.getEntity ( ) ) ) . getName ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.dom.client.NativeEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE ) == ( event.getKeyCode ( ) ) ) { getView ( ) . hide ( ) ; unbind ( ) ; } }

Target:
public void onKeyPress ( com.google.gwt.dom.client.NativeEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE ) == ( event.getKeyCode ( ) ) ) { getView ( ) . hide ( ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return ( java.lang.String.valueOf ( object.getmem_size_mb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getmem_size_mb ( ) ) ) + " MB" ; }
Source:
public void onPowerringUp ( ) { decreasePendingVm ( this . vmStaticDao.get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }

Target:
public void onPowerringUp ( ) { decreasePendingVm ( vmStaticDao.get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }
Source:
protected void processImages ( ) { processImages ( ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.isImagesAlreadyOnTarget ( ) ) ) ) ; if ( org.ovirt.engine.core.bll.ImportVmCommand.getReturnValue ( ) . getVdsmTaskIdList ( ) . isEmpty ( ) ) { org.ovirt.engine.core.bll.VmHandler.unLockVm ( getVm ( ) ) ; } }

Target:
protected void processImages ( ) { processImages ( ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.isImagesAlreadyOnTarget ( ) ) ) ) ; if ( org.ovirt.engine.core.bll.ImportVmCommand.getReturnValue ( ) . getVdsmTaskIdList ( ) . isEmpty ( ) ) { org.ovirt.engine.core.bll.VmHandler.unLockVm ( org.ovirt.engine.core.bll.ImportVmCommand.getVm ( ) ) ; } }
Source:
public static void RunQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback , final boolean isPublic ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( queryType , parameters , callback , isPublic ) ; }

Target:
public void runQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { runQuery ( queryType , parameters , callback , false ) ; }
Source:
public void setstorage_domain_shared_status ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus value ) { if ( ( _storageDomainSharedStatus ) != value ) { _storageDomainSharedStatus = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "storage_domain_shared_status" ) ) ; } }

Target:
public void setstorage_domain_shared_status ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus value ) { _storageDomainSharedStatus = value ; }
Source:
protected org.ovirt.engine.core.dao.network.NetworkDao getNetworkDAO ( ) { return org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getDbFacade ( ) . getNetworkDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.network.NetworkDao getNetworkDao ( ) { return org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getDbFacade ( ) . getNetworkDao ( ) ; }
Source:
public void SetDefaultNames ( org.ovirt.engine.core.common.businessentities.VDS host ) { context.host = host ; setCommonName ( ( ( host.getVdsName ( ) . replace ( '.' , '-' ) ) + "-Local" ) ) ; SetDefaultNames1 ( ) ; }

Target:
public void SetDefaultNames ( org.ovirt.engine.core.common.businessentities.VDS host ) { context.host = host ; setCommonName ( ( ( host.getName ( ) . replace ( '.' , '-' ) ) + "-Local" ) ) ; SetDefaultNames1 ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.BALLOON , VmDeviceType.MEMBALLOON , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getMemoryBalloonSpecParams ( ) , true , true ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.BALLOON , VmDeviceType.MEMBALLOON , getMemoryBalloonSpecParams ( ) , true , true ) ; }
Source:
public static boolean isWindowsOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getWindowsOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ( ( ( java.util.List < java.lang.String > ) ( source ) ) . size ( ) ) > 0 ; } return false ; }
Source:
public void setExecuteProhibitionReasons ( java.util.List < java.lang.String > value ) { privateExecuteProhibitionReasons = value ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand setExecuteProhibitionReasons ( java.util.List < java.lang.String > value ) { privateExecuteProhibitionReasons = value ; return this ; }
Source:
org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData createImportEntityData ( java.lang.Object entity ) { return new org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( entity ) ) ) ; }

Target:
org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData < org.ovirt.engine.core.common.businessentities.VmTemplate > createImportEntityData ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return new org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ( entity ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setAllowClusterWithVirtGlusterEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setAllowClusterWithVirtGlusterEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; postGetHostList ( hosts ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { postGetHostList ( hosts ) ; }
Source:
protected boolean cpuExists ( ) { return cpuFlagsManagerHandler.checkIfCpusExist ( cluster.getCpuName ( ) , cluster.getCompatibilityVersion ( ) ) ; }

Target:
protected boolean cpuExists ( ) { return ( ( cluster.getCpuName ( ) ) == null ) || ( cpuFlagsManagerHandler.checkIfCpusExist ( cluster.getCpuName ( ) , cluster.getCompatibilityVersion ( ) ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface anInterface ) { return anInterface.getName ( ) . equals ( getParameters ( ) . getBondName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface anInterface ) { return anInterface.getName ( ) . equals ( getParameters ( ) . getBondName ( ) ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null ) ; }
Source:
public boolean getDomainEnabled ( ) { if ( isWindowsOS ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getSysprepDomain ( ) . getSelectedItem ( ) . toString ( ) ) ) ; } return false ; }

Target:
public boolean getDomainEnabled ( ) { if ( isWindowsOS ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getSysprepDomain ( ) . getSelectedItem ( ) ) ) ; } return false ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.Erratum erratum ) { return erratum.getId ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Erratum erratum ) { return erratum.getId ( ) ; }
Source:
public javax.enterprise.inject.Instance < org.ovirt.engine.core.dao.Dao > daos ( ) { java.util.Map < java.lang.String , org.ovirt.engine.core.dao.Dao > daoMap = beanFactory.getBeansOfType ( org.ovirt.engine.core.dao.Dao.class ) ; javax.enterprise.inject.Instance < org.ovirt.engine.core.dao.Dao > daos = new org.ovirt.engine.core.dal.CdiIntegration.InstanceImpl ( daoMap.values ( ) ) ; return daos ; }

Target:
public javax.enterprise.inject.Instance < org.ovirt.engine.core.dao.Dao > daos ( ) { java.util.Map < java.lang.String , org.ovirt.engine.core.dao.Dao > daoMap = beanFactory.getBeansOfType ( org.ovirt.engine.core.dao.Dao.class ) ; return new org.ovirt.engine.core.dal.CdiIntegration.InstanceImpl ( daoMap.values ( ) ) ; }
Source:
private static void setGatewayIfManagementNetwork ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface , java.lang.String gateway ) { if ( org.ovirt.engine.core.utils.NetworkUtils.getEngineNetwork ( ) . equals ( iface.getNetworkName ( ) ) ) { iface.setGateway ( gateway ) ; } }

Target:
private static void setGatewayIfManagementNetwork ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String gateway ) { if ( org.ovirt.engine.core.utils.NetworkUtils.getEngineNetwork ( ) . equals ( iface.getNetworkName ( ) ) ) { iface.setGateway ( gateway ) ; } }
Source:
public void setEntity ( java.lang.Object value ) { super . setEntity ( value ) ; updateIsHotPlugAvailable ( ) ; }

Target:
public void setEntity ( java.lang.Object value ) { super . setEntity ( value ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . setHost ( host ) . setParams ( new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) ) . setNetworkBusinessEntityMap ( new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) ) . build ( ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return createHostSetupNetworksValidator ( networks , new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( ) ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.GetGlusterServersForImportQueryTest.NEW_SERVER ) ; return java.util.Collections.singletonList ( vds ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( ) ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.GetGlusterServersForImportQueryTest.NEW_SERVER ) ; return vds ; }