auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "" ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" ) ) ; }

Target:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "" ) ; org.junit.Assert.assertEquals ( "Should be map of disk alias and disk description" , "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" , jsonDescription ) ; }
Source:
protected boolean validate ( ) { return ( ( validate ( getVfsConfigValidator ( ) . nicExists ( ) ) ) && ( validate ( getVfsConfigValidator ( ) . nicSriovEnabled ( ) ) ) ) && ( validate ( getVfsConfigValidator ( ) . sriovFeatureSupported ( ) ) ) ; }

Target:
protected boolean validate ( ) { return ( validate ( getVfsConfigValidator ( ) . nicExists ( ) ) ) && ( validate ( getVfsConfigValidator ( ) . nicSriovEnabled ( ) ) ) ; }
Source:
java.util.List < ? extends java.security.cert.Certificate > getCertificateChain ( ) ;

Target:
default java.util.List < ? extends java.security.cert.Certificate > getCertificateChain ( ) { return null ; }
Source:
public void validateEnums ( org.ovirt.engine.api.model.CPU cpu ) { if ( cpu != null ) { if ( cpu.isSetArchitecture ( ) ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.Architecture.class , cpu.getArchitecture ( ) , false ) ; } } }

Target:
public void validateEnums ( org.ovirt.engine.api.model.CPU cpu ) { if ( cpu != null ) { if ( cpu.isSetArchitecture ( ) ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.Architecture.class , cpu.getArchitecture ( ) , true ) ; } } }
Source:
public static java.lang.String createConnectionString ( java.lang.String host , java.lang.String port , boolean sslTarget ) { return com.google.gwt.http.client.URL.encode ( org.ovirt.engine.ui.common.uicommon.WebClientConsoleInvoker.createConnectionJsonString ( host , port , sslTarget ) ) ; }

