auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testNullAttr ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm></vm>" ) ; org.junit.Assert.assertNull ( object.getId ( ) ) ; }

Target:
public void testNullAttr ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm></vm>" ) ; org.junit.Assert.assertNull ( object.id ( ) ) ; }
Source:
private void setUpMocksForRemove ( boolean hookFound , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { setupMocks ( hookFound , hook ) ; org.mockito.Mockito.when ( vdsDao.getAllForCluster ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( getServers ( status ) ) ; }

Target:
private void setUpMocksForRemove ( boolean hookFound , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { setupMocks ( hookFound , hook ) ; org.mockito.Mockito.when ( vdsDao.getAllForCluster ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( getServers ( status ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel flush ( ) { table.flush ( ) ; nicTable.flush ( ) ; diskTable.flush ( ) ; appTable.flush ( ) ; return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmPopupView.Driver.driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel flush ( ) { table.flush ( ) ; nicTable.flush ( ) ; diskTable.flush ( ) ; if ( ( appTable ) != null ) { appTable.flush ( ) ; } return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmPopupView.Driver.driver.flush ( ) ; }
Source:
public void postModelEnabled ( boolean enabled ) { messageLabel.setVisible ( ( ! enabled ) ) ; setApplyEnabled ( ( ! enabled ) ) ; }

Target:
public void postModelEnabled ( boolean enabled ) { messageLabel.setVisible ( ( ! enabled ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( EXTERNAL_IDS [ index ] . toHex ( ) , model.getExternalId ( ) ) ; assertEquals ( NAMES [ index ] , model.getUserName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( NAMES [ index ] , model.getUserName ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains storage_domains ) { return ( storage_domains.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storage_domains ) { return ( storage_domains.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }
Source:
public void onHostSelectionChange ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.HostSelectionChangeEvent event ) { updateMainTabSelection ( event.getSelectedItems ( ) ) ; currentSelectedHost = event.getSelectedItems ( ) . get ( 0 ) ; updateModel ( currentErrataCountModel ) ; }

Target:
public void onHostSelectionChange ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.HostSelectionChangeEvent event ) { updateMainTabSelection ( event.getSelectedItems ( ) ) ; currentSelectedHost = ( event.getSelectedItems ( ) . isEmpty ( ) ) ? null : event.getSelectedItems ( ) . get ( 0 ) ; updateModel ( currentErrataCountModel ) ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.storage_domains storage ) { return storage.getstorage_name ( ) ; }

Target:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return storage.getstorage_name ( ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.getByName ( existingPool.getname ( ) ) ; assertGetResult ( result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.getByName ( existingPool.getName ( ) ) ; assertGetResult ( result ) ; }
Source:
protected void toggleProfilesAvailability ( ) { getProfiles ( ) . setIsAvailable ( ( ( java.lang.Boolean ) ( getIsVmNetwork ( ) . getEntity ( ) ) ) ) ; }

Target:
protected void toggleProfilesAvailability ( ) { getProfiles ( ) . setIsAvailable ( getIsVmNetwork ( ) . getEntity ( ) ) ; }
Source:
public void enforceClone ( java.lang.String prohibitReason ) { getClone ( ) . setEntity ( true ) ; getClone ( ) . setChangeProhibitionReason ( prohibitReason ) ; getClone ( ) . setIsChangeable ( false ) ; }

Target:
public void enforceClone ( java.lang.String prohibitReason ) { getClone ( ) . setEntity ( true ) ; getClone ( ) . setIsChangeable ( false ) ; getClone ( ) . setChangeProhibitionReason ( prohibitReason ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { driver.edit ( model ) ; initListeners ( model ) ; updateColumnsAvailability ( model ) ; updateListHeader ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { driver.edit ( model ) ; initListeners ( model ) ; updateColumnsAvailability ( model ) ; updateListHeader ( ) ; }
Source:
public abstract void updateMinAllocatedMemory ( ) ;

Target:
public void updateMinAllocatedMemory ( ) { }
Source:
protected void invokeCommands ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > returnValues ) { if ( canRunActions ( returnValues ) ) { if ( isWaitForResult ) { invokeSyncCommands ( ) ; } else { invokeCommands ( ) ; } } }

Target:
private void invokeCommands ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > returnValues ) { if ( canRunActions ( returnValues ) ) { if ( isWaitForResult ) { invokeSyncCommands ( ) ; } else { invokeCommands ( ) ; } } }
Source:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSparseDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setVolumeType ( VolumeType.Sparse ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSparseDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setVolumeType ( VolumeType.Sparse ) ; return image ; }
Source:
void vdsNonOperational ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.NonOperationalReason type , boolean logCommand , boolean saveToDb , org.ovirt.engine.core.compat.Guid domainId ) ;

Target:
void vdsNonOperational ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.NonOperationalReason type , boolean logCommand , org.ovirt.engine.core.compat.Guid domainId ) ;
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getOldNetworkCluster ( ) { if ( ( oldNetworkCluster ) == null ) { oldNetworkCluster = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( getNetworkCluster ( ) . getId ( ) ) ; } return oldNetworkCluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getOldNetworkCluster ( ) { if ( ( oldNetworkCluster ) == null ) { oldNetworkCluster = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getId ( ) ) ; } return oldNetworkCluster ; }
Source:
public java.lang.String getPassword ( ) { return ( ( java.lang.String ) ( getData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , false ) ) ) ; }

Target:
public java.lang.String getPassword ( ) { return ( ( java.lang.String ) ( getData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME ) ) ) ; }
Source:
public void networkNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , null ) ; org.junit.Assert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }

Target:
public void networkNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( null ) ; org.junit.Assert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }
Source:
public void moveDiskToGluster ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getSecond ( ) . getVdsName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getSecond ( ) . getName ( ) ; }
Source:
public void updateRunButton ( org.ovirt.engine.ui.uicommonweb.UICommand command , boolean isPool ) { java.lang.String tooltip = ( isPool ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.constants.takeVm ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.constants.runVm ( ) ; runButton.setTooltip ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( tooltip ) ) ; updateButton ( runButton , command ) ; }

Target:
public void updateRunButton ( org.ovirt.engine.ui.uicommonweb.UICommand command , boolean isPool ) { java.lang.String tooltip = ( isPool ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.constants.takeVm ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.constants.runVm ( ) ; runButton.setTooltip ( tooltip ) ; updateButton ( runButton , command ) ; }
Source:
private void mockConfigSizeRequirements ( int requiredSpaceBufferInGB , int requiredSpacePercent ) { mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , requiredSpaceBufferInGB ) ; mcr.mockConfigValue ( ConfigValues.FreeSpaceLow , requiredSpacePercent ) ; }

Target:
private void mockConfigSizeRequirements ( int requiredSpaceBufferInGB ) { mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , requiredSpaceBufferInGB ) ; }
Source:
public static boolean shouldRemoveNetworkFromHostUponNetworkRemoval ( org.ovirt.engine.core.common.businessentities.network.Network persistedNetwork , org.ovirt.engine.core.compat.Version compatibilityVersion ) { return ( ( ! ( persistedNetwork.isExternal ( ) ) ) && ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( persistedNetwork ) ) ) && ( org.ovirt.engine.core.bll.network.cluster.NetworkHelper.setupNetworkSupported ( compatibilityVersion ) ) ; }

Target:
public static boolean shouldRemoveNetworkFromHostUponNetworkRemoval ( org.ovirt.engine.core.common.businessentities.network.Network persistedNetwork ) { return ( ! ( persistedNetwork.isExternal ( ) ) ) && ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( persistedNetwork ) ) ; }
Source:
public java.lang.String getVmPoolName ( ) { return ( getVmPool ( ) ) != null ? getVmPool ( ) . getvm_pool_name ( ) : null ; }

Target:
public java.lang.String getVmPoolName ( ) { return ( getVmPool ( ) ) != null ? getVmPool ( ) . getVmPoolName ( ) : null ; }
Source:
public void testDumpRepoToString ( ) { java.lang.String actual = OsRepositoryImpl.INSTANCE.toString ( ) ; java.lang.String expected = OsRepositoryImpl.INSTANCE.name ( ) ; org.junit.Assert.assertNotSame ( expected , actual ) ; java.lang.System.out.println ( actual ) ; }

Target:
public void testDumpRepoToString ( ) { java.lang.String actual = OsRepositoryImpl.INSTANCE.toString ( ) ; java.lang.String expected = OsRepositoryImpl.INSTANCE.name ( ) ; org.junit.Assert.assertNotSame ( expected , actual ) ; }
Source:
private void mockFenceSuccess ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; returnValue.setSucceeded ( true ) ; org.mockito.Mockito.when ( vdsBrokerFrontend.RunVdsCommand ( org.mockito.Mockito.eq ( VDSCommandType.FenceVds ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.GetDeviceListVDSCommandParameters.class ) ) ) . thenReturn ( returnValue ) ; }

Target:
private void mockFenceSuccess ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; returnValue.setSucceeded ( true ) ; org.mockito.Mockito.when ( vdsBrokerFrontend.RunVdsCommand ( org.mockito.Matchers.eq ( VDSCommandType.FenceVds ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.GetDeviceListVDSCommandParameters.class ) ) ) . thenReturn ( returnValue ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient.CertCallback certCallback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClient ( reactor , selector , hostname , port ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClient ( reactor , selector , hostname , port ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.lang.String suggestedDiskAlias = ( ( java.lang.String ) ( returnValue ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( model ) ) ; diskModel.getAlias ( ) . setEntity ( suggestedDiskAlias ) ; }

Target:
public void onSuccess ( java.lang.String suggestedDiskAlias ) { getAlias ( ) . setEntity ( suggestedDiskAlias ) ; }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getErrorQueryReturnValue ( org.ovirt.engine.core.common.errors.VdcBllMessages errorMessage ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; returnValue.setSucceeded ( false ) ; returnValue.setExceptionString ( errorMessage.toString ( ) ) ; return returnValue ; }

Target:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getErrorQueryReturnValue ( org.ovirt.engine.core.common.errors.EngineMessage errorMessage ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; returnValue.setSucceeded ( false ) ; returnValue.setExceptionString ( errorMessage.toString ( ) ) ; return returnValue ; }
Source:
public void testStorageDomainForMemoryIsValidOnlyForActiveStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus storageDomainStatus ) { storageDomain.setStatus ( storageDomainStatus ) ; org.junit.Assert.assertEquals ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) , ( storageDomainStatus == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ) ; }

Target:
public void testStorageDomainForMemoryIsValidOnlyForActiveStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus storageDomainStatus ) { storageDomain.setStatus ( storageDomainStatus ) ; org.junit.Assert.assertEquals ( filter.test ( storageDomain ) , ( storageDomainStatus == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ) ; }
Source:
public C list ( ) { java.util.List < Q > collection = getBackendCollection ( queryType , queryParams ) ; if ( org.apache.commons.collections.CollectionUtils.isEmpty ( collection ) ) { throw new javax.ws.rs.WebApplicationException ( Response.Status.NOT_FOUND ) ; } return mapCollection ( collection ) ; }

Target:
public C list ( ) { return mapCollection ( getBackendCollection ( queryType , queryParams ) ) ; }
Source:
public org.ovirt.engine.api.model.Nic get ( ) ;

Target:
org.ovirt.engine.api.model.Nic get ( ) ;
Source:
public void testMonitoringNeededByStatus ( ) { org.junit.Assert.assertTrue ( ( ( underTest.isMonitoringNeeded ( status ) ) == ( monitoringNeeded ) ) ) ; }

Target:
public void testMonitoringNeededByStatus ( ) { org.junit.Assert.assertEquals ( underTest.isMonitoringNeeded ( status ) , monitoringNeeded ) ; }
Source:
private void attachManagementNetwork ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; networkCluster.setClusterId ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) ) ; networkClusterDao.save ( networkCluster ) ; }

