auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME ) ; addCanDoActionMessage ( java.lang.String.format ( "$volumeName %1$s" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeName ( ) ) ) ; addCanDoActionMessage ( java.lang.String.format ( "$vdsGroup %1$s" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getVdsGroupName ( ) ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( java.lang.String.format ( "$volumeName %1$s" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeName ( ) ) ) ; addCanDoActionMessage ( java.lang.String.format ( "$vdsGroup %1$s" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getVdsGroupName ( ) ) ) ; }
Source:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Template template ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayDataInternal ( res , template , null ) ; }

Target:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Template template ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayDataInternal ( res , template , null , false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , true , null , null ) ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( checkRemoveEditValidations ( ) ) ) { return false ; } if ( ! ( checkAddEditValidations ( ) ) ) { return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { return ( checkRemoveEditValidations ( ) ) && ( checkAddEditValidations ( ) ) ; }
Source:
public static javax.ws.rs.core.Response addDisksLinkToResponse ( javax.ws.rs.core.Response response ) { if ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.v3.types.V3Template ) { org.ovirt.engine.api.v3.types.V3Template template = ( ( org.ovirt.engine.api.v3.types.V3Template ) ( response.getEntity ( ) ) ) ; org.ovirt.engine.api.v3.helpers.V3TemplateHelper.addDisksLink ( template ) ; } return response ; }

Target:
public static void addDisksLink ( javax.ws.rs.core.Response response ) { java.lang.Object entity = response.getEntity ( ) ; if ( entity instanceof org.ovirt.engine.api.v3.types.V3Template ) { org.ovirt.engine.api.v3.helpers.V3TemplateHelper.addDisksLink ( ( ( org.ovirt.engine.api.v3.types.V3Template ) ( entity ) ) ) ; } }
Source:
public void calculateNetworkImplementationDetailsNetworkIsSync ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , true , iface.getNetworkName ( ) , iface.isBridged ( ) , iface.getMtu ( ) , iface.getVlanId ( ) ) ; }

Target:
public void calculateNetworkImplementationDetailsNetworkIsSync ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , true , iface.getNetworkName ( ) , iface.isBridged ( ) , iface.getMtu ( ) , iface.getVlanId ( ) ) ; }
Source:
public void testValidateImageLocked ( ) { getDiskImage ( ) . setImageStatus ( ImageStatus.LOCKED ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED ) ; }

Target:
public void testValidateImageLocked ( ) { diskImage.setImageStatus ( ImageStatus.LOCKED ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED ) ; }
Source:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeNonExternalTestJob ( ) ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeNonExternalTestJob ( ) ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
public static org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacadeInstance ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacadeInstance ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }
Source:
public void timeoutObject ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.TimeoutBaseTest.TestTimeoutBase t = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.TimeoutBaseTest.TestTimeoutBase ( ) ; final java.lang.String s = "testtimeout" ; t.setTimeoutObjectId ( s ) ; org.junit.Assert.assertEquals ( t.getTimeoutObjectId ( ) , s ) ; }

Target:
public void timeoutObject ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.TimeoutBaseTest.TestTimeoutBase t = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.TimeoutBaseTest.TestTimeoutBase ( ) ; final java.lang.String s = "testtimeout" ; t.setTimeoutObjectId ( s ) ; org.junit.Assert.assertEquals ( s , t.getTimeoutObjectId ( ) ) ; }
Source:
public void osTypeChanged ( java.lang.Integer selectedItem ) { isWindowsOS = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( selectedItem ) ; }