Target:
private static java.lang.String createConnectionString ( java.lang.String host , java.lang.String port , boolean sslTarget ) { return com.google.gwt.http.client.URL.encode ( org.ovirt.engine.ui.common.uicommon.WebClientConsoleInvoker.createConnectionJsonString ( host , port , sslTarget ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface ) { return ( ( iface.getBondName ( ) ) != null ) && ( iface.getBondName ( ) . equals ( bond.getName ( ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return ( ( iface.getBondName ( ) ) != null ) && ( iface.getBondName ( ) . equals ( bond.getName ( ) ) ) ; }
Source:
public java.util.Set < org.ovirt.engine.core.common.errors.EngineError > getExpectedEngineErrors ( ) { return expectedEngineErrors.orElse ( java.util.Collections.< org.ovirt.engine.core.common.errors.EngineError > emptySet ( ) ) ; }

Target:
public java.util.Set < org.ovirt.engine.core.common.errors.EngineError > getExpectedEngineErrors ( ) { return expectedEngineErrors ; }
Source:
public boolean getIsSkipped ( ) { return _status.equalsIgnoreCase ( org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue.SKIPPED ) ; }

Target:
public boolean getIsSkipped ( ) { return org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue.SKIPPED.equalsIgnoreCase ( _status ) ; }
Source:
public java.lang.String mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { java.lang.String content = rs.getString ( "content" ) ; return content ; }

Target:
public java.lang.String mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { java.lang.String content = rs.getString ( 1 ) ; return content ; }
Source:
public void testGetAllForStoragePoolWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( existingVds.getstorage_pool_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }

Target:
public void testGetAllForStoragePoolWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( existingVds.getStoragePoolId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }
Source:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( getNicType ( ) . getItems ( ) ) ) ; }

Target:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getDefaultNicType ( getNicType ( ) . getItems ( ) ) ) ; }
Source:
void revealActiveMainModelPresenter ( ) { org.ovirt.engine.ui.common.uicommon.model.MainModelSelectionChangeEvent.fire ( org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabPresenter.getEventBus ( ) , org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . getSelectedItem ( ) ) ; }

Target:
void revealActiveMainModelPresenter ( ) { org.ovirt.engine.ui.common.uicommon.model.MainModelSelectionChangeEvent.fire ( this , org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . getSelectedItem ( ) ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid createGuidFromString ( java.lang.String candidate ) { if ( candidate == null ) { return Empty ; } else { return new org.ovirt.engine.core.compat.Guid ( candidate ) ; } }

Target:
public static org.ovirt.engine.core.compat.Guid createGuidFromString ( java.lang.String candidate ) { if ( candidate == null ) { return null ; } else { return new org.ovirt.engine.core.compat.Guid ( candidate ) ; } }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.VM value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; updateVmActiveDisks ( ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.VM value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateVmActiveDisks ( ) ; }
Source:
java.lang.String getParentId ( org.ovirt.engine.api.model.Tag tag ) { return lookupTagByName ( tag.getParent ( ) . getTag ( ) . getName ( ) ) . gettag_id ( ) . toString ( ) ; }

Target:
java.lang.String getParentId ( org.ovirt.engine.api.model.Tag tag ) { return lookupTagByName ( tag.getParent ( ) . getName ( ) ) . gettag_id ( ) . toString ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.gluster.GetGlusterTunedProfilesQuery.getQueryReturnValue ( ) . setReturnValue ( java.util.Arrays.asList ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.GlusterTunedProfile ) . split ( "," ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { java.lang.String version = org.ovirt.engine.core.bll.gluster.GetGlusterTunedProfilesQuery.getParameters ( ) . getName ( ) ; org.ovirt.engine.core.bll.gluster.GetGlusterTunedProfilesQuery.getQueryReturnValue ( ) . setReturnValue ( java.util.Arrays.asList ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.GlusterTunedProfile , version ) . split ( "," ) ) ) ; }
Source:
private void templateWithVersion_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.templateWithVersion_SelectedItemChanged ( ) ; behavior.updateMigrationForLocalSD ( ) ; }

Target:
private void templateWithVersion_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.templateWithVersion_SelectedItemChanged ( ) ; }
Source:
protected void endWithFailure ( ) { auditLog ( this , AuditLogType.ADD_DISK_INTERNAL_FAILURE ) ; endActionOnDisks ( ) ; removeVm ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { auditLog ( this , AuditLogType.ADD_DISK_INTERNAL_FAILURE ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.endActionOnDisks ( ) ; removeVm ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.setSucceeded ( true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null ) ; }
Source:
private void verifyRunActionAndExecuteCallbacksRandomly ( boolean success , org.ovirt.engine.ui.uicommonweb.action.UiAction.ActionFlowState flowState , int exepectedNumOfRunActionExecutions , boolean waitForResult ) { verifyRunActionAndExecuteCallbacksRandomly ( success , flowState , exepectedNumOfRunActionExecutions , exepectedNumOfRunActionExecutions , waitForResult ) ; }

Target:
private void verifyRunActionAndExecuteCallbacksRandomly ( org.ovirt.engine.ui.uicommonweb.action.UiAction.ActionFlowState flowState , boolean waitForResult ) { verifyRunActionAndExecuteCallbacksRandomly ( false , flowState , 1 , 1 , waitForResult ) ; }
Source:
public java.lang.String getNetworkName ( ) { return org.ovirt.engine.core.bll.network.host.VdsNetworkCommand.getParameters ( ) . getNetwork ( ) . getname ( ) ; }

Target:
public java.lang.String getNetworkName ( ) { return org.ovirt.engine.core.bll.network.host.VdsNetworkCommand.getParameters ( ) . getNetwork ( ) . getName ( ) ; }
Source:
public void getGlusterHookContent ( ) { java.lang.String content = dao.getGlusterHookContent ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNotNull ( content ) ; org.junit.Assert.assertEquals ( content , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.CONTENT ) ; }

Target:
public void getGlusterHookContent ( ) { java.lang.String content = dao.getGlusterHookContent ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNotNull ( content ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.CONTENT , content ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid generateDeviceId ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface ) { return org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( ( ( vmGuestAgentInterface.getInterfaceName ( ) ) + ( vmGuestAgentInterface.getMacAddress ( ) ) ) . getBytes ( ) , true ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid generateDeviceId ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface ) { return org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( ( ( vmGuestAgentInterface.getInterfaceName ( ) ) + ( vmGuestAgentInterface.getMacAddress ( ) ) ) . getBytes ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.Nic postPopulate ( org.ovirt.engine.api.model.Nic model ) { model.setInterface ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.NicInterface.class ) . value ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Nic postPopulate ( org.ovirt.engine.api.model.Nic model ) { model.setInterface ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.NicInterface.class ) ) ; return model ; }
Source:
private void createCommandWithOlderVersion ( ) { createCommand ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.createClusterWithOlderVersion ( true , false ) ) ; }

Target:
private void createCommandWithOlderVersion ( ) { createCommand ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.createClusterWithOlderVersion ( ) ) ; }
Source:
public static java.lang.Integer getMaxVmNameLengthNonWin ( ) { java.lang.Integer maxVmNameLengthNonWindows = ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLengthNonWindows ) ) ) ; return maxVmNameLengthNonWindows == null ? 64 : maxVmNameLengthNonWindows ; }

