auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > GetDiskInterfaceList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO } ) ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
protected void freeLock ( ) { if ( ( commandLock ) != null ) { org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) . releaseLock ( commandLock ) ; log.infoFormat ( "Lock freed to object {0}" , commandLock ) ; commandLock = null ; } }

Target:
protected void freeLock ( ) { if ( ( commandLock ) != null ) { getLockManager ( ) . releaseLock ( commandLock ) ; log.infoFormat ( "Lock freed to object {0}" , commandLock ) ; commandLock = null ; } }
Source:
public static void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { 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 ) { log ( auditLogable , logType , "" ) ; }
Source:
protected java.lang.String getAdditionalInformation ( ) { if ( ( getVds ( ) ) != null ) { return java.lang.String.format ( "HostName = %1$s" , getVds ( ) . getVdsName ( ) ) ; } else { return super . getAdditionalInformation ( ) ; } }

Target:
protected java.lang.String getAdditionalInformation ( ) { if ( ( getVds ( ) ) != null ) { return java.lang.String.format ( "HostName = %1$s" , getVds ( ) . getName ( ) ) ; } else { return super . getAdditionalInformation ( ) ; } }
Source:
public void testRemoveServerConnection ( ) { dao.remove ( existingConnection.getid ( ) ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemoveServerConnection ( ) { dao.remove ( existingConnection.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 0 ) ; }

Target:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 0 ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel createModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior ) { final org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setCompatibilityVersion ( org.ovirt.engine.ui.uicommonweb.models.vms.CLUSTER_VERSION ) ; org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = new org.ovirt.engine.ui.uicommonweb.models.pools.PoolModel ( behavior ) { @ java.lang.Override public org.ovirt.engine.core.common.businessentities.Cluster getSelectedCluster ( ) { return cluster ; } } ; return model ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel createModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior ) { return new org.ovirt.engine.ui.uicommonweb.models.pools.PoolModel ( behavior ) ; }
Source:
private org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters buildRemoveVmParameters ( ) { return new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.getVmId ( ) , getParameters ( ) . getStorageDomainId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters buildRemoveVmParameters ( ) { return new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.getVmId ( ) , org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) ) ; }
Source:
public void testInvalidParse ( ) { try { org.ovirt.engine.core.compat.TimeSpan.Parse ( "1.02.03" ) ; fail ( "No exception was thrown" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
public void testInvalidParse ( ) { org.ovirt.engine.core.compat.TimeSpan.Parse ( "1.02.03" ) ; }
Source:
private void mockConfigSizeDefaults ( ) { int requiredSpaceBufferInGB = 5 ; int requiredSpacePercent = 0 ; mockConfigSizeRequirements ( requiredSpaceBufferInGB , requiredSpacePercent ) ; }

Target:
private void mockConfigSizeDefaults ( ) { int requiredSpaceBufferInGB = 5 ; mockConfigSizeRequirements ( requiredSpaceBufferInGB ) ; }
Source:
private boolean validateAttachment ( ) { final org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator networkClusterValidator = createNetworkClusterValidator ( ) ; return ( validate ( networkClusterValidator.managementNetworkUnset ( ) ) ) && ( super . validateAttachment ( networkClusterValidator ) ) ; }

Target:
private boolean validateAttachment ( ) { final org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator networkClusterValidator = createNetworkClusterValidator ( ) ; return ( validate ( networkClusterValidator.managementNetworkUnset ( ) ) ) && ( validateAttachment ( networkClusterValidator ) ) ; }
Source:
private org.ovirt.engine.api.model.VM removeRestrictedInfo ( org.ovirt.engine.api.model.VM vm ) { if ( ( vm != null ) && ( isFiltered ( ) ) ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } return vm ; }

Target:
private void removeRestrictedInfo ( org.ovirt.engine.api.model.VM vm ) { if ( isFiltered ( ) ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } }
Source:
public void hideSuggestions ( ) { suggestionPopup.hide ( false ) ; }

Target:
public void hideSuggestions ( ) { if ( ( suggestionPopup ) != null ) { suggestionPopup.hide ( false ) ; } }
Source:
protected java.lang.String transform ( java.util.ArrayList < java.lang.String > fileNameList , org.ovirt.engine.core.common.businessentities.storage.RepoImage repoImage ) { return repoImage.getRepoImageId ( ) ; }

Target:
protected java.lang.String transform ( org.ovirt.engine.core.common.businessentities.storage.RepoImage repoImage ) { return repoImage.getRepoImageId ( ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { }
Source:
public void testGetApplicationModeObject ( ) { org.codehaus.jackson.node.ObjectNode result = testServlet.getApplicationModeObject ( java.lang.Integer.valueOf ( 255 ) ) ; org.junit.Assert.assertEquals ( result.get ( "value" ) . asText ( ) , "255" ) ; }

Target:
public void testGetApplicationModeObject ( ) { org.codehaus.jackson.node.ObjectNode result = testServlet.getApplicationModeObject ( java.lang.Integer.valueOf ( 255 ) ) ; org.junit.Assert.assertEquals ( "255" , result.get ( "value" ) . asText ( ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getBondName ( ) ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getBondName ( ) ) ; }
Source:
public void testFetchStoragePoolWithNoQuota ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( true , ( ( quotaList.size ( ) ) == 0 ) ) ; }

Target:
public void testFetchStoragePoolWithNoQuota ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( 0 , quotaList.size ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ) ( returnValue ) ) ; setItems ( glusterHooks ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ) ( returnValue ) ) ; setItems ( glusterHooks ) ; }
Source:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 1 ) ; }

