auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM value ) { _vmStatic = value.getStaticData ( ) ; }

Target:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM value ) { vm = null ; _vmStatic = value.getStaticData ( ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml consoleButton ( java.lang.String id , java.lang.String title , java.lang.String className ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml consoleButton ( java.lang.String id , java.lang.String className ) ;
Source:
public java.lang.String getVmPoolName ( ) { return ( getVmPool ( ) ) != null ? getVmPool ( ) . getVmPoolName ( ) : null ; }

Target:
public java.lang.String getVmPoolName ( ) { return ( getVmPool ( ) ) != null ? getVmPool ( ) . getName ( ) : null ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ( vds.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Up ) ) && ( vds.getstorage_pool_id ( ) . equals ( _vds.getstorage_pool_id ( ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ( vds.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Up ) ) && ( vds.getStoragePoolId ( ) . equals ( _vds.getStoragePoolId ( ) ) ) ; }
Source:
public void testRemoveAll ( ) { prepareDao ( ) . removeAll ( ) ; final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = prepareDao ( ) . getAll ( ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testRemoveAll ( ) { dao.removeAll ( ) ; final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = dao.getAll ( ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void e1000VmInterfaceTypeWhenNotIsCompatibleWithOs ( ) throws java.lang.Exception { isCompatibleWithOsTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_IS_NOT_SUPPORTED_BY_OS ) ) , VmInterfaceType.e1000.getValue ( ) ) ; }

Target:
public void e1000VmInterfaceTypeWhenNotIsCompatibleWithOs ( ) throws java.lang.Exception { isCompatibleWithOsTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_IS_NOT_SUPPORTED_BY_OS ) , VmInterfaceType.e1000.getValue ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.CreateCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.EndAction ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.CreateCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.endAction ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return java.lang.String.valueOf ( object.getnum_of_cpus ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getnum_of_cpus ( ) ) ; }
Source:
public void testGetAllAttachableDisksByPoolWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllAttachableDisksByPoolId ( null , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllAttachableDisksByPoolWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllAttachableDisksByPoolId ( null , null , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected java.util.List getSelectedItems ( ) { return null ; }

Target:
public java.util.List getSelectedItems ( ) { return null ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.QuotaStorage object ) { return ( ( object.getStorageName ( ) ) == null ) || ( ( object.getStorageName ( ) ) == "" ) ? constants.utlQuotaAllStoragesQuotaPopup ( ) : object.getStorageName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.QuotaStorage object ) { return ( ( object.getStorageName ( ) ) == null ) || ( object.getStorageName ( ) . equals ( "" ) ) ? constants.utlQuotaAllStoragesQuotaPopup ( ) : object.getStorageName ( ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] getVmInfo ( java.util.List < java.lang.String > vmsToUpdate ) { return ( ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] ) ( new org.ovirt.engine.core.vdsbroker.vdsbroker.FullListVdsCommand < org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters > ( new org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters ( _vds.getId ( ) , vmsToUpdate ) ) . ExecuteWithReturnValue ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] getVmInfo ( java.util.List < java.lang.String > vmsToUpdate ) { return ( ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] ) ( new org.ovirt.engine.core.vdsbroker.vdsbroker.FullListVdsCommand < org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters > ( new org.ovirt.engine.core.common.vdscommands.FullListVDSCommandParameters ( _vds.getId ( ) , vmsToUpdate ) ) . ExecuteWithReturnValue ( ) ) ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( long fetchTime ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( vdsManager , auditLogDirector , fetchTime , isTimeToRefreshStatistics ( ) ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( vdsManager , auditLogDirector , isTimeToRefreshStatistics ( ) ) ; }
Source:
private void setUpPopulateExpectation ( ) { if ( ! ( isPopulateSet ) ) { org.easymock.EasyMock.expect ( httpHeaders.getRequestHeader ( BackendResource.POPULATE ) ) . andReturn ( java.util.Collections.singletonList ( "true" ) ) . anyTimes ( ) ; isPopulateSet = true ; } }

Target:
private void setUpPopulateExpectation ( ) { if ( ! ( isPopulateSet ) ) { org.mockito.Mockito.when ( httpHeaders.getRequestHeader ( BackendResource.POPULATE ) ) . thenReturn ( java.util.Collections.singletonList ( "true" ) ) ; isPopulateSet = true ; } }
Source:
public void replace_emptyBuilder ( ) { runAndCheck ( new java.lang.String ( ) , "a" , "b" , "" ) ; }

Target:
public void replace_emptyBuilder ( ) { runAndCheck ( "" , "a" , "b" , "" ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getQueryReturnValue ( ) . setReturnValue ( ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getByName ( org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getParameters ( ) . getVmPoolName ( ) ) ) != null ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getQueryReturnValue ( ) . setReturnValue ( ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getByName ( org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getParameters ( ) . getName ( ) ) ) != null ) ) ; }
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 , new org.ovirt.engine.core.compat.Version ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , int availableSize , int usedSize ) { return mockStorageDomain ( storageId , availableSize , usedSize , StorageType.UNKNOWN , new org.ovirt.engine.core.compat.Version ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenIfaceQosIsNullIfaceQosOverridden ( ) throws java.lang.Exception { iface.setQos ( null ) ; iface.setQosOverridden ( true ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIfaceQosIsNullIfaceQosOverridden ( ) throws java.lang.Exception { iface.setQos ( null ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.PostUpdatePriority ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.PostUpdatePriority ( ) ; }
Source:
public static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWith ( org.ovirt.engine.core.common.errors.VdcBllMessages expectedError , java.lang.String ... variableReplacements ) { return new org.ovirt.engine.core.bll.validator.ValidationResultMatchers.Fails ( expectedError , variableReplacements ) ; }

Target:
public static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWith ( org.ovirt.engine.core.common.errors.EngineMessage expectedError , java.lang.String ... variableReplacements ) { return new org.ovirt.engine.core.bll.validator.ValidationResultMatchers.Fails ( expectedError , variableReplacements ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.Quota quota , java.lang.String value ) { transitionHandler.handlePlaceTransition ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.Quota quota , java.lang.String value ) { transitionHandler.handlePlaceTransition ( true ) ; }
Source:
protected org.ovirt.engine.api.model.Host deprecatedPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { org.ovirt.engine.api.model.Host host = parent.addStatistics ( model , entity , uriInfo , httpHeaders ) ; parent.addCertificateInfo ( host ) ; return host ; }

Target:
protected org.ovirt.engine.api.model.Host deprecatedPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { parent.addStatistics ( model , entity ) ; parent.addCertificateInfo ( model ) ; return model ; }
Source:
private void initLabelsToNetworks ( ) { for ( org.ovirt.engine.core.common.businessentities.network.Network network : clusterNetworks ) { org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( network.getLabel ( ) , network , labelToNetworks , new org.ovirt.engine.core.utils.collections.MultiValueMapUtils.ListCreator < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ) ; } }

Target:
private void initLabelsToNetworks ( ) { for ( org.ovirt.engine.core.common.businessentities.network.Network network : clusterNetworks ) { org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( network.getLabel ( ) , network , labelToNetworks , new org.ovirt.engine.core.utils.collections.MultiValueMapUtils.ListCreator < > ( ) ) ; } }
Source:
public void prepareMocks ( ) { org.mockito.Mockito.doReturn ( lunDao ) . when ( command ) . getLunDao ( ) ; org.mockito.Mockito.doReturn ( storageServerConnectionDao ) . when ( command ) . getStorageServerConnectionDao ( ) ; }

Target:
public void prepareMocks ( ) { org.mockito.Mockito.doReturn ( lunDao ) . when ( command ) . getLunDao ( ) ; }
Source:
protected void toggleProfilesAvailability ( ) { getProfiles ( ) . setIsAvailable ( ( ( ( java.lang.Boolean ) ( getIsVmNetwork ( ) . getEntity ( ) ) ) && ( ! ( originallyVmNetwork ) ) ) ) ; }

Target:
protected void toggleProfilesAvailability ( ) { getProfiles ( ) . setIsAvailable ( ( ( getIsVmNetwork ( ) . getEntity ( ) ) && ( ! ( originallyVmNetwork ) ) ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.Quota quota ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( quota.getQuotaEnforcementType ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.Quota quota ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( quota.getQuotaEnforcementType ( ) ) ; return tooltipContent ; }
Source:
public java.lang.String getUuid ( ) { return org.ovirt.vdsmfake.Utils.getUuid ( ) ; }

Target:
public java.lang.String getUuid ( ) { return utils.getUuid ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.glusterHookRowMapper ) ; for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity entity : glusterHooks ) { getGlusterServerHook ( entity , null ) ; } return glusterHooks ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = jdbcTemplate.query ( query , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.glusterHookRowMapper ) ; return glusterHooks ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > newItems = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ; org.ovirt.engine.ui.uicommonweb.models.SearchableListModel searchableListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel ) ( model ) ) ; searchableListModel.setItems ( newItems ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ) ; }
Source:
public void setpm_port ( java.lang.Integer value ) { mVdsStatic.setpm_port ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "pm_port" ) ) ; }

Target:
public void setpm_port ( java.lang.Integer value ) { mVdsStatic.setpm_port ( value ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.CommandBase < ? > commandBase = getCommand ( cmdId ) ; commandBase.getParameters ( ) . setTaskGroupSuccess ( false ) ; endAction ( commandBase , childCmdIds ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.CommandBase < ? > commandBase = getCommand ( cmdId ) ; commandBase.getParameters ( ) . setTaskGroupSuccess ( false ) ; endAction ( commandBase , childCmdIds , false ) ; }
Source:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; final org.ovirt.engine.core.compat.Guid anotherManagementNetworkId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; addManagementNetworksToPool ( anotherManagementNetworkId , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.TEST_MANAGEMENT_NETWORK_ID ) ; setupNetworkValidator ( false ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }
Source:
protected void removeWidget ( V widget ) { contentPanel.remove ( getEntry ( widget ) ) ; }

Target:
private void removeWidget ( V widget ) { contentPanel.remove ( getEntry ( widget ) ) ; }
Source:
public void testQueryWithoutFilter ( ) throws java.lang.Exception { resource.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; control.replay ( ) ; resource.get ( ) ; }

Target:
public void testQueryWithoutFilter ( ) throws java.lang.Exception { resource.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false , true ) ; control.replay ( ) ; resource.get ( ) ; }
Source:
protected void doTestGlusterOnlyGet ( ) { setupExpectations ( ApplicationMode.GlusterOnly , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.relationshipsGlusterOnly ) ; verifyResponseGlusterOnly ( resource.get ( ) ) ; }

Target:
protected void doTestGlusterOnlyGet ( ) { setupExpectations ( ApplicationMode.GlusterOnly ) ; verifyResponseGlusterOnly ( resource.get ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { onGetClusterList ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( ReturnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { onGetClusterList ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( ReturnValue ) ) ) ; }
Source:
public boolean prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return true ; }

Target:
public void prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { }
Source:
public org.ovirt.engine.api.v3.types.V3ErrorHandling adapt ( org.ovirt.engine.api.model.ErrorHandling from ) { org.ovirt.engine.api.v3.types.V3ErrorHandling to = new org.ovirt.engine.api.v3.types.V3ErrorHandling ( ) ; if ( from.isSetOnError ( ) ) { to.setOnError ( from.getOnError ( ) ) ; } return to ; }

Target:
public org.ovirt.engine.api.v3.types.V3ErrorHandling adapt ( org.ovirt.engine.api.model.ErrorHandling from ) { org.ovirt.engine.api.v3.types.V3ErrorHandling to = new org.ovirt.engine.api.v3.types.V3ErrorHandling ( ) ; if ( from.isSetOnError ( ) ) { to.setOnError ( from.getOnError ( ) . value ( ) ) ; } return to ; }
Source:
private static void setHookId ( org.ovirt.engine.api.model.Hook hook , java.lang.String hookName , java.lang.String eventName , java.lang.String md5 ) { org.ovirt.engine.core.compat.NGuid guid = org.ovirt.engine.api.restapi.types.HostMapper.generateHookId ( eventName , hookName , md5 ) ; hook.setId ( guid.toString ( ) ) ; }

Target:
private static void setHookId ( org.ovirt.engine.api.model.Hook hook , java.lang.String hookName , java.lang.String eventName , java.lang.String md5 ) { org.ovirt.engine.core.compat.Guid guid = org.ovirt.engine.api.restapi.types.HostMapper.generateHookId ( eventName , hookName , md5 ) ; hook.setId ( guid.toString ( ) ) ; }
Source:
protected boolean isStoragePoolUnique ( java.lang.String storagePoolName ) { org.ovirt.engine.core.dao.StoragePoolDAO spDao = org.ovirt.engine.core.bll.storage.StoragePoolManagementCommandBase.getStoragePoolDAO ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > sps = spDao.getByName ( storagePoolName , false ) ; return ( sps == null ) || ( sps.isEmpty ( ) ) ; }

Target:
protected boolean isStoragePoolUnique ( java.lang.String storagePoolName ) { org.ovirt.engine.core.dao.StoragePoolDAO spDao = org.ovirt.engine.core.bll.storage.StoragePoolManagementCommandBase.getStoragePoolDAO ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > sps = spDao.getByName ( storagePoolName , true ) ; return ( sps == null ) || ( sps.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.api.model.VM get ( ) { org.ovirt.engine.api.model.VM vm = performGet ( VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( guid ) ) ; return removeRestrictedInfo ( vm ) ; }

Target:
public org.ovirt.engine.api.model.VM get ( ) { org.ovirt.engine.api.model.VM vm = performGet ( VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return removeRestrictedInfo ( vm ) ; }
Source:
public static java.util.List < org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol > getProtocolsByPriority ( ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol > consoleProtocols = java.util.Arrays.asList ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol.values ( ) ) ; java.util.Collections.sort ( consoleProtocols , new org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol.PriorityComparator ( ) ) ; return consoleProtocols ; }

Target:
public static java.util.List < org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol > getProtocolsByPriority ( ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol > consoleProtocols = new java.util.ArrayList ( java.util.Arrays.asList ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol.values ( ) ) ) ; java.util.Collections.sort ( consoleProtocols , new org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol.PriorityComparator ( ) ) ; return consoleProtocols ; }
Source:
private < T extends org.ovirt.engine.core.common.businessentities.BusinessEntity < org.ovirt.engine.core.compat.Guid > > java.lang.String getHostName ( T entity ) { if ( entity instanceof org.ovirt.engine.core.common.businessentities.VDS ) { return ", name : " + ( ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( entity ) ) . getVdsName ( ) ) ; } return "" ; }

Target:
private < T extends org.ovirt.engine.core.common.businessentities.BusinessEntity < org.ovirt.engine.core.compat.Guid > > java.lang.String getHostName ( T entity ) { if ( entity instanceof org.ovirt.engine.core.common.businessentities.VDS ) { return ", name : " + ( ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( entity ) ) . getName ( ) ) ; } return "" ; }
Source:
public static boolean IsActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { boolean isActive = ( ( storageDomain.getstatus ( ) ) != null ) && ( ( storageDomain.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }

Target:
public static boolean IsActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isActive = ( ( storageDomain.getStatus ( ) ) != null ) && ( ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }
Source:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; behavior.EntityPropertyChanged ( e ) ; }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; behavior.entityPropertyChanged ( e ) ; }
Source:
public boolean addOperation ( final org.ovirt.engine.ui.frontend.communication.VdcOperation < ? , ? > operation ) { return addOperationImpl ( operation ) ; }

Target:
public void addOperation ( final org.ovirt.engine.ui.frontend.communication.VdcOperation < ? , ? > operation ) { addOperationImpl ( operation ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand.getStorageDomainId ( ) . getValue ( ) , LockingGroup.STORAGE.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand.getStorageDomainId ( ) . toString ( ) , LockingGroup.STORAGE.name ( ) ) ; }
Source:
private void initSpyCommand ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.MoveDisksCommand < org.ovirt.engine.core.common.action.MoveDisksParameters > ( new org.ovirt.engine.core.common.action.MoveDisksParameters ( new java.util.ArrayList < org.ovirt.engine.core.common.action.MoveDiskParameters > ( ) ) ) ) ; }

Target:
private void initSpyCommand ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.MoveDisksCommand ( new org.ovirt.engine.core.common.action.MoveDisksParameters ( new java.util.ArrayList < > ( ) ) ) ) ; }
Source:
protected void failedToRunVm ( ) { try { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected void failedToRunVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } }
Source:
public void compareWhenSizesAreNotEqual ( ) { int availableDiskSize = getRandomNumberForTest ( ) ; setStorageDomainsAvailableDiskSize ( availableDiskSize , ( availableDiskSize / 2 ) ) ; assertBiggerThan ( storageDomain1 , storageDomain2 ) ; assertSmallerThan ( storageDomain2 , storageDomain1 ) ; }

Target:
public void compareWhenSizesAreNotEqual ( ) { int availableDiskSize = getRandomNumberForTest ( ) ; setStorageDomainsAvailableDiskSize ( ( availableDiskSize / 2 ) , availableDiskSize ) ; assertBiggerThan ( storageDomain1 , storageDomain2 ) ; assertSmallerThan ( storageDomain2 , storageDomain1 ) ; }
Source:
public static java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > getDataStorageModels ( ) { java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > models = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > ( ) ; models.addAll ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getFileDataStorageModels ( ) ) ; models.addAll ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getBlockDataStorageModels ( ) ) ; return models ; }

Target:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > getDataStorageModels ( ) { java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > models = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel > ( ) ; models.addAll ( getFileDataStorageModels ( ) ) ; models.addAll ( getBlockDataStorageModels ( ) ) ; return models ; }
Source:
public void initialize ( ) { super . initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; behavior.setHash ( getHash ( ) ) ; behavior.initialize ( ) ; initDataCenter ( ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; behavior.initialize ( ) ; initDataCenter ( ) ; }
Source:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.or ( org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( cluster ( ) . id ( ) ) , org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( cluster ( ) . name ( ) ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.optional ( registrationConfiguration ( ) ) ; }

Target:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.or ( org.ovirt.api.metamodel.language.ApiLanguage.optional ( cluster ( ) . id ( ) ) , org.ovirt.api.metamodel.language.ApiLanguage.optional ( cluster ( ) . name ( ) ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.optional ( registrationConfiguration ( ) ) ; }
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.Network o1 , org.ovirt.engine.core.common.businessentities.network.Network o2 ) { return HostInterfaceListModel.ENGINE_NETWORK_NAME.equals ( o1.getname ( ) ) ? - 1 : o1.getname ( ) . compareTo ( o2.getname ( ) ) ; }
Source:
public void cleanup ( ) { if ( ( widgetWithLabel ) instanceof org.ovirt.engine.ui.uicommonweb.HasCleanup ) { ( ( org.ovirt.engine.ui.uicommonweb.HasCleanup ) ( widgetWithLabel ) ) . cleanup ( ) ; } }

Target:
public void cleanup ( ) { widgetWithLabel.cleanup ( ) ; }
Source:
void onLoginSuccess ( java.lang.String userName , java.lang.String password , java.lang.String domain ) ;

Target:
void onLoginSuccess ( ) ;
Source:
public static javax.ws.rs.core.Response addDisksLinkToResponse ( javax.ws.rs.core.Response response ) { if ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.v3.types.V3VM ) { org.ovirt.engine.api.v3.types.V3VM vm = ( ( org.ovirt.engine.api.v3.types.V3VM ) ( response.getEntity ( ) ) ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( vm ) ; } return response ; }

Target:
public static void addDisksLink ( javax.ws.rs.core.Response response ) { java.lang.Object entity = response.getEntity ( ) ; if ( entity instanceof org.ovirt.engine.api.v3.types.V3VM ) { org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( ( ( org.ovirt.engine.api.v3.types.V3VM ) ( entity ) ) ) ; } }
Source:
public void testCleanNotExpiredUsersSessionsNoUsers ( ) { org.ovirt.engine.core.dao.DbUserDAO dbUserDAOMcok = initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNotNull ( "Get should return the value since the session was not removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; org.mockito.Mockito.verifyZeroInteractions ( dbUserDAOMcok ) ; }

Target:
public void testCleanNotExpiredUsersSessionsNoUsers ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNotNull ( "Get should return the value since the session was not removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { java.lang.System.out.println ( "Stopping...." ) ; if ( ( sshd ) != null ) { sshd.stop ( true ) ; java.lang.Thread.sleep ( 50 ) ; } }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ( sshd ) != null ) { sshd.stop ( ) ; } }
Source:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; setUpGetCertificateInfo ( NAMES.length ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommand createTestCommand2 ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeReplaceBrickActionParameters ( volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskOperation.START , null , getBricks ( volumeId , "" , 1 ) . get ( 0 ) , false ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommand createTestCommand2 ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeReplaceBrickActionParameters ( volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskOperation.START , null , getBricks ( volumeId , "" , 1 ) . get ( 0 ) , false ) , null ) ; }
Source:
public boolean render ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( value instanceof org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel ) ( value ) ) . getrdp ( ) . getUseLocalDrives ( ) ; } return false ; }

Target:
public boolean render ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( value instanceof org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel ) ( value ) ) . getrdp ( ) . getUseLocalDrives ( ) ; } return false ; }
Source:
public void removeSubnet ( java.lang.String id ) { try { getClient ( ) . subnets ( ) . delete ( id ) . execute ( ) ; } catch ( java.lang.RuntimeException e ) { throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.PROVIDER_FAILURE , e ) ; } }

Target:
public void removeSubnet ( java.lang.String id ) { execute ( getClient ( ) . subnets ( ) . delete ( id ) ) ; }
Source:
public void setStartTime ( java.util.Date startTime ) { this . startTime = startTime ; if ( ( this . totalMigrationTime ) == null ) { this . totalMigrationTime = this . startTime ; } }

Target:
public void setStartTime ( java.util.Date startTime ) { if ( ( this . startTime ) == null ) { this . startTime = startTime ; } }
Source:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic , null ) ) ; }