Target:
public void osTypeChanged ( java.lang.Integer selectedItem ) { isWindowsOS = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . isWindowsOsType ( selectedItem ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetQuotaByStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getQuotaDao ( ) . getQuotaByStoragePoolGuid ( org.ovirt.engine.core.bll.GetQuotaByStoragePoolIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetQuotaByStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getQuotaDao ( ) . getQuotaByStoragePoolGuid ( org.ovirt.engine.core.bll.GetQuotaByStoragePoolIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
protected boolean isSetParent ( org.ovirt.engine.api.model.Tag tag ) { return ( ( tag.isSetParent ( ) ) && ( tag.getParent ( ) . isSetTag ( ) ) ) && ( tag.getParent ( ) . getTag ( ) . isSetId ( ) ) ; }

Target:
protected boolean isSetParent ( org.ovirt.engine.api.model.Tag tag ) { return ( tag.isSetParent ( ) ) && ( tag.getParent ( ) . isSetId ( ) ) ; }
Source:
private void validateAndAssertNetworkModified ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper , org.ovirt.engine.core.common.businessentities.Network net ) { validateAndExpectNoViolations ( helper ) ; assertNoBondsModified ( helper ) ; assertNetworkModified ( helper , net ) ; assertNoNetworksRemoved ( helper ) ; assertNoBondsRemoved ( helper ) ; }

Target:
private void validateAndAssertNetworkModified ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper , org.ovirt.engine.core.common.businessentities.network.Network net ) { validateAndExpectNoViolations ( helper ) ; assertNoBondsModified ( helper ) ; assertNetworkModified ( helper , net ) ; assertNoNetworksRemoved ( helper ) ; assertNoBondsRemoved ( helper ) ; }
Source:
public void start ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].start()" ) ) ; active = true ; scheduleRepeating ( getRefreshRate ( ) ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getValue ( ) ) ; }

Target:
public void start ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].start()" ) ) ; active = true ; scheduleRepeating ( getRefreshRate ( ) ) ; }
Source:
public void getUsbTypeEnabledLegacy ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_LEGACY ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getUsbType ( usbPolicy ) , UsbType.LEGACY ) ; }

Target:
public void getUsbTypeEnabledLegacy ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_LEGACY ; org.junit.Assert.assertEquals ( UsbType.LEGACY , org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getUsbType ( usbPolicy ) ) ; }
Source:
public org.ovirt.engine.core.dao.VdsStaticDAO getVdsStaticDao ( ) { return org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getDbFacade ( ) . getVdsStaticDAO ( ) ; }

Target:
public org.ovirt.engine.core.dao.VdsStaticDAO getVdsStaticDao ( ) { return org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getDbFacade ( ) . getVdsStaticDao ( ) ; }
Source:
protected boolean isVmTemplateWithSameNameExist ( ) { return org.ovirt.engine.core.bll.VmTemplateCommand.isVmTemlateWithSameNameExist ( getParameters ( ) . getVmTemplate ( ) . getname ( ) ) ; }

Target:
protected boolean isVmTemplateWithSameNameExist ( ) { return org.ovirt.engine.core.bll.VmTemplateCommand.isVmTemlateWithSameNameExist ( getParameters ( ) . getVmTemplate ( ) . getName ( ) ) ; }
Source:
public static boolean isActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isActive = ( ( storageDomain.getStatus ( ) ) != null ) && ( ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }

Target:
public static boolean isActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; }
Source:
public void validateOkSucceeds ( ) throws java.lang.Exception { setupMock ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeExternalTestJob ( ) ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }

Target:
public void validateOkSucceeds ( ) throws java.lang.Exception { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeExternalTestJob ( ) ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) , LockingGroup.DISK.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) . toString ( ) , LockingGroup.DISK.name ( ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { super . edit ( iface ) ; cardStatusSelectionPanel.setVisible ( false ) ; portMirroringEditor.setVisible ( false ) ; expander.setVisible ( false ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { super . edit ( iface ) ; }
Source:
void updateAllInBatch ( java.lang.String procedureName , java.util.Collection < T > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > mapper ) ;

Target:
void updateAllInBatch ( java.util.Collection < T > entities ) ;
Source:
public static boolean getDefaultWipeAfterDeleteFlag ( final org.ovirt.engine.core.common.businessentities.StorageType storageType ) { if ( storageType.isBlockDomain ( ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.SANWipeAfterDelete ) ; } else { return org.ovirt.engine.core.bll.utils.WipeAfterDeleteUtils.WIPE_AFTER_DELETE_FILE_DOMAIN ; } }

Target:
public static boolean getDefaultWipeAfterDeleteFlag ( final org.ovirt.engine.core.common.businessentities.StorageType storageType ) { if ( storageType.isBlockDomain ( ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.SANWipeAfterDelete ) ; } else { return org.ovirt.engine.core.bll.utils.WipeAfterDeleteUtils.WIPE_AFTER_DELETE_FILE_DOMAIN ; } }
Source:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker createBackendSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; if ( ( org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ) == null ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.SearchResultsLimit ) ) ; } return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ; }