Target:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 0 ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage_domains answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { org.ovirt.engine.core.common.businessentities.storage_domains result = createStorageDomain ( domainSpaceGB ) ; result.setId ( ( ( org.ovirt.engine.core.compat.Guid ) ( invocation.getArguments ( ) [ 0 ] ) ) ) ; return result ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { org.ovirt.engine.core.common.businessentities.StorageDomain result = createStorageDomain ( domainSpaceGB ) ; result.setId ( ( ( org.ovirt.engine.core.compat.Guid ) ( invocation.getArguments ( ) [ 0 ] ) ) ) ; return result ; }
Source:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTasks task = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . get ( asyncTaskId ) ; org.ovirt.engine.core.bll.tasks.AsyncTaskManager.logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }

Target:
public void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTasks task = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . get ( asyncTaskId ) ; logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }
Source:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; setUpGetPayloadsExpectations ( 3 ) ; 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:
public void update ( java.util.Observable o , java.lang.Object arg ) { profiles = createProfiles ( ) ; }

Target:
public void update ( java.util.Observable o , java.lang.Object arg ) { createProfiles ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Bookmark get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( id ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_id" , new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper ( ) , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Bookmark get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( id ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_id" , org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper.instance , parameterSource ) ; }
Source:
public void persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistAsyncTaskPlaceHolder ( parentCommand , org.ovirt.engine.core.bll.CommandBase.DEFAULT_TASK_KEY ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return persistAsyncTaskPlaceHolder ( parentCommand , org.ovirt.engine.core.bll.CommandBase.DEFAULT_TASK_KEY ) ; }
Source:
public org.ovirt.engine.api.resource.SnapshotCdRomsResource getSnapshotCdRomsResource ( ) { return new org.ovirt.engine.api.restapi.resource.BackendSnapshotCdRomsResource ( this , id ) ; }

Target:
public org.ovirt.engine.api.resource.SnapshotCdRomsResource getSnapshotCdRomsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendSnapshotCdRomsResource ( this ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.tags lookupTagById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.tags.class , VdcQueryType.GetTagByTagId , new org.ovirt.engine.core.common.queries.GetTagByTagIdParameters ( id ) , id.toString ( ) , true ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.tags lookupTagById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.tags.class , VdcQueryType.GetTagByTagId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }
Source:
protected org.ovirt.engine.core.dao.VdsDao getVdsDao ( ) { return dbFacade.getVdsDao ( ) ; }

Target:
private org.ovirt.engine.core.dao.VdsDao getVdsDao ( ) { return dbFacade.getVdsDao ( ) ; }
Source:
public void setRootCommandId ( org.ovirt.engine.core.compat.Guid rootCommandId ) { cmdEntity.setRootCommandId ( rootCommandId ) ; }

Target:
public void setRootCommandId ( org.ovirt.engine.core.compat.Guid rootCommandId ) { this . rootCommandId = rootCommandId ; }
Source:
public void testConfigCustomPolicy ( ) { setupConfigWithSerialNumber ( SerialNumberPolicy.CUSTOM , org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_CONFIG_SERIAL ) ; assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_CONFIG_SERIAL ) ; }

Target:
public void testConfigCustomPolicy ( ) { assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_CONFIG_SERIAL ) ; }
Source:
public void setupNetworks ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.hosts.HostSetupNetworksModel setupNetworksWindowModel = new org.ovirt.engine.ui.uicommonweb.models.hosts.HostSetupNetworksModel ( this ) ; setWindow ( setupNetworksWindowModel ) ; setupNetworksWindowModel.setEntity ( getEntity ( ) ) ; }

Target:
public void setupNetworks ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.hosts.HostSetupNetworksModel setupNetworksWindowModel = new org.ovirt.engine.ui.uicommonweb.models.hosts.HostSetupNetworksModel ( this , getEntity ( ) ) ; setWindow ( setupNetworksWindowModel ) ; }
Source:
public void setupMocks ( T cmd , boolean hookFound ) { setupMocks ( cmd , hookFound , getHookEntity ( ) ) ; }

Target:
public void setupMocks ( boolean hookFound ) { setupMocks ( hookFound , getHookEntity ( ) ) ; }
Source:
java.lang.String formatVmDiskPopup ( ) ;

Target:
java.lang.String vms ( ) ;
Source:
protected org.ovirt.engine.api.model.Vm getFromDataDomain ( ) { return performGet ( VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
private org.ovirt.engine.api.model.Vm getFromDataDomain ( ) { return performGet ( VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getParameters ( ) . getDiskImage ( ) , org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getCurrentUser ( ) ) ) ; }

Target:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getDiskImage ( ) , org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getCurrentUser ( ) ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 , failure ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 , failure ) ; }
Source:
public java.lang.String getName ( ) { return getEntity ( ) . getname ( ) ; }

Target:
public java.lang.String getName ( ) { return getEntity ( ) . getName ( ) ; }
Source:
void Error ( java.lang.String message , java.lang.RuntimeException ex ) ;

Target:
void error ( java.lang.String message , java.lang.RuntimeException ex ) ;
Source:
public static < T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues value ) { return org.ovirt.engine.core.common.config.Config.< T > getValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }

Target:
public static < T > T getValue ( org.ovirt.engine.core.common.config.ConfigValues value ) { return org.ovirt.engine.core.common.config.Config.< T > getValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }
Source:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }

Target:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic , null ) ) ; }
Source:
public void testWindowsTimeZones ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getTimeZoneList ( ) ; org.junit.Assert.assertNotNull ( map ) ; org.junit.Assert.assertEquals ( map.get ( "GMT Standard Time" ) , "(GMT) GMT Standard Time" ) ; }