Target:
public static java.lang.Integer getMaxVmNameLengthNonWin ( ) { java.lang.Integer maxVmNameLengthNonWindows = ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLengthNonWindows ) ) ) ; if ( maxVmNameLengthNonWindows == null ) { return 64 ; } return maxVmNameLengthNonWindows ; }
Source:
public static void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { org.ovirt.engine.core.common.AuditLogType logType = auditLogable.getAuditLogTypeValue ( ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType ) ; }

Target:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { org.ovirt.engine.core.common.AuditLogType logType = auditLogable.getAuditLogTypeValue ( ) ; log ( auditLogable , logType ) ; }
Source:
private org.ovirt.engine.core.common.utils.Pair < T , V > addGhostEntry ( ) { T value = createGhostValue ( ) ; V widget = addEntry ( value ) ; return new org.ovirt.engine.core.common.utils.Pair < T , V > ( value , widget ) ; }

Target:
private org.ovirt.engine.core.common.utils.Pair < T , V > addGhostEntry ( ) { T value = createGhostValue ( ) ; V widget = addEntry ( value , true ) ; return new org.ovirt.engine.core.common.utils.Pair < T , V > ( value , widget ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , null , true , null , false , null ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.core.common.businessentities.Bookmark > createActionPanel ( org.ovirt.engine.ui.webadmin.uicommon.model.BookmarkModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.core.common.businessentities.Bookmark > ( modelProvider , modelProvider.getSelectionModel ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.core.common.businessentities.Bookmark > createActionPanel ( org.ovirt.engine.ui.webadmin.uicommon.model.BookmarkModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SimpleActionPanel < org.ovirt.engine.core.common.businessentities.Bookmark > ( modelProvider , modelProvider.getSelectionModel ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }
Source:
public void setupMock ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( jobDaoMock ) . when ( command ) . getJobDao ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ) . thenReturn ( makeTestJob ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ) ; }

Target:
public void setupMock ( ) throws java.lang.Exception { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ) . thenReturn ( makeTestJob ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ) ; }
Source:
public native java.lang.String getSessionTimeout ( ) ;

Target:
public native java.lang.String getValue ( ) ;
Source:
public void setVmPid ( java.lang.Integer value ) { this . vmDynamic.setvm_pid ( value ) ; }

Target:
public void setVmPid ( java.lang.Integer value ) { this . vmDynamic.setVmPid ( value ) ; }
Source:
public javax.ws.rs.core.Response resetAllOptions ( org.ovirt.engine.api.model.Action action ) { return resetOption ( action , null , ( action.isSetForce ( ) ? action.isForce ( ) : false ) ) ; }

Target:
public javax.ws.rs.core.Response resetAllOptions ( org.ovirt.engine.api.model.Action action ) { return resetOption ( action , null , null , ( action.isSetForce ( ) ? action.isForce ( ) : false ) ) ; }
Source:
public void onlyHostname ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "someHostname" ) . getSuccess ( ) ) ; }