Target:
private void attachManagementNetwork ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = org.ovirt.engine.core.bll.AddClusterCommand.createManagementNetworkCluster ( ) ; networkCluster.setClusterId ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) ) ; networkClusterDao.save ( networkCluster ) ; }
Source:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ; }

Target:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.storage_domains source ) { return id.equals ( source.getId ( ) ) ; }

Target:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return id.equals ( source.getId ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterNetworkSubTabLabel ( ) , 3 , ginjector.getSubTabClusterNetworkModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterNetworkSubTabLabel ( ) , 1 , ginjector.getSubTabClusterNetworkModelProvider ( ) ) ; }
Source:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createLabelParametersMapper ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vfs_config_id" , vfsConfigId ) . addValue ( "label" , label ) ; return parameterSource ; }

Target:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createLabelParametersMapper ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vfs_config_id" , vfsConfigId ) . addValue ( "label" , label ) ; }
Source:
org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator createCallForModification ( final java.lang.String procedureName ) { return new org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator ( ) { @ java.lang.Override public org.springframework.jdbc.core.simple.SimpleJdbcCall createCall ( ) { return new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( procedureName ) ; } } ; }

Target:
org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator createCallForModification ( final java.lang.String procedureName ) { return ( ) -> new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( procedureName ) ; }
Source:
public boolean isStatusUp ( ) { return org.ovirt.engine.core.common.businessentities.VM.isStatusUp ( getstatus ( ) ) ; }

