auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > findGroupsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryGroups ( extension , namespace , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.GROUP ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > findGroupsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryGroups ( extension , namespace , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.GROUP ) , false , false ) ; }
Source:
private void unlockEntities ( ) { getSnapshotDao ( ) . updateStatus ( sourceSnapshotId , SnapshotStatus.OK ) ; org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmDynamicDao ( ) . updateStatus ( org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmId ( ) , VMStatus.Down ) ; }

Target:
protected void unlockEntities ( ) { getSnapshotDao ( ) . updateStatus ( sourceSnapshotId , SnapshotStatus.OK ) ; org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmDynamicDao ( ) . updateStatus ( org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getVmId ( ) , VMStatus.Down ) ; }
Source:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public void cancel ( ) { resetData ( ) ; setWindow ( null ) ; }

Target:
protected void cancel ( ) { resetData ( ) ; setWindow ( null ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getname ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getName ( ) ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . syncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters ( vm.getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . syncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }
Source:
private void mockDiskDaoGetAllForVm ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks , boolean onlyPluggedDisks ) { org.mockito.Mockito.doReturn ( disks ) . when ( diskDao ) . getAllForVm ( vm.getId ( ) , onlyPluggedDisks ) ; }

Target:
private void mockDiskDaoGetAllForVm ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { org.mockito.Mockito.doReturn ( disks ) . when ( diskDao ) . getAllForVm ( vm.getId ( ) , true ) ; }
Source:
private boolean isAtLeastOneVmIsNotDown ( ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vmsDiskPluggedTo ) { if ( ( vm.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) { return true ; } } return false ; }

Target:
private boolean isAtLeastOneVmIsNotDown ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > vmsDiskPluggedTo ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vmsDiskPluggedTo ) { if ( ( vm.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) { return true ; } } return false ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSCommandType getRevertVDSCommandType ( ) { return org.ovirt.engine.core.common.vdscommands.VDSCommandType.DeleteImageGroup ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSCommandType getRevertVDSCommandType ( ) { return null ; }
Source:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > score ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters ) { return super . score ( hosts , vm , parameters ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > score ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters ) { return super . score ( cluster , hosts , vm , parameters ) ; }
Source:
private void updateIsMemorySnapshotSupported ( java.lang.Object entity ) { if ( entity == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( entity ) ) ; setMemorySnapshotSupported ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isMemorySnapshotSupported ( vm ) ) ; }

Target:
private void updateIsMemorySnapshotSupported ( java.lang.Object entity ) { if ( entity == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( entity ) ) ; setMemorySnapshotSupported ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . isMemorySnapshotSupported ( vm ) ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.EnableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( CLUSTER_ID , HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.EnableGlusterHookCommand < org.ovirt.engine.core.common.action.gluster.GlusterHookParameters > ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void WriteEndElement ( ) { try { writer.writeEndElement ( ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write end element" , e ) ; } }

Target:
public void writeEndElement ( ) { try { writer.writeEndElement ( ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write end element" , e ) ; } }
Source:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createDiskImage ( long sizeInGigabytes ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setSizeInGigabytes ( sizeInGigabytes ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createDiskImage ( long sizeInGigabytes ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setSizeInGigabytes ( sizeInGigabytes ) ; return image ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getQueryParameters ( ) { return new org.ovirt.engine.core.common.queries.StorageDomainAndPoolQueryParameters ( org.ovirt.engine.core.compat.Guid.Empty , dataCenterId ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getQueryParameters ( ) { return new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ; }
Source:
public void testGetClusterByClusterPolicyIdNegative ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertTrue ( ( ( result == null ) || ( ( result.size ( ) ) == 0 ) ) ) ; }

Target:
public void testGetClusterByClusterPolicyIdNegative ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( result.size ( ) , 0 ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.ClientConsoleMode getDefaultConsoleMode ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.ClientModeSpiceDefault ) ) ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.ClientConsoleMode getDefaultConsoleMode ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.ClientModeSpiceDefault ) ) ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpQueryExpectations ( query , failure , StorageDomainType.Data , true ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpQueryExpectations ( query , failure , StorageDomainType.Data ) ; }
Source:
public final java.lang.String getPathValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( java.lang.String ) ( GetValue ( DataType.String , name , defaultValue ) ) ) ; }

Target:
public final java.lang.String getPathValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( java.lang.String ) ( getValue ( DataType.String , name , defaultValue ) ) ) ; }
Source:
public void testUploadIsDefaultTransferType ( ) { org.junit.Assert.assertEquals ( transferImageCommand.getParameters ( ) . getTransferType ( ) , TransferType.Upload ) ; }

Target:
public void testUploadIsDefaultTransferType ( ) { org.junit.Assert.assertEquals ( TransferType.Upload , transferImageCommand.getParameters ( ) . getTransferType ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.storage_domains source = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; source.setstorage_domain_type ( StorageDomainType.ImportExport ) ; source.setstatus ( StorageDomainStatus.Active ) ; return source ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain source = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; source.setstorage_domain_type ( StorageDomainType.ImportExport ) ; source.setstatus ( StorageDomainStatus.Active ) ; return source ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , false ) ; }

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:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoMatchingNetworks ( ) { 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 ( GUIDS [ 1 ] ) ; return iscsiBond ; }

Target:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoMatchingNetworks ( ) { 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 ( GUIDS [ 0 ] ) ; return iscsiBond ; }
Source:
private int getPort ( ) { return urlobj.getPort ( ) ; }

Target:
protected int getPort ( ) { return urlobj.getPort ( ) ; }
Source:
private boolean validateVM ( org.ovirt.engine.core.bll.validator.VmValidator vmValidator ) { return ( canDoSnapshot ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVm ( ) ) ) && ( validate ( vmValidator.vmNotSavingRestoring ( ) ) ) ; }

Target:
protected boolean validateVM ( org.ovirt.engine.core.bll.validator.VmValidator vmValidator ) { return ( canDoSnapshot ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVm ( ) ) ) && ( validate ( vmValidator.vmNotSavingRestoring ( ) ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { org.ovirt.engine.ui.common.widget.uicommon.storage.DisksAllocationView.Driver.driver.edit ( model ) ; initListerners ( model ) ; InitStorageTable ( model.getIsSingleDiskCopy ( ) ) ; updateColumnsAvailability ( model ) ; updateListHeader ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { org.ovirt.engine.ui.common.widget.uicommon.storage.DisksAllocationView.Driver.driver.edit ( model ) ; initListerners ( model ) ; updateColumnsAvailability ( model ) ; updateListHeader ( model ) ; }
Source:
public void checkCinderStorageDomainContainDisks ( ) { setCinderStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; cinderStorageDomainContainsDisks ( false ) ; masterDomainIsUp ( ) ; isNotLocalData ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertFalse ( cmd.canDetachDomain ( false , false , false ) ) ; }

Target:
public void checkCinderStorageDomainContainDisks ( ) { setCinderStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; cinderStorageDomainContainsDisks ( false ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertFalse ( cmd.canDetachDomain ( false , false ) ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunQuery ( org.ovirt.engine.core.common.queries.VdcQueryType search , org.ovirt.engine.core.common.queries.VdcQueryParametersBase searchParameters ) ;

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType search , org.ovirt.engine.core.common.queries.VdcQueryParametersBase searchParameters ) ;
Source:
public void insufficientDiskSpace ( ) { final org.ovirt.engine.core.bll.ImportVmTemplateCommand command = setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.Matchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; }

Target:
public void insufficientDiskSpace ( ) { final org.ovirt.engine.core.bll.ImportVmTemplateCommand command = setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.Matchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , device , type , address , bootOrder , specParams , isManaged , isPlugged , getIsReadOnly ( ) , alias , customProperties , snapshotId , logicalName , hostDevice ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , device , type , address , specParams , isManaged , isPlugged , getIsReadOnly ( ) , alias , customProperties , snapshotId , logicalName , hostDevice ) ; }
Source:
private static void raiseQueryCompleteEvent ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final java.lang.String context ) { org.ovirt.engine.ui.frontend.Frontend.raiseQueryEvent ( org.ovirt.engine.ui.frontend.Frontend.getQueryCompleteEvent ( ) , queryType , context ) ; }

Target:
private void raiseQueryCompleteEvent ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final java.lang.String context ) { raiseQueryEvent ( getQueryCompleteEvent ( ) , queryType , context ) ; }
Source:
protected org.ovirt.engine.core.common.job.Step generateNewEntity ( ) { org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step ( org.ovirt.engine.core.common.job.StepEnum.EXECUTING ) ; step.setJobId ( org.ovirt.engine.core.dao.StepDaoTest.EXISTING_JOB_ID ) ; step.setStepNumber ( 1 ) ; step.setDescription ( "Execution step" ) ; step.setCorrelationId ( "Some correlation id" ) ; return step ; }

Target:
private org.ovirt.engine.core.common.job.Step generateNewEntity ( ) { org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step ( org.ovirt.engine.core.common.job.StepEnum.EXECUTING ) ; step.setJobId ( org.ovirt.engine.core.dao.StepDaoTest.EXISTING_JOB_ID ) ; step.setStepNumber ( 1 ) ; step.setDescription ( "Execution step" ) ; step.setCorrelationId ( "Some correlation id" ) ; return step ; }
Source:
public void rollbackQuotaByVmId ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.quota.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . get ( vmId ) ; if ( vm != null ) { removeQuotaFromCache ( vm.getStoragePoolId ( ) , vm.getQuotaId ( ) ) ; } }

Target:
public void rollbackQuotaByVmId ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . get ( vmId ) ; if ( vm != null ) { removeQuotaFromCache ( vm.getStoragePoolId ( ) , vm.getQuotaId ( ) ) ; } }
Source:
protected void init ( ) { setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newLogicalNetworkTitle ( ) ) ; setHashName ( "new_logical_network" ) ; }

Target:
private void init ( ) { setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newLogicalNetworkTitle ( ) ) ; setHashName ( "new_logical_network" ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( nicId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( nicId ) ; }
Source:
public final void setEventBus ( com.google.gwt.event.shared.EventBus eventBus ) { assert eventBus != null : "EventBus cannot be null" ; assert ( this . eventBus ) == null : "EventBus is already set" ; this . eventBus = eventBus ; registerHandlers ( ) ; }

Target:
public final void setEventBus ( com.google.gwt.event.shared.EventBus eventBus ) { this . eventBus = eventBus ; registerHandlers ( ) ; }
Source:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CheckIfCpusSameManufacture ( group.getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusSameManufacture ( group.getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel ) ( model ) ) . isRequired ( ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel model ) { return model.isRequired ( ) ; }
Source:
protected org.ovirt.engine.core.bll.AddVmCommand < org.ovirt.engine.core.common.action.AddVmParameters > createCommand ( ) { initVM ( ) ; org.ovirt.engine.core.common.action.AddVmParameters param = new org.ovirt.engine.core.common.action.AddVmParameters ( vm ) ; return new org.ovirt.engine.core.bll.AddVmCommand ( param , null ) ; }

Target:
protected org.ovirt.engine.core.bll.AddVmCommand < org.ovirt.engine.core.common.action.AddVmParameters > createCommand ( ) { initVM ( ) ; return new org.ovirt.engine.core.bll.AddVmCommand ( new org.ovirt.engine.core.common.action.AddVmParameters ( vm ) , null ) ; }
Source:
public void setWin2kHackEnable ( java.lang.Boolean value ) { _win2kHackEnable = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Win2kHackEnable" ) ) ; }

Target:
public void setWin2kHackEnable ( java.lang.Boolean value ) { _win2kHackEnable = value ; }
Source:
protected org.ovirt.engine.core.compat.Guid extractStoragePoolIdNullSafe ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return entity.getstorage_pool_id ( ) . getValue ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid extractStoragePoolIdNullSafe ( org.ovirt.engine.core.common.businessentities.VmTemplate entity ) { return entity.getStoragePoolId ( ) . getValue ( ) ; }
Source:
public void onLogout ( ) { user.onUserLogout ( ) ; frontendFailureEventListener.hide ( ) ; }

Target:
public void onLogout ( ) { user.onUserLogout ( ) ; }
Source:
protected java.lang.Long asLong ( java.lang.String id ) { try { return new java.lang.Long ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }

Target:
protected java.lang.Long asLong ( java.lang.String id ) { try { return java.lang.Long.valueOf ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }
Source:
protected org.ovirt.engine.api.model.HostNIC map ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface entity , org.ovirt.engine.api.model.HostNIC template ) { return map ( entity , template , null ) ; }

Target:
protected org.ovirt.engine.api.model.HostNIC map ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity , org.ovirt.engine.api.model.HostNIC template ) { return map ( entity , template , null ) ; }
Source:
private org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters buildRemoveMemoryVolumesParameters ( java.lang.String memoryState , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters params = new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , vmId ) ; params.setEntityInfo ( org.ovirt.engine.core.bll.RemoveVmCommand.getParameters ( ) . getEntityInfo ( ) ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters buildRemoveMemoryVolumesParameters ( java.lang.String memoryState , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters params = new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , vmId , true ) ; params.setEntityInfo ( org.ovirt.engine.core.bll.RemoveVmCommand.getParameters ( ) . getEntityInfo ( ) ) ; return params ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; prepareMocks ( ) ; prepareParameters ( ) ; createInputLUNs ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; prepareMocks ( ) ; createInputLUNs ( ) ; }
Source:
private void setHostname ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { privateHostname = value ; }

Target:
private void setHostname ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value ) { privateHostname = value ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsDao ( ) ; existingVds = dao.get ( FixturesTool.HOST_ID ) ; existingVds2 = dao.get ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; newVmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; existingVds = dao.get ( FixturesTool.HOST_ID ) ; existingVds2 = dao.get ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; newVmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.users.VdcUser result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Sucessfully executed sync getIsUserLoggedIn!" ) ; callback.OnSuccess ( result ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.users.VdcUser result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Sucessfully executed sync getIsUserLoggedIn!" ) ; callback.onSuccess ( result ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Templates list ( ) { org.ovirt.engine.api.v3.types.V3Templates templates = adaptList ( getDelegate ( ) :: list ) ; templates.getTemplates ( ) . stream ( ) . forEach ( V3TemplateHelper :: addDisksLink ) ; return templates ; }

Target:
public org.ovirt.engine.api.v3.types.V3Templates list ( ) { org.ovirt.engine.api.v3.types.V3Templates templates = adaptList ( getDelegate ( ) :: list ) ; templates.getTemplates ( ) . forEach ( V3TemplateHelper :: addDisksLink ) ; return templates ; }
Source:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue createVDSReturnValue ( org.ovirt.engine.core.compat.Guid serverId , org.ovirt.engine.core.common.businessentities.gluster.GlusterServiceStatus status ) { return createVDSReturnValue ( serverId , createServerServices ( serverId , status ) ) ; }

Target:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue createVDSReturnValue ( org.ovirt.engine.core.compat.Guid serverId , org.ovirt.engine.core.common.businessentities.gluster.GlusterServiceStatus status ) { return createVDSReturnValue ( createServerServices ( serverId , status ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.validator.IscsiBondValidator validator = new org.ovirt.engine.core.bll.validator.IscsiBondValidator ( ) ; return validate ( validator.isIscsiBondExist ( getIscsiBond ( ) ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.validator.IscsiBondValidator validator = new org.ovirt.engine.core.bll.validator.IscsiBondValidator ( ) ; return validate ( validator.isIscsiBondExist ( getIscsiBond ( ) ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.DISABLED ) ; }
Source:
protected java.lang.String getSupportedStorageFormats ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.SupportedStorageFormats , version.toString ( ) ) ; }

Target:
protected java.lang.String getSupportedStorageFormats ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.SupportedStorageFormats , version.toString ( ) ) ; }
Source:
protected void mockVds ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setClusterCompatibilityVersion ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }

Target:
protected void mockVds ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setClusterCompatibilityVersion ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( vds ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getBusinessEntitySnapshotDao ( ) ; prepareDAO ( dao ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getBusinessEntitySnapshotDao ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage_pool object ) { return object.getcompatibility_version ( ) . getValue ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getcompatibility_version ( ) . getValue ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.UserPortalRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }

Target:
public void onSuccess ( java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.UserPortalRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.Boolean isPlugged , java.lang.Boolean isReadOnly , boolean isUsingScsiReservation ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , isPlugged , isReadOnly , "" , isUsingScsiReservation ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.Boolean isPlugged , java.lang.Boolean isReadOnly , boolean isUsingScsiReservation ) { return addDiskDevice ( vmId , deviceId , isPlugged , isReadOnly , "" , isUsingScsiReservation ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( storageDomainId ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; updateSearchStringFromParameters ( ) ; modelProvider.onMainViewSelected ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; modelProvider.onMainViewSelected ( ) ; }
Source:
public void Rollback ( ) { super . Rollback ( ) ; try { org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . freeMac ( org.ovirt.engine.core.bll.AddVmInterfaceCommand.getParameters ( ) . getInterface ( ) . getMacAddress ( ) ) ; } catch ( java.lang.Exception e ) { } }

Target:
private java.lang.String getMacAddress ( ) { return org.ovirt.engine.core.bll.AddVmInterfaceCommand.getParameters ( ) . getInterface ( ) . getMacAddress ( ) ; }
Source:
public void setPmOptionsMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { mVdsStatic.setPmOptionsMap ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "PmOptionsMap" ) ) ; }

Target:
public void setPmOptionsMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { mVdsStatic.setPmOptionsMap ( value ) ; }
Source:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommandTest.createParameters ( ) ; org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommandTest.VALID_OVIRT_VERSION ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( ) { return getEntities ( false ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( ) { return getEntities ( false , false ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages , getPendingResourceManager ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages , getPendingResourceManager ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; cnx.setid ( GUIDS [ index ] . toString ( ) ) ; cnx.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; cnx.setId ( GUIDS [ index ] . toString ( ) ) ; cnx.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }
Source:
public org.ovirt.engine.core.common.businessentities.RoleGroupMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.RoleGroupMap entity = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( rs.getInt ( "action_group_id" ) ) , getGuidDefaultEmpty ( rs , "role_id" ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.RoleGroupMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( rs.getInt ( "action_group_id" ) ) , getGuidDefaultEmpty ( rs , "role_id" ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getname ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getName ( ) . equals ( getParameters ( ) . getNetwork ( ) . getName ( ) ) ; }
Source:
public java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.DiskImage > getImageToDestinationDomainMap ( java.lang.Boolean isSingle ) { updateImageToDestinationDomainMap ( isSingle ) ; return imageToDestinationDomainMap ; }

Target:
public java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.DiskImage > getImageToDestinationDomainMap ( ) { updateImageToDestinationDomainMap ( ) ; return imageToDestinationDomainMap ; }
Source:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBond ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.IscsiBond.class , VdcQueryType.GetIscsiBondById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( iscsiBondId ) , iscsiBondId.toString ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBond ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.IscsiBond.class , VdcQueryType.GetIscsiBondById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( iscsiBondId ) , iscsiBondId.toString ( ) ) ; }
Source:
private void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , true , Guid.Empty , null ) ; }

Target:
private void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , Guid.Empty , null ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , org.ovirt.engine.core.bll.utils.VmDeviceUtils.EMPTY_SPEC_PARAMS , true , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , org.ovirt.engine.core.bll.utils.VmDeviceUtils.EMPTY_SPEC_PARAMS , true , false ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getImageStorageDomainMapDao ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getImageStorageDomainMapDao ( ) ; }
Source:
public void updateUsbFilter ( ) { fetchFile ( ( ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getInstance ( ) . getPath ( ) ) + "services/files/usbfilter.txt" ) , usbFilterFileFetchedEvent ) ; }

Target:
public void updateUsbFilter ( ) { fetchFile ( ( ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getPath ( ) ) + "services/files/usbfilter.txt" ) , usbFilterFileFetchedEvent ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Network > getNetworkList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Network > list = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Network > ( ) ; list.add ( network ) ; return list ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > getNetworkList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > list = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; list.add ( network ) ; return list ; }
Source:
public org.ovirt.engine.api.model.Disk get ( ) { return performGet ( VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.GetDiskByDiskIdParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Disk get ( ) { return performGet ( VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public boolean match ( java.lang.String s ) { return vm.getCurrentCd ( ) . equals ( s ) ; }

Target:
public boolean match ( java.lang.String s ) { return ( ( vm.getCurrentCd ( ) ) != null ) && ( vm.getCurrentCd ( ) . equals ( s ) ) ; }
Source:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { status = value.getValue ( ) ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { status = value ; }
Source:
private void mockValidateCustomProperties ( ) { org.mockito.Mockito.doReturn ( java.util.Collections.< org.ovirt.engine.core.common.utils.customprop.ValidationError > emptyList ( ) ) . when ( command ) . validateCustomProperties ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) ) ; }

Target:
private void mockValidateCustomProperties ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateCustomProperties ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) , org.mockito.Matchers.any ( java.util.ArrayList.class ) ) ; }
Source:
public com.google.gwt.event.dom.client.HasKeyDownHandlers getSearchInputHandlers ( ) { return searchStringInput.getValueBox ( ) ; }

Target:
public com.google.gwt.event.dom.client.HasKeyDownHandlers getSearchInputHandlers ( ) { return searchStringInput ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateDataCenterVersion ( ) ; getSearchCommand ( ) . execute ( ) ; updateIsDiskHotPlugAvailable ( ) ; updateLiveStorageMigrationEnabled ( ) ; } updateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateDataCenterVersion ( ) ; getSearchCommand ( ) . execute ( ) ; updateIsDiskHotPlugAvailable ( ) ; } updateActionAvailability ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.AsyncTaskStatus getTaskStatus ( int index ) { org.ovirt.engine.core.common.businessentities.AsyncTaskStatus status = new org.ovirt.engine.core.common.businessentities.AsyncTaskStatus ( ) ; status.setStatus ( AsyncTaskStatusEnum.finished ) ; status.setResult ( AsyncTaskResultEnum.success ) ; return status ; }

Target:
protected org.ovirt.engine.core.common.businessentities.AsyncTaskStatus getTaskStatus ( ) { org.ovirt.engine.core.common.businessentities.AsyncTaskStatus status = new org.ovirt.engine.core.common.businessentities.AsyncTaskStatus ( ) ; status.setStatus ( AsyncTaskStatusEnum.finished ) ; status.setResult ( AsyncTaskResultEnum.success ) ; return status ; }
Source:
org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData createImportEntityData ( java.lang.Object entity ) { return new org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( entity ) ) ) ; }

Target:
org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData < org.ovirt.engine.core.common.businessentities.VM > createImportEntityData ( org.ovirt.engine.core.common.businessentities.VM entity ) { return new org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ( entity ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getNetworkClusterDAO ( ) . remove ( getParameters ( ) . getVdsGroupId ( ) , getParameters ( ) . getNetwork ( ) . getId ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getNetworkClusterDAO ( ) . remove ( getParameters ( ) . getVdsGroupId ( ) , getNetwork ( ) . getId ( ) ) ; return null ; }
Source:
public void setMaxVdsMemoryOverCommit ( int value ) { this . maxVdsMemoryOverCommit = value ; }

Target:
public void setMaxVdsMemoryOverCommit ( int value ) { maxVdsMemoryOverCommit = value ; }
Source:
protected void setLastTaskStatus ( org.ovirt.engine.core.common.businessentities.AsyncTaskStatus taskStatus ) { _lastTaskStatus = taskStatus ; }

Target:
public void setLastTaskStatus ( org.ovirt.engine.core.common.businessentities.AsyncTaskStatus taskStatus ) { _lastTaskStatus = taskStatus ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return getParameters ( ) . getQuotaId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return getParameters ( ) . getQuotaId ( ) ; }
Source:
protected boolean updateVmInSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.UpdateVmInSpm ( getVm ( ) . getstorage_pool_id ( ) , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.VM [ ] { getVm ( ) } ) ) ) ; }

Target:
protected boolean updateVmInSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.updateVmInSpm ( getVm ( ) . getstorage_pool_id ( ) , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.VM [ ] { getVm ( ) } ) ) ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
java.lang.String getDetailMessage ( T entity ) ;

Target:
default java.lang.String getDetailMessage ( T entity ) { return null ; }