Target:
public void onlyHostname ( ) { org.junit.Assert.assertTrue ( validation.validate ( "someHostname" ) . getSuccess ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getStorageName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getName ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; }

Target:
public void onSuccess ( java.lang.Object returnValue ) { doInit ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > searchStorageDomain ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getStorageDomainDao ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > searchStorageDomain ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getStorageDomainDao ( ) , true ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getStorageConnDao ( ) . update ( getParameters ( ) . getStorageServerConnection ( ) ) ; getStorageDomainDynamicDao ( ) . update ( updatedStorageDomain.getStorageDynamicData ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getStorageDomainDynamicDao ( ) . update ( updatedStorageDomain.getStorageDynamicData ( ) ) ; return null ; }
Source:
protected org.ovirt.engine.core.compat.Guid GetPoolId ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getvm_pool_id ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid GetPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPoolDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getvm_pool_id ( ) ; }
Source:
private void setupMock ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( jobDaoMock ) . when ( commandMock ) . getJobDao ( ) ; }

Target:
public void setupMock ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( jobDaoMock ) . when ( commandMock ) . getJobDao ( ) ; }
Source:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , getDefaultConfigurationVersion ( ) ) ; return cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat ( configValue , getDefaultConfigurationVersion ( ) ) ; return cachedConfigValuesPreConvert.get ( key ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) . getValue ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) ; }
Source:
private void analyzeHostedEngineVm ( ) { if ( ( ( ( dbVm ) != null ) && ( ( vdsmVm ) != null ) ) && ( ( dbVm.getOrigin ( ) ) == ( org.ovirt.engine.core.common.businessentities.OriginType.HOSTED_ENGINE ) ) ) { hostedEngineUnmanaged = true ; } }

Target:
private void analyzeHostedEngineVm ( ) { if ( ( ( dbVm ) != null ) && ( ( dbVm.getOrigin ( ) ) == ( org.ovirt.engine.core.common.businessentities.OriginType.HOSTED_ENGINE ) ) ) { hostedEngineUnmanaged = true ; } }
Source:
protected void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getRelevantDiskImage ( ) ; diskImage.setimageStatus ( imageStatus ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImage ( ) . getId ( ) , imageStatus ) ; }