Target:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker createBackendSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; if ( ( org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ) == null ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker = new org.ovirt.engine.core.searchbackend.SyntaxChecker ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.SearchResultsLimit ) ) ; } return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.backendSyntaxChecker ; }
Source:
protected void onAction ( ) { item.edit ( ) ; }

Target:
protected void onAction ( ) { }
Source:
private java.util.List < org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryData > GenerateUsersQuery ( ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.UsersObjectIdQueryGenerator generator = new org.ovirt.engine.extensions.aaa.builtin.kerberosldap.UsersObjectIdQueryGenerator ( ) ; for ( org.ovirt.engine.core.common.utils.ExternalId id : getUserIds ( ) ) { generator.add ( id ) ; } return generator.getLdapQueriesData ( getDomain ( ) ) ; }

Target:
private java.util.List < org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryData > GenerateUsersQuery ( ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.UsersObjectIdQueryGenerator generator = new org.ovirt.engine.extensions.aaa.builtin.kerberosldap.UsersObjectIdQueryGenerator ( ) ; for ( org.ovirt.engine.core.compat.Guid id : getUserIds ( ) ) { generator.add ( id ) ; } return generator.getLdapQueriesData ( getDomain ( ) ) ; }
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 , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllValidationPass , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllValidationPass , false ) ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "disk_id" , id ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Disk get ( org.ovirt.engine.core.compat.Guid id ) { return get ( id , null , false ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.ServerCpu ) ( object ) ) . getCpuName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.ServerCpu object ) { return object.getCpuName ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.Label > vmLabelsList = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Label > ) ( returnValue ) ) ; labelList.setItems ( allLabels ) ; labelList.setSelectedItems ( vmLabelsList ) ; }

Target:
public void onSuccess ( java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.Label > vmLabelsList = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Label > ) ( returnValue ) ) ; labelList.setItems ( allLabels ) ; labelList.setSelectedItems ( vmLabelsList ) ; }
Source:
protected void initPortMirroring ( ) { getPortMirroring ( ) . setIsChangable ( isPortMirroringSupported ( ) ) ; getPortMirroring ( ) . setEntity ( getNic ( ) . isPortMirroring ( ) ) ; }

