auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addNetworks ( org.ovirt.engine.core.common.businessentities.network.Network ... networks ) { if ( ( networks.length ) == 0 ) { return this ; } addNetworks ( java.util.Arrays.asList ( networks ) ) ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addNetworks ( org.ovirt.engine.core.common.businessentities.network.Network ... networks ) { if ( networks == null ) { return this ; } addNetworks ( java.util.Arrays.asList ( networks ) ) ; return this ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( problematicItems.contains ( vm ) ) { return getApplicationResources ( ) . alertImage ( ) ; } return null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object vm ) { if ( problematicItems.contains ( vm ) ) { return getApplicationResources ( ) . alertImage ( ) ; } return null ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getExternalNetwork ( org.ovirt.engine.core.common.businessentities.network.ProviderNetwork providerNetwork ) { return getClient ( ) . networks ( ) . show ( providerNetwork.getExternalId ( ) ) . execute ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getExternalNetwork ( org.ovirt.engine.core.common.businessentities.network.ProviderNetwork providerNetwork ) { return execute ( getClient ( ) . networks ( ) . show ( providerNetwork.getExternalId ( ) ) ) ; }
Source:
protected void init ( ) { parent.setBackend ( backend ) ; parent.setMappingLocator ( mapperLocator ) ; parent.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }

Target:
protected void init ( ) { parent.setMappingLocator ( mapperLocator ) ; parent.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }
Source:
public void setDisksUsage ( java.lang.String value ) { disksUsage = value ; }

Target:
public void setDisksUsage ( java.lang.String disksUsage ) { this . disksUsage = disksUsage ; }
Source:
private void setUpVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( org.ovirt.engine.core.bll.pm.FenceAgentExecutorTest.FENCECD_HOST_ID ) ; }

Target:
private void setUpVds ( ) { vds.setId ( org.ovirt.engine.core.bll.pm.FenceAgentExecutorTest.FENCECD_HOST_ID ) ; }
Source:
public void validateSucceedsWithStartActionType ( ) { cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsWithStartActionType ( ) { cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void tearDown ( ) { org.powermock.api.easymock.PowerMock.verifyAll ( ) ; org.ovirt.engine.api.common.invocation.CurrentManager.remove ( ) ; }

Target:
public void tearDown ( ) { verifyAll ( ) ; org.ovirt.engine.api.common.invocation.CurrentManager.remove ( ) ; }
Source:
public void setguest_cur_user_name ( java.lang.String value ) { this . mVmDynamic.setguest_cur_user_name ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "guest_cur_user_name" ) ) ; }

Target:
public void setguest_cur_user_name ( java.lang.String value ) { this . mVmDynamic.setguest_cur_user_name ( value ) ; }
Source:
private org.ovirt.engine.core.common.action.SetupNetworksParameters createSetupNetworkParams ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces ) { org.ovirt.engine.core.common.action.SetupNetworksParameters parameters = new org.ovirt.engine.core.common.action.SetupNetworksParameters ( ) ; parameters.setVdsId ( host.getId ( ) ) ; parameters.setInterfaces ( interfaces ) ; parameters.setCheckConnectivity ( true ) ; return parameters ; }

Target:
public org.ovirt.engine.core.common.action.SetupNetworksParameters createSetupNetworkParams ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces ) { org.ovirt.engine.core.common.action.SetupNetworksParameters parameters = new org.ovirt.engine.core.common.action.SetupNetworksParameters ( ) ; parameters.setVdsId ( host.getId ( ) ) ; parameters.setInterfaces ( interfaces ) ; parameters.setCheckConnectivity ( true ) ; return parameters ; }
Source:
public java.lang.String getHostFingerprint ( ) throws java.lang.Exception { if ( ( _client ) == null ) { throw new java.net.ConnectException ( "SSH is not connected" ) ; } return ( ( org.ovirt.engine.core.bll.utils.EngineSSHClient ) ( _client ) ) . getHostFingerprint ( ) ; }

Target:
public java.lang.String getHostFingerprint ( ) throws java.lang.Exception { if ( ( client ) == null ) { throw new java.net.ConnectException ( "SSH is not connected" ) ; } return ( ( org.ovirt.engine.core.bll.utils.EngineSSHClient ) ( client ) ) . getHostFingerprint ( ) ; }
Source:
protected boolean canDoAction ( ) { return sessionDataContainer.isSessionExists ( org.ovirt.engine.core.bll.aaa.LogoutSessionCommand.getParameters ( ) . getSessionId ( ) ) ; }