Target:
protected void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getRelevantDiskImage ( ) ; if ( diskImage != null ) { diskImage.setImageStatus ( imageStatus ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImage ( ) . getId ( ) , imageStatus ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) . getNetwork ( ) . getProvidedBy ( ) . getExternalId ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model ) { return model.getNetwork ( ) . getProvidedBy ( ) . getExternalId ( ) ; }
Source:
public void testCheckGlusterQuorumWithoutGluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( false , org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.CLUSTER_ID ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = new java.util.LinkedList < > ( ) ; org.junit.Assert.assertTrue ( "Quorum checks runs for Cluster without gluster service" , hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }

Target:
public void testCheckGlusterQuorumWithoutGluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( false ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = new java.util.LinkedList < > ( ) ; org.junit.Assert.assertTrue ( "Quorum checks runs for Cluster without gluster service" , hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { initTemplateDisks ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > returnValue ) { initTemplateDisks ( returnValue ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > templatesChain = new java.util.ArrayList < > ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ) ; initTemplateWithVersion ( templatesChain , templateId , useLatest ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > templatesChain ) { initTemplateWithVersion ( templatesChain , templateId , useLatest ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return 262144 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
private void initCollection ( ) { org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setBackend ( backend ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setMappingLocator ( mapperLocator ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setMessageBundle ( messageBundle ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setHttpHeaders ( httpHeaders ) ; }

Target:
private void initCollection ( ) { org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setMappingLocator ( mapperLocator ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setMessageBundle ( messageBundle ) ; org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.collection.setHttpHeaders ( httpHeaders ) ; }
Source:
public void setserver_SSL_enabled ( boolean value ) { this . mVdsStatic.setserver_SSL_enabled ( value ) ; }

Target:
public java.lang.String getName ( ) { return this . mVdsStatic.getName ( ) ; }
Source:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VM vm ) { setSearchString ( ( "events: vm.name=" + ( vm.getVmName ( ) ) ) ) ; }

Target:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VM vm ) { setSearchString ( ( "events: vm.name=" + ( vm.getName ( ) ) ) ) ; }
Source:
private void Frontend_QueryStarted ( ) { ( queryCounter ) ++ ; if ( ( getProgress ( ) ) == null ) { StartProgress ( null ) ; } }

Target:
public void Frontend_QueryStarted ( ) { ( queryCounter ) ++ ; if ( ( getProgress ( ) ) == null ) { StartProgress ( null ) ; } }
Source:
public java.lang.Integer getUsedDiskSize ( ) { return getStorageDynamicData ( ) . getused_disk_size ( ) ; }

Target:
public java.lang.Integer getUsedDiskSize ( ) { return getStorageDynamicData ( ) . getUsedDiskSize ( ) ; }
Source:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( java.lang.String action ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , "" ) ) ; }

Target:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( java.lang.String action , java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , id ) ) ; }
Source:
private void prepareMocks ( ) { org.mockito.Mockito.doReturn ( getUpServers ( ) ) . when ( glusterUtils ) . getAllUpServers ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }

Target:
private void prepareMocks ( ) { org.mockito.Mockito.doReturn ( getUpServers ( ) ) . when ( glusterUtils ) . getAllUpServers ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( javax.ws.rs.core.UriInfo uriInfo , R model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( uriInfo , model , suggestedParentType , true ) ; }

Target:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( R model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( model , suggestedParentType , true ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( runOnceCommand ) ) { if ( Validate ( ) ) { onRunOnce ( ) ; } } else if ( command == ( cancelCommand ) ) { commandTarget.executeCommand ( command ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( runOnceCommand ) ) { if ( validate ( ) ) { onRunOnce ( ) ; } } else if ( command == ( cancelCommand ) ) { commandTarget.executeCommand ( command ) ; } }
Source:
protected void setImageId ( org.ovirt.engine.core.compat.Guid imageId ) { this . imageId = imageId ; }

Target:
public void setImageId ( org.ovirt.engine.core.compat.Guid imageId ) { this . imageId = imageId ; }
Source:
public java.lang.String getVmsCount ( ) { return java.lang.Integer.toString ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmsCount ( ) ) ; }

Target:
public java.lang.String getVmsCount ( ) { return java.lang.String.valueOf ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmsCount ( ) ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; if ( object.getIsNew ( ) ) { object.getNumOfDesktops ( ) . setEntity ( "1" ) ; prestartedVmsEditor.setEnabled ( false ) ; } }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; if ( object.getIsNew ( ) ) { object.getNumOfDesktops ( ) . setEntity ( 1 ) ; prestartedVmsEditor.setEnabled ( false ) ; } }
Source:
public void forceAddMacs ( java.util.List < java.lang.String > macs ) { for ( java.lang.String mac : macs ) { forceAddMac ( mac ) ; } }

Target:
private void forceAddMacs ( java.util.List < java.lang.String > macs ) { for ( java.lang.String mac : macs ) { forceAddMac ( mac ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.Disk getDisk ( ) { if ( ( diskToScan ) == null ) { diskToScan = getDiskDao ( ) . get ( ( ( org.ovirt.engine.core.compat.Guid ) ( org.ovirt.engine.core.bll.GetDiskAlignmentCommand.getParameters ( ) . getDiskId ( ) ) ) ) ; } return diskToScan ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.Disk getDisk ( ) { if ( ( diskToScan ) == null ) { diskToScan = org.ovirt.engine.core.bll.GetDiskAlignmentCommand.getDiskDao ( ) . get ( ( ( org.ovirt.engine.core.compat.Guid ) ( org.ovirt.engine.core.bll.GetDiskAlignmentCommand.getParameters ( ) . getDiskId ( ) ) ) ) ; } return diskToScan ; }
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.AddVmFromSnapshotCommand.getParameters ( ) . getSourceSnapshotId ( ) , getClass ( ) . getName ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.AddVmFromSnapshotCommand.getParameters ( ) . getSourceSnapshotId ( ) . toString ( ) , getClass ( ) . getName ( ) ) ; }
Source:
private static void AddEmptyDataCenterToList ( java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > dataCenters ) { org.ovirt.engine.core.common.businessentities.storage_pool tempVar = new org.ovirt.engine.core.common.businessentities.storage_pool ( ) ; tempVar.setId ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel.UnassignedDataCenterId ) ; tempVar.setname ( "(none)" ) ; dataCenters.add ( tempVar ) ; }

Target:
private static void AddEmptyDataCenterToList ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > dataCenters ) { org.ovirt.engine.core.common.businessentities.StoragePool tempVar = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; tempVar.setId ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel.UnassignedDataCenterId ) ; tempVar.setname ( "(none)" ) ; dataCenters.add ( tempVar ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance ) ; }
Source:
private org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.macpool.MacPoolPerDc.class ) . getMacPoolForDataCenter ( params.getStoragePoolId ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.macpool.MacPoolPerDc.class ) . getMacPoolForDataCenter ( getStoragePoolId ( ) ) ; }
Source:
void updateColumnsAvailability ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { setShowVolumeType ( model.getIsVolumeFormatAvailable ( ) ) ; setShowQuota ( ( ( model.getQuotaEnforcementType ( ) ) != ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.DISABLED ) ) ) ; localize ( constants ) ; }