Target:
protected void initPortMirroring ( ) { getPortMirroring ( ) . setEntity ( getNic ( ) . isPortMirroring ( ) ) ; }
Source:
public void testAddUser_3 ( ) throws java.lang.Exception { setUpAddUserExpectations ( ( ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ": allnames=" ) + ( NAMES [ 0 ] ) ) + "@" ) + ( DOMAIN ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( ( ( ( NAMES [ 0 ] ) + "@" ) + ( DOMAIN ) ) ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }

Target:
public void testAddUser_3 ( ) throws java.lang.Exception { setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: allnames=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( ( ( ( NAMES [ 0 ] ) + "@" ) + ( DOMAIN ) ) ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }
Source:
private void setMinSupportedVersionForFencingPolicy ( org.ovirt.engine.core.bll.pm.FenceProxyLocator locator , org.ovirt.engine.core.compat.Version version ) { org.mockito.Mockito.doReturn ( version ) . when ( locator ) . getMinSupportedVersionForFencingPolicy ( ) ; }

Target:
private void setMinSupportedVersionForFencingPolicy ( org.ovirt.engine.core.bll.pm.FenceProxyLocator locator , org.ovirt.engine.core.compat.Version version ) { org.mockito.Mockito.when ( locator.getMinSupportedVersionForFencingPolicy ( ) ) . thenReturn ( version ) ; }
Source:
public void nGuidCtorNull ( ) { final org.ovirt.engine.core.compat.Guid n = null ; final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( n ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }

Target:
public void nGuidCtorNull ( ) { final org.ovirt.engine.core.compat.Guid n = null ; b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( n ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }
Source:
protected org.ovirt.engine.core.bll.AddVmFromTemplateCommand < org.ovirt.engine.core.common.action.AddVmParameters > createCommand ( ) { initVM ( ) ; return new org.ovirt.engine.core.bll.AddVmFromTemplateCommand ( new org.ovirt.engine.core.common.action.AddVmParameters ( vm ) , null ) ; }

Target:
protected org.ovirt.engine.core.bll.AddVmFromTemplateCommand < org.ovirt.engine.core.common.action.AddVmParameters > createCommand ( ) { return new org.ovirt.engine.core.bll.AddVmFromTemplateCommand ( new org.ovirt.engine.core.common.action.AddVmParameters ( vm ) , null ) ; }
Source:
boolean entityNameExpected ( ) { return true ; }

Target:
public boolean entityNameExpected ( ) { return true ; }
Source:
public void close ( ) { this . client.close ( ) ; this . isTracking = false ; }

Target:
public void close ( ) { this . client.close ( ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.Network value ) { super . setEntity ( value ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.network.Network value ) { super . setEntity ( value ) ; }
Source:
public org.ovirt.engine.api.resource.gluster.GlusterVolumesResource getGlusterVolumesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumesResource ( this ) ) ; }

Target:
public org.ovirt.engine.api.resource.gluster.GlusterVolumesResource getGlusterVolumesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumesResource ( this , id ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , new org.ovirt.engine.core.compat.Version ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return mockStorageDomain ( storageId , 6 , 4 , storageType ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.resources.ResourcesModel model ) { vmTable.edit ( model ) ; org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedResourceView.Driver.driver.edit ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.resources.ResourcesModel model ) { vmTable.edit ( model ) ; org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedResourceView.Driver.driver.edit ( model ) ; this . model = model ; }
Source:
public static void AddVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; alert.setVdsId ( vdsId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.Alert ( alert , type ) ; }

Target:
public static void AddVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert ) { alert.setVdsId ( vdsId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.Alert ( alert , type ) ; }
Source:
public void testQueryForInvalidVolumeId ( ) { org.mockito.Mockito.doReturn ( Guid.Empty ) . when ( getQueryParameters ( ) ) . getVolumeId ( ) ; org.mockito.Mockito.doReturn ( null ) . when ( volumeDao ) . getById ( Guid.Empty ) ; getQuery ( ) . executeQueryCommand ( ) ; }

Target:
public void testQueryForInvalidVolumeId ( ) { org.mockito.Mockito.doReturn ( Guid.Empty ) . when ( getQueryParameters ( ) ) . getVolumeId ( ) ; getQuery ( ) . executeQueryCommand ( ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.String value ) { ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) . setDisplayName ( value ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model , java.lang.String value ) { model.setDisplayName ( value ) ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmWatchdog entity , java.lang.String name ) { return true ; }

Target:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmWatchdog entity , java.lang.String name ) { return false ; }
Source:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getVisibleInAdvanceMode ( ) { 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.isVisibleOnlyInAdvanced ( ) ) && ( config.isApplicationLevelVisible ( ) ) ; } } ) ; }

Target:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getVisibleInAdvanceMode ( ) { return filter ( ( config ) -> ( config.isVisibleOnlyInAdvanced ( ) ) && ( config.isApplicationLevelVisible ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator getDiskImagesValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImageInList = new java.util.ArrayList < > ( ) ; diskImageInList.add ( diskImage ) ; return new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImageInList ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator getDiskImagesValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImage ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) ; if ( cluster != null ) { maintenance ( cluster.isMaintenanceReasonRequired ( ) , cluster.supportsGlusterService ( ) ) ; } }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { if ( cluster != null ) { maintenance ( cluster.isMaintenanceReasonRequired ( ) , cluster.supportsGlusterService ( ) ) ; } }
Source:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failCanDoAction ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }

Target:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failCanDoAction ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackVolumeProviderResource getOpenStackVolumeProvider ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.openstack.OpenStackVolumeProviderResource getOpenStackVolumeProvider ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( id , this ) ) ; }
Source:
public org.ovirt.engine.api.resource.AttachedStorageDomainResource getStorageDomainResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResource ( id , dataCenterId , org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResource.SUB_COLLECTIONS ) ) ; }