Target:
protected boolean validate ( ) { return sessionDataContainer.isSessionExists ( org.ovirt.engine.core.bll.aaa.LogoutSessionCommand.getParameters ( ) . getSessionId ( ) ) ; }
Source:
private void updateStepProgress ( org.ovirt.engine.core.compat.Guid stepId , java.lang.Integer progress ) { org.ovirt.engine.core.common.job.Step s = dao.get ( stepId ) ; s.setProgress ( progress ) ; dao.update ( s ) ; }

Target:
private void updateStepProgress ( org.ovirt.engine.core.compat.Guid stepId , java.lang.Integer progress ) { dao.updateStepProgress ( stepId , progress ) ; }
Source:
private int extractIntFromListModel ( org.ovirt.engine.ui.uicommonweb.models.ListModel model ) { return ( model.getSelectedItem ( ) ) != null ? java.lang.Integer.parseInt ( model.getSelectedItem ( ) . toString ( ) ) : 0 ; }

Target:
protected int extractIntFromListModel ( org.ovirt.engine.ui.uicommonweb.models.ListModel model ) { return ( model.getSelectedItem ( ) ) != null ? java.lang.Integer.parseInt ( model.getSelectedItem ( ) . toString ( ) ) : 0 ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return "" ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent.fire ( eventBus ) ; }

Target:
protected void beforeLogin ( ) { org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent.fire ( eventBus ) ; }
Source:
protected void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( false ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( false ) ; }
Source:
public void testGetInnerJoin ( ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter comp = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( true ) ; org.junit.Assert.assertNotNull ( "Sanity test" , comp.getInnerJoin ( "EVENT" , "USER" ) ) ; }

Target:
public void testGetInnerJoin ( ) { org.junit.Assert.assertNotNull ( "Sanity test" , comp.getInnerJoin ( "EVENT" , "USER" ) ) ; }
Source:
protected void setSoundcard ( org.ovirt.engine.api.model.VM model ) { model.setSoundcardEnabled ( ( ! ( org.ovirt.engine.api.restapi.util.VmHelper.getInstance ( ) . getSoundDevicesForEntity ( new org.ovirt.engine.core.compat.Guid ( model.getId ( ) ) ) . isEmpty ( ) ) ) ) ; }