Target:
void updateColumnsAvailability ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { setShowVolumeType ( model.getIsVolumeFormatAvailable ( ) ) ; setShowQuota ( ( ( model.getQuotaEnforcementType ( ) ) != ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.DISABLED ) ) ) ; }
Source:
protected boolean isVmDuringInitiating ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( java.lang.Boolean ) ( getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.IsVmDuringInitiating , new org.ovirt.engine.core.common.vdscommands.IsVmDuringInitiatingVDSCommandParameters ( vm.getId ( ) ) ) . getReturnValue ( ) ) ) . booleanValue ( ) ; }

Target:
protected boolean isVmDuringInitiating ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( java.lang.Boolean ) ( getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.IsVmDuringInitiating , new org.ovirt.engine.core.common.vdscommands.IsVmDuringInitiatingVDSCommandParameters ( vm.getId ( ) ) ) . getReturnValue ( ) ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml input ( java.lang.String value , java.lang.String customStyle ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml input ( java.lang.String value , java.lang.String customStyle , java.lang.String id ) ;
Source:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmDynamic , compensationContext ) ; }

Target:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmDynamic , compensationContext ) ; }
Source:
public final void disconnect ( java.lang.String message ) { postDisconnect ( ) ; closeChannel ( ) ; emitOnMessageReceived ( buildNetworkResponse ( message ) ) ; }

Target:
public final void disconnect ( java.lang.String message ) { byte [ ] response = buildNetworkResponse ( message ) ; postDisconnect ( ) ; closeChannel ( ) ; emitOnMessageReceived ( response ) ; }
Source:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . trim ( ) . length ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) . split ( "," ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }

Target:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . size ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }
Source:
public void testMonitoringStrategyFactoryVirtStrategy ( ) { mockDbFacade ( ) ; org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; org.ovirt.engine.core.vdsbroker.MonitoringStrategy monitoringStrategy = org.ovirt.engine.core.vdsbroker.MonitoringStrategyFactory.getMonitoringStrategyForVds ( vds ) ; org.junit.Assert.assertTrue ( ( monitoringStrategy instanceof org.ovirt.engine.core.vdsbroker.VirtMonitoringStrategy ) ) ; }