Target:
public org.ovirt.engine.api.resource.AttachedStorageDomainResource getStorageDomainResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResource ( id , dataCenterId ) ) ; }
Source:
public void testEmptyElement ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm><name></name></vm>" ) ; org.junit.Assert.assertEquals ( "" , object.getName ( ) ) ; }

Target:
public void testEmptyElement ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm><name></name></vm>" ) ; org.junit.Assert.assertEquals ( "" , object.name ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getname ( ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml volumeActivityMenu ( com.google.gwt.safehtml.shared.SafeHtml statusImage ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml volumeActivityMenu ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;
Source:
public void testGetAllAttachableDisksByPoolIdNoDisks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllAttachableDisksByPoolId ( FixturesTool.STORAGE_POOL_NFS , null , false ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllAttachableDisksByPoolIdNoDisks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllAttachableDisksByPoolId ( FixturesTool.STORAGE_POOL_NFS , null , null , false ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateCloudInitVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateCloudInitVisibility ( object ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Qos model , org.ovirt.engine.core.common.businessentities.qos.QosBase entity ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.QosBase > parameters = new org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.QosBase > ( ) ; parameters.setQosId ( guid ) ; parameters.setQos ( map ( incoming , entity ) ) ; return parameters ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Qos model , org.ovirt.engine.core.common.businessentities.qos.QosBase entity ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.QosBase > parameters = new org.ovirt.engine.core.common.action.QosParametersBase ( ) ; parameters.setQosId ( guid ) ; parameters.setQos ( map ( incoming , entity ) ) ; return parameters ; }
Source:
public void testGetByLargeIconId ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = prepareDao ( ) . getByLargeIconId ( FixturesTool.LARGE_ICON_ID ) ; org.junit.Assert.assertTrue ( result.contains ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT ) ) ; }

Target:
public void testGetByLargeIconId ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = dao.getByLargeIconId ( FixturesTool.LARGE_ICON_ID ) ; org.junit.Assert.assertTrue ( result.contains ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT ) ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VM , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUpGetEntityExpectations ( 1 , getEntity ( 0 ) ) ; setUpGetStorageServerConnectionExpectations ( 1 ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUpGetEntityExpectations ( 1 , getEntity ( 0 ) ) ; setUpGetStorageServerConnectionExpectations ( 1 ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
private void initEditors ( ) { migrateEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; migrateInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.RemoveBrickPopupView.templates.italicText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.RemoveBrickPopupView.constants.removeBricksMigrateDataInfo ( ) ) ) ; }

Target:
private void initEditors ( ) { migrateEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; migrateInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.RemoveBrickPopupView.constants.removeBricksMigrateDataInfo ( ) ) ; }
Source:
private void logException ( java.lang.RuntimeException ex ) { log.errorFormat ( "Command {0} execution failed. Exception: {1}" , org.ovirt.engine.core.vdsbroker.VDSCommandBase.getCommandName ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "Detailed stacktrace:" , ex ) ; } }

Target:
private void logException ( java.lang.RuntimeException ex ) { log.errorFormat ( "Command {0} execution failed. Exception: {1}" , this , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "Detailed stacktrace:" , ex ) ; } }
Source:
void setTooltipHtml ( com.google.gwt.safehtml.shared.SafeHtml tooltipHtml ) { tooltip.setHtml ( tooltipHtml ) ; tooltip.reconfigure ( ) ; }