Target:
protected void setSoundcard ( org.ovirt.engine.api.model.VM model ) { model.setSoundcardEnabled ( ( ! ( org.ovirt.engine.api.restapi.util.VmHelper.getSoundDevicesForEntity ( this , new org.ovirt.engine.core.compat.Guid ( model.getId ( ) ) ) . isEmpty ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > getHostProvider ( ) { return org.ovirt.engine.core.bll.AddVdsCommand.getProviderDao ( ) . get ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getProviderId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getHostProvider ( ) { return org.ovirt.engine.core.bll.AddVdsCommand.getProviderDao ( ) . get ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getProviderId ( ) ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { createReourceWithBadGuid ( ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendNetworkAttachmentResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { createReourceWithBadGuid ( ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendNetworkAttachmentResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testAddUser_4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setId ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN.getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) , true ) . toString ( ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }

Target:
public void testAddUser_4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; domain.setId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( domain.getName ( ) ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }
Source:
protected void setUpEntityExpectations ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { org.easymock.EasyMock.expect ( entity.getNicId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.HOST_NIC_ID ) . anyTimes ( ) ; }

Target:
protected void setUpEntityExpectations ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { org.mockito.Mockito.when ( entity.getNicId ( ) ) . thenReturn ( org.ovirt.engine.api.restapi.resource.HOST_NIC_ID ) ; }
Source:
protected void getNics ( final org.ovirt.engine.ui.frontend.AsyncQuery getNicsQuery , final org.ovirt.engine.core.compat.Guid vmId , final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getTemplateNicList ( getNicsQuery , vmId ) ; }

Target:
protected void getNics ( final org.ovirt.engine.ui.frontend.AsyncQuery getNicsQuery , final org.ovirt.engine.core.compat.Guid vmId , final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getTemplateNicList ( getNicsQuery , vmId ) ; }
Source:
public java.lang.String transform ( java.lang.String formatString , java.lang.Object ... args ) { formatString = formatString.replaceAll ( "'" , "" ) ; return java.text.MessageFormat.format ( formatString , args ) ; }

Target:
protected java.lang.String transform ( java.lang.String formatString , java.lang.Object ... args ) { return java.text.MessageFormat.format ( formatString.replaceAll ( "'" , "" ) , args ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagByName ( org.ovirt.engine.core.bll.GetTagByTagNameQuery.getParameters ( ) . getTagName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagByName ( org.ovirt.engine.core.bll.GetTagByTagNameQuery.getParameters ( ) . getName ( ) ) ) ; }
Source:
public void vmTemplateNameDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final java.lang.String n = b.getVmTemplateName ( ) ; org.junit.Assert.assertNull ( n ) ; }

Target:
public void vmTemplateNameDefault ( ) { final java.lang.String n = b.getVmTemplateName ( ) ; org.junit.Assert.assertNull ( n ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.Permission user ) { if ( ( user.getRoleType ( ) ) == ( org.ovirt.engine.core.common.businessentities.RoleType.ADMIN ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn.constants.admin ( ) ) ; } return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn.constants.user ( ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.Permission user ) { if ( ( user.getRoleType ( ) ) == ( org.ovirt.engine.core.common.businessentities.RoleType.ADMIN ) ) { return org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn.constants.admin ( ) ; } return org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn.constants.user ( ) ; }
Source:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CheckIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getDeviceList ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return getEntity ( java.util.List.class , VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , storageType , false , null ) , "GetDeviceList" , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getDeviceList ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return getEntity ( java.util.List.class , VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , storageType , false , null , false ) , "GetDeviceList" , true ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( returnValue ) ) ; updateOptions ( ( ! ( disks.isEmpty ( ) ) ) ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { updateOptions ( ( ! ( disks.isEmpty ( ) ) ) ) ; }
Source:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.DisconnectStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }

Target:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.DisconnectStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DisableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DisableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( HOOK_ID ) , null ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status , final java.lang.Double statusUpdatedTime ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown , statusUpdatedTime ) ; }

Target:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown ) ; }
Source:
private org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > setupQueryBySnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.common.queries.IdQueryParameters queryParams = getQueryParameters ( ) ; org.mockito.Mockito.when ( queryParams.getId ( ) ) . thenReturn ( snapshotId ) ; org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > query = getQuery ( ) ; return query ; }

Target:
private org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > setupQueryBySnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.common.queries.IdQueryParameters queryParams = getQueryParameters ( ) ; org.mockito.Mockito.when ( queryParams.getId ( ) ) . thenReturn ( snapshotId ) ; return getQuery ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__ADD ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__ADD ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; }
Source:
private void addVmInterfaceStatisticsToList ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > list ) { if ( ( list.size ( ) ) <= 0 ) { return ; } _vmInterfaceStatisticsToSave.put ( list.get ( 0 ) . getVmId ( ) , list ) ; }

Target:
private void addVmInterfaceStatisticsToList ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > list ) { if ( list.isEmpty ( ) ) { return ; } _vmInterfaceStatisticsToSave.put ( list.get ( 0 ) . getVmId ( ) , list ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > searchClusters ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVdsGroupDao ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > searchClusters ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVdsGroupDao ( ) , true ) ; }
Source:
public java.lang.String getName ( ) { return this . name ; }

Target:
public java.lang.String getName ( ) { return name ; }
Source:
private static < R extends org.ovirt.engine.api.model.BaseResource > void setHref ( javax.ws.rs.core.UriInfo uriInfo , R model ) { org.ovirt.engine.api.restapi.util.LinkHelper.setHref ( uriInfo , model , null ) ; }

Target:
private static void setHref ( org.ovirt.engine.api.model.BaseResource model ) { org.ovirt.engine.api.restapi.util.LinkHelper.setHref ( model , null ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true , null ) ; }
Source:
public static void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomainStatus getStorageDomainStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatus status = null ; if ( ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) ) != null ) { status = org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getstatus ( ) ; } return status ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomainStatus getStorageDomainStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatus status = null ; if ( ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) ) != null ) { status = org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getStatus ( ) ; } return status ; }
Source:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getVdsGroupCompatibilityVersion ( ) , value ) ) { this . vdsGroupCompatibilityVersion = value ; } }