Target:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getVdsBroker ( ) . RunVdsCommand ( commandType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getVdsBroker ( ) . runVdsCommand ( commandType , parameters ) ; }
Source:
public static void getLatency ( ) { try { org.ovirt.vdsmfake.Utils.getLatency ( ( ( long ) ( org.ovirt.vdsmfake.Utils.minimum ) ) ) ; } catch ( java.lang.Exception e ) { org.ovirt.vdsmfake.Utils.log.error ( "failed to get latency error is: {}" , e ) ; } }

Target:
public void getLatency ( ) { try { getLatency ( ( ( long ) ( org.ovirt.vdsmfake.Utils.minimum ) ) ) ; } catch ( java.lang.Exception e ) { org.ovirt.vdsmfake.Utils.log.error ( "failed to get latency error is: {}" , e ) ; } }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void logoutUser ( final java.lang.Object userObject , final org.ovirt.engine.ui.frontend.communication.UserCallback < ? > callback ) { communicationProvider.logout ( userObject , callback ) ; }

Target:
public void logoutUser ( final org.ovirt.engine.ui.frontend.communication.UserCallback < ? > callback ) { communicationProvider.logout ( callback ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLunsForVgId ( java.lang.String vgId ) { return org.ovirt.engine.core.bll.storage.disk.lun.GetLunsByVgIdQuery.getDbFacade ( ) . getLunDao ( ) . getAllForVolumeGroup ( getVgId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLunsForVgId ( java.lang.String vgId ) { return org.ovirt.engine.core.bll.storage.disk.lun.GetLunsByVgIdQuery.getDbFacade ( ) . getLunDao ( ) . getAllForVolumeGroup ( vgId ) ; }
Source:
protected void executeCommand ( ) { initConnectionList ( ) ; for ( java.util.Map.Entry < org.ovirt.engine.core.common.businessentities.StorageType , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > > connectionToType : getConnectionsTypeMap ( ) . entrySet ( ) ) { disconnectStorageByType ( connectionToType.getKey ( ) , connectionToType.getValue ( ) ) ; } }

Target:
protected void executeCommand ( ) { initConnectionList ( true ) ; for ( java.util.Map.Entry < org.ovirt.engine.core.common.businessentities.StorageType , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > > connectionToType : getConnectionsTypeMap ( ) . entrySet ( ) ) { disconnectStorageByType ( connectionToType.getKey ( ) , connectionToType.getValue ( ) ) ; } }
Source:
public void setConsoleUserName ( java.lang.String consoleUserName ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( consoleUserName , consoleUserName ) ) ) { this . consoleUserName = consoleUserName ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ConsoleUserName" ) ) ; } }

Target:
public void setConsoleUserName ( java.lang.String consoleUserName ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( this . consoleUserName , consoleUserName ) ) ) { this . consoleUserName = consoleUserName ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ConsoleUserName" ) ) ; } }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_RULES , _iptables.split ( "\n" ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_RULES , _iptables.split ( "\n" ) ) ; return true ; }
Source:
public void testParseMissingType ( ) { try { org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:one=1" , "two=int" ) ; fail ( "expected IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException iae ) { java.lang.System.out.println ( iae ) ; } }

Target:
public void testParseMissingType ( ) { org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:one=1" , "two=int" ) ; }
Source:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID ) ; }

Target:
public void addWithExistingMacAddressSucceed ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false ) ; }
Source:
private void addVmDeviceToList ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { vmDeviceToSave.put ( vmDevice.getId ( ) , vmDevice ) ; }

Target:
private void addVmDeviceToList ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { vmDeviceToSave.add ( vmDevice ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain initStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; return storageDomain ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain initStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return storageDomain ; }
Source:
public void setmem_shared ( java.lang.Long value ) { this . mVdsStatistics.setmem_shared ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_shared" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_shared_percent" ) ) ; }