Target:
public boolean isStatusUp ( ) { return org.ovirt.engine.core.common.businessentities.VM.isStatusUp ( getStatus ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { getWindow ( ) . stopProgress ( ) ; setWindow ( null ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { setWindow ( null ) ; }
Source:
public static void getConfigFromCache ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.core.common.queries.GetConfigurationValueParameters parameters = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( configValue , version ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigFromCache ( parameters , aQuery ) ; }

Target:
public void getConfigFromCache ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.core.common.queries.GetConfigurationValueParameters parameters = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( configValue , version ) ; getConfigFromCache ( parameters , aQuery ) ; }
Source:
void logout ( java.lang.Object userObject , org.ovirt.engine.ui.frontend.communication.UserCallback < ? > callback ) ;

Target:
void logout ( org.ovirt.engine.ui.frontend.communication.UserCallback < ? > callback ) ;
Source:
private static long macToLong ( java.lang.String mac ) { final int HEX_RADIX = 16 ; java.lang.String macWithoutCommas = mac.replaceAll ( ":" , "" ) ; return java.lang.Long.parseLong ( macWithoutCommas , HEX_RADIX ) ; }

Target:
public static long macToLong ( java.lang.String mac ) { final int HEX_RADIX = 16 ; java.lang.String macWithoutCommas = mac.replaceAll ( ":" , "" ) ; return java.lang.Long.parseLong ( macWithoutCommas , HEX_RADIX ) ; }
Source:
public void setpm_type ( java.lang.String value ) { mVdsStatic.setpm_type ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "pm_type" ) ) ; }

Target:
public void setpm_type ( java.lang.String value ) { mVdsStatic.setpm_type ( value ) ; }
Source:
public java.lang.String toString ( ) { java.lang.String prefix = "" ; if ( ( TotalMilliseconds ) < 0 ) { prefix = "-" ; } return org.ovirt.engine.core.compat.StringFormat.format ( "%s%d.%02d:%02d:%02d.%03d" , prefix , Days , Hours , Minutes , Seconds , Milliseconds ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String prefix = "" ; if ( ( TotalMilliseconds ) < 0 ) { prefix = "-" ; } return java.lang.String.format ( "%s%d.%02d:%02d:%02d.%03d" , prefix , Days , Hours , Minutes , Seconds , Milliseconds ) ; }
Source:
protected void updateHosts ( ) { }

Target:
public void updateHosts ( ) { }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getByUsername ( java.lang.String username ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "username" , username ) ; return getCallsHandler ( ) . executeRead ( "GetUserByUserName" , new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper ( ) , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getByUsername ( java.lang.String username ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "username" , username ) ; return getCallsHandler ( ) . executeRead ( "GetUserByUserName" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }
Source:
public void setvolumeFormat ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat ) { getImage ( ) . setVolumeFormat ( volumeFormat ) ; }

Target:
public void setVolumeFormat ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat ) { getImage ( ) . setVolumeFormat ( volumeFormat ) ; }
Source:
public org.ovirt.engine.api.model.Template get ( ) { org.ovirt.engine.api.model.Template template = performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( this , template ) ; return template ; }

Target:
public org.ovirt.engine.api.model.Template get ( ) { org.ovirt.engine.api.model.Template template = performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; if ( template != null ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( this , template ) ; } return template ; }
Source:
public void testSave ( ) { dao.save ( newPool ) ; org.ovirt.engine.core.common.businessentities.StoragePool result = dao.getByName ( newPool.getname ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newPool , result ) ; }

Target:
public void testSave ( ) { dao.save ( newPool ) ; org.ovirt.engine.core.common.businessentities.StoragePool result = dao.getByName ( newPool.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newPool , result ) ; }
Source:
public void calculateNetworkImplementationDetailsManagedNetwork ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertManaged ( iface , true , createNetwork ( iface.getNetworkName ( ) , iface.isBridged ( ) , iface.getMtu ( ) , iface.getVlanId ( ) ) ) ; }