Target:
void setTooltipHtml ( com.google.gwt.safehtml.shared.SafeHtml tooltipHtml ) { tooltip.setHtml ( tooltipHtml ) ; }
Source:
public void setSpiceProxyOverrideExplanation ( java.lang.String explanation ) { spiceProxyEnabledCheckboxWithInfoIcon.setExplanation ( org.ovirt.engine.ui.webadmin.section.main.view.popup.cluster.ClusterPopupView.templates.italicText ( explanation ) ) ; }

Target:
public void setSpiceProxyOverrideExplanation ( java.lang.String explanation ) { spiceProxyEnabledCheckboxWithInfoIcon.setExplanation ( explanation ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( ( "Server: runPublicQuery invoked! " + queryType ) ) ; debugQuery ( queryType , params ) ; return getBackend ( ) . runPublicQuery ( queryType , params ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( ( "Server: runPublicQuery invoked! " + queryType ) ) ; debugQuery ( queryType , params ) ; return getBackend ( ) . runPublicQuery ( queryType , params ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkFilter resolveVnicProfileDefaultNetworkFilter ( org.ovirt.engine.core.dao.network.NetworkFilterDao networkFilterDao ) { if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.EnableMACAntiSpoofingFilterRules ) ) { return networkFilterDao.getNetworkFilterByName ( NetworkFilter.VDSM_NO_MAC_SPOOFING ) ; } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkFilter resolveVnicProfileDefaultNetworkFilter ( ) { if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.EnableMACAntiSpoofingFilterRules ) ) { return networkFilterDao.getNetworkFilterByName ( NetworkFilter.VDSM_NO_MAC_SPOOFING ) ; } return null ; }
Source:
org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createManagementNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( interfaceDao , networkDao , managementNetworkCluster , org.ovirt.engine.core.bll.UpdateClusterCommand.getCluster ( ) . getCompatibilityVersion ( ) ) ; }

Target:
org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createManagementNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( interfaceDao , networkDao , managementNetworkCluster ) ; }
Source:
public void storageDomainNameDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final java.lang.String s = b.getStorageDomainName ( ) ; org.junit.Assert.assertEquals ( "" , s ) ; }

Target:
public void storageDomainNameDefault ( ) { final java.lang.String s = b.getStorageDomainName ( ) ; org.junit.Assert.assertEquals ( "" , s ) ; }
Source:
public void replace_emptyBuilder ( ) { runAndCheck ( new java.lang.StringBuilder ( ) , "a" , "b" , "" ) ; }

Target:
public void replace_emptyBuilder ( ) { runAndCheck ( new java.lang.String ( ) , "a" , "b" , "" ) ; }
Source:
private void initAddRemoveWidget ( ) { addRemoveVmWidget = new org.ovirt.engine.ui.common.widget.form.key_value.KeyValueWidget < org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.VmsSelectionModel > ( "120px" ) ; }

Target:
private void initAddRemoveWidget ( ) { addRemoveVmWidget = new org.ovirt.engine.ui.common.widget.form.key_value.KeyValueWidget ( "120px" ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool dc ) { return dc.getname ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool dc ) { return dc.getName ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mockVdsDbFacadeAndDao ( ) ; setupExpectedGlusterVolumeOptionInfo ( ) ; setupMock ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setupExpectedGlusterVolumeOptionInfo ( ) ; setupMock ( ) ; }
Source:
public void formatStringTest3 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" , "2.2.2" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }

Target:
public void formatStringTest3 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" , "2.2.2" ) ; org.junit.Assert.assertEquals ( "Testing 123: 1.1.1" , result ) ; }
Source:
private static org.ovirt.engine.core.extensions.mgr.ExtensionsManager getExtensionsManager ( org.ovirt.engine.api.extensions.ExtMap context ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionsManager ) ( context.get ( ContextKeys.EXTENSION_MANAGER ) ) ) ; }

Target:
private org.ovirt.engine.core.extensions.mgr.ExtensionsManager getExtensionsManager ( ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionsManager ) ( context.get ( ContextKeys.EXTENSION_MANAGER ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; allNetworks = networks ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network network ) { return network.getname ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getname ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }
Source:
public static boolean isInWhiteList ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType type , java.lang.String device ) { java.lang.String expr = org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.getDeviceTypeSearchExpr ( type , device ) ; java.lang.String whiteList = org.ovirt.engine.core.common.config.Config.GetValue ( ConfigValues.ManagedDevicesWhiteList ) ; return ( whiteList.indexOf ( expr ) ) >= 0 ; }

