auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.hostFoundById = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; rollback3 ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.VDS returnValue ) { context.hostFoundById = returnValue ; rollback3 ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setVirtService ( false ) ; cluster.setGlusterService ( true ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setVirtService ( true ) ; cluster.setGlusterService ( true ) ; return cluster ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; context.addDataCenterReturnValue = returnValue ; prepare3 ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { context.addDataCenterReturnValue = result.getReturnValue ( ) ; prepare3 ( ) ; }
Source:
public static java.lang.Integer getMaxVmNameLengthNonWin ( ) { java.lang.Integer maxVmNameLengthNonWindows = ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLengthNonWindows ) ) ) ; if ( maxVmNameLengthNonWindows == null ) { return 64 ; } return maxVmNameLengthNonWindows ; }

Target:
public java.lang.Integer getMaxVmNameLengthNonWin ( ) { java.lang.Integer maxVmNameLengthNonWindows = ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLengthNonWindows ) ) ) ; if ( maxVmNameLengthNonWindows == null ) { return 64 ; } return maxVmNameLengthNonWindows ; }
Source:
protected void onAdGroupsLoaded ( org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel adElementListModel ) { onAdItemsLoaded ( adElementListModel , getgroups ( ) ) ; }

Target:
protected void onAdGroupsLoaded ( ) { onAdItemsLoaded ( getgroups ( ) ) ; }
Source:
private static java.lang.String emptyGuidToEmptyString ( org.ovirt.engine.core.compat.Guid guid ) { return Guid.Empty.equals ( guid ) ? "" : guid.toString ( ) ; }

Target:
private static java.lang.String emptyGuidToEmptyString ( org.ovirt.engine.core.compat.Guid guid ) { return ( guid == null ) || ( Guid.Empty.equals ( guid ) ) ? "" : guid.toString ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel model ) { edit ( model , dcCompatibilityVersion , dcId , defaultProfile ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel model ) { edit ( model , defaultProfile ) ; }
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; getModel ( ) . getMaxAssignedVmsPerUser ( ) . setIsChangable ( false ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; }
Source:
public boolean isWanOptionsAvailableForMyVm ( ) { boolean isWindowsVm = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( getEntity ( ) . getOs ( ) ) ; boolean spiceGuestAgentInstalled = ( getEntity ( ) . getSpiceDriverVersion ( ) ) != null ; return isWindowsVm && spiceGuestAgentInstalled ; }

Target:
public boolean isWanOptionsAvailableForMyVm ( ) { boolean isWindowsVm = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . isWindowsOsType ( getEntity ( ) . getOs ( ) ) ; boolean spiceGuestAgentInstalled = ( getEntity ( ) . getSpiceDriverVersion ( ) ) != null ; return isWindowsVm && spiceGuestAgentInstalled ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.getOptions ( ) . setUsbAutoShare ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Boolean returnValue ) { spice.getOptions ( ) . setUsbAutoShare ( returnValue ) ; }
Source:
protected void setupForStorageTests ( ) { org.mockito.Mockito.doReturn ( multipleSdValidator ) . when ( command ) . getStorageDomainsValidator ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.ArgumentMatchers.anySet ( ) ) ; }

Target:
protected void setupForStorageTests ( ) { org.mockito.Mockito.doReturn ( multipleSdValidator ) . when ( command ) . getStorageDomainsValidator ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.anySet ( ) ) ; }
Source:
public static < T > org.ovirt.engine.ui.common.widget.editor.TakesConstrainedValueEditor < T > of ( com.google.gwt.user.client.TakesValue < T > peer , com.google.gwt.user.client.ui.HasConstrainedValue < T > peerWithConstraints , com.google.gwt.event.logical.shared.HasValueChangeHandlers < T > peerWithValueChangeHandlers ) { return new org.ovirt.engine.ui.common.widget.editor.TakesConstrainedValueEditor < T > ( peer , peerWithConstraints , peerWithValueChangeHandlers ) ; }

Target:
public static < T > org.ovirt.engine.ui.common.widget.editor.TakesConstrainedValueEditor < T > of ( com.google.gwt.user.client.TakesValue < T > peer , com.google.gwt.user.client.ui.HasConstrainedValue < T > peerWithConstraints , com.google.gwt.event.logical.shared.HasValueChangeHandlers < T > peerWithValueChangeHandlers ) { return new org.ovirt.engine.ui.common.widget.editor.TakesConstrainedValueEditor ( peer , peerWithConstraints , peerWithValueChangeHandlers ) ; }
Source:
private boolean volumeNameExists ( java.lang.String volumeName ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getGlusterVolumeDao ( ) . getByName ( getClusterId ( ) , volumeName ) ; return volumeEntity == null ? false : true ; }

Target:
private boolean volumeNameExists ( java.lang.String volumeName ) { return ( getGlusterVolumeDao ( ) . getByName ( getClusterId ( ) , volumeName ) ) != null ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainType getEnum ( org.ovirt.engine.core.common.businessentities.storage_domains storage ) { return storage.getstorage_domain_type ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainType getEnum ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return storage.getstorage_domain_type ( ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null , true , false ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null ) ; }
Source:
public void tearDown ( ) { try { if ( ( sshDialog ) != null ) { sshDialog.close ( ) ; sshDialog = null ; } } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ( sshDialog ) != null ) { sshDialog.close ( ) ; sshDialog = null ; } }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , null ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , null ) ; }
Source:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return disk.getVmSnapshotId ( ) . getValue ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return disk.getVmSnapshotId ( ) ; }
Source:
private boolean singleHostSelected ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > items ) { return ( ( items.size ( ) ) == 1 ) && ( ( items.get ( 0 ) ) instanceof org.ovirt.engine.core.common.businessentities.VDS ) ; }

Target:
private boolean singleHostSelected ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > items ) { return ( ( items != null ) && ( ( items.size ( ) ) == 1 ) ) && ( ( items.get ( 0 ) ) != null ) ; }
Source:
protected void setButtonsEnabled ( V widget , boolean enabled ) { getEntry ( widget ) . setButtonsEnabled ( enabled ) ; }

Target:
private void setButtonsEnabled ( V widget , boolean enabled ) { getEntry ( widget ) . setButtonsEnabled ( enabled ) ; }
Source:
private void raiseQueryCompleteEvent ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final java.lang.String context ) { raiseQueryEvent ( getQueryCompleteEvent ( ) , queryType , context ) ; }

Target:
private void raiseQueryCompleteEvent ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final java.lang.Object context ) { raiseQueryEvent ( getQueryCompleteEvent ( ) , queryType , context ) ; }
Source:
protected boolean canDoAction ( ) { return ( ( ( ( networkNotAttachedToCluster ( ) ) && ( vdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }

Target:
protected boolean validate ( ) { return ( ( ( ( networkNotAttachedToCluster ( ) ) && ( vdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( ( object.getNumberOfVms ( ) ) < 2 ) { return null ; } return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( org.ovirt.engine.ui.uicompat.external.StringUtils.join ( object.getVmNames ( ) , ", " ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( ( object.getNumberOfVms ( ) ) < 2 ) { return null ; } return org.ovirt.engine.ui.uicompat.external.StringUtils.join ( object.getVmNames ( ) , ", " ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; updatePriority ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { cachedMaxPriority = returnValue ; updatePriority ( model ) ; }
Source:
protected org.ovirt.engine.core.dao.DiskVmElementDao getDiskVmElementDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskVmElementDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.DiskVmElementDao getDiskVmElementDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskVmElementDao ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.List < java.lang.String > images = ( ( java.util.List < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }

Target:
public void onSuccess ( java.util.List < java.lang.String > images ) { setImagesToModel ( getModel ( ) , images ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Disk update ( org.ovirt.engine.api.v3.types.V3Disk disk ) { disk = adaptUpdate ( getDelegate ( ) :: update , disk ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.fixDiskLinks ( vmId , disk ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDiskAttachmentDetails ( vmId , java.util.Collections.singletonList ( disk ) ) ; return disk ; }

Target:
public org.ovirt.engine.api.v3.types.V3Disk update ( org.ovirt.engine.api.v3.types.V3Disk disk ) { disk = adaptUpdate ( getDelegate ( ) :: update , disk ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.fixDiskLinks ( vmId , disk ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDiskAttachmentDetails ( vmId , disk ) ; return disk ; }
Source:
public void setTooltipText ( java.lang.String status ) { tooltip.setText ( status ) ; tooltip.reconfigure ( ) ; }

Target:
public void setTooltipText ( java.lang.String status ) { tooltip.setText ( status ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel > getHostNicLabels ( org.ovirt.engine.core.compat.Guid hostNicId ) { return getBackendCollection ( VdcQueryType.GetNetworkLabelsByHostNicId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostNicId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel > getHostNicLabels ( org.ovirt.engine.core.compat.Guid hostNicId ) { return getBackendCollection ( VdcQueryType.GetNetworkLabelsByHostNicId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostNicId ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { addInvalidIdErrorMessages ( EngineMessage.VAR__ACTION__UPDATE ) ; return false ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { addInvalidIdErrorMessages ( EngineMessage.VAR__ACTION__UPDATE ) ; return false ; } return true ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; allNetworks = networks ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; allNetworks = networks ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ) ; }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( getEntity ( ) ) ; }
Source:
private static org.ovirt.engine.api.model.UsbType getUsbType ( org.ovirt.engine.api.model.Usb usb ) { return usb.isSetType ( ) ? org.ovirt.engine.api.model.UsbType.fromValue ( usb.getType ( ) ) : null ; }

Target:
private static org.ovirt.engine.api.model.UsbType getUsbType ( org.ovirt.engine.api.model.Usb usb ) { return usb.isSetType ( ) ? usb.getType ( ) : null ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTaskStatus > getTaskStatuses ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTaskStatus > ret = new java.util.ArrayList < > ( ) ; ret.add ( getTaskStatus ( 0 ) ) ; ret.add ( getTaskStatus ( 1 ) ) ; return ret ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTaskStatus > getTaskStatuses ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTaskStatus > ret = new java.util.ArrayList < > ( ) ; ret.add ( getTaskStatus ( ) ) ; ret.add ( getTaskStatus ( ) ) ; return ret ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network result = dao.getByName ( "engine" ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "engine" , result.getname ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Network result = dao.getByName ( "engine" ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "engine" , result.getname ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setSelectedItem ( bookmark ) ; model.setSelectedItems ( java.util.Arrays.asList ( bookmark ) ) ; model.executeCommand ( model.getEditCommand ( ) ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setSelectedItem ( bookmark ) ; model.executeCommand ( model.getEditCommand ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.network o1 , org.ovirt.engine.core.common.businessentities.network o2 ) { return HostInterfaceListModel.ENGINE_NETWORK_NAME.equals ( o1.getname ( ) ) ? - 1 : o1.getname ( ) . compareTo ( o2.getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.Network o1 , org.ovirt.engine.core.common.businessentities.Network o2 ) { return HostInterfaceListModel.ENGINE_NETWORK_NAME.equals ( o1.getname ( ) ) ? - 1 : o1.getname ( ) . compareTo ( o2.getname ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , snapshotStatus , "" , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , snapshotStatus , "" , null , compensationContext ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { boolean returnValue = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( result ) ) . getReturnValue ( ) ; if ( returnValue ) { displayConsoleConnectConfirmPopup ( command ) ; } else { displayUserCantReconnectDialog ( ) ; } }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue result ) { boolean returnValue = result.getReturnValue ( ) ; if ( returnValue ) { displayConsoleConnectConfirmPopup ( command ) ; } else { displayUserCantReconnectDialog ( ) ; } }
Source:
public void setup ( ) { validator = new org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.UpdateNetworkValidator ( network , vmDao , interfaceDao ) ; }

Target:
public void setup ( ) { network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; validator = new org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.UpdateNetworkValidator ( network , vmDao , interfaceDao ) ; }
Source:
private void setTotalCPUCores ( org.ovirt.engine.ui.uicommonweb.models.RangeEntityModel value ) { privateTotalCPUCores = value ; }

Target:
private void setTotalCPUCores ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { privateTotalCPUCores = value ; }
Source:
public void removeNonExistentVariable ( ) { dbFacade.getExternalVariableDao ( ) . remove ( "non-existent-var" ) ; }

Target:
public void removeNonExistentVariable ( ) { dao.remove ( "non-existent-var" ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null , false , null ) ; }
Source:
private java.lang.Throwable handleException ( java.lang.Exception e ) { if ( e instanceof java.lang.RuntimeException ) { throw ( ( java.lang.RuntimeException ) ( e ) ) ; } return e ; }

Target:
private void handleException ( java.lang.Exception e ) { if ( e instanceof java.lang.RuntimeException ) { throw ( ( java.lang.RuntimeException ) ( e ) ) ; } else { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { boolean reboot = ( _reboot ) && ( ! ( _isNode ) ) ; if ( reboot ) { _messages.post ( InstallerMessages.Severity.INFO , "Enforcing host reboot" ) ; } _parser.cliEnvironmentSet ( org.ovirt.ovirt_host_deploy.constants.CoreEnv.FORCE_REBOOT , reboot ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { boolean reboot = ( _reboot ) && ( ! ( _isNode ) ) ; if ( reboot ) { _messages.post ( InstallerMessages.Severity.INFO , "Enforcing host reboot" ) ; } _parser.cliEnvironmentSet ( org.ovirt.ovirt_host_deploy.constants.CoreEnv.FORCE_REBOOT , reboot ) ; return true ; }
Source:
public void setPort ( int port ) { this . nSSHPort = port ; }

Target:
void setPort ( int port ) { this . port = port ; }
Source:
public java.lang.Void answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { if ( ( ( ( org.ovirt.engine.core.common.utils.Pair ) ( invocation.getArguments ( ) [ 0 ] ) ) . getFirst ( ) ) != null ) { auditLogWritten = true ; } return null ; }

Target:
public java.lang.Void answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { if ( ( invocation.getArguments ( ) [ 0 ] ) != null ) { auditLogWritten = true ; } return null ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network n ) { return n.getname ( ) . equals ( network.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getname ( ) . equals ( network.getname ( ) ) ; }
Source:
protected void handleAsynchrony ( org.ovirt.engine.core.common.action.VdcReturnValueBase result , R model ) { model.setCreationStatus ( org.ovirt.engine.api.common.util.StatusUtils.create ( getAsynchronousStatus ( result ) ) ) ; linkSubResource ( model , org.ovirt.engine.api.restapi.resource.AbstractBackendCollectionResource.CREATION_STATUS_REL , asString ( result.getVdsmTaskIdList ( ) ) ) ; }

Target:
protected void handleAsynchrony ( org.ovirt.engine.core.common.action.VdcReturnValueBase result , R model ) { model.setCreationStatus ( getAsynchronousStatus ( result ) . value ( ) ) ; linkSubResource ( model , org.ovirt.engine.api.restapi.resource.AbstractBackendCollectionResource.CREATION_STATUS_REL , asString ( result.getVdsmTaskIdList ( ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getAllTimeLeasedUsersForVm ( int vmid ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , vmid ) ; return getCallsHandler ( ) . executeReadList ( "Gettime_leasedusers_by_vm_pool_id" , new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getAllTimeLeasedUsersForVm ( int vmid ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_pool_id" , vmid ) ; return getCallsHandler ( ) . executeReadList ( "Gettime_leasedusers_by_vm_pool_id" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.InstallVdsInternal , installVdsParameters , new org.ovirt.engine.core.bll.context.CommandContext ( installCtx ) ) ; }

Target:
public void run ( ) { runInternalAction ( VdcActionType.InstallVdsInternal , installVdsParameters , new org.ovirt.engine.core.bll.context.CommandContext ( installCtx ) ) ; }
Source:
public void testGetInnerJoin ( ) { org.junit.Assert.assertNotNull ( "Sanity test" , comp.getInnerJoin ( "EVENT" , "USER" ) ) ; }

Target:
public void testGetInnerJoin ( ) { org.junit.Assert.assertNotNull ( "Sanity test" , comp.getInnerJoin ( "EVENT" , "USER" , true ) ) ; }
Source:
public void shouldElectActiveSharedDataDomain ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain domain = prepareSharedStorageDomainForElection ( StorageDomainStatus.Active , "shared domain name" ) ; org.junit.Assert.assertEquals ( domain , cmd.electNewMaster ( ) ) ; }

Target:
public void shouldElectActiveSharedDataDomain ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain domain = prepareSharedStorageDomainForElection ( StorageDomainStatus.Active ) ; org.junit.Assert.assertEquals ( domain , cmd.electNewMaster ( ) ) ; }
Source:
private org.ovirt.engine.sdk.web.ConnectionsPoolBuilder url ( java.lang.String url ) throws java.net.MalformedURLException { this . url = url ; this . urlobj = createURL ( url ) ; return this ; }

Target:
public org.ovirt.engine.sdk.web.ConnectionsPoolBuilder url ( java.lang.String url ) throws java.net.MalformedURLException { this . url = url ; this . urlobj = createURL ( url ) ; return this ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDiskSnapshotsForVmSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images = diskImageDao.getAllSnapshotsForVmSnapshot ( snapshotId ) ; return images != null ? images : java.util.Collections.< org.ovirt.engine.core.common.businessentities.storage.DiskImage > emptyList ( ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDiskSnapshotsForVmSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return diskImageDao.getAllSnapshotsForVmSnapshot ( snapshotId ) ; }
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 ( ) . getStoragePoolId ( ) , 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 onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { showAvailableVolumes ( returnValue ) ; }

Target:
public void onSuccess ( java.lang.Object returnValue ) { showAvailableVolumes ( returnValue ) ; }
Source:
public void testFetchAllIsoDomainInSystemNoDuplicate ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > listOfAllIsoFiles = repoFileMetaDataDao.getAllRepoFilesForAllStoragePools ( StorageDomainType.ISO , StoragePoolStatus.Up , StorageDomainStatus.Active , VDSStatus.Up ) ; org.junit.Assert.assertSame ( listOfAllIsoFiles.size ( ) , 4 ) ; }

Target:
public void testFetchAllIsoDomainInSystemNoDuplicate ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > listOfAllIsoFiles = repoFileMetaDataDao.getAllRepoFilesForAllStoragePools ( StorageDomainType.ISO , StoragePoolStatus.Up , StorageDomainStatus.Active , VDSStatus.Up ) ; org.junit.Assert.assertEquals ( 4 , listOfAllIsoFiles.size ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAll ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.ALL_HOSTS_QUERY ) ; return runHostListMethod ( method ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAll ( ) { return runHostListMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.ALL_HOSTS_QUERY ) ; }
Source:
private void verifyAuditFenceExecutionFailure ( int expectedInvocations ) { org.mockito.Mockito.verify ( auditLogDirector , org.mockito.Mockito.times ( expectedInvocations ) ) . log ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable.class ) , org.mockito.ArgumentMatchers.eq ( AuditLogType.FENCE_OPERATION_USING_AGENT_AND_PROXY_FAILED ) ) ; }

Target:
private void verifyAuditFenceExecutionFailure ( int expectedInvocations ) { org.mockito.Mockito.verify ( auditLogDirector , org.mockito.Mockito.times ( expectedInvocations ) ) . log ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.eq ( AuditLogType.FENCE_OPERATION_USING_AGENT_AND_PROXY_FAILED ) ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.ui.uicommonweb.models.SystemTreeModel > createActionPanel ( org.ovirt.engine.ui.webadmin.uicommon.model.SystemTreeModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SimpleActionPanel ( modelProvider , modelProvider.getSelectionModel ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.ui.uicommonweb.models.SystemTreeModel > createActionPanel ( org.ovirt.engine.ui.webadmin.uicommon.model.SystemTreeModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SimpleActionPanel ( modelProvider , modelProvider.getSelectionModel ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "status" , ( isRequestCompleted ( ) ? getXmlRpcStatus ( ) : "Pending Response" ) ) . build ( ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "status" , ( isRequestCompleted ( ) ? getStatus ( ) : "Pending Response" ) ) . build ( ) ; }
Source:
public void poll ( ) { if ( ! ( getRefreshStatistics ( ) ) ) { updateIteration ( ) ; return ; } super . poll ( ) ; }

Target:
protected boolean getRefreshStatistics ( ) { return true ; }
Source:
public static org.ovirt.engine.core.compat.Guid createGuidFromStringDefaultEmpty ( java.lang.String candidate ) { if ( candidate == null ) { return org.ovirt.engine.core.compat.Guid.Empty ; } else { return new org.ovirt.engine.core.compat.Guid ( candidate ) ; } }

Target:
public static org.ovirt.engine.core.compat.Guid createGuidFromStringDefaultEmpty ( java.lang.String candidate ) { if ( candidate == null ) { return org.ovirt.engine.core.compat.Guid.Empty ; } return new org.ovirt.engine.core.compat.Guid ( candidate ) ; }
Source:
public void versionHigherThanCluster ( ) { storagePoolWithVersionHigherThanCluster ( ) ; canDoActionFailed ( VdcBllMessages.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS.toString ( ) ) ; }

Target:
public void versionHigherThanCluster ( ) { storagePoolWithVersionHigherThanCluster ( ) ; canDoActionFailed ( VdcBllMessages.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }
Source:
public void clearBuff ( ) { this . nioEngine.clearBuff ( ) ; outbox.clear ( ) ; }

Target:
public void clearBuff ( ) { if ( ( this . nioEngine ) != null ) { this . nioEngine.clearBuff ( ) ; } outbox.clear ( ) ; }
Source:
public org.w3c.dom.NodeList GetChildNodes ( ) { return node.getChildNodes ( ) ; }

Target:
public org.w3c.dom.NodeList getChildNodes ( ) { return node.getChildNodes ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( bond.getName ( ) , i.getBondName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( bond.getName ( ) , i.getBondName ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model1 , java.lang.Object result1 ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.PrivateAsyncCallback privateAsyncCallback1 = ( ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.PrivateAsyncCallback ) ( model1 ) ) ; privateAsyncCallback1.ApplySearchPageSize ( ( ( java.lang.Integer ) ( result1 ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model1 , java.lang.Object result1 ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.PrivateAsyncCallback privateAsyncCallback1 = ( ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.PrivateAsyncCallback ) ( model1 ) ) ; privateAsyncCallback1.ApplySearchPageSize ( ( ( java.lang.Integer ) ( result1 ) ) ) ; }
Source:
public void validateCanDoAction ( ) { setupMocks ( ) ; org.junit.Assert.assertTrue ( createCommand ( ) . canDoAction ( ) ) ; }

Target:
public void validateCanDoAction ( ) { org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.webadmin.place.WebAdminPlaceManager.class ) ; bind ( org.ovirt.engine.ui.webadmin.system.ApplicationInit.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.system.InternalConfiguration.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.system.PostMessageDispatcher.class ) . asEagerSingleton ( ) ; }

Target:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.webadmin.place.WebAdminPlaceManager.class ) ; bind ( org.ovirt.engine.ui.webadmin.system.InternalConfiguration.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.system.PostMessageDispatcher.class ) . asEagerSingleton ( ) ; }
Source:
private static void addNewIconPair ( org.ovirt.engine.core.common.businessentities.VmBase vmBase , java.lang.String largeIconDataUrl ) { final org.ovirt.engine.core.common.queries.VmIconIdSizePair iconIds = org.ovirt.engine.core.bll.utils.IconUtils.ensureIconPairInDatabase ( largeIconDataUrl ) ; vmBase.setLargeIconId ( iconIds.getLarge ( ) ) ; vmBase.setSmallIconId ( iconIds.getSmall ( ) ) ; }

Target:
private void addNewIconPair ( org.ovirt.engine.core.common.businessentities.VmBase vmBase , java.lang.String largeIconDataUrl ) { final org.ovirt.engine.core.common.queries.VmIconIdSizePair iconIds = ensureIconPairInDatabase ( largeIconDataUrl ) ; vmBase.setLargeIconId ( iconIds.getLarge ( ) ) ; vmBase.setSmallIconId ( iconIds.getSmall ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { java.lang.String propName = args.propertyName ; if ( "WidgetModel" . equals ( propName ) ) { modelBoundWidgetChange ( ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { java.lang.String propName = args.propertyName ; if ( "WidgetModel" . equals ( propName ) ) { modelBoundWidgetChange ( ) ; } }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLuns ( ) { if ( luns.isEmpty ( ) ) { luns = org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getLunDao ( ) . getAllForStorageServerConnection ( org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getConnection ( ) . getid ( ) ) ; } return luns ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLuns ( ) { if ( luns.isEmpty ( ) ) { luns = org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getLunDao ( ) . getAllForStorageServerConnection ( org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getConnection ( ) . getId ( ) ) ; } return luns ; }
Source:
public static boolean getIsUsbEnabled ( org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy ) { boolean enabled = false ; if ( usbPolicy != null ) { enabled = ( usbPolicy.equals ( UsbPolicy.ENABLED_LEGACY ) ) || ( usbPolicy.equals ( UsbPolicy.ENABLED_NATIVE ) ) ; } return enabled ; }

Target:
public static boolean getIsUsbEnabled ( org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy ) { boolean enabled = false ; if ( usbPolicy != null ) { enabled = usbPolicy.equals ( UsbPolicy.ENABLED_NATIVE ) ; } return enabled ; }
Source:
private void initGraphicsData ( ) { org.ovirt.engine.core.bll.ImportUtils.updateGraphicsDevices ( getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getEffectiveCompatibilityVersion ( ) ) ; }

Target:
private void initGraphicsData ( ) { org.ovirt.engine.core.bll.ImportUtils.updateGraphicsDevices ( org.ovirt.engine.core.bll.ImportVmCommand.getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getEffectiveCompatibilityVersion ( ) ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > getTable ( ) { return table ; }

Target:
public org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > getTable ( ) { return table ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( architecture , entityId , entityName , entityType , lowestCompVersion , ovfData , ovfExtraData , storageDomainId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( architecture , entityId , entityName , entityType , lowestCompVersion , ovfData , ovfExtraData , storageDomainId , status ) ; }
Source:
public void setup ( ) { executor = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.pm.HostFenceActionExecutor ( fencedHost , new org.ovirt.engine.core.common.businessentities.FencingPolicy ( ) ) ) ; org.mockito.Mockito.doReturn ( agentExecutor1 ) . doReturn ( agentExecutor2 ) . when ( executor ) . createFenceActionExecutor ( org.mockito.ArgumentMatchers.anyList ( ) ) ; }

Target:
public void setup ( ) { executor = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.pm.HostFenceActionExecutor ( fencedHost , new org.ovirt.engine.core.common.businessentities.FencingPolicy ( ) ) ) ; org.mockito.Mockito.doReturn ( agentExecutor1 ) . doReturn ( agentExecutor2 ) . when ( executor ) . createFenceActionExecutor ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void testCheckGlusterQuorumTwoServersUp ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( true , org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.CLUSTER_ID ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.Assert.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }

Target:
public void testCheckGlusterQuorumTwoServersUp ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( true ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.Assert.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }
Source:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.webadmin.place.WebAdminPlaceManager.class ) ; bind ( org.ovirt.engine.ui.webadmin.system.InternalConfiguration.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.system.PostMessageDispatcher.class ) . asEagerSingleton ( ) ; bindTypeAndImplAsSingleton ( org.ovirt.engine.ui.uicommonweb.auth.CurrentUserRole.class , org.ovirt.engine.ui.common.auth.CommonCurrentUserRole.class ) ; }

Target:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.webadmin.place.WebAdminPlaceManager.class ) ; bind ( org.ovirt.engine.ui.webadmin.system.PostMessageDispatcher.class ) . asEagerSingleton ( ) ; bindTypeAndImplAsSingleton ( org.ovirt.engine.ui.uicommonweb.auth.CurrentUserRole.class , org.ovirt.engine.ui.common.auth.CommonCurrentUserRole.class ) ; }
Source:
private static java.lang.Double assignDoubleValueWithNullProtection ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct input , java.lang.String name ) { java.lang.Double doubleValue = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignDoubleValue ( input , name ) ; return doubleValue == null ? 0.0 : doubleValue ; }

Target:
private static java.lang.Double assignDoubleValueWithNullProtection ( java.util.Map < java.lang.String , java.lang.Object > input , java.lang.String name ) { java.lang.Double doubleValue = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignDoubleValue ( input , name ) ; return doubleValue == null ? java.lang.Double.valueOf ( 0.0 ) : doubleValue ; }
Source:
public void testUpdateIscsiServerConnection ( ) { existingConnection.setiqn ( "1.2.3.4" ) ; dao.update ( existingConnection ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getid ( ) ) ; org.junit.Assert.assertEquals ( existingConnection , result ) ; }

Target:
public void testUpdateIscsiServerConnection ( ) { existingConnection.setiqn ( "1.2.3.4" ) ; dao.update ( existingConnection ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getId ( ) ) ; org.junit.Assert.assertEquals ( existingConnection , result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getBackendNics ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > backendNics = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.class , VdcQueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ( backendNics ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getBackendNics ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > backendNics = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.class , VdcQueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( backendNics ) ; }
Source:
public static org.ovirt.engine.core.utils.EngineLocalConfig getInstance ( ) { return org.ovirt.engine.core.utils.EngineLocalConfig.instance ; }

Target:
public static org.ovirt.engine.core.utils.EngineLocalConfig getInstance ( ) { return org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( null ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { java.lang.String tooltipContent = object.getSecond ( ) . getVmFQDN ( ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { java.lang.String tooltipContent = object.getSecond ( ) . getVmFQDN ( ) ; return tooltipContent ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.SSH_USER , _vds.getSshUsername ( ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.SSH_USER , _vds.getSshUsername ( ) ) ; return true ; }
Source:
protected javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }

Target:
public javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testGetAllWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void buildVmVideoCards ( ) { createInfo.add ( VdsProperties.display , vm.getDisplayType ( ) . toString ( ) ) ; createInfo.add ( VdsProperties.num_of_monitors , java.lang.String.valueOf ( vm.getNumOfMonitors ( ) ) ) ; }

Target:
protected void buildVmVideoCards ( ) { createInfo.put ( VdsProperties.display , vm.getDisplayType ( ) . toString ( ) ) ; createInfo.put ( VdsProperties.num_of_monitors , java.lang.String.valueOf ( vm.getNumOfMonitors ( ) ) ) ; }