Target:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { this . vdsGroupCompatibilityVersion = value ; }
Source:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( group ( ) . enforcing ( ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( group ( ) . name ( ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( group ( ) . positive ( ) ) ; }

Target:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( group ( ) . name ( ) ) ; }
Source:
public long getsize ( ) { return getImage ( ) . getSize ( ) ; }

Target:
public long getSize ( ) { return getImage ( ) . getSize ( ) ; }
Source:
protected void PostDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { super . PostDiscoverTargets ( newItems ) ; InitializeItems ( newItems ) ; getContainer ( ) . StopProgress ( ) ; }

Target:
protected void PostDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { super . PostDiscoverTargets ( newItems ) ; InitializeItems ( newItems ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { populateRoles ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Role > ) ( result ) ) ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Role > result ) { populateRoles ( result ) ; }
Source:
public void setStoragePoolId ( org.ovirt.engine.core.compat.NGuid storagePoolId ) { getStoragePoolIsoMapData ( ) . setstorage_pool_id ( storagePoolId ) ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePoolId ) { getStoragePoolIsoMapData ( ) . setstorage_pool_id ( storagePoolId ) ; }
Source:
private void attachFloppy_EntityChanged ( ) { getFloppyImage ( ) . setIsChangable ( ( ( java.lang.Boolean ) ( getAttachFloppy ( ) . getEntity ( ) ) ) ) ; updateInitialRunFields ( ) ; }

Target:
private void attachFloppy_EntityChanged ( ) { getFloppyImage ( ) . setIsChangable ( getAttachFloppy ( ) . getEntity ( ) ) ; updateInitialRunFields ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getstatus ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getStatus ( ) ; }
Source:
private void setMasterDomainId ( org.ovirt.engine.core.common.vdscommands.Guid value ) { privateMasterDomainId = value ; }

Target:
private void setMasterDomainId ( org.ovirt.engine.core.compat.Guid value ) { privateMasterDomainId = value ; }
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 renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( object ) ) . getName ( ) ; }
Source:
public void updateWithLowerVersionThanHosts ( ) { createSimpleCommand ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuExists ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuManufacturersMatch ( ) ; VdsExistWithHigherVersion ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_COMPATIBILITY_VERSION_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithLowerVersionThanHosts ( ) { createSimpleCommand ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; VdsExistWithHigherVersion ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_COMPATIBILITY_VERSION_WITH_LOWER_HOSTS ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
private void setAllListModelsUnavailable ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.ListModel m : getItems ( ) ) { if ( ! ( m instanceof org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel ) ) { m.setIsAvailable ( false ) ; } } }

Target:
private void setAllListModelsUnavailable ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.ListModel m : getItems ( ) ) { m.setIsAvailable ( false ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForVmPool ( org.ovirt.engine.core.compat.NGuid vmPoolId ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByVmPoolId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , vmPoolId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForVmPool ( org.ovirt.engine.core.compat.Guid vmPoolId ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByVmPoolId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , vmPoolId ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return disk.isWipeAfterDelete ( ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { return ( ( org.ovirt.engine.core.common.businessentities.Disk ) ( obj ) ) . isWipeAfterDelete ( ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.clusterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.FirstOrDefault ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ) ; prepare2 ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.clusterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.FirstOrDefault ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ) ; prepare2 ( ) ; }
Source:
public void setMessage ( java.lang.String message ) { messagePanel.setText ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( ( message != null ? message : "" ) ) . asString ( ) . replace ( "\n" , "<br>" ) ) ; }

Target:
public void setMessage ( java.lang.String message ) { messagePanel.setText ( ( message != null ? message.replace ( "\n" , "<br>" ) : "" ) ) ; }
Source:
public void setTotalDiskSize ( java.lang.Integer value ) { value = ( value == null ) ? 0 : value ; if ( ! ( totalDiskSize.equals ( value ) ) ) { totalDiskSize = value ; } }

Target:
public void setTotalDiskSize ( java.lang.Integer value ) { value = ( value == null ) ? java.lang.Integer.valueOf ( 0 ) : value ; if ( ! ( totalDiskSize.equals ( value ) ) ) { totalDiskSize = value ; } }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; mockVmWithDisk ( storageId ) ; mockVmNetworks ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
private javax.net.ssl.SSLEngine createSSLEngine ( boolean clientMode ) { final javax.net.ssl.SSLEngine engine = this . sslContext.createSSLEngine ( ) ; engine.setUseClientMode ( clientMode ) ; return engine ; }

Target:
protected javax.net.ssl.SSLEngine createSSLEngine ( boolean clientMode ) { final javax.net.ssl.SSLEngine engine = this . sslContext.createSSLEngine ( ) ; engine.setUseClientMode ( clientMode ) ; return engine ; }
Source:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( vdsManager , auditLogDirector , isTimeToRefreshStatistics ( ) ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( auditLogDirector , isTimeToRefreshStatistics ( ) ) ; }
Source:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) == ( domainMap.getstatus ( ) ) ) { addInvalidSDStatusMessage ( StorageDomainStatus.Locked ) ; return true ; } return false ; }