Target:
public void testWindowsTimeZones ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getTimeZoneList ( ) ; org.junit.Assert.assertNotNull ( map ) ; org.junit.Assert.assertEquals ( "(GMT) GMT Standard Time" , map.get ( "GMT Standard Time" ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml glusterCapcityProgressBar ( int progress , java.lang.String sizeString , java.lang.String color , java.lang.String toolTip ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml glusterCapcityProgressBar ( int progress , java.lang.String sizeString , java.lang.String color , java.lang.String toolTip , java.lang.String id ) ;
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageServerConnections convert ( java.lang.Object source ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }
Source:
public final org.ovirt.engine.core.compat.Version getVersionValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( org.ovirt.engine.core.compat.Version ) ( GetValue ( DataType.Version , name , defaultValue ) ) ) ; }

Target:
public final org.ovirt.engine.core.compat.Version getVersionValue ( java.lang.String name , java.lang.String defaultValue ) { return ( ( org.ovirt.engine.core.compat.Version ) ( getValue ( DataType.Version , name , defaultValue ) ) ) ; }
Source:
private boolean isVnicProfileMappingSupplied ( org.ovirt.engine.api.model.VnicProfileMappings vnicProfileMappings ) { return ( vnicProfileMappings != null ) && ( vnicProfileMappings.isSetVnicProfileMappings ( ) ) ; }

Target:
private static boolean isVnicProfileMappingSupplied ( org.ovirt.engine.api.model.VnicProfileMappings vnicProfileMappings ) { return ( vnicProfileMappings != null ) && ( vnicProfileMappings.isSetVnicProfileMappings ( ) ) ; }
Source:
protected int getKeyboardSelectedRow ( ) { if ( ( selectionModel.getLastSelectedRow ( ) ) == ( - 1 ) ) { return super . getKeyboardSelectedRow ( ) ; } return selectionModel.getLastSelectedRow ( ) ; }

Target:
public int getKeyboardSelectedRow ( ) { if ( ( selectionModel.getLastSelectedRow ( ) ) == ( - 1 ) ) { return super . getKeyboardSelectedRow ( ) ; } return selectionModel.getLastSelectedRow ( ) ; }
Source:
public org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.AuditLogType > disconnectHostFromStoragePoolServersCommandCompleted ( org.ovirt.engine.core.common.action.HostStoragePoolParametersBase parameters ) { return new org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.AuditLogType > ( true , null ) ; }

Target:
public org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.AuditLogType > disconnectHostFromStoragePoolServersCommandCompleted ( org.ovirt.engine.core.common.action.HostStoragePoolParametersBase parameters ) { return new org.ovirt.engine.core.common.utils.Pair ( true , null ) ; }
Source:
public static < T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues value ) { return org.ovirt.engine.core.common.config.Config.< T > GetValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }

Target:
public static < T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues value ) { return org.ovirt.engine.core.common.config.Config.< T > getValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }
Source:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request , timeout , unit ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request , timeout , unit , true ) ; }
Source:
private void setQos ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS qos ) { this . qos = qos ; }