Target:
public void testMonitoringStrategyFactoryVirtStrategy ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; org.ovirt.engine.core.vdsbroker.MonitoringStrategy monitoringStrategy = org.ovirt.engine.core.vdsbroker.MonitoringStrategyFactory.getMonitoringStrategyForVds ( vds ) ; org.junit.Assert.assertTrue ( ( monitoringStrategy instanceof org.ovirt.engine.core.vdsbroker.VirtMonitoringStrategy ) ) ; }
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 ? source : java.lang.Boolean.TRUE ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmUnamagedDeviceList ( ) { return vmStatic.getUnmanagedDeviceList ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUnmanagedDeviceList ( ) { return vmStatic.getUnmanagedDeviceList ( ) ; }
Source:
public void markAsValid ( ) { if ( editorStateValid ) { super . markAsValid ( ) ; } labelTooltip.setText ( labelConfiguredTooltip ) ; labelTooltip.reconfigure ( ) ; setLabelTooltipStyle ( labelConfiguredTooltip ) ; contentWidgetContainerTooltip.setText ( contentWidgetContainerConfiguredTooltip ) ; contentWidgetContainerTooltip.reconfigure ( ) ; }

Target:
public void markAsValid ( ) { if ( editorStateValid ) { super . markAsValid ( ) ; } labelTooltip.setText ( labelConfiguredTooltip ) ; setLabelTooltipStyle ( labelConfiguredTooltip ) ; contentWidgetContainerTooltip.setText ( contentWidgetContainerConfiguredTooltip ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel getDefaultProfile ( ) { if ( ( defaultProfile ) == null ) { defaultProfile = createDefaultProfile ( ) ; } return defaultProfile ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel getDefaultProfile ( ) { return defaultProfile ; }
Source:
public boolean isManagemet ( ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( getNetwork ( ) . getName ( ) , org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkModel.ENGINE_NETWORK ) ; }

Target:
public boolean isManagemet ( ) { return org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkModel.ENGINE_NETWORK.equals ( getNetwork ( ) . getName ( ) ) ; }
Source:
protected boolean validateDiscardAfterDeleteLegal ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , org.ovirt.engine.core.compat.Version compatibilityVersion ) { if ( org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomain ( ) . getDiscardAfterDelete ( ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_DISCARD_AFTER_DELETE_SUPPORTED_ONLY_BY_BLOCK_DOMAINS ) ; } return true ; }

Target:
protected boolean validateDiscardAfterDeleteLegal ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator ) { if ( org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomain ( ) . getDiscardAfterDelete ( ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_DISCARD_AFTER_DELETE_SUPPORTED_ONLY_BY_BLOCK_DOMAINS ) ; } return true ; }
Source:
public static void cleanUp ( ) { if ( ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1 ) != null ) { if ( ! ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.delete ( ) ) ) { } org.ovirt.engine.core.uutils.ssh.TransferTest.local1 = null ; } org.ovirt.engine.core.uutils.ssh.TestCommon.terminate ( ) ; }

Target:
public static void cleanUp ( ) { if ( ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1 ) != null ) { if ( ! ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.delete ( ) ) ) { } org.ovirt.engine.core.uutils.ssh.TransferTest.local1 = null ; } }
Source:
protected org.ovirt.engine.api.model.DataCenter postPopulate ( org.ovirt.engine.api.model.DataCenter model ) { model.setStorageType ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.StorageType.class ) . value ( ) ) ; model.setStorageFormat ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.restapi.model.StorageFormat.class ) . value ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.DataCenter postPopulate ( org.ovirt.engine.api.model.DataCenter model ) { model.setStorageFormat ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.restapi.model.StorageFormat.class ) . value ( ) ) ; return model ; }
Source:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { validateEnums ( org.ovirt.engine.api.model.Network.class , incoming ) ; return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }
Source:
protected void updateVmGuestAgentVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.UpdateVmGuestAgentVersion ( vm ) ; }

Target:
protected void updateVmGuestAgentVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateVmGuestAgentVersion ( vm ) ; }
Source:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateName , new org.ovirt.engine.core.common.queries.GetAllAuditLogsByVMTemplateNameParameters ( getEntity ( ) . getname ( ) ) ) ; }

Target:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateName , new org.ovirt.engine.core.common.queries.GetAllAuditLogsByVMTemplateNameParameters ( getEntity ( ) . getName ( ) ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return updateParameters ( ) ; }

Target:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }
Source:
public java.lang.Integer getWarningLowSpaceIndicator ( ) { return staticData.getWarningLowSpaceIndicator ( ) ; }

Target:
public java.lang.Integer getWarningLowSpaceIndicator ( ) { return ( staticData ) == null ? null : staticData.getWarningLowSpaceIndicator ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return n.getname ( ) . equals ( getInterface ( ) . getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return n.getName ( ) . equals ( getInterface ( ) . getNetworkName ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > searchAuditLogEvents ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getAuditLogDao ( ) , false , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > searchAuditLogEvents ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getAuditLogDao ( ) , false ) ; }