Target:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) == ( domainMap.getStatus ( ) ) ) { addInvalidSDStatusMessage ( StorageDomainStatus.Locked ) ; return true ; } return false ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true ) ; }
Source:
public void onLogout ( ) { user.onUserLogout ( ) ; }

Target:
public abstract void onLogout ( ) ;
Source:
public void setAddStyleNames ( java.lang.String style ) { getLabel ( ) . addStyleName ( style ) ; }

Target:
public void addStyleName ( java.lang.String style ) { getLabel ( ) . addStyleName ( style ) ; }
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 , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { runMultipleAction ( actionType , parameters , callback , 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 , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { runMultipleAction ( actionType , parameters , callback , null ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator createDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk , org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getVmDeviceUtils ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator createDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ; }
Source:
public java.lang.String getname ( ) { return name ; }

Target:
public java.lang.String getName ( ) { return name ; }
Source:
protected org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > generateCommand ( ) { return new org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > ( getParams ( ) ) { @ java.lang.Override protected void executeCommand ( ) { } } ; }

Target:
protected org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > generateCommand ( ) { return new org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > ( getParams ( ) , null ) { @ java.lang.Override protected void executeCommand ( ) { } } ; }
Source:
public static void updateVmDevicesOnRun ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( vmBase != null ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateUsbSlots ( vmBase , vmBase ) ; } }

Target:
public void updateVmDevicesOnRun ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( vmBase != null ) { updateUsbSlots ( vmBase , vmBase ) ; } }
Source:
public void testGetAllByStoragePoolAndConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result ) ; }

Target:
public void testGetAllByStoragePoolAndConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; }
Source:
public java.lang.String getMessage ( ) { return java.lang.String.format ( ( ( super . getMessage ( ) ) + " (Failed with error %1$s and code %2$s)" ) , privateVdsError.getCode ( ) , privateVdsError.getCode ( ) . getValue ( ) ) ; }

Target:
public java.lang.String getMessage ( ) { return ( super . getMessage ( ) ) + ( java.lang.String.format ( " (Failed with error %1$s and code %2$s)" , privateVdsError.getCode ( ) , privateVdsError.getCode ( ) . getValue ( ) ) ) ; }
Source:
public boolean checkIfCpusSameManufacture ( java.lang.String cpuName1 , java.lang.String cpuName2 , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.CheckIfCpusSameManufacture ( cpuName1 , cpuName2 ) ; } return false ; }

Target:
public boolean checkIfCpusSameManufacture ( java.lang.String cpuName1 , java.lang.String cpuName2 , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.checkIfCpusSameManufacture ( cpuName1 , cpuName2 ) ; } return false ; }
Source:
public java.lang.String getComment ( ) { if ( ( comment ) == null ) { comment = "" ; } return comment ; }