Target:
public static boolean isInWhiteList ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType type , java.lang.String device ) { java.lang.String expr = org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.getDeviceTypeSearchExpr ( type , device ) ; java.lang.String whiteList = org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.ManagedDevicesWhiteList ) ; return ( whiteList.indexOf ( expr ) ) >= 0 ; }
Source:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.ArgumentMatchers.anyString ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }

Target:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
private void mockVMPoolDAO ( ) { org.mockito.Mockito.when ( dbFacada.getVmPoolDAO ( ) ) . thenReturn ( vmPoolDAO ) ; }

Target:
private void mockVMPoolDAO ( ) { org.mockito.Mockito.doReturn ( vmPoolDAO ) . when ( command ) . getVmPoolDAO ( ) ; }
Source:
private static java.lang.String getOvirtIsoPrefix ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.OvirtIsoPrefix ) ; }

Target:
private static java.lang.String getOvirtIsoPrefix ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.OvirtIsoPrefix ) ; }
Source:
protected void assertEqualsTo ( org.ovirt.engine.core.common.businessentities.StorageDomain firstStorageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain secondStorageDomain ) { org.junit.Assert.assertTrue ( ( ( compareStorageDomains ( firstStorageDomain , secondStorageDomain ) ) == 0 ) ) ; }

Target:
protected void assertEqualsTo ( org.ovirt.engine.core.common.businessentities.StorageDomain firstStorageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain secondStorageDomain ) { org.junit.Assert.assertEquals ( 0 , compareStorageDomains ( firstStorageDomain , secondStorageDomain ) ) ; }
Source:
protected M getModel ( ) { return modelProvider.getModel ( ) ; }

Target:
public M getModel ( ) { return modelProvider.getModel ( ) ; }
Source:
public boolean hastBufferOutputComponent ( ) { boolean hastBufferOutput = false ; return hastBufferOutput ; }

Target:
public boolean hastBufferOutputComponent ( ) { boolean hastBufferOutput = false ; hastBufferOutput = true ; return hastBufferOutput ; }
Source:
public final java.lang.String ovirtVersionAbout ( final java.lang.String version ) { return formatString ( org.ovirt.engine.ui.common.utils.BaseDynamicMessages.DynamicMessageKey.VERSION_ABOUT , version ) ; }

Target:
public final java.lang.String ovirtVersionAbout ( ) { return formatString ( org.ovirt.engine.ui.common.utils.BaseDynamicMessages.DynamicMessageKey.VERSION_ABOUT ) ; }
Source:
private void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; }

Target:
private void cancel ( ) { setWindow ( null ) ; }
Source:
protected int reloadConfigValue ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.OvfItemsCountPerUpdate ) ; }

Target:
protected int reloadConfigValue ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.OvfItemsCountPerUpdate ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.VdsManager getVdsManager ( ) { return getResourceManager ( ) . GetVdsManager ( org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.VdsManager getVdsManager ( ) { return getResourceManager ( ) . getVdsManager ( org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getParameters ( ) . getIsInternalCommand ( ) ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.SYSTEM_UPDATE_VDS_GROUP : org.ovirt.engine.core.common.AuditLogType.SYSTEM_UPDATE_VDS_GROUP_FAILED ; } else { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VDS_GROUP : org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VDS_GROUP_FAILED ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getParameters ( ) . getIsInternalCommand ( ) ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.SYSTEM_UPDATE_VDS_GROUP : org.ovirt.engine.core.common.AuditLogType.SYSTEM_UPDATE_VDS_GROUP_FAILED ; } return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VDS_GROUP : org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VDS_GROUP_FAILED ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; return storageDomains.isEmpty ( ) ; } return source ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; return storageDomains.isEmpty ( ) ; } return false ; }