auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase createAddInterfaceParameter ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface editedVnic ) { editedVnic.setVmTemplateId ( null ) ; return new org.ovirt.engine.core.common.action.AddVmInterfaceParameters ( id , editedVnic ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface i ) { return i.getName ( ) . equals ( interfaceName ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface i ) { return i.getName ( ) . equals ( interfaceName ) ; }
Source:
public void setDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( domain , value ) ) ) { domain = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Domain" ) ) ; } }

Target:
public void setDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( domain , value ) ) ) { domain = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Domain" ) ) ; } }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAllBookmarks , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , org.ovirt.engine.api.restapi.resource.BackendBookmarksResourceTest.setUpBookmarks ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllBookmarks , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , org.ovirt.engine.api.restapi.resource.BackendBookmarksResourceTest.setUpBookmarks ( ) , failure ) ; }
Source:
public void setup ( ) { mockConfigRule.mockConfigValue ( ConfigValues.MaxVdsNameLength , org.ovirt.engine.core.bll.validator.HostValidatorTest.HOST_NAME_SIZE ) ; mockConfigRule.mockConfigValue ( ConfigValues.EncryptHostCommunication , java.lang.Boolean.TRUE ) ; validator = new org.ovirt.engine.core.bll.validator.HostValidator ( dbFacade , host ) ; }

Target:
private org.ovirt.engine.core.bll.validator.HostValidator mockHostForProtocol ( org.ovirt.engine.core.common.businessentities.VdsProtocol protocol ) { org.ovirt.engine.core.common.businessentities.VDS host = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VDS.class ) ; org.mockito.Mockito.when ( host.getProtocol ( ) ) . thenReturn ( protocol ) ; return new org.ovirt.engine.core.bll.validator.HostValidator ( dbFacade , host , hostedEngineHelper ) ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpConfigurationBootProtocolAddress ( NetworkBootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayEqual ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected void syncSearch ( ) { syncSearch ( VdcQueryType.GetUnregisteredVmTemplates , new org.ovirt.engine.ui.uicommonweb.Linq.VmTemplateComparator ( ) ) ; }

Target:
protected void syncSearch ( ) { syncSearch ( VdcQueryType.GetUnregisteredVmTemplates , new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericNameableComparator ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { return importVmData.getVm ( ) . getOrigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.ui.uicommonweb.models.vms.register.RegisterVmData registerVmData ) { return registerVmData.getVm ( ) . getOrigin ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.LunDisk createLunDisk ( ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = new org.ovirt.engine.core.common.businessentities.LunDisk ( ) ; return disk ; }

Target:
private static org.ovirt.engine.core.common.businessentities.LunDisk createLunDisk ( ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = new org.ovirt.engine.core.common.businessentities.LunDisk ( ) ; org.ovirt.engine.core.common.businessentities.LUNs lun = new org.ovirt.engine.core.common.businessentities.LUNs ( ) ; lun.setLUN_id ( "lun_id" ) ; lun.setLunType ( StorageType.ISCSI ) ; disk.setLun ( lun ) ; return disk ; }
Source:
private boolean isDestinationImageExists ( org.ovirt.engine.core.compat.Guid destinationId ) { return ( ( org.ovirt.engine.core.bll.storage.CreateCinderSnapshotCommand.getDestinationDiskImage ( ) ) != null ) && ( ! ( org.ovirt.engine.core.bll.storage.CreateCinderSnapshotCommand.getVmDAO ( ) . getVmsListForDisk ( destinationId , false ) . isEmpty ( ) ) ) ; }

Target:
private boolean isDestinationImageExists ( org.ovirt.engine.core.compat.Guid destinationId ) { return ( ( org.ovirt.engine.core.bll.storage.CreateCinderSnapshotCommand.getDestinationDiskImage ( ) ) != null ) && ( ! ( org.ovirt.engine.core.bll.storage.CreateCinderSnapshotCommand.getVmDao ( ) . getVmsListForDisk ( destinationId , false ) . isEmpty ( ) ) ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.VdsMonitor getMonitor ( org.ovirt.engine.core.compat.Guid vdsId ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getVdsManager ( vdsId ) . getVdsMonitor ( ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.VdsMonitor getMonitor ( org.ovirt.engine.core.compat.Guid vdsId ) { return resourceManager.getVdsManager ( vdsId ) . getVdsMonitor ( ) ; }
Source:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACE_NAME_ALREADY_IN_USE ) ; }

Target:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BOND_NAME_EXISTS ) ; }
Source:
public void testGetUserAndSetUserWithoutSessionParam ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.ovirt.engine.core.common.interfaces.IVdcUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.interfaces.IVdcUser.class ) ; container.setUser ( user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( false ) ) ; }

Target:
public void testGetUserAndSetUserWithoutSessionParam ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.ovirt.engine.core.common.users.VdcUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.users.VdcUser.class ) ; container.setUser ( user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( false ) ) ; }
Source:
private void Cancel ( ) { setWindow ( null ) ; }

Target:
private void cancel ( ) { setWindow ( null ) ; }
Source:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . mVmStatic.setIsQuotaDefault ( isQuotaDefault ) ; }