Target:
public java.lang.String getName ( ) { return name ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setName ( "Default" ) ; pool.setCompatibilityVersion ( Version.v3_5 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setName ( "Default" ) ; return pool ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.lang.Boolean isCliScheduleEnabled = ( ( java.lang.Boolean ) ( returnValue ) ) ; snapshotModel.getDisableCliSchedule ( ) . setEntity ( isCliScheduleEnabled ) ; snapshotModel.stopProgress ( ) ; }

Target:
public void onSuccess ( java.lang.Boolean isCliScheduleEnabled ) { snapshotModel.getDisableCliSchedule ( ) . setEntity ( isCliScheduleEnabled ) ; snapshotModel.stopProgress ( ) ; }
Source:
public void onSuccess ( java.lang.Object returnValue ) { nicHotplugSupportMap = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { nicHotplugSupportMap = returnValue.getReturnValue ( ) ; }
Source:
public void setLastVdsRunOn ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setLastVdsRunOn ( value ) ; }

Target:
public void setLastVdsRunOn ( org.ovirt.engine.core.compat.Guid value ) { this . vmDynamic.setLastVdsRunOn ( value ) ; }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( model ) ) . getClone ( ) . getIsChangable ( ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData model ) { return model.getClone ( ) . getIsChangable ( ) ; }
Source:
private java.util.Collection < org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping > getVnicProfileMappings ( org.ovirt.engine.api.model.Action action ) { return new org.ovirt.engine.api.restapi.types.ExternalVnicProfileMappingMapper ( ) . mapFromModel ( action.getVnicProfileMappings ( ) ) ; }

Target:
private java.util.Collection < org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping > getVnicProfileMappings ( org.ovirt.engine.api.model.Action action ) { return org.ovirt.engine.api.restapi.types.ExternalVnicProfileMappingMapper.mapFromModel ( action.getVnicProfileMappings ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
public void onUserLogin ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { setUserName ( loggedUser.getUserName ( ) ) ; setUserId ( loggedUser.getUserId ( ) ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }

Target:
public void onUserLogin ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { setUserName ( loggedUser.getUserName ( ) ) ; setUserId ( loggedUser.getUserId ( ) . toString ( ) ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( int idx ) { org.ovirt.engine.core.common.businessentities.storage_domains dom = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( int idx ) { org.ovirt.engine.core.common.businessentities.StorageDomain dom = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }
Source:
public void key ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String s = b.getKey ( ) ; org.junit.Assert.assertEquals ( AuditLogType.UNASSIGNED.toString ( ) , s ) ; }

Target:
public void key ( ) { final java.lang.String s = b.getKey ( ) ; org.junit.Assert.assertEquals ( AuditLogType.UNASSIGNED.toString ( ) , s ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( getPair ( ) ) == null ? 0 : getPair ( ) . hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( getPair ( ) . hashCode ( ) ) ; return result ; }
Source:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondContainingNetwork ( ) { org.ovirt.engine.api.restapi.resource.IscsiBond iscsiBond = new org.ovirt.engine.api.restapi.resource.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; iscsiBond.getNetworkIds ( ) . add ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.NETWORK_ID ) ; return iscsiBond ; }

Target:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondContainingNetwork ( ) { org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; iscsiBond.getNetworkIds ( ) . add ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.NETWORK_ID ) ; return iscsiBond ; }
Source:
public void timeoutObjectNull ( ) { 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 = null ; t.setTimeoutObjectId ( s ) ; org.junit.Assert.assertEquals ( t.getTimeoutObjectId ( ) , s ) ; }

Target:
public void timeoutObjectNull ( ) { 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 = null ; t.setTimeoutObjectId ( s ) ; org.junit.Assert.assertEquals ( s , t.getTimeoutObjectId ( ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( checkAddEditValidations ( ) ) ) { return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { return checkAddEditValidations ( ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters params = new org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters ( ( ( org.ovirt.engine.api.restapi.resource.BackendVmDisksResource ) ( collection ) ) . parentId , guid ) ; return doAction ( VdcActionType.HotUnPlugDiskFromVm , params , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters params = new org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters ( vmId , guid ) ; return doAction ( VdcActionType.HotUnPlugDiskFromVm , params , action ) ; }
Source:
public void setVmtGuid ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setvmt_guid ( value ) ; }

Target:
public void setVmtGuid ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setVmtGuid ( value ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid findImageForSameDrive ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType ) { return findImageForSameDrive ( getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.BaseImagesCommand.getVmDAO ( ) . getVmsListForDisk ( getImage ( ) . getId ( ) ) . get ( 0 ) . getId ( ) , snapshotType ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid findImageForSameDrive ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType ) { return findImageForSameDrive ( getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.BaseImagesCommand.getVmDAO ( ) . getVmsListForDisk ( getImage ( ) . getId ( ) , false ) . get ( 0 ) . getId ( ) , snapshotType ) ) ; }