Target:
public void setQos ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS qos ) { this . qos = qos ; }
Source:
public void testGetAllForStorageDomainWithInvalidDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStorageDomainWithInvalidDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid asGuid ( byte [ ] guid , boolean keepByteOrder ) { try { return new org.ovirt.engine.core.compat.Guid ( guid , keepByteOrder ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid asGuid ( byte [ ] guid ) { try { return new org.ovirt.engine.core.compat.Guid ( guid ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }
Source:
public void testGetStorageTypesInPoolForMixedTypes ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageType > expectedTypes = java.util.Arrays.asList ( ) ; org.ovirt.engine.core.compat.Guid poolId = FixturesTool.STORAGE_POOL_MIXED_TYPES ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageType > storageTypes = dao.getStorageTypesInPool ( poolId ) ; assertStorageTypes ( storageTypes , StorageType.POSIXFS , StorageType.NFS , StorageType.ISCSI ) ; }

Target:
public void testGetStorageTypesInPoolForMixedTypes ( ) { org.ovirt.engine.core.compat.Guid poolId = FixturesTool.STORAGE_POOL_MIXED_TYPES ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageType > storageTypes = dao.getStorageTypesInPool ( poolId ) ; assertStorageTypes ( storageTypes , StorageType.POSIXFS , StorageType.NFS , StorageType.ISCSI ) ; }
Source:
public void setUp ( ) { testedModel = new org.ovirt.engine.ui.uicommonweb.models.SortedListModel < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > ( ) { @ java.lang.Override protected org.ovirt.engine.ui.uicommonweb.Configurator lookupConfigurator ( ) { return null ; } @ java.lang.Override protected org.ovirt.engine.ui.uicommonweb.ILogger lookupLogger ( ) { return null ; } } ; }

Target:
public void setUp ( ) { testedModel = new org.ovirt.engine.ui.uicommonweb.models.SortedListModel ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return ( ( storageDomain.getstorage_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.ISCSI ) ) || ( ( storageDomain.getstorage_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.FCP ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ( ( storageDomain.getstorage_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.ISCSI ) ) || ( ( storageDomain.getstorage_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.FCP ) ) ; }
Source:
public void setLocalDisksUsage ( java.util.Map < java.lang.String , java.lang.Long > localDiskUsage ) { this . localDisksUsage = localDiskUsage ; }

Target:
public void setLocalDisksUsage ( java.util.Map < java.lang.String , java.lang.Long > localDiskUsage ) { localDisksUsage = localDiskUsage ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeAdvancedDetails fetchAdvancedDatails ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeAdvancedDetails glusterVolumeAdvancedDetails = getCallsHandler ( ) . executeRead ( "GetGlusterVolumeDetailsByID" , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoImpl.glusterVolumesAdvancedDetailsRowMapper , createVolumeIdParams ( volumeId ) ) ; return glusterVolumeAdvancedDetails ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeAdvancedDetails fetchAdvancedDatails ( org.ovirt.engine.core.compat.Guid volumeId ) { return getCallsHandler ( ) . executeRead ( "GetGlusterVolumeDetailsByID" , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoImpl.glusterVolumesAdvancedDetailsRowMapper , createVolumeIdParams ( volumeId ) ) ; }
Source:
private static void setInstance ( org.ovirt.engine.ui.uicommonweb.TypeResolver value ) { org.ovirt.engine.ui.uicommonweb.TypeResolver.privateInstance = value ; }

Target:
public static void setInstance ( org.ovirt.engine.ui.uicommonweb.TypeResolver value ) { org.ovirt.engine.ui.uicommonweb.TypeResolver.privateInstance = value ; }
Source:
public java.lang.String ExportTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate vmTemplate , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > images ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfTemplateWriter ( vmTemplate , images ) ; BuildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }

Target:
public java.lang.String ExportTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate vmTemplate , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfTemplateWriter ( vmTemplate , images , version ) ; BuildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }
Source:
public java.lang.String encodedId ( org.ovirt.engine.core.common.utils.ExternalId id ) { org.ovirt.engine.core.compat.Guid guid = new org.ovirt.engine.core.compat.Guid ( id.getBytes ( ) , true ) ; return getNsUniqueIdFromGuidString ( guid.toString ( ) ) ; }

Target:
public java.lang.String encodedId ( org.ovirt.engine.core.compat.Guid id ) { return getNsUniqueIdFromGuidString ( id.toString ( ) ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void getUserIdVdcUserDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void getUserIdVdcUserDefault ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.Assert.assertNull ( g ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getBonds ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ( modifiedBonds.values ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getBonds ( ) { return new java.util.ArrayList ( modifiedBonds.values ( ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%svars/ssl" , VdsmEnv.CONFIG_PREFIX ) , org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.EncryptHostCommunication ) . toString ( ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%svars/ssl" , VdsmEnv.CONFIG_PREFIX ) , org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.EncryptHostCommunication ) . toString ( ) ) ; return null ; }
Source:
private void setAllContentHeaderExpectation ( ) { java.util.List < java.lang.String > allContentHeaders = new java.util.ArrayList < > ( ) ; allContentHeaders.add ( "true" ) ; org.easymock.EasyMock.expect ( httpHeaders.getRequestHeader ( "All-Content" ) ) . andReturn ( allContentHeaders ) . anyTimes ( ) ; }

Target:
private void setAllContentHeaderExpectation ( ) { java.util.List < java.lang.String > allContentHeaders = new java.util.ArrayList < > ( ) ; allContentHeaders.add ( "true" ) ; org.mockito.Mockito.when ( httpHeaders.getRequestHeader ( "All-Content" ) ) . thenReturn ( allContentHeaders ) ; }
Source:
private void vmTypeChanged ( ) { behavior.vmTypeChanged ( ( ( org.ovirt.engine.core.common.businessentities.VmType ) ( getVmType ( ) . getSelectedItem ( ) ) ) ) ; }

Target:
private void vmTypeChanged ( ) { behavior.vmTypeChanged ( getVmType ( ) . getSelectedItem ( ) ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state , true ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { runMultipleAction ( actionType , parameters , callback , null ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel roleListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel ) ( model ) ) ; roleListModel.publicAttachedActions = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ; roleListModel.setAttachedActionGroups ( publicAttachedActions ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { publicAttachedActions = returnValue.getReturnValue ( ) ; setAttachedActionGroups ( publicAttachedActions ) ; }
Source:
public java.lang.String getSessionId ( ) { if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( sessionid ) ) { if ( ( getHttpSessionId ( ) ) != null ) { sessionid = getHttpSessionId ( ) ; } else { sessionid = "" ; } } return sessionid ; }

Target:
public java.lang.String getSessionId ( ) { if ( ( sessionid ) == null ) { sessionid = "" ; } return sessionid ; }
Source:
protected org.ovirt.engine.api.model.DataCenter deprecatedPopulate ( org.ovirt.engine.api.model.DataCenter model , org.ovirt.engine.core.common.businessentities.storage_pool entity ) { return parent.deprecatedPopulate ( model , entity ) ; }

Target:
protected org.ovirt.engine.api.model.DataCenter deprecatedPopulate ( org.ovirt.engine.api.model.DataCenter model , org.ovirt.engine.core.common.businessentities.StoragePool entity ) { return parent.deprecatedPopulate ( model , entity ) ; }
Source:
public void setQuotaId ( org.ovirt.engine.core.compat.Guid value ) { this . quotaId = value ; }

Target:
public void setQuotaId ( org.ovirt.engine.core.compat.Guid quotaId ) { this . quotaId = quotaId ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.List < java.lang.String > images = ( ( java.util.List < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.ArrayList < java.lang.String > images = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }
Source:
public void testGetVmIconByDataUrlWithInvalidUrl ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIcon > result = prepareDao ( ) . getByDataUrl ( ( ( org.ovirt.engine.core.dao.VmIconDaoTest.OTHER_SMALL_DATAURL ) + "garbage" ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetVmIconByDataUrlWithInvalidUrl ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIcon > result = dao.getByDataUrl ( ( ( org.ovirt.engine.core.dao.VmIconDaoTest.OTHER_SMALL_DATAURL ) + "garbage" ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.String > getCustomPropertiesFor ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { if ( hasCustomPropertiesFor ( nic ) ) { return java.util.Collections.unmodifiableMap ( customProperties.get ( getKey ( nic ) ) ) ; } else { return null ; } }

Target:
public java.util.Map < java.lang.String , java.lang.String > getCustomPropertiesFor ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { if ( hasCustomPropertiesFor ( nic ) ) { return customProperties.get ( getKey ( nic ) ) ; } else { return null ; } }
Source:
private void updateController ( ) { this . controller = modelProvider.getModel ( ) ; updateTimer ( ) ; }

Target:
private void updateController ( ) { updateTimer ( ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , true ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , true ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.hostDataCenter = ( ( org.ovirt.engine.core.common.businessentities.storage_pool ) ( returnValue ) ) ; SetDefaultNames2 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.hostDataCenter = ( ( org.ovirt.engine.core.common.businessentities.storage_pool ) ( returnValue ) ) ; SetDefaultNames2 ( ) ; }
Source:
private void mockVmDao ( ) { org.mockito.Mockito.doReturn ( vmDao ) . when ( command ) . getVmDao ( ) ; }

Target:
public void mockVmDao ( ) { org.mockito.Mockito.doReturn ( vmDao ) . when ( command ) . getVmDao ( ) ; }
Source:
private void assertValidateMsgCount ( java.util.List < java.lang.String > validationMessages , java.lang.String msg , int count ) { org.junit.Assert.assertTrue ( ( ( java.util.Collections.frequency ( validationMessages , msg ) ) == count ) ) ; }

Target:
private void assertValidateMsgCount ( java.util.List < java.lang.String > validationMessages , java.lang.String msg , int count ) { org.junit.Assert.assertEquals ( java.util.Collections.frequency ( validationMessages , msg ) , count ) ; }
Source:
private void stubDaos ( ) { mockStatistics ( ) ; mockVmDynamic ( ) ; mockVmStatic ( true ) ; mockVmJob ( ) ; mockCluster ( ) ; mockVdsDao ( ) ; }

Target:
private void stubDaos ( ) { mockVmDynamic ( ) ; mockVmStatic ( true ) ; mockVdsDao ( ) ; }
Source:
protected boolean canAddDomain ( ) { return org.ovirt.engine.core.bll.storage.AddExistingFileStorageDomainCommand.checkExistingStorageDomain ( ) ; }

Target:
protected boolean canAddDomain ( ) { return checkExistingStorageDomain ( ) ; }
Source:
public void calculateNetworkImplementationDetailsNoNetworkName ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; iface.setNetworkName ( null ) ; org.junit.Assert.assertNull ( "Network implementation details should not be filled." , org.ovirt.engine.core.utils.NetworkUtils.calculateNetworkImplementationDetails ( java.util.Collections.< java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > emptyMap ( ) , iface ) ) ; }

Target:
public void calculateNetworkImplementationDetailsNoNetworkName ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; iface.setNetworkName ( null ) ; org.junit.Assert.assertNull ( "Network implementation details should not be filled." , org.ovirt.engine.core.utils.NetworkUtils.calculateNetworkImplementationDetails ( null , null , iface ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.common.businessentities.VmDevice > > getVmsWithVmDeviceInfoForDiskId ( ) { if ( ( cachedVmsDeviceInfo ) == null ) { cachedVmsDeviceInfo = org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getVmDAO ( ) . getVmsWithPlugInfo ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) ) ; } return cachedVmsDeviceInfo ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.common.businessentities.VmDevice > > getVmsWithVmDeviceInfoForDiskId ( ) { if ( ( cachedVmsDeviceInfo ) == null ) { cachedVmsDeviceInfo = org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getVmDAO ( ) . getVmsWithPlugInfo ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) ) ; } return cachedVmsDeviceInfo ; }
Source:
public static boolean isPayloadSizeLegal ( java.lang.String payload ) { return ( payload.length ( ) ) <= ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.PayloadSize ) ) ; }

Target:
public static boolean isPayloadSizeLegal ( java.lang.String payload ) { return ( payload.length ( ) ) <= ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.PayloadSize ) ) ; }
Source:
public java.lang.String getEntityNewName ( ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getParameters ( ) . getVdsGroup ( ) . getname ( ) ; }

Target:
public java.lang.String getEntityNewName ( ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getParameters ( ) . getVdsGroup ( ) . getName ( ) ; }
Source:
public org.ovirt.engine.ui.common.idhandler.CellWithElementId < C > getCell ( ) { return ( ( org.ovirt.engine.ui.common.idhandler.CellWithElementId < C > ) ( getCell ( ) ) ) ; }

Target:
public org.ovirt.engine.ui.common.idhandler.CellWithElementId < C > getCell ( ) { return ( ( org.ovirt.engine.ui.common.idhandler.CellWithElementId < C > ) ( super . getCell ( ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . setAgentTabVisibility ( ( ( java.lang.Boolean ) ( model.getNeutronAgentModel ( ) . isPluginConfigurationAvailable ( ) . getEntity ( ) ) ) ) ; }

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 ) { getView ( ) . setAgentTabVisibility ( model.getNeutronAgentModel ( ) . isPluginConfigurationAvailable ( ) . getEntity ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkView getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.NetworkView ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.network.NetworkView ? super . getEntity ( ) : null ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkView getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.NetworkView ) ( super . getEntity ( ) ) ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VDS , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
private void mockBackend ( org.ovirt.engine.core.bll.AddVmCommand < ? > cmd ) { org.mockito.Mockito.when ( backend.getResourceManager ( ) ) . thenReturn ( vdsBrokerFrontend ) ; org.mockito.Mockito.doReturn ( backend ) . when ( cmd ) . getBackend ( ) ; }

Target:
private void mockBackend ( org.ovirt.engine.core.bll.AddVmCommand < ? > cmd ) { org.mockito.Mockito.doReturn ( backend ) . when ( cmd ) . getBackend ( ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return status.mStatus ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return status.status ; }
Source:
public void testQueryWithSameUserNoDisks ( ) { assertExecuteQueryCommandResult ( getUser ( ) . getUserId ( ) , false , true ) ; }

Target:
public void testQueryWithSameUserNoDisks ( ) { assertExecuteQueryCommandResult ( getUser ( ) . getId ( ) , false , true ) ; }
Source:
public void setVolumeEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { this . volumeEntity = volumeEntity ; updateActionAvailability ( volumeEntity ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity value ) { super . setEntity ( value ) ; updateActionAvailability ( value ) ; }
Source:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.StorageDomain result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingDomain , result ) ; }

Target:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.StorageDomain result ) { org.junit.Assert.assertEquals ( existingDomain , result ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.Network , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void setname ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . name , value ) ) ) { this . name = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "name" ) ) ; } }

Target:
public void setname ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . name , value ) ) ) { this . name = value ; } }