Target:
public void setVmDescription ( java.lang.String value ) { this . vmStatic.setDescription ( value ) ; }
Source:
void AddVmStatistics ( ) { org.ovirt.engine.core.common.businessentities.VmStatistics stats = new org.ovirt.engine.core.common.businessentities.VmStatistics ( ) ; stats.setId ( org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStatisticsDAO ( ) . save ( stats ) ; org.ovirt.engine.core.bll.AddVmCommand.getCompensationContext ( ) . snapshotNewEntity ( stats ) ; }

Target:
void addVmStatistics ( ) { org.ovirt.engine.core.common.businessentities.VmStatistics stats = new org.ovirt.engine.core.common.businessentities.VmStatistics ( ) ; stats.setId ( org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStatisticsDAO ( ) . save ( stats ) ; org.ovirt.engine.core.bll.AddVmCommand.getCompensationContext ( ) . snapshotNewEntity ( stats ) ; }
Source:
public boolean evaluate ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity obj ) { return obj.getKey ( ) . equalsIgnoreCase ( checkOption.getKey ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity obj ) { return obj.getKey ( ) . equalsIgnoreCase ( checkOption.getKey ( ) ) ; }
Source:
public void testLocalHostGetRedirectUriServerName ( ) { java.lang.String address = "localhost" ; org.junit.Assert.assertEquals ( address , org.ovirt.engine.core.aaa.filters.FiltersHelper.getRedirectUriServerName ( address ) ) ; }

Target:
public void testLocalHostGetRedirectUriServerName ( ) { java.lang.String address = "localhost" ; org.junit.jupiter.api.Assertions.assertEquals ( address , org.ovirt.engine.core.aaa.filters.FiltersHelper.getRedirectUriServerName ( address ) ) ; }
Source:
public void macAddressEmptyForUpdate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( "" , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }

Target:
public void macAddressEmptyForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( "" , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }
Source:
public java.lang.Void runInTransaction ( ) { int master_domain_version = getStoragePoolDAO ( ) . increaseStoragePoolMasterVersion ( getStoragePool ( ) . getId ( ) ) ; getStoragePool ( ) . setmaster_domain_version ( master_domain_version ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { int master_domain_version = getStoragePoolDAO ( ) . increaseStoragePoolMasterVersion ( getStoragePool ( ) . getId ( ) ) ; getStoragePool ( ) . setMasterDomainVersion ( master_domain_version ) ; return null ; }
Source:
public void invalidQosMissingValues ( ) { org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos = new org.ovirt.engine.core.common.businessentities.network.HostNetworkQos ( ) ; qos.setOutAverageUpperlimit ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.HIGH_BANDWIDTH ) ; qos.setOutAverageRealtime ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.LOW_BANDWIDTH ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosValuesTest ( qos ) ; validateAndExpectViolation ( helper , VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_SETUP_NETWORKS_MISSING_VALUES , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.MANAGEMENT_NETWORK_NAME ) ; }

Target:
public void invalidQosMissingValues ( ) { org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos = new org.ovirt.engine.core.common.businessentities.network.HostNetworkQos ( ) ; qos.setOutAverageUpperlimit ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.HIGH_BANDWIDTH ) ; qos.setOutAverageRealtime ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.LOW_BANDWIDTH ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosValuesTest ( qos ) ; validateAndExpectViolation ( helper , EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_SETUP_NETWORKS_MISSING_VALUES , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.MANAGEMENT_NETWORK_NAME ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }
Source:
protected void onEntityContentChanged ( ) { super . onEntityContentChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } else { setItems ( null ) ; } }

Target:
protected void onEntityContentChanged ( ) { super . onEntityContentChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } else { setItems ( null ) ; } }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsEmpty ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "192.168.1.1" , "" ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressAndNetmaskIsNotNull ( ) throws java.lang.Exception { doTestIpConfiguredForStaticBootProtocol ( "192.168.1.1" , "255.255.255.0" , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.getBroker ( ) . getAllTasksInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskInfoList ( _result.TaskInfoList ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.getBroker ( ) . getAllTasksInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( parseTaskInfoList ( _result.TaskInfoList ) ) ; }
Source:
private boolean isNicActuallyExistsOrReferencesNewBond ( java.lang.String nicName , org.ovirt.engine.core.compat.Guid nicId ) { return org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator.isNicActuallyExistsOrReferencesNewBond ( existingInterfacesMap , bondsMap , nicName , nicId ) ; }

Target:
private boolean isNicActuallyExistsOrReferencesNewBond ( java.lang.String nicName , org.ovirt.engine.core.compat.Guid nicId ) { return hostSetupNetworksValidatorHelper.isNicActuallyExistsOrReferencesNewBond ( existingInterfacesMap , bondsMap , nicName , nicId ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; mockMaxPciSlots ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockEntities ( storageId ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
public void testGetImageType ( ) { org.ovirt.engine.core.common.businessentities.ImageType result = dao.getImageType ( org.ovirt.engine.core.dao.VmTemplateDaoTest.EXISTING_IMAGE_TYPE_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmTemplateDaoTest.EXISTING_IMAGE_TYPE_ID , result.getId ( ) ) ; }

Target:
public void testGetImageType ( ) { org.ovirt.engine.core.common.businessentities.ImageType result = dao.getImageType ( org.ovirt.engine.core.dao.VmTemplateDaoTest.EXISTING_IMAGE_TYPE_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.VmTemplateDaoTest.EXISTING_IMAGE_TYPE_ID , result.getId ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.VmNicValidator.networkLinkingSupported ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.FeatureSupported.networkLinking ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
void onIsChangablePropertyChange ( org.ovirt.engine.ui.common.widget.HasEnabled editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { boolean isChangable = model.getIsChangable ( ) ; editor.setEnabled ( isChangable , model.getChangeProhibitionReasons ( ) ) ; }

Target:
void onIsChangablePropertyChange ( org.ovirt.engine.ui.common.widget.HasEnabledWithHints editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { if ( model.getIsChangable ( ) ) { editor.setEnabled ( true ) ; } else { editor.disable ( model.getChangeProhibitionReasons ( ) ) ; } }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.WatchDog model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Watchdog model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
public java.lang.String getUserName ( ) { if ( ( org.apache.commons.lang.StringUtils.isEmpty ( mUserName ) ) && ( ( getCurrentUser ( ) ) != null ) ) { mUserName = getCurrentUser ( ) . getUserName ( ) ; } return mUserName ; }

Target:
public java.lang.String getUserName ( ) { if ( ( org.apache.commons.lang.StringUtils.isEmpty ( mUserName ) ) && ( ( getCurrentUser ( ) ) != null ) ) { mUserName = getCurrentUser ( ) . getLoginName ( ) ; } return mUserName ; }
Source:
public void testIsNetworkInSyncWhenMtuDifferent ( ) { iface.setMtu ( 1 ) ; network.setMtu ( 2 ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenMtuDifferent ( ) { iface.setMtu ( 1 ) ; network.setMtu ( 2 ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) ; } return super . getVm ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) . getId ( ) ; } return super . getVmId ( ) ; }
Source:
protected void updateExistingEntity ( ) { existingEntity.setEndTime ( new java.util.Date ( ) ) ; existingEntity.setStatus ( JobExecutionStatus.FINISHED ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getJobDao ( ) ; existingEntity = dao.get ( org.ovirt.engine.core.dao.JobDaoTest.EXISTING_JOB_ID ) ; newEntity = generateNewEntity ( ) ; }
Source:
public org.ovirt.engine.api.model.NetworkFilter get ( ) { return performGet ( VdcQueryType.GetNetworkFilterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.NetworkFilter get ( ) { return performGet ( QueryType.GetNetworkFilterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void setup ( ) { mockConfigRule.mockConfigValue ( ConfigValues.SupportedClusterLevels , java.util.Collections.singleton ( org.ovirt.engine.core.bll.validator.ClusterValidatorTest.SUPPORTED_VERSION ) ) ; validator = new org.ovirt.engine.core.bll.validator.ClusterValidator ( dbFacade , cluster ) ; }

Target:
public void setup ( ) { mockConfigRule.mockConfigValue ( ConfigValues.SupportedClusterLevels , java.util.Collections.singleton ( org.ovirt.engine.core.bll.validator.ClusterValidatorTest.SUPPORTED_VERSION ) ) ; validator = new org.ovirt.engine.core.bll.validator.ClusterValidator ( dbFacade , cluster , cpuFlagsManagerHandler ) ; }
Source:
public void setvmt_child_count ( int value ) { this . vmt_child_countField = value ; }

Target:
public boolean isFailBack ( ) { return this . vmStatic.isFailBack ( ) ; }
Source:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.Matchers.anyString ( ) ) ; }

Target:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered , boolean allUsersWithPermission , int appMode ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , long engineSessionSeqId , boolean isFiltered , boolean allUsersWithPermission , int appMode ) ;
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters , executionContext ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , context.clone ( ) ) ; }
Source:
public org.apache.commons.collections.keyvalue.DefaultKeyValue mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.apache.commons.collections.keyvalue.DefaultKeyValue result = new org.apache.commons.collections.keyvalue.DefaultKeyValue ( ) ; result.setKey ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( rs.getString ( "command_id" ) ) ) ; result.setValue ( rs.getString ( "command_type" ) ) ; return result ; }

Target:
public org.apache.commons.collections.keyvalue.DefaultKeyValue mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.apache.commons.collections.keyvalue.DefaultKeyValue result = new org.apache.commons.collections.keyvalue.DefaultKeyValue ( ) ; result.setKey ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( "command_id" ) ) ) ; result.setValue ( rs.getString ( "command_type" ) ) ; return result ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmDevice readManagedVmDevice ( org.ovirt.engine.core.compat.backendcompat.XmlNode node , org.ovirt.engine.core.compat.Guid deviceId ) { return addManagedVmDevice ( readVmDevice ( node , deviceId ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmDevice readManagedVmDevice ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node , org.ovirt.engine.core.compat.Guid deviceId ) { return addManagedVmDevice ( readVmDevice ( node , deviceId ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigModel flush ( ) { networks.asEditor ( ) . flush ( ) ; return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigModel flush ( ) { labelsWidget.flush ( ) ; networks.asEditor ( ) . flush ( ) ; return driver.flush ( ) ; }
Source:
public void setPmSecondaryOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { pmSecondaryOptionsMap = value ; }

Target:
public void setPmSecondaryOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { pmSecondaryOptionsMap = value ; pmSecondaryOptions = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsMapToString ( value ) ; }
Source:
public void testGetAllForVdsGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForVdsGroup ( org.ovirt.engine.core.dao.VmTemplateDAOTest.VDS_GROUP_ID ) ; org.ovirt.engine.core.dao.VmTemplateDAOTest.assertGetAllResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.VmTemplate template : result ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmTemplateDAOTest.VDS_GROUP_ID , template.getvds_group_id ( ) ) ; } }

Target:
public void testGetAllForVdsGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForVdsGroup ( org.ovirt.engine.core.dao.VmTemplateDAOTest.VDS_GROUP_ID ) ; org.ovirt.engine.core.dao.VmTemplateDAOTest.assertGetAllResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.VmTemplate template : result ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmTemplateDAOTest.VDS_GROUP_ID , template.getVdsGroupId ( ) ) ; } }
Source:
public void setIsVolumeFormatChangable ( boolean isVolumeFormatChangable ) { if ( ( this . isVolumeFormatChangable ) != isVolumeFormatChangable ) { this . isVolumeFormatChangable = isVolumeFormatChangable ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VolumeFormat" ) ) ; } }

Target:
public void setIsVolumeTypeChangable ( boolean isVolumeTypeChangable ) { if ( ( this . isVolumeTypeChangable ) != isVolumeTypeChangable ) { this . isVolumeTypeChangable = isVolumeTypeChangable ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel.VOLUME_TYPE ) ) ; } }
Source:
public void testIpConfiguredForStaticBootProtocol_WhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressAndNetmaskIsNotNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "" , "" ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setIpConfiguration ( null ) ; org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator validator = createNetworkAttachmentValidator ( attachment ) ; org.junit.Assert.assertThat ( validator.ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testPosixDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( org.ovirt.engine.core.bll.validator.storage.StorageDomainToPoolRelationValidatorTest.SUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testPosixDcAndMatchingCompatiblityVersion ( ) { storagePool.setCompatibilityVersion ( org.ovirt.engine.core.bll.validator.storage.StorageDomainToPoolRelationValidatorTest.SUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void mockVmDaoGetVm ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseMockUtils.mockVmDao ( command , vmDAO ) ; org.mockito.Mockito.when ( vmDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }

Target:
private void mockVmDaoGetVm ( ) { org.mockito.Mockito.doReturn ( vmDAO ) . when ( command ) . getVmDAO ( ) ; org.mockito.Mockito.when ( vmDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }
Source:
public void onMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { setWidget ( infoImageHover ) ; infoPanel.showRelativeTo ( this ) ; }

Target:
protected void onTooltipSourceMouseOver ( ) { this . setWidget ( infoImageHover ) ; infoPanel.showRelativeTo ( this ) ; }
Source:
public java.lang.String getSearchString ( ) { return ( searchStringPrefixLabel.getText ( ) ) + ( searchStringInput.getText ( ) ) ; }

Target:
public void setSearchStringPrefix ( java.lang.String searchStringPrefix ) { searchStringPrefixLabel.setText ( searchStringPrefix ) ; oracle.setSearchPrefix ( searchStringPrefix ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc desktopLock ( java.lang.String vmId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc hotunplugDisk ( java.util.Map info ) ;
Source:
private org.ovirt.engine.core.common.businessentities.Disk findBoot ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks ) { for ( org.ovirt.engine.core.common.businessentities.Disk disk : disks ) { if ( disk.isBoot ( ) ) { return disk ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.Disk findBoot ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { for ( org.ovirt.engine.core.common.businessentities.storage.Disk disk : disks ) { if ( disk.isBoot ( ) ) { return disk ; } } return null ; }
Source:
public void settingSpecificNetworksAllowed ( ) { settingSpecificNetworksAllowedTest ( true ) ; org.junit.Assert.assertThat ( validator.settingSpecificNetworksAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_SET_SPECIFIC_NETWORKS , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }

Target:
public void settingSpecificNetworksAllowed ( ) { settingSpecificNetworksAllowedTest ( true ) ; org.junit.Assert.assertThat ( validator.settingSpecificNetworksAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_SET_SPECIFIC_NETWORKS , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }
Source:
private java.util.List < org.ovirt.engine.api.model.Network > getNetworks ( ) { org.ovirt.engine.core.compat.Guid dataCenterId = getCluster ( ) . getStoragePoolId ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ; return getBackendCollection ( VdcQueryType.GetAllNetworks , params ) ; }

Target:
private java.util.List < org.ovirt.engine.api.model.Network > getNetworks ( ) { org.ovirt.engine.core.compat.Guid dataCenterId = getCluster ( ) . getStoragePoolId ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ; return getBackendCollection ( QueryType.GetAllNetworks , params ) ; }
Source:
public void vnicProfileDoesNotExist ( ) throws java.lang.Exception { org.mockito.Mockito.when ( vnicProfileDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }

Target:
public void vnicProfileDoesNotExist ( ) throws java.lang.Exception { org.mockito.Mockito.when ( vnicProfileDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }
Source:
public void onMainTabSelected ( ) { super . onMainTabSelected ( ) ; getModel ( ) . getDiskViewType ( ) . setEntity ( null ) ; }

Target:
public void onMainTabSelected ( ) { super . onMainTabSelected ( ) ; getModel ( ) . getDiskViewType ( ) . setEntity ( DiskStorageType.IMAGE ) ; }
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" , org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { final javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.Bookmark > query = entityManager.createNamedQuery ( "Bookmark.byName" , org.ovirt.engine.core.common.businessentities.Bookmark.class ) ; query.setParameter ( "name" , name ) ; return singleResult ( query ) ; }
Source:
public java.lang.String getstorage_name ( ) { return name ; }

Target:
public java.lang.String getStorageName ( ) { return name ; }
Source:
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 ; }

Target:
private org.ovirt.engine.core.common.queries.QueryReturnValue getErrorQueryReturnValue ( org.ovirt.engine.core.common.errors.EngineMessage errorMessage ) { org.ovirt.engine.core.common.queries.QueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.QueryReturnValue ( ) ; returnValue.setSucceeded ( false ) ; returnValue.setExceptionString ( errorMessage.toString ( ) ) ; return returnValue ; }
Source:
public boolean isTaskSuccess ( org.ovirt.engine.core.common.job.Step step ) { switch ( step.getStatus ( ) ) { case ABORTED : case FAILED : return false ; case FINISHED : return true ; default : return false ; } }

Target:
public boolean isTaskSuccess ( org.ovirt.engine.core.common.job.JobExecutionStatus status ) { switch ( status ) { case ABORTED : case FAILED : return false ; case FINISHED : return true ; default : return false ; } }
Source:
private org.ovirt.engine.api.model.Version getCurrentVersion ( ) { if ( ( org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion ) == null ) { org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion = org.ovirt.engine.api.restapi.util.VersionHelper.parseVersion ( getConfigurationValueDefault ( java.lang.String.class , ConfigurationValues.VdcVersion ) ) ; } return org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion ; }

Target:
private org.ovirt.engine.api.model.Version getCurrentVersion ( ) { if ( ( org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion ) == null ) { java.lang.String currentVersionString = getConfigurationValueDefault ( ConfigurationValues.VdcVersion ) ; if ( currentVersionString != null ) { org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion = org.ovirt.engine.api.restapi.util.VersionHelper.parseVersion ( currentVersionString ) ; } } return org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.currentVersion ; }
Source:
public void updateBrickStatuses ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : bricks ) { updateBrickStatus ( brick.getId ( ) , brick.getStatus ( ) ) ; } }

Target:
public void updateBrickStatuses ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks ) { updateAllInBatch ( "UpdateGlusterVolumeBrickStatus" , bricks , getBatchMapper ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { SetStorageDomainStatus ( StorageDomainStatus.InActive , getCompensationContext ( ) ) ; calcStoragePoolStatusByDomainsStatus ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive , getCompensationContext ( ) ) ; calcStoragePoolStatusByDomainsStatus ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.or ( org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . id ( ) ) , org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . name ( ) ) ) ; }

Target:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.or ( org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . id ( ) ) , org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . name ( ) ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.optional ( storageDomain ( ) . backup ( ) ) ; }
Source:
public void shouldAllowUpgradeForVM ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) , org.hamcrest.core.Is.is ( org.hamcrest.Matchers.empty ( ) ) ) ; }

Target:
public void shouldAllowUpgradeForVM ( ) { org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }
Source:
static org.ovirt.engine.api.model.VM getModelClearingPayloads ( int index ) { org.ovirt.engine.api.model.VM model = org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.getModel ( 0 ) ; model.setPayloads ( new org.ovirt.engine.api.model.Payloads ( ) ) ; return model ; }

Target:
static org.ovirt.engine.api.model.Vm getModelClearingPayloads ( int index ) { org.ovirt.engine.api.model.Vm model = org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.getModel ( 0 ) ; model.setPayloads ( new org.ovirt.engine.api.model.Payloads ( ) ) ; return model ; }
Source:
protected void initQuery ( Q query ) { }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getUser ( ) { return dbUserMock ; }
Source:
public void validate_vdsGroupNull_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getVdsGroup ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_CLUSTER_FOR_AFFINITY_GROUP ) ; }

Target:
public void validate_clusterNull_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getCluster ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_CLUSTER_FOR_AFFINITY_GROUP ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runActionImpl ( actionType , parameters , true , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters ) { return runActionImpl ( actionType , parameters , true , null ) ; }
Source:
public void setGuestRequestedMemory ( java.lang.Integer value ) { this . vmDynamic.setguest_requested_memory ( value ) ; }

Target:
public java.lang.String getHibernationVolHandle ( ) { return this . vmDynamic.getHibernationVolHandle ( ) ; }
Source:
public void saveGlusterServerHook ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , java.lang.String checksum , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;

Target:
public void saveGlusterServerHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverHook ) ;
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.StopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; cancel ( ) ; }
Source:
public boolean isConcreteStorageType ( ) { return this . isConcreteStorageType ; }

Target:
public boolean isConcreteStorageType ( ) { return ( this ) != ( org.ovirt.engine.core.common.businessentities.StorageType.UNKNOWN ) ; }
Source:
protected void removeCommand ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.removeCommand ( getCommandId ( ) ) ; } finally { if ( transaction != null ) { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } } }

Target:
protected void removeCommand ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeCommand ( getCommandId ( ) ) ; } finally { if ( transaction != null ) { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } } }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__HOT_SET_CPUS ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; addCanDoActionMessageVariable ( "clusterVersion" , org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ; addCanDoActionMessageVariable ( "architecture" , org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand.getVm ( ) . getClusterArch ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__HOT_SET_CPUS ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM ) ; addValidationMessageVariable ( "clusterVersion" , org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ; addValidationMessageVariable ( "architecture" , org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand.getVm ( ) . getClusterArch ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType , java.lang.String [ ] devicesList ) ;
Source:
public void testInvalidParse ( ) { org.ovirt.engine.core.compat.TimeSpan.Parse ( "1.02.03" ) ; }

Target:
public void testInvalidParse ( ) { org.ovirt.engine.core.compat.TimeSpan.parse ( "1.02.03" ) ; }
Source:
public java.lang.String render ( java.util.Date object ) { if ( object != null ) { return org.ovirt.engine.ui.webadmin.widget.renderer.GeneralDateTimeRenderer.format.format ( object ) ; } return "" ; }

Target:
public java.lang.String render ( java.util.Date object ) { if ( object == null ) { return org.ovirt.engine.ui.webadmin.widget.renderer.GeneralDateTimeRenderer.CONSTANTS.notAvailableLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( object ) ; }
Source:
public void testExecuteQueryNotSupported ( ) { setup ( org.ovirt.engine.core.bll.network.host.GetTlvsByHostNicIdQueryTest.ExpectedError.NOT_SUPPORTED ) ; getQuery ( ) . executeQueryCommand ( ) ; java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.LldpInfo > returnValue = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.Assert.assertNull ( returnValue ) ; }

Target:
public void testExecuteQueryNotSupported ( ) { setup ( org.ovirt.engine.core.bll.network.host.GetTlvsByHostNicIdQueryTest.ExpectedError.NOT_SUPPORTED ) ; getQuery ( ) . executeQueryCommand ( ) ; java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.LldpInfo > returnValue = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.jupiter.api.Assertions.assertNull ( returnValue ) ; }
Source:
public java.lang.String gethibernation_vol_handle ( ) { return this . mVmDynamic.gethibernation_vol_handle ( ) ; }

Target:
public void setDbGeneration ( long value ) { this . vmStatic.setDbGeneration ( value ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmTemplate , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public org.apache.http.HttpResponse execute ( org.apache.http.client.methods.HttpUriRequest request ) { try { return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void close ( ) throws java.lang.Exception { client.getConnectionManager ( ) . shutdown ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > getCollection ( ) { return getBackendCollection ( QueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ; }
Source:
public int hashCode ( ) { return uuid.hashCode ( ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( uuid ) ; }
Source:
public int getvmt_num_of_sockets ( ) { return this . vmt_num_of_socketsField ; }

Target:
public java.lang.String getVdsGroupDescription ( ) { return this . vdsGroupDescription ; }
Source:
private static java.lang.String generateJsonEntry ( java.lang.String key , java.lang.String value ) { return java.lang.String.format ( "\"%s\":\"%s\"" , key , value ) ; }

Target:
private static java.lang.String encodeString ( java.lang.String str ) { return org.apache.commons.codec.binary.Hex.encodeHexString ( str.getBytes ( java.nio.charset.StandardCharsets.UTF_16LE ) ) ; }