Target:
public void calculateNetworkImplementationDetailsManagedNetwork ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertManaged ( iface , true , createNetwork ( iface.isBridged ( ) , iface.getMtu ( ) , iface.getVlanId ( ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel getSysprepScript ( ) { return privateSysprepScript ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > getSysprepScript ( ) { return privateSysprepScript ; }
Source:
private boolean Validate ( ) { return true ; }

Target:
private boolean validate ( ) { return true ; }
Source:
protected void init ( ) { super . init ( ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( new org.ovirt.engine.api.restapi.resource.VmMapperMockConfigUtils ( ) ) ; }

Target:
protected void init ( ) { super . init ( ) ; }
Source:
public void updateGlusterHookStatus ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;

Target:
public void updateGlusterHookStatus ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;
Source:
protected org.ovirt.engine.core.common.scheduling.AffinityGroup getNewAffinityGroup ( ) { org.ovirt.engine.core.common.scheduling.AffinityGroup affinityGroup = super . getNewAffinityGroup ( ) ; affinityGroup.setEntityIds ( new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( ) ) ; affinityGroup.getEntityIds ( ) . add ( getParentEntity ( ) . getId ( ) ) ; return affinityGroup ; }

Target:
protected org.ovirt.engine.core.common.scheduling.AffinityGroup getNewAffinityGroup ( ) { org.ovirt.engine.core.common.scheduling.AffinityGroup affinityGroup = super . getNewAffinityGroup ( ) ; affinityGroup.setEntityIds ( new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( ) ) ; affinityGroup.getEntityIds ( ) . add ( getEntity ( ) . getId ( ) ) ; return affinityGroup ; }
Source:
protected org.ovirt.engine.core.bll.DetachActionGroupsFromRoleCommand < ? extends org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter > generateCommand ( ) { return new org.ovirt.engine.core.bll.DetachActionGroupsFromRoleCommand ( getParams ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.DetachActionGroupsFromRoleCommand < ? extends org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter > generateCommand ( ) { return new org.ovirt.engine.core.bll.DetachActionGroupsFromRoleCommand ( getParams ( ) , null ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( boolean glusterEnabled ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setVirtService ( false ) ; cluster.setGlusterService ( glusterEnabled ) ; cluster.setCompatibilityVersion ( Version.v3_1 ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( boolean glusterEnabled ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setVirtService ( false ) ; cluster.setGlusterService ( glusterEnabled ) ; return cluster ; }
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.core.compat.StringHelper.stringsEqual ( getNetwork ( ) . getName ( ) , org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkModel.ENGINE_NETWORK ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.vm_pools mockVmPools ( ) { org.ovirt.engine.core.common.businessentities.vm_pools vmPools = new org.ovirt.engine.core.common.businessentities.vm_pools ( ) ; vmPools.setvm_pool_name ( "simplePoolName" ) ; vmPools.setvds_group_id ( vdsGroupId ) ; vmPools.setvm_pool_id ( vmPoolId ) ; return vmPools ; }

Target:
private org.ovirt.engine.core.common.businessentities.vm_pools mockVmPools ( ) { org.ovirt.engine.core.common.businessentities.vm_pools pool = new org.ovirt.engine.core.common.businessentities.vm_pools ( ) ; pool.setvm_pool_name ( "simplePoolName" ) ; pool.setvds_group_id ( vdsGroupId ) ; pool.setvm_pool_id ( vmPoolId ) ; return pool ; }
Source:
public void canDoActionFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 , true ) , 2 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 , true ) , 2 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void testClusterAppliedBeforeConfig ( ) { setupClusterWithSerialNumber ( SerialNumberPolicy.VM_ID , null ) ; setupConfigWithSerialNumber ( SerialNumberPolicy.CUSTOM , org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_CONFIG_SERIAL ) ; assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.VM_ID.toString ( ) ) ; }

Target:
public void testClusterAppliedBeforeConfig ( ) { setupClusterWithSerialNumber ( SerialNumberPolicy.VM_ID , null ) ; assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.VM_ID.toString ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryUser > findPrincipalsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryPrincipals ( extension , namespace , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.PRINCIPAL ) , false ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryUser > findPrincipalsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryPrincipals ( extension , namespace , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.PRINCIPAL ) , false , false ) ; }
Source:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . message ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.RESPONSE_QUEUE ) . withContent ( new java.lang.String ( message , org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.UTF8 ) ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . message ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.RESPONSE_QUEUE ) . withContent ( message ) . build ( ) ) ; }
Source:
public void validateNonExternalStepFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalStepFails ( ) throws java.lang.Exception { parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object nothing , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.VmTemplate baseTemplate = ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( returnValue ) ) ; org.ovirt.engine.ui.uicommonweb.models.templates.TemplateWithVersion templateCouple = new org.ovirt.engine.ui.uicommonweb.models.templates.TemplateWithVersion ( baseTemplate , template ) ; setReadOnlyTemplateWithVersion ( templateCouple ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.VmTemplate baseTemplate ) { org.ovirt.engine.ui.uicommonweb.models.templates.TemplateWithVersion templateCouple = new org.ovirt.engine.ui.uicommonweb.models.templates.TemplateWithVersion ( baseTemplate , template ) ; setReadOnlyTemplateWithVersion ( templateCouple ) ; }
Source:
public abstract void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , java.lang.String width ) ;

Target:
void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , java.lang.String width ) ;
Source:
public void setKsmPolicyForNuma ( java.lang.Boolean ksmPolicyForNumaFlag ) { if ( ksmPolicyForNumaFlag == null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel.KsmPolicyForNuma ksmPolicyForNuma = org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel.KsmPolicyForNuma.shareAcrossNumaNodes ; if ( ksmPolicyForNumaFlag == false ) { ksmPolicyForNuma = org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel.KsmPolicyForNuma.shareInsideEachNumaNode ; } getKsmPolicyForNumaSelection ( ) . setSelectedItem ( ksmPolicyForNuma ) ; return ; }

Target:
public void setKsmPolicyForNuma ( java.lang.Boolean ksmPolicyForNumaFlag ) { if ( ksmPolicyForNumaFlag == null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel.KsmPolicyForNuma ksmPolicyForNuma = org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel.KsmPolicyForNuma.shareAcrossNumaNodes ; if ( ! ksmPolicyForNumaFlag ) { ksmPolicyForNuma = org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel.KsmPolicyForNuma.shareInsideEachNumaNode ; } getKsmPolicyForNumaSelection ( ) . setSelectedItem ( ksmPolicyForNuma ) ; return ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.VDS source ) { return source.getstatus ( ) . equals ( status ) ; }

Target:
public boolean Match ( org.ovirt.engine.core.common.businessentities.VDS source ) { return source.getStatus ( ) . equals ( status ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return java.lang.String.valueOf ( object.getDiskList ( ) . size ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getDiskList ( ) . size ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getName ( ) ; }
Source:
public void markAsValid ( ) { if ( editorStateValid ) { super . markAsValid ( ) ; } label.setEnabled ( true ) ; contentWidgetContainerTooltip.setText ( contentWidgetContainerConfiguredTooltip ) ; contentWidgetContainerTooltip.reconfigure ( ) ; }

Target:
public void markAsValid ( ) { if ( editorStateValid ) { super . markAsValid ( ) ; } label.setEnabled ( true ) ; contentWidgetContainerTooltip.setText ( contentWidgetContainerConfiguredTooltip ) ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel o1 , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel o2 ) { return o1.getCluster ( ) . getname ( ) . compareTo ( o2.getCluster ( ) . getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel o1 , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel o2 ) { return o1.getCluster ( ) . getName ( ) . compareTo ( o2.getCluster ( ) . getName ( ) ) ; }
Source:
protected java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( object ) ) . getName ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getName ( ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmNicsServer getNicsResource ( ) { return new org.ovirt.engine.api.v3.servers.V3VmNicsServer ( delegate.getNicsResource ( ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmNicsServer getNicsResource ( ) { return new org.ovirt.engine.api.v3.servers.V3VmNicsServer ( id , delegate.getNicsResource ( ) ) ; }
Source:
public void setIsLogedin ( boolean value ) { isLoggedIn = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsLogedin" ) ) ; }

Target:
public void setIsLogedin ( boolean value ) { isLoggedIn = value ; }
Source:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; }

Target:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; }
Source:
public void calculateNetworkImplementationDetailsNetworkIsSyncWithMtuUnset ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , true , iface.getNetworkName ( ) , iface.isBridged ( ) , 0 , iface.getVlanId ( ) ) ; }

Target:
public void calculateNetworkImplementationDetailsNetworkIsSyncWithMtuUnset ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , true , iface.getNetworkName ( ) , iface.isBridged ( ) , 0 , iface.getVlanId ( ) ) ; }
Source:
public void serializeNetwork ( ) { org.ovirt.engine.core.common.businessentities.Network net = new org.ovirt.engine.core.common.businessentities.Network ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( net ) . length ( ) ) > 0 ) ) ; }

Target:
public void serializeNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network net = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( net ) . length ( ) ) > 0 ) ) ; }
Source:
public static boolean IsActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { boolean isActive = ( ( storageDomain.getstatus ( ) ) != null ) && ( ( storageDomain.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }

Target:
public static boolean IsActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isActive = ( ( storageDomain.getstatus ( ) ) != null ) && ( ( storageDomain.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; return isActive ; }
Source:
public void onSuccess ( java.lang.Object parentModel , java.lang.Object returnValue ) { model.getIsVirtioScsiEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; callAfterUpdates ( ) ; }

Target:
public void onSuccess ( java.lang.Boolean returnValue ) { model.getIsVirtioScsiEnabled ( ) . setEntity ( returnValue ) ; callAfterUpdates ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { timeZoneEditor.setEnabled ( ( ( java.lang.Boolean ) ( model.getTimeZoneEnabled ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { timeZoneEditor.setEnabled ( model.getTimeZoneEnabled ( ) . getEntity ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > getFenceAgents ( ) { return getBackendCollection ( QueryType.GetFenceAgentsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( hostId ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > getFenceAgents ( ) { return getBackendCollection ( QueryType.GetFenceAgentsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) ) ; }
Source:
private void updateActionAvailability ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = getEntity ( ) ; getSyncStorageDevicesCommand ( ) . setIsExecutionAllowed ( ( ( vds.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Up ) ) ) ; }

Target:
private void updateActionAvailability ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = getEntity ( ) ; if ( vds != null ) { getSyncStorageDevicesCommand ( ) . setIsExecutionAllowed ( ( ( vds.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Up ) ) ) ; } }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( object.getReadOnly ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.readOnly ( ) ) ; } return null ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( object.getReadOnly ( ) ) { return org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.readOnly ( ) ; } return null ; }
Source:
protected org.ovirt.engine.core.utils.ovf.xml.XmlNode selectSingleNode ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node , java.lang.String pattern , org.ovirt.engine.core.utils.ovf.xml.XmlNamespaceManager ns ) { this . lastReadEntry = pattern ; if ( ns == null ) { return node.SelectSingleNode ( pattern ) ; } return node.SelectSingleNode ( pattern , ns ) ; }

Target:
protected org.ovirt.engine.core.utils.ovf.xml.XmlNode selectSingleNode ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node , java.lang.String pattern , org.ovirt.engine.core.utils.ovf.xml.XmlNamespaceManager ns ) { this . lastReadEntry = pattern ; if ( ns == null ) { return node.selectSingleNode ( pattern ) ; } return node.selectSingleNode ( pattern , ns ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { hostModel.setPmProxyPreferences ( ( ( java.lang.String ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.String returnValue ) { hostModel.setPmProxyPreferences ( returnValue ) ; }
Source:
public void testGetOsFamily ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getOsFamily ( 777 ) . equals ( "linux" ) ) ; }

Target:
public void testGetOsFamily ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "linux" , OsRepositoryImpl.INSTANCE.getOsFamily ( 777 ) ) ; }