Target:
public void setmem_shared ( java.lang.Long value ) { this . mVdsStatistics.setmem_shared ( value ) ; }
Source:
protected void init ( ) { resource.setBackend ( backend ) ; resource.setMappingLocator ( mapperLocator ) ; resource.setValidatorLocator ( validatorLocator ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }

Target:
protected void init ( ) { resource.setBackend ( backend ) ; resource.setMappingLocator ( mapperLocator ) ; resource.setMessageBundle ( messageBundle ) ; resource.setHttpHeaders ( httpHeaders ) ; }
Source:
protected void childCommandsExecutionEnded ( org.ovirt.engine.core.bll.CommandBase < ? > command , boolean anyFailed , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds , org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus status , int completedChildren ) { setCommandEndStatus ( command , anyFailed , status , childCmdIds ) ; }

Target:
protected void childCommandsExecutionEnded ( org.ovirt.engine.core.bll.CommandBase < ? > command , boolean anyFailed , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds , org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus status , int completedChildren ) { }
Source:
public java.lang.String getVdsGroupName ( ) { if ( ( getVdsGroup ( ) ) != null ) { return getVdsGroup ( ) . getname ( ) ; } else { return "" ; } }

Target:
public java.lang.String getVdsGroupName ( ) { if ( ( getVdsGroup ( ) ) != null ) { return getVdsGroup ( ) . getname ( ) ; } return "" ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > cpuProfiles = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; getCpuProfiles ( ) . setItems ( cpuProfiles ) ; }

Target:
public void onSuccess ( java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > cpuProfiles = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; getCpuProfiles ( ) . setItems ( cpuProfiles ) ; }
Source:
private java.lang.String getkeyForCheck ( ) { return "" . equals ( getTimeoutObjectId ( ) ) ? getKey ( ) : java.lang.String.format ( "%1$s_%2$s" , getKey ( ) , getTimeoutObjectId ( ) ) ; }

Target:
private java.lang.String getkeyForCheck ( ) { return "" . equals ( getTimeoutObjectId ( ) ) ? getKey ( ) : getTimeoutObjectId ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { org.ovirt.engine.core.compat.Guid clusterId = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( parentId ) , "id" ) . getVdsGroupId ( ) ; return clusterId ; }

Target:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { org.ovirt.engine.core.compat.Guid clusterId = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( parentId ) , "id" ) . getVdsGroupId ( ) ; return clusterId ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { model.stopProgress ( ) ; cancel ( ) ; }
Source:
public void testValidateVmUpHostCapable ( ) { prepareForVmValidatorTests ( ) ; org.mockito.Mockito.doReturn ( ValidationResult.VALID ) . when ( vmValidator ) . vmHostCanLiveMerge ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void testValidateVmUpHostCapable ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void formatStringTest2 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "1" , "1" ) ; org.junit.Assert.assertNotNull ( "There should be a result" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }

Target:
public void formatStringTest2 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "1" , "1" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }