auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void addInlineNics ( org.ovirt.engine.api.model.VM vm ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResource nicsResource = inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ( asGuid ( vm.getId ( ) ) ) ) ; org.ovirt.engine.api.model.Nics nics = nicsResource.list ( ) ; vm.setNics ( nics ) ; }

Target:
private void addInlineNics ( org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResource nicsResource = inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ( asGuid ( vm.getId ( ) ) ) ) ; org.ovirt.engine.api.model.Nics nics = nicsResource.list ( ) ; vm.setNics ( nics ) ; }
Source:
public org.ovirt.api.metamodel.tool.JavaClassName getBuilderName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getBuildersPackageName ( ) , org.ovirt.api.metamodel.tool.PlainJavaTypes.BUILDER_SUFFIX ) ; }

Target:
public org.ovirt.api.metamodel.tool.JavaClassName getXmlReaderName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getXmlPackageName ( ) , org.ovirt.api.metamodel.tool.PlainJavaTypes.XML_PREFIX , org.ovirt.api.metamodel.tool.PlainJavaTypes.READER_NAME ) ; }
Source:
public boolean Match ( java.util.Map.Entry < java.lang.String , java.lang.String > source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getKey ( ) , timeZone ) ; }

Target:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.vms.TimeZoneModel source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getTimeZoneKey ( ) , timeZone ) ; }
Source:
void updateModelSearchString ( ) { commonModel.setSearchString ( getView ( ) . getSearchString ( ) ) ; commonModel.Search ( ) ; }

Target:
void updateModelSearchString ( ) { commonModel.setSearchString ( getView ( ) . getSearchString ( ) ) ; commonModel.search ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getSearchCommand ( ) . Execute ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getSearchCommand ( ) . execute ( ) ; }
Source:
public static org.ovirt.engine.core.bll.context.CommandContext createInternalJobContext ( ) { org.ovirt.engine.core.bll.job.ExecutionContext executionContext = new org.ovirt.engine.core.bll.job.ExecutionContext ( ) ; executionContext.setJobRequired ( true ) ; executionContext.setMonitored ( true ) ; return new org.ovirt.engine.core.bll.context.CommandContext ( executionContext ) ; }

Target:
public static org.ovirt.engine.core.bll.context.CommandContext createInternalJobContext ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { org.ovirt.engine.core.bll.job.ExecutionContext executionContext = new org.ovirt.engine.core.bll.job.ExecutionContext ( ) ; executionContext.setJobRequired ( true ) ; executionContext.setMonitored ( true ) ; return new org.ovirt.engine.core.bll.context.CommandContext ( executionContext , lock ) ; }
Source:
public void negativeTestFindConstructorForMismatchingArgumentsNumber ( ) throws java.lang.Exception { assertNull ( createAssertMessage ( "ctor was found anyway" ) , org.ovirt.engine.core.utils.ReflectionUtils.findConstructor ( typeToTest , ( ( java.lang.Class < ? > [ ] ) ( org.apache.commons.lang.ArrayUtils.add ( parametersForExactCase , java.lang.Object.class ) ) ) ) ) ; }

Target:
public void negativeTestFindConstructorForMismatchingArgumentsNumber ( ) throws java.lang.Exception { org.junit.Assert.assertNull ( createAssertMessage ( "ctor was found anyway" ) , org.ovirt.engine.core.utils.ReflectionUtils.findConstructor ( typeToTest , ( ( java.lang.Class < ? > [ ] ) ( org.apache.commons.lang.ArrayUtils.add ( parametersForExactCase , java.lang.Object.class ) ) ) ) ) ; }
Source:
protected abstract void performProfilesActions ( org.ovirt.engine.core.compat.Guid networkGuid ) ;

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { newModel.getName ( ) . setEntity ( getName ( ) . getEntity ( ) ) ; }
Source:
public org.ovirt.vdsmfake.domain.StorageDomain getStorageDomainById ( java.lang.String id ) { return org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . getStorageDomainById ( id ) ; }

Target:
public org.ovirt.vdsmfake.domain.StorageDomain getStorageDomainById ( java.lang.String id ) { return vdsmManager.getStorageDomainById ( id ) ; }
Source:
void processOnVmStop ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
void processOnVmStop ( java.util.Collection < org.ovirt.engine.core.compat.Guid > vmIds ) ;
Source:
public void testEmptyForClass ( ) { org.junit.Assert.assertEquals ( "" , org.ovirt.engine.core.common.utils.ToStringBuilder.forClass ( null ) . build ( ) ) ; }

Target:
public void testEmptyForClass ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "" , org.ovirt.engine.core.common.utils.ToStringBuilder.forClass ( null ) . build ( ) ) ; }
Source:
public void nullNetworkWhenNoPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( ValidationResult.VALID , null , false ) ; }

Target:
public void nullNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.PORT_MIRRORING_REQUIRES_NETWORK ) , null , true ) ; }
Source:
protected boolean validateTag ( java.lang.String tagName ) { boolean retValue = true ; org.ovirt.engine.core.common.businessentities.Tags tag = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getByName ( tagName ) ; if ( tag == null ) { addValidationMessage ( EngineMessage.EN_UNKNOWN_TAG_NAME ) ; retValue = false ; } return retValue ; }

Target:
protected boolean validateTag ( java.lang.String tagName ) { boolean retValue = true ; org.ovirt.engine.core.common.businessentities.Tags tag = tagDao.getByName ( tagName ) ; if ( tag == null ) { addValidationMessage ( EngineMessage.EN_UNKNOWN_TAG_NAME ) ; retValue = false ; } return retValue ; }
Source:
private boolean isConnectionException ( java.lang.Throwable e ) { return ( e.getCause ( ) ) instanceof java.net.ConnectException ; }

Target:
public boolean hasTransports ( ) { return ! ( transports.isEmpty ( ) ) ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithArbiterAndInvalidReplica ( ) { setVolume ( getVolume ( 2 , false , GlusterVolumeType.REPLICATE , 2 , true ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_GLUSTER_ARBITER_VOLUME_SHOULD_BE_REPLICA_3_VOLUME ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ! ( ( java.lang.Boolean ) ( diskModel.getIsInternal ( ) . getEntity ( ) ) ) ) { model.getUpdateCommand ( ) . Execute ( ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { revealStorageView ( disk ) ; }
Source:
private boolean isNetworkSubnetInSync ( ) { return getsSubnetUtilsInstance ( ) . equalSubnet ( iface.getIpv4Subnet ( ) , getPrimaryAddress ( ) . getNetmask ( ) ) ; }

Target:
private boolean isIpv4NetworkSubnetInSync ( ) { return getsSubnetUtilsInstance ( ) . equalSubnet ( iface.getIpv4Subnet ( ) , getIpv4PrimaryAddress ( ) . getNetmask ( ) ) ; }
Source:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 0 ) ; }

Target:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { if ( memoryVolume.isEmpty ( ) ) { return false ; } int numOfSnapshotsUsingThisMemory = getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ; return numOfSnapshotsUsingThisMemory == ( removeOnlyIfNotUsedAtAll ? 0 : 1 ) ; }
Source:
public void addNetwork ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { getCallsHandler ( ) . executeModification ( "InsertvfsConfigNetwork" , createNetworkParametersMapper ( vfsConfigId , networkId ) ) ; }

Target:
public void removeNetwork ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { getCallsHandler ( ) . executeModification ( "DeleteVfsConfigNetwork" , createNetworkParametersMapper ( vfsConfigId , networkId ) ) ; }
Source:
public void internalMaintenanceAllowed ( ) { testInternalExecution ( StorageDomainStatus.Maintenance ) ; canDoActionSucceeds ( ) ; noIllegalStatusMessage ( ) ; }

Target:
private void testActionAllowed ( ) { canDoActionSucceeds ( ) ; noIllegalStatusMessage ( ) ; }
Source:
private void GoToEvents ( ) { this . getRequestGOToEventsTabEvent ( ) . raise ( this , null ) ; }

Target:
private void goToEvents ( ) { this . getRequestGOToEventsTabEvent ( ) . raise ( this , null ) ; }
Source:
public void setEnabled ( boolean enabled ) { getLabel ( ) . setEnabled ( enabled ) ; if ( enabled ) { tooltip.setText ( "" ) ; } }

Target:
public void setEnabled ( boolean enabled ) { label.setEnabled ( enabled ) ; if ( enabled ) { tooltip.setText ( "" ) ; } }
Source:
public void readData ( java.io.ObjectInputStream dis ) { synchronized ( ovirt_engine_dwh.historydelete_3_2.HistoryDelete.row12Struct.commonByteArrayLock ) { try { int length = 0 ; this . history_id = dis.readInt ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } } }

Target:
public void readData ( java.io.ObjectInputStream dis ) { synchronized ( ovirt_engine_dwh.historydelete_3_2.HistoryDelete.row12Struct.commonByteArrayLock_OVIRT_ENGINE_DWH_HistoryDelete ) { try { int length = 0 ; this . history_id = dis.readInt ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } } }
Source:
public boolean doesCommandContainAsyncTask ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( ) . doesCommandContainAsyncTask ( cmdId ) ; }

Target:
public boolean doesCommandContainAsyncTask ( org.ovirt.engine.core.compat.Guid cmdId ) { return asyncTaskManager.get ( ) . doesCommandContainAsyncTask ( cmdId ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskInterface getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.getDiskInterface ( ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.isBoot ( ) ? org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmDiskAttachPopupWidget.resources.bootableDiskIcon ( ) : null ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { ensureColumnPresent ( column , com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( headerText ) , present ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { ensureColumnPresent ( column , com.google.gwt.safehtml.shared.SafeHtmlUtils.fromTrustedString ( headerText ) , present ) ; }
Source:
protected void performOvfUpdateForDomain ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid domainId ) { backend.runInternalAction ( ActionType.ProcessOvfUpdateForStorageDomain , new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters ( storagePoolId , domainId ) ) ; }

Target:
protected void performOvfUpdateForDomain ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid domainId ) { backend.runInternalAction ( ActionType.ProcessOvfUpdateForStorageDomain , new org.ovirt.engine.core.common.action.ProcessOvfUpdateParameters ( storagePoolId , domainId ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VirtualNumaNode update ( org.ovirt.engine.api.v3.types.V3VirtualNumaNode node ) { return adaptUpdate ( delegate :: update , node ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VirtualNumaNode update ( org.ovirt.engine.api.v3.types.V3VirtualNumaNode node ) { return adaptUpdate ( getDelegate ( ) :: update , node ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkNotDisplay ( java.lang.String networkName ) { return networkCluster.isDisplay ( ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_DISPLAY , java.lang.String.format ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorBase.NETWORK_NAME_REPLACEMENT , networkName ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkNotDisplay ( java.lang.String networkName ) { return networkCluster.isDisplay ( ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_DISPLAY , java.lang.String.format ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorBase.NETWORK_NAME_REPLACEMENT , networkName ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void completeNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment ) { completeNetworkAttachment ( networkAttachment , null ) ; }

Target:
public void completeNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment , org.ovirt.engine.core.compat.Guid dataCenterId ) { completeNetworkAttachment ( networkAttachment , null , dataCenterId ) ; }
Source:
public void testNewStorageTypes ( ) { junit.framework.Assert.assertTrue ( ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain " + "method accordingly" ) , ( ( org.ovirt.engine.core.common.businessentities.StorageType.values ( ) . length ) == 8 ) ) ; }

Target:
public void testNewStorageTypes ( ) { org.junit.Assert.assertTrue ( ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain " + "method accordingly" ) , ( ( org.ovirt.engine.core.common.businessentities.StorageType.values ( ) . length ) == 8 ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol getBootProtocol ( ) { return ( hasIpConfiguration ( ) ) && ( getIpConfiguration ( ) . hasPrimaryAddressSet ( ) ) ? getIpConfiguration ( ) . getPrimaryAddress ( ) . getBootProtocol ( ) : null ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol getIpv4BootProtocol ( ) { if ( primaryIpv4AddressNotSet ( ) ) { return null ; } return getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . getBootProtocol ( ) ; }
Source:
protected void LogSettingVmToDown ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( vdsId , vmId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.VM_WAS_SET_DOWN_DUE_TO_HOST_REBOOT_OR_MANUAL_FENCE ) ; }

Target:
protected void logSettingVmToDown ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( vdsId , vmId ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.VM_WAS_SET_DOWN_DUE_TO_HOST_REBOOT_OR_MANUAL_FENCE ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LUNs getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.LUNs entity = new org.ovirt.engine.core.common.businessentities.LUNs ( GUIDS [ index ] . toString ( ) , null , null ) ; entity.setLunType ( org.ovirt.engine.core.common.businessentities.StorageType.ISCSI ) ; return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LUNs getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.LUNs entity = new org.ovirt.engine.core.common.businessentities.LUNs ( ) ; entity.setLUN_id ( GUIDS [ index ] . toString ( ) ) ; entity.setLunType ( org.ovirt.engine.core.common.businessentities.StorageType.ISCSI ) ; return entity ; }
Source:
org.ovirt.engine.core.dao.network.HostNetworkQosDao getHostNetworkQosDao ( ) { return hostNetworkQosDao ; }

Target:
org.ovirt.engine.core.dao.network.NetworkAttachmentDao getNetworkAttachmentDao ( ) { return networkAttachmentDao ; }
Source:
public java.security.cert.X509Certificate [ ] getAcceptedIssuers ( ) { return new java.security.cert.X509Certificate [ ] { } ; }

Target:
protected org.ovirt.engine.core.bll.provider.BaseProviderProxy.ConnectionWrapper createWrapper ( java.net.HttpURLConnection result ) { return new org.ovirt.engine.core.bll.provider.BaseProviderProxy.ConnectionWrapper ( result ) ; }
Source:
public void isNetworkDeviceNegtive ( ) { org.junit.Assert.assertEquals ( true , isNetworkDevice ( netDevice ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > mockVfsOnNetDevice ( int numOfVfs ) { return mockVfsOnNetDevice ( numOfVfs , null ) ; }
Source:
private void initEditors ( ) { statusEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelLabelEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( ) ) ; clientsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; memoryPoolsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; memoryPoolsTable.setWidth ( "1000px" ) ; }

Target:
private void initEditors ( ) { statusEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelLabelEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( ) ) ; clientsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; memoryPoolsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; memoryPoolsTable.setWidth ( "1200px" ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = org.ovirt.engine.core.bll.network.cluster.NetworkClusterCommandBase.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getNetworkId ( ) ) ; } return persistedNetwork ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = org.ovirt.engine.core.bll.network.cluster.NetworkClusterCommandBase.getNetworkDao ( ) . get ( getNetworkCluster ( ) . getNetworkId ( ) ) ; } return persistedNetwork ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; if ( object.isVmAttachedToPool ( ) ) disableAllWidgetsExceptNameEditor ( ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; if ( object.isVmAttachedToPool ( ) ) { specificHost.setEnabled ( false ) ; customPropertiesSheetEditor.setEnabled ( false ) ; } }
Source:
public void testNullSerialize ( ) { org.junit.Assert.assertEquals ( null , new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) . deserialize ( null , org.ovirt.engine.core.utils.serialization.json.JsonSerializablePojo.class ) ) ; }

Target:
public void testNullSerialize ( ) { org.junit.Assert.assertNull ( new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) . deserialize ( null , org.ovirt.engine.core.utils.serialization.json.JsonSerializablePojo.class ) ) ; }
Source:
public void testValidNetworkFilterIdNoDefaultWithFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validVnicProfileNetworkFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void scheduleJobs ( long regularInterval , long longInterval ) { org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.class ) . scheduleAFixedDelayJob ( this , "refresh" , new java.lang.Class [ ] { } , new java.lang.Object [ ] { } , regularInterval , longInterval , java.util.concurrent.TimeUnit.MINUTES ) ; }

Target:
private void scheduleJobs ( long regularInterval , long longInterval ) { scheduler.scheduleAFixedDelayJob ( this , "refresh" , new java.lang.Class [ ] { } , new java.lang.Object [ ] { } , regularInterval , longInterval , java.util.concurrent.TimeUnit.MINUTES ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { consoleModelsCache.updateCache ( value ) ; super . setItems ( value ) ; }

Target:
public void setItems ( java.lang.Iterable value ) { consoleModelsCache.updateVmCache ( value ) ; super . setItems ( value ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getVnicProfilesByNetworkId ( new org.ovirt.engine.ui.uicommonweb.models.networks.SetRawItemsAsyncQuery ( ) , getEntity ( ) . getId ( ) ) ; }
Source:
protected void logAutheticationFailure ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.setUserName ( org.ovirt.engine.core.bll.aaa.LoginBaseCommand.getParameters ( ) . getLoginName ( ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.USER_VDC_LOGIN_FAILED ) ; }

Target:
protected void logAutheticationFailure ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.setUserName ( org.ovirt.engine.core.bll.aaa.LoginBaseCommand.getUserName ( ) ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.USER_VDC_LOGIN_FAILED ) ; }
Source:
private boolean isNetworkAssignedToCluster ( java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > targetNetworksByName , java.lang.String networkName ) { return targetNetworksByName.containsKey ( networkName ) ; }

Target:
private boolean isNetworkAssignedToTargetCluster ( java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > targetNetworksByName , java.lang.String networkName ) { return targetNetworksByName.containsKey ( networkName ) ; }
Source:
private void assertValidateFailure ( final java.lang.String messageToVerify ) { org.junit.Assert.assertFalse ( underTest.validate ( ) ) ; org.junit.Assert.assertTrue ( underTest.getReturnValue ( ) . getValidationMessages ( ) . contains ( messageToVerify ) ) ; }

Target:
public void noCluster ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( underTest , EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return ( java.lang.String.valueOf ( object.getVm ( ) . getVmMemSizeMb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return messages.megabytes ( java.lang.String.valueOf ( object.getVm ( ) . getVmMemSizeMb ( ) ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ISpice asSpice ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { return asSpiceConsoleModel ( model ) . getspice ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ISpice asSpice ( org.ovirt.engine.ui.uicommonweb.models.VmConsoles vmConsoles ) { return vmConsoles.getConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.class ) . getspice ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public T convert ( java.lang.Object source ) { return ( ( T ) ( source ) ) ; }
Source:
protected void initializeVdsError ( org.ovirt.engine.core.common.errors.EngineError returnStatus ) { org.ovirt.engine.core.common.errors.VDSError tempVar = new org.ovirt.engine.core.common.errors.VDSError ( ) ; tempVar.setCode ( returnStatus ) ; tempVar.setMessage ( getReturnStatus ( ) . mMessage ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getVDSReturnValue ( ) . setVdsError ( tempVar ) ; }

Target:
protected void initializeVdsError ( org.ovirt.engine.core.common.errors.EngineError returnStatus ) { org.ovirt.engine.core.common.errors.VDSError tempVar = new org.ovirt.engine.core.common.errors.VDSError ( ) ; tempVar.setCode ( returnStatus ) ; tempVar.setMessage ( getReturnStatus ( ) . message ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getVDSReturnValue ( ) . setVdsError ( tempVar ) ; }
Source:
public void testBeanValidations ( ) { junit.framework.Assert.assertTrue ( createCommand ( initializeMock ( 1 , 1 ) ) . validateInputs ( ) ) ; }

Target:
public void testBeanValidations ( ) { mockOsRepository ( ) ; org.junit.Assert.assertTrue ( createCommand ( initializeMock ( 1 , 1 ) ) . validateInputs ( ) ) ; }
Source:
protected java.lang.Object getValue ( org.ovirt.engine.core.common.config.DataType type , java.lang.String name , java.lang.String defaultValue ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.log.warnFormat ( "Using old getValue for {0}." , name ) ; org.ovirt.engine.core.common.config.ConfigValues value = org.ovirt.engine.core.common.config.ConfigValues.valueOf ( name ) ; return getValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }

Target:
protected java.lang.Object getValue ( org.ovirt.engine.core.common.config.DataType type , java.lang.String name , java.lang.String defaultValue ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.log.warn ( "Using old getValue for '{}'." , name ) ; org.ovirt.engine.core.common.config.ConfigValues value = org.ovirt.engine.core.common.config.ConfigValues.valueOf ( name ) ; return getValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }
Source:
public void shouldDetectNonContinuousNodeIndices ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 0 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 2 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_NON_CONTINUOUS_INDEX ) ; }

Target:
public void shouldDetectNonContinuousNodeIndices ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 0 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 2 ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_NON_CONTINUOUS_INDEX ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
public void testValidateQosOverriddenInterfacesWhenNoAttachmentsPassed ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = java.util.Collections.emptyList ( ) ; org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = createHostSetupNetworkValidator ( networkAttachments ) ; org.junit.Assert.assertThat ( validator.validateQosOverriddenInterfaces ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateQosOverriddenInterfacesWhenNoAttachmentsPassed ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ; org.junit.Assert.assertThat ( validator.validateQosOverriddenInterfaces ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void SelectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . SelectedItemPropertyChanged ( sender , e ) ; UpdateActionAvailability ( ) ; }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; updateActionAvailability ( ) ; }
Source:
public java.lang.String getvm_ip ( ) { return this . mVmDynamic.getvm_ip ( ) ; }

Target:
public java.lang.Integer getVmPid ( ) { return this . vmDynamic.getvm_pid ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return createNetworkValidator ( ) . networkIsSet ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsedByVms ( getNetwork ( ) . getName ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Collection < org.ovirt.engine.core.aaa.ProfileEntry > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.aaa.ProfileEntry > ( ) ; }
Source:
void updateColumnsAvailability ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { setShowVolumeType ( model.getIsVolumeFormatAvailable ( ) ) ; setShowQuota ( ( ( model.getQuotaEnforcementType ( ) ) != ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.DISABLED ) ) ) ; }

Target:
void updateColumnsAvailability ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { setShowVolumeType ( model.getIsVolumeTypeAvailable ( ) ) ; setShowQuota ( ( ( model.getQuotaEnforcementType ( ) ) != ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.DISABLED ) ) ) ; }
Source:
public void testDefaultConfigurationValues ( ) { org.junit.Assert.assertEquals ( ConfigValues.DefaultWindowsTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getDefaultTimeZoneConfigurationKey ( ) ) ; org.junit.Assert.assertEquals ( ConfigValues.DefaultGeneralTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.general.getDefaultTimeZoneConfigurationKey ( ) ) ; }

Target:
public void testDefaultConfigurationValues ( ) { org.junit.jupiter.api.Assertions.assertEquals ( ConfigValues.DefaultWindowsTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getDefaultTimeZoneConfigurationKey ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( ConfigValues.DefaultGeneralTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.general.getDefaultTimeZoneConfigurationKey ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getDbFacade ( ) . getVdsStaticDao ( ) . getByHostName ( org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getParameters ( ) . getName ( ) ) ; org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getQueryReturnValue ( ) . setReturnValue ( vds ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getDbFacade ( ) . getVdsStaticDao ( ) . getByVdsName ( org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getParameters ( ) . getName ( ) ) ; org.ovirt.engine.core.bll.GetVdsStaticByNameQuery.getQueryReturnValue ( ) . setReturnValue ( vds ) ; }
Source:
public void stopConnection ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . RemoveVds ( this . vds.getId ( ) ) ; }

Target:
public void stopConnection ( ) { resourceManager.RemoveVds ( this . vds.getId ( ) ) ; }
Source:
public void build ( S source , D destination , org.ovirt.engine.ui.uicommonweb.builders.BuilderList < S , D > rest ) { parentsRest.head ( ) . build ( source , destination , parentsRest.tail ( ) ) ; }

Target:
public void build ( S source , D destination , org.ovirt.engine.ui.uicommonweb.builders.BuilderList < S , D > rest ) { postBuild ( source , destination ) ; parentsRest.head ( ) . build ( source , destination , parentsRest.tail ( ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; updateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel.getSearchCommand ( ) . execute ( ) ; updateActionAvailability ( ) ; }
Source:
private void assertGetHostsForStorageOperationCorrectStoragePool ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : result ) { org.junit.Assert.assertEquals ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI , vds.getStoragePoolId ( ) ) ; } }

Target:
private void assertGetHostsForStorageOperationCorrectStoragePool ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : result ) { org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI , vds.getStoragePoolId ( ) ) ; } }
Source:
public void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.column.Context context , com.google.gwt.dom.client.Element parent , com.google.gwt.resources.client.ImageResource value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < com.google.gwt.resources.client.ImageResource > valueUpdater ) { java.lang.String eventType = event.getType ( ) ; handleTitlePanel ( eventType , parent ) ; }

Target:
public void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.column.Context context , com.google.gwt.dom.client.Element parent , com.google.gwt.resources.client.ImageResource value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < com.google.gwt.resources.client.ImageResource > valueUpdater ) { tooltipPanel.handleNativeBrowserEvent ( parent.getOffsetParent ( ) , event ) ; }
Source:
public void Search ( ) { super . Search ( ) ; forceRefreshWithoutTimers ( ) ; }

Target:
public void search ( ) { super . search ( ) ; forceRefreshWithoutTimers ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.open ( dynamicMessages.consoleClientResourcesUrl ( ) , "_blank" , null ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.open ( dynamicMessages.consoleClientResourcesUrl ( ) , "_blank" , "resizable=yes,scrollbars=yes" ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "UpdateAuditLog" , getSqlMapper ( event ) ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void postProcess ( org.jboss.resteasy.core.ServerResponse response ) { org.ovirt.engine.api.common.invocation.Current.currents.set ( null ) ; }

Target:
public java.lang.String getSessionId ( ) { return sessionId ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.get ( existing_bookmark.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existing_bookmark.getId ( ) , result.getId ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.get ( existing_bookmark.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existing_bookmark.getId ( ) , result.getId ( ) ) ; }
Source:
public void addOrUpdateTaskInDB ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . saveOrUpdate ( asyncTask ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.AsyncTasks getByVdsmTaskId ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) { return coCoAsyncTaskHelper.getByVdsmTaskId ( vdsmTaskId ) ; }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryParametersBase getParameters ( ) { org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; parameters.setFiltered ( true ) ; return parameters ; }

Target:
private org.ovirt.engine.core.common.queries.QueryParametersBase getParameters ( ) { org.ovirt.engine.core.common.queries.QueryParametersBase parameters = new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ; parameters.setFiltered ( true ) ; return parameters ; }
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getDbUser ( ) { if ( ( dbUser ) == null ) { dbUser = org.ovirt.engine.core.bll.VmPoolUserCommandBase.getDbUserDao ( ) . get ( getAdUserId ( ) ) ; } return dbUser ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getDbUser ( ) { if ( ( dbUser ) == null ) { dbUser = dbUserDao.get ( getAdUserId ( ) ) ; } return dbUser ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addClickHandler ( com.google.gwt.event.dom.client.ClickHandler handler ) { return addDomHandler ( handler , com.google.gwt.event.dom.client.ClickEvent.getType ( ) ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addClickHandler ( com.google.gwt.event.dom.client.ClickHandler handler ) { return listGroupItem.addDomHandler ( handler , com.google.gwt.event.dom.client.ClickEvent.getType ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionByIdQuery.getParameters ( ) . getServerConnectionId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionByIdQuery.getQueryReturnValue ( ) . setReturnValue ( storageServerConnectionDao.get ( org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionByIdQuery.getParameters ( ) . getServerConnectionId ( ) ) ) ; }
Source:
public void testAnyAdminRoleForUserAndGroups ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Role > result = dao.getAnyAdminRoleForUserAndGroups ( org.ovirt.engine.core.dao.RoleDaoTest.USER_ID , org.ovirt.engine.core.dao.RoleDaoTest.GROUP_IDS , ApplicationMode.AllModes.getValue ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testNoAdminRoleForUserAndGroups ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Role > result = dao.getAnyAdminRoleForUserAndGroups ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , org.ovirt.engine.core.dao.RoleDaoTest.GROUP_IDS , ApplicationMode.AllModes.getValue ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.DeactivateStorageDomainWithOvfUpdate , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( guid , dataCenterId ) , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { boolean forceMaintenance = ( action.isSetForce ( ) ) ? action.isForce ( ) : false ; return doAction ( ActionType.DeactivateStorageDomainWithOvfUpdate , new org.ovirt.engine.core.common.action.DeactivateStorageDomainWithOvfUpdateParameters ( guid , dataCenterId , forceMaintenance ) , action ) ; }
Source:
public void updateGlusterHookInSync ( org.ovirt.engine.core.compat.Guid hookId , boolean inSync ) ;

Target:
public void saveOrUpdateGlusterServerHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverHook ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;
Source:
public org.ovirt.engine.api.model.Job get ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ; return performGet ( VdcQueryType.GetJobByJobId , params ) ; }

Target:
public org.ovirt.engine.api.model.Job get ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ; return performGet ( QueryType.GetJobByJobId , params ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromAuditLog" , org.ovirt.engine.core.dao.AuditLogDAODbFacadeImpl.auditLogRowMapper , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.AuditLog getByOriginAndCustomEventId ( java.lang.String origin , int customEventId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "origin" , origin ) . addValue ( "custom_event_id" , customEventId ) ; return getCallsHandler ( ) . executeRead ( "GetAuditLogByOriginAndCustomEventId" , org.ovirt.engine.core.dao.AuditLogDAODbFacadeImpl.auditLogRowMapper , parameterSource ) ; }
Source:
protected void subTabLayoutPanelSelectionChanged ( java.lang.Integer selectedItem ) { if ( ( importModel ) != null ) { importModel.setActiveDetailModel ( importModel.getDetailModels ( ) . get ( selectedItem ) ) ; } }

Target:
protected void subTabLayoutPanelSelectionChanged ( java.lang.Integer selectedItem ) { if ( ( importModel ) != null ) { importModel.setActiveDetailModel ( ( ( org.ovirt.engine.ui.uicommonweb.models.HasEntity < ? > ) ( importModel.getDetailModels ( ) . get ( selectedItem ) ) ) ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > createDiskList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( ) { { add ( new org.ovirt.engine.core.common.businessentities.DiskImage ( ) { { setId ( GUIDS [ 0 ] ) ; } } ) ; } } ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > createDiskList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) { { add ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) { { setId ( GUIDS [ 0 ] ) ; } } ) ; } } ; }
Source:
public org.ovirt.engine.api.resource.AssignedTagResource getAssignedTagSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedTagResource ( id , this ) ) ; }

Target:
protected org.ovirt.engine.api.model.Tag doPopulate ( org.ovirt.engine.api.model.Tag model , org.ovirt.engine.core.common.businessentities.Tags entity ) { return model ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorage ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.storage.export.GetAllFromExportDomainQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.export.GetAllFromExportDomainQuery.getParameters ( ) . getStoragePoolId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorage ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStoragePoolId ( ) ) ; }
Source:
public void testDefaultRouteWhenOutOfSync ( ) { network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testDefaultRouteWhenOutOfSync ( ) { network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }