auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANColorDepth ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANColorDepth ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth ) ( returnValue ) ) ) ; }
Source:
protected void addCanDoActionMessage ( java.lang.String message ) { if ( org.apache.commons.lang.StringUtils.isNotEmpty ( message ) ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message ) ; } }

Target:
protected void addCanDoActionMessage ( java.lang.String message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source == null ) || ( ( java.lang.Boolean ) ( source ) ) ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler < java.lang.Integer > handler ) { return eventBus.addHandler ( com.google.gwt.event.logical.shared.ValueChangeEvent.getType ( ) , handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler < java.lang.String > handler ) { return eventBus.addHandler ( com.google.gwt.event.logical.shared.ValueChangeEvent.getType ( ) , handler ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
< T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues configValue , java.lang.String version ) ;

Target:
< T > T getValue ( org.ovirt.engine.core.common.config.ConfigValues configValue , java.lang.String version ) ;
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getMemoryBalloonDeviceEnabled ( ) . setEntity ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getMemoryBalloonDeviceEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public void testGetDataAndSetDataWithNullSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( null ) ; org.junit.Assert.assertFalse ( "Set should fail with a null session" , container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with a null session" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ) ; }

Target:
public void testGetDataAndSetDataWithNullSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( null ) ; org.junit.Assert.assertFalse ( "Set should fail with a null session" , container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with a null session" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetQuotaVdsGroupByQuotaIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetQuotaVdsGroupByQuotaIdQuery.getDbFacade ( ) . getQuotaDao ( ) . getQuotaVdsGroupByQuotaGuidWithGeneralDefault ( org.ovirt.engine.core.bll.GetQuotaVdsGroupByQuotaIdQuery.getParameters ( ) . getQuotaId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetQuotaVdsGroupByQuotaIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetQuotaVdsGroupByQuotaIdQuery.getDbFacade ( ) . getQuotaDao ( ) . getQuotaVdsGroupByQuotaGuidWithGeneralDefault ( org.ovirt.engine.core.bll.GetQuotaVdsGroupByQuotaIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAffinityGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , null , failure ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAffinityGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , null , failure ) ; }
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 ) ; cluster.setCompatibilityVersion ( Version.v3_1 ) ; 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 ( false ) ; cluster.setGlusterService ( true ) ; return cluster ; }
Source:
public void setSupportedEngines ( java.lang.String value ) { supportedEngines = value ; supportedEngineVersionsSet = parseSupportedVersions ( supportedEngines ) ; }

Target:
public void setSupportedEngines ( java.lang.String value ) { supportedEngines = value ; }
Source:
protected org.ovirt.engine.core.bll.AddVmPoolCommand < org.ovirt.engine.core.common.action.AddVmPoolParameters > createCommand ( ) { org.ovirt.engine.core.common.action.AddVmPoolParameters param = new org.ovirt.engine.core.common.action.AddVmPoolParameters ( vmPools , testVm , VM_COUNT ) ; param.setStorageDomainId ( firstStorageDomainId ) ; return org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddVmPoolCommand ( param , null ) ) ; }

Target:
protected org.ovirt.engine.core.bll.AddVmPoolCommand < org.ovirt.engine.core.common.action.AddVmPoolParameters > createCommand ( ) { org.ovirt.engine.core.common.action.AddVmPoolParameters param = new org.ovirt.engine.core.common.action.AddVmPoolParameters ( vmPools , testVm , VM_COUNT ) ; param.setStorageDomainId ( firstStorageDomainId ) ; return new org.ovirt.engine.core.bll.AddVmPoolCommand ( param , null ) ; }
Source:
public static < V > java.util.concurrent.ExecutorCompletionService < V > createCompletionService ( ) { return new java.util.concurrent.ExecutorCompletionService < V > ( org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.es ) ; }

Target:
private static < V > java.util.concurrent.ExecutorCompletionService < V > createCompletionService ( ) { return new java.util.concurrent.ExecutorCompletionService < V > ( org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.es ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( ) { return getEntities ( false , false , false ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( ) { return getEntities ( false , false , false , false ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStaticData ( _vmStatic ) ; return vm ; }

Target:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { if ( ( vm ) == null ) { vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStaticData ( _vmStatic ) ; } return vm ; }
Source:
public void setsession_count ( int value ) { sessionCount = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "session_count" ) ) ; setIsLogedin ( ( ( sessionCount ) > 0 ) ) ; }

Target:
public void setsession_count ( int value ) { sessionCount = value ; setIsLogedin ( ( ( sessionCount ) > 0 ) ) ; }
Source:
private void initInfoIcon ( ) { raidParamsInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.templates.italicText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.constants.raidConfigurationWarning ( ) ) ) ; }

Target:
private void initInfoIcon ( ) { raidParamsInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.constants.raidConfigurationWarning ( ) ) ; }
Source:
private void readBuffer ( java.nio.ByteBuffer buff ) throws java.io.IOException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ! ( isOpen ( ) ) ) { connect ( ) ; } read ( buff ) ; }

Target:
protected int readBuffer ( java.nio.ByteBuffer buff ) throws java.io.IOException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ! ( isOpen ( ) ) ) { connect ( ) ; } return read ( buff ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskNull , getBricks ( volumeWithRemoveBricksTaskNull , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskNull , getBricks ( volumeWithRemoveBricksTaskNull ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void testGetUserIDWithNoUser ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; org.junit.Assert.assertNull ( "wrong guid" , query.getUserID ( ) ) ; }

Target:
public void testGetUserIDWithNoUser ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; org.junit.Assert.assertNull ( "wrong guid" , query.getUserID ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object returnValue ) { this . setItems ( ( ( java.util.List < P > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { setItems ( ( ( java.util.List < P > ) ( returnValue.getReturnValue ( ) ) ) ) ; }
Source:
public void initialize ( ) { super . initialize ( ) ; startProgress ( null ) ; initMessages ( ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; startProgress ( ) ; initMessages ( ) ; }
Source:
public static void getHostList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getHostListByStatus ( aQuery , null ) ; }

Target:
public void getHostList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getHostListByStatus ( aQuery , null ) ; }
Source:
public void setId ( java.util.List < org.ovirt.engine.core.compat.Guid > vms ) { this . ids = vms ; }

Target:
public void setId ( java.util.List < org.ovirt.engine.core.compat.Guid > ids ) { this . ids = ids ; }
Source:
public java.lang.String encodedId ( org.ovirt.engine.core.common.utils.ExternalId id ) { org.ovirt.engine.core.compat.Guid guid = new org.ovirt.engine.core.compat.Guid ( id.getBytes ( ) , true ) ; return guid.toString ( ) ; }

Target:
public java.lang.String encodedId ( org.ovirt.engine.core.compat.Guid id ) { return id.toString ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { setGuestAgentData ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ) ( result ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel.super . syncSearch ( VdcQueryType.GetVmInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object result ) { setGuestAgentData ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ) ( result ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel.super . syncSearch ( VdcQueryType.GetVmInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }
Source:
protected void endWithFailure ( ) { removeImage ( org.ovirt.engine.core.bll.MoveImageGroupCommand.getParameters ( ) . getStorageDomainId ( ) ) ; org.ovirt.engine.core.bll.MoveImageGroupCommand.unLockImage ( ) ; }

Target:
protected void endWithFailure ( ) { removeImage ( org.ovirt.engine.core.bll.MoveImageGroupCommand.getParameters ( ) . getStorageDomainId ( ) ) ; unLockImage ( ) ; }
Source:
protected boolean validate ( ) { return ( ( ( ( networkNotAttachedToCluster ( ) ) && ( clusterExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }

Target:
protected boolean validate ( ) { return ( ( ( networkNotAttachedToCluster ( ) ) && ( clusterExists ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType parse ( java.lang.CharSequence text ) throws java.text.ParseException { if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( text.toString ( ) ) ) { return null ; } return org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType.valueOf ( text.toString ( ) . toUpperCase ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType parse ( java.lang.CharSequence text ) throws java.text.ParseException { return null ; }
Source:
private void failWith ( org.ovirt.engine.core.common.errors.VdcBllMessages failure ) { org.ovirt.engine.core.bll.GetErrataCountsForHostQuery.getQueryReturnValue ( ) . setExceptionString ( failure.name ( ) ) ; org.ovirt.engine.core.bll.GetErrataCountsForHostQuery.getQueryReturnValue ( ) . setSucceeded ( false ) ; }

Target:
private void failWith ( org.ovirt.engine.core.common.errors.EngineMessage failure ) { org.ovirt.engine.core.bll.GetErrataCountsForHostQuery.getQueryReturnValue ( ) . setExceptionString ( failure.name ( ) ) ; org.ovirt.engine.core.bll.GetErrataCountsForHostQuery.getQueryReturnValue ( ) . setSucceeded ( false ) ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { getStorageStaticData ( ) . setId ( value ) ; getStorageDynamicData ( ) . setId ( value ) ; getStoragePoolIsoMapData ( ) . setstorage_id ( value ) ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { getStorageStaticData ( ) . setId ( id ) ; getStorageDynamicData ( ) . setId ( id ) ; getStoragePoolIsoMapData ( ) . setstorage_id ( id ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , getParameters ( ) . getNetwork ( ) . getName ( ) ) ; }
Source:
public void markAsValid ( ) { valid = true ; applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "gray" ) ; getValidatedWidget ( ) . setTitle ( null ) ; }

Target:
public void markAsValid ( ) { valid = true ; applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "gray" ) ; }
Source:
protected void executeQuery ( org.ovirt.engine.core.bll.adbroker.DirectorySearcher directorySearcher ) { PopulateUsers ( ) ; PopulateGroups ( ) ; setSucceeded ( true ) ; }

Target:
protected void executeQuery ( org.ovirt.engine.core.bll.adbroker.DirectorySearcher directorySearcher ) { PopulateUsers ( ) ; setSucceeded ( true ) ; }
Source:
public void areAllVfsFreeFalseHasVlanDevice ( ) { freeVfCommon ( 4 , 0 , 0 , 0 , 3 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }

Target:
public void areAllVfsFreeFalseHasVlanDevice ( ) { freeVfCommon ( 4 , 0 , 0 , 0 , 3 , 0 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }
Source:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.setDisksUsage ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVmStatistics ( ) , disksUsages , xml ) ; }

Target:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.setDisksUsage ( disksUsages ) ; validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVmStatistics ( ) , disksUsages , xml ) ; }
Source:
public static org.ovirt.engine.core.common.EventNotificationMethod valueOfString ( java.lang.String value ) { return org.ovirt.engine.core.common.EventNotificationMethod.valueOf ( ( value != null ? value.toUpperCase ( ) : value ) ) ; }

Target:
public static org.ovirt.engine.core.common.EventNotificationMethod valueOfString ( java.lang.String value ) { return value != null ? org.ovirt.engine.core.common.EventNotificationMethod.valueOf ( value.toUpperCase ( ) ) : null ; }
Source:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < 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.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > getClusterPolicies ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.scheduling.ClusterPolicy > ( policyMap.values ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > getClusterPolicies ( ) { return new java.util.ArrayList ( policyMap.values ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml input ( java.lang.String value ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml input ( java.lang.String id ) ;
Source:
protected T getParameters ( ) { return _parameters ; }

Target:
public T getParameters ( ) { return _parameters ; }
Source:
public void nGuidCtor ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid v = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , v ) ; }

Target:
public void nGuidCtor ( ) { b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid v = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , v ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel createActionPanel ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel < org.ovirt.engine.core.common.businessentities.DiskImage > ( modelProvider , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel createActionPanel ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel < org.ovirt.engine.core.common.businessentities.DiskImage > ( modelProvider , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }
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.WebadminRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.VM result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.WebadminRunOnceModel ( result , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap , networkExclusivenessValidator ) . validateNetworkExclusiveOnNics ( ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator validator = new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap , networkExclusivenessValidator ) ; return validator.validateNetworkExclusiveOnNics ( ) ; }
Source:
public void init ( org.ovirt.engine.ui.uicommonweb.models.ListModel model ) { super . init ( model ) ; setDisplayNetwork ( ( ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel > ) ( model.getItems ( ) ) ) ) ; }

Target:
public void init ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel model ) { super . init ( model ) ; }
Source:
public org.ovirt.engine.core.common.utils.ansible.AnsibleReturnValue runCommand ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder command , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > ... envVars ) throws java.io.IOException , java.lang.InterruptedException { return runCommand ( command , org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor.ANSIBLE_PLAYBOOK_TIMEOUT , true , envVars ) ; }

Target:
public org.ovirt.engine.core.common.utils.ansible.AnsibleReturnValue runCommand ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder command ) throws java.io.IOException , java.lang.InterruptedException { return runCommand ( command , org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor.ANSIBLE_PLAYBOOK_TIMEOUT ) ; }
Source:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( session ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( session ) ; }

Target:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( session ) ; }
Source:
public void replace_callReplaceTwoOccurrences ( ) { runAndCheck ( sb ( "AdminName=$AdminName$ AdminPassword=$AdminName$" ) , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$B$BB$" ) ; }

Target:
public void replace_callReplaceTwoOccurrences ( ) { runAndCheck ( "AdminName=$AdminName$ AdminPassword=$AdminName$" , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$B$BB$" ) ; }
Source:
public void load ( org.ovirt.engine.core.utils.EngineLocalConfig config ) throws org.ovirt.engine.core.extensions.mgr.ConfigurationException { for ( java.io.File directory : config.getExtensionsDirectories ( ) ) { load ( directory ) ; } activate ( ) ; }

Target:
private void load ( ) throws org.ovirt.engine.core.extensions.mgr.ConfigurationException { for ( java.io.File directory : org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getExtensionsDirectories ( ) ) { load ( directory ) ; } activate ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.StoragePoolDAODbFacadeImpl.mapper ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.StoragePoolDAODbFacadeImpl.mapper ) ; }
Source:
public boolean isVmDown ( ) { org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; return ( vm != null ) && ( ( vm.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }

Target:
public boolean isVmDown ( ) { org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; return ( vm != null ) && ( ( vm.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( returnValue ) ; postOnSetupNetworks ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( returnValue ) ; postOnSetupNetworks ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates ) { return updateEntity ( updates , false ) ; }

Target:
protected void updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates ) { updateEntity ( updates , false ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( ( source != null ) && ( ( ( ( java.util.List ) ( source ) ) . size ( ) ) > 0 ) ) { return true ; } return false ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , memoryVolume , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , memoryVolume , null , compensationContext ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( ReturnValue ) ) ; setExportPath ( ( connection == null ? null : connection.getConnection ( ) ) ) ; stopProgress ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { setExportPath ( ( connection == null ? null : connection.getConnection ( ) ) ) ; stopProgress ( ) ; }
Source:
public void setSelectedItem ( java.lang.Object value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; updatePortMirroringChangeability ( ) ; }

Target:
public void setSelectedItem ( java.lang.Object value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }
Source:
public void updateCallbackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsRepository.getCommandsCache ( ) . updateCallbackNotified ( commandId ) ; }

Target:
public void updateCallbackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsRepository.updateCallbackNotified ( commandId ) ; }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { endAction ( getCommand ( cmdId ) , childCmdIds ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { endAction ( getCommand ( cmdId ) , childCmdIds , true ) ; }
Source:
public void setname ( java.lang.String value ) { this . name = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "name" ) ) ; }

Target:
public void setname ( java.lang.String value ) { this . name = value ; }
Source:
protected java.lang.String path ( ) { return "\\:/(.*?/|.*?\\\\)?([^\\./|^\\.\\\\]+)(?:\\.([^\\\\]*)|)" ; }

Target:
private java.lang.String path ( ) { return "\\:/(.*?/|.*?\\\\)?([^\\./|^\\.\\\\]+)(?:\\.([^\\\\]*)|)" ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.GetVmsByStorageDomainQuery.getBackend ( ) . RunQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.GetVmsByStorageDomainQuery.getBackend ( ) . runQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.StartRemoveGlusterVolumeBricksCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId , int replicaCount ) { return new org.ovirt.engine.core.bll.gluster.StartRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeId , getBricks ( volumeId , 1 ) , replicaCount ) , null ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.StartRemoveGlusterVolumeBricksCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.StartRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeId , getBricks ( volumeId , 1 ) , 0 ) , null ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getstorage_pool_id ( ) { return storagePoolId ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return storagePoolId ; }
Source:
private org.ovirt.engine.core.aaa.DirectoryUser getDirectoryUser ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }

Target:
private org.ovirt.engine.core.aaa.DirectoryUser getDirectoryUser ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , NAMES [ index ] , NAMES [ index ] ) ; }
Source:
java.lang.String rebalanceFileSizeGb ( long size ) ;

Target:
java.lang.String rebalanceFileSizeGb ( java.lang.String size ) ;
Source:
public void setvNumaNodeList ( java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > vNumaNodeList ) { this . vNumaNodeList = vNumaNodeList ; }

Target:
public void setvNumaNodeList ( java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > vNumaNodeList ) { if ( vNumaNodeList != null ) { this . vNumaNodeList = vNumaNodeList ; } else { this . vNumaNodeList = new java.util.ArrayList < > ( ) ; } }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendHostNicResource ( "foo" , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendHostNicResource ( "foo" , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public org.ovirt.engine.ui.uicompat.Constants getConstants ( ) { return constants ; }

Target:
public org.ovirt.engine.ui.uicompat.Constants getConstants ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.constants ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { assertEquals ( EXTERNAL_IDS [ index ] . toHex ( ) , model.getExternalId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , int availableSize , int usedSize ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN , new org.ovirt.engine.core.compat.Version ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml imageContainerWithStyleClass ( java.lang.String style , java.lang.String styleClass , com.google.gwt.safehtml.shared.SafeHtml imageHtml ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml imageContainerWithStyleClass ( java.lang.String id , java.lang.String style , java.lang.String styleClass , com.google.gwt.safehtml.shared.SafeHtml imageHtml ) ;
Source:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.initDisksUsageData ( ) ; java.util.Map < java.lang.String , java.lang.Object > map = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( getVmStatistics ( ) , disksUsages , map ) ; }

Target:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.initDisksUsageData ( ) ; java.util.Map < java.lang.String , java.lang.Object > map = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVmStatistics ( ) , disksUsages , map ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getObjectRelationshipAutoCompleter ( java.lang.String obj ) { return StringConditionRelationAutoCompleter.INSTANCE ; }

Target:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getObjectRelationshipAutoCompleter ( ) { return StringConditionRelationAutoCompleter.INSTANCE ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnectionExpectations ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; connection.setid ( org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResourceTest.STORAGE_CONNECTION_ID.toString ( ) ) ; connection.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return connection ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnectionExpectations ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; connection.setId ( org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResourceTest.STORAGE_CONNECTION_ID.toString ( ) ) ; connection.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return connection ; }
Source:
private java.lang.Integer calcMaxVCpu ( ) { return org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( vm.getStaticData ( ) , vm.getClusterCompatibilityVersion ( ) ) ; }

Target:
private java.lang.Integer calcMaxVCpu ( ) { return org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( vm , vm.getClusterCompatibilityVersion ( ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( VdsmEnv.ENGINE_PORT , org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getExternalHttpPort ( ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( VdsmEnv.ENGINE_PORT , org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getExternalHttpPort ( ) ) ; return true ; }
Source:
public org.ovirt.engine.api.v3.types.V3Disk get ( ) { org.ovirt.engine.api.v3.types.V3Disk disk = adaptGet ( getDelegate ( ) :: get ) ; 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 get ( ) { org.ovirt.engine.api.v3.types.V3Disk disk = adaptGet ( getDelegate ( ) :: get ) ; 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 testAddDisk ( ) throws java.lang.Exception { testAddDiskImpl ( org.ovirt.engine.api.restapi.resource.BackendVmDisksResourceTest.getModel ( 0 ) ) ; }

Target:
public void testAddDisk ( ) throws java.lang.Exception { testAddDiskImpl ( org.ovirt.engine.api.restapi.resource.BackendVmDisksResourceTest.getModel ( ) ) ; }
Source:
public void testAuditLogMacInUseUnplug ( ) { final org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; vmInterfaceManager.auditLogMacInUseUnplug ( iface , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME ) ; verifyCommonAuditLogFilledProperly ( AuditLogType.MAC_ADDRESS_IS_IN_USE_UNPLUG , iface ) ; org.junit.Assert.assertEquals ( auditLogableCaptor.getValue ( ) . getVmName ( ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME ) ; }

Target:
public void testAuditLogMacInUseUnplug ( ) { final org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; vmInterfaceManager.auditLogMacInUseUnplug ( iface , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME ) ; verifyCommonAuditLogFilledProperly ( AuditLogType.MAC_ADDRESS_IS_IN_USE_UNPLUG , iface ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME , auditLogableCaptor.getValue ( ) . getVmName ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { namespacesMap = ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( result ) ) ; populateProfiles ( getProfileEntries ( ) ) ; }

Target:
public void onSuccess ( java.util.Map < java.lang.String , java.util.List < java.lang.String > > result ) { namespacesMap = result ; populateProfiles ( getProfileEntries ( ) ) ; }
Source:
public void testGetQuotaByAdElementId ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaByAdElementIdList = dao.getQuotaByAdElementId ( FixturesTool.USER_EXISTING_ID , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertEquals ( quotaByAdElementIdList.get ( 0 ) . getQuotaName ( ) , "Quota General" ) ; }

Target:
public void testGetQuotaByAdElementId ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaByAdElementIdList = dao.getQuotaByAdElementId ( FixturesTool.USER_EXISTING_ID , FixturesTool.STORAGE_POOL_NFS , false ) ; org.junit.Assert.assertEquals ( quotaByAdElementIdList.get ( 0 ) . getQuotaName ( ) , "Quota General" ) ; }
Source:
private void prepareMocks ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . findConnectionWithSameDetails ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class ) ) ; org.mockito.Mockito.doReturn ( vmDao ) . when ( command ) . getVmDao ( ) ; }

Target:
private void prepareMocks ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . findConnectionWithSameDetails ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class ) ) ; }
Source:
void processOnClientIpChange ( org.ovirt.engine.core.compat.Guid vmId , java.lang.String newClientIp , java.lang.String newClientUserName ) ;

Target:
void processOnClientIpChange ( org.ovirt.engine.core.compat.Guid vmId , java.lang.String newClientIp ) ;
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status , org.ovirt.engine.core.common.businessentities.VmExitStatus exitStatus ) { InternalSetVmStatus ( vm , status , exitStatus , StringUtils.EMPTY , VmExitReason.Unknown , vm.getStatusUpdatedTime ( ) ) ; }

Target:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status , org.ovirt.engine.core.common.businessentities.VmExitStatus exitStatus ) { InternalSetVmStatus ( vm , status , exitStatus , StringUtils.EMPTY , VmExitReason.Unknown ) ; }
Source:
protected void removeVmSnapshots ( ) { org.ovirt.engine.core.compat.Guid vmId = getVmId ( ) ; java.util.Set < java.lang.String > memoryStates = snapshotsManager.removeSnapshots ( vmId ) ; for ( java.lang.String memoryState : memoryStates ) { removeMemoryVolumes ( memoryState , vmId ) ; } }

Target:
private void removeVmSnapshots ( ) { org.ovirt.engine.core.compat.Guid vmId = getVmId ( ) ; java.util.Set < java.lang.String > memoryStates = snapshotsManager.removeSnapshots ( vmId ) ; for ( java.lang.String memoryState : memoryStates ) { removeMemoryVolumes ( memoryState , vmId ) ; } }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfileForUser ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , getEffectiveCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfileForUser ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return iface.getNetworkName ( ) . equals ( n.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return iface.getNetworkName ( ) . equals ( n.getname ( ) ) ; }
Source:
public java.lang.String getVdsGroupName ( ) { if ( ( getVdsGroup ( ) ) != null ) { return getVdsGroup ( ) . getname ( ) ; } return "" ; }

Target:
public java.lang.String getVdsGroupName ( ) { if ( ( getVdsGroup ( ) ) != null ) { return getVdsGroup ( ) . getName ( ) ; } return "" ; }
Source:
public java.lang.Double getCpuSys ( ) { return this . cpuSys.doubleValue ( ) ; }

Target:
public java.lang.Double getCpuSys ( ) { return cpuSys.doubleValue ( ) ; }
Source:
public void appendBody ( java.lang.String newBody ) { body.append ( newBody ) ; }

Target:
public void appendBody ( java.lang.String newBody ) { if ( newBody != null ) { body.append ( newBody ) ; } }
Source:
public java.lang.String getEntityOldName ( ) { return oldPool.getVmPoolName ( ) ; }

Target:
public java.lang.String getEntityOldName ( ) { return oldPool.getName ( ) ; }
Source:
public static org.ovirt.engine.core.utils.customprop.VmPropertiesUtils getInstance ( ) { if ( ( org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.vmPropertiesUtils ) == null ) { synchronized ( org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.class ) { if ( ( org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.vmPropertiesUtils ) == null ) { org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.vmPropertiesUtils = new org.ovirt.engine.core.utils.customprop.VmPropertiesUtils ( ) ; } } } return org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.vmPropertiesUtils ; }

Target:
public static org.ovirt.engine.core.utils.customprop.VmPropertiesUtils getInstance ( ) { return org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.vmPropertiesUtils ; }