auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
java.lang.String getConsoleUserName ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = org.ovirt.engine.core.bll.SetVmTicketCommand.getCurrentUser ( ) ; java.lang.String domain = user.getDomain ( ) ; java.lang.String name = user.getLoginName ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( name ) ) { return null ; } if ( ( name.contains ( "@" ) ) || ( org.apache.commons.lang.StringUtils.isEmpty ( domain ) ) ) { return name ; } return ( name + "@" ) + domain ; }

Target:
java.lang.String getConsoleUserName ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = org.ovirt.engine.core.bll.SetVmTicketCommand.getCurrentUser ( ) ; java.lang.String domain = user.getDomain ( ) ; java.lang.String name = user.getLoginName ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( name ) ) { return null ; } if ( ( name.contains ( "@" ) ) || ( org.apache.commons.lang.StringUtils.isEmpty ( domain ) ) ) { return name ; } return ( name + "@" ) + domain ; }
Source:
public org.ovirt.engine.core.common.businessentities.SessionState getSession ( ) { return this . vmDynamic.getsession ( ) ; }

Target:
public void setGuestCurrentUserName ( java.lang.String value ) { this . vmDynamic.setGuestCurrentUserName ( value ) ; }
Source:
void initComboBox ( ) { sysPrepDomainNameListBoxEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < java.lang.Object > ( ) ; sysPrepDomainNameTextBoxEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelTextBoxEditor ( ) ; sysPrepDomainNameComboBox = new org.ovirt.engine.ui.common.widget.ComboBox ( sysPrepDomainNameListBoxEditor , sysPrepDomainNameTextBoxEditor ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getvds_name ( ) ; }
Source:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { log ( auditLogable , logType , "" ) ; }

Target:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { log ( auditLogable , logType , "" ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.HypervisorType gethypervisor_type ( ) { return mVdsDynamic.gethypervisor_type ( ) ; }

Target:
public java.lang.String getConsoleAddress ( ) { return mVdsStatic.getConsoleAddress ( ) ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.HibernateVmCommand.getVmId ( ) . toString ( ) , LockingGroup.VM.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.HibernateVmCommand.getVmId ( ) . toString ( ) , LockMessagesMatchUtil.VM ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.clusterList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ; SetDefaultNames4 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.clusterList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ; setDefaultNames4 ( ) ; }
Source:
public void setLiveSnapshotSupport ( java.lang.Boolean value ) { vdsDynamic.setLiveSnapshotSupport ( value ) ; }

Target:
public void setHostedEngineHost ( boolean value ) { hostedEngineHost = value ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StoragePool ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StoragePool , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void diskSnapshotsDontExist ( ) { org.junit.Assert.assertThat ( validator.diskSnapshotsNotExist ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_NOT_EXIST ) ) ; }

Target:
public void diskSnapshotsDontExist ( ) { org.junit.Assert.assertThat ( validator.diskSnapshotsNotExist ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_NOT_EXIST ) ) ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmId ( ) . toString ( ) , LockingGroup.VM.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getParameters ( ) . isNeedsLocking ( ) ? java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmId ( ) . toString ( ) , LockingGroup.VM.name ( ) ) : null ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , false ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.endAction ( ) ; }
Source:
protected void updateDeviceProperties ( ) { oldVmDevice.setIsPlugged ( false ) ; oldVmDevice.setAddress ( "" ) ; oldVmDevice.setLogicalName ( null ) ; org.ovirt.engine.core.bll.storage.disk.HotUnPlugDiskFromVmCommand.getVmDeviceDao ( ) . update ( oldVmDevice ) ; }

Target:
protected void updateDeviceProperties ( ) { oldVmDevice.setIsPlugged ( false ) ; oldVmDevice.setAddress ( "" ) ; oldVmDevice.setLogicalName ( null ) ; vmDeviceDao.update ( oldVmDevice ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createLabeledNic ( java.lang.String string , java.lang.String networkName , java.lang.String ... labels ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = createNic ( "nic0" , networkName ) ; nic.setLabels ( new java.util.HashSet < > ( java.util.Arrays.asList ( labels ) ) ) ; return nic ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createLabeledNic ( java.lang.String nicName , java.lang.String networkName , java.lang.String ... labels ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = createNic ( nicName , networkName ) ; nic.setLabels ( new java.util.HashSet < > ( java.util.Arrays.asList ( labels ) ) ) ; return nic ; }
Source:
protected void failedToRunVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } }

Target:
protected void failedToRunVm ( ) { try { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
protected org.ovirt.engine.core.common.action.VmDiskOperationParameterBase createParameters ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskInfo = createDiskImage ( ) ; return new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( vmId , diskInfo ) ; }

Target:
protected org.ovirt.engine.core.common.action.VmDiskOperationParameterBase createParameters ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskInfo = createDiskImage ( ) ; return new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( diskInfo.getId ( ) , vmId ) , diskInfo ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData setVmDynamic ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic ) { this . vmDynamic = vmDynamic ; return this ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VdsmVm setVmDynamic ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic ) { this . vmDynamic = vmDynamic ; return this ; }
Source:
public void diskImagesDontBelongToSameImageGroup ( ) { disk1.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; disk2.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( validator.diskImagesBelongToSameImageGroup ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_DISKS_SNAPSHOTS_DONT_BELONG_TO_SAME_DISK ) ) ; }

Target:
public void diskImagesDontBelongToSameImageGroup ( ) { disk1.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; disk2.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( validator.diskImagesBelongToSameImageGroup ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISKS_SNAPSHOTS_DONT_BELONG_TO_SAME_DISK ) ) ; }
Source:
public java.lang.String getguest_cur_user_name ( ) { return this . mVmDynamic.getguest_cur_user_name ( ) ; }

Target:
public void setLastStartTime ( java.util.Date value ) { this . vmDynamic.setLastStartTime ( value ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < T > setIsChangable ( boolean value ) { super . setIsChangable ( value ) ; return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < T > setIsChangeable ( boolean value ) { super . setIsChangeable ( value ) ; return this ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; java.lang.Object subResource = collection.getDeviceResource ( GUIDS [ 0 ] . toString ( ) ) ; assertFalse ( ( subResource instanceof org.ovirt.engine.api.resource.DeviceResource ) ) ; assertTrue ( ( subResource instanceof org.ovirt.engine.api.resource.ReadOnlyDeviceResource ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Disk model , int index ) { org.ovirt.engine.api.restapi.resource.BackendTemplateDisksResourceTest.verifyModelSpecific ( model , index ) ; verifyLinks ( model ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsVirtioScsiEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getMemoryBalloonDeviceEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public java.lang.String getvds_group_description ( ) { return this . vds_group_descriptionField ; }

Target:
public java.lang.String getHibernationVolHandle ( ) { return this . vmDynamic.gethibernation_vol_handle ( ) ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; initNetworkInterfaces ( ) ; }
Source:
public void testGetQuotaByExistingNameWIthNoMatchingStoragePool ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Quota quotaGeneralToSpecific = dao.getQuotaByQuotaName ( "Quota General2" ) ; org.junit.Assert.assertEquals ( null , quotaGeneralToSpecific ) ; }

Target:
public void testGetQuotaByExistingNameWIthNoMatchingStoragePool ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Quota quotaGeneralToSpecific = dao.getQuotaByQuotaName ( "Quota General" , FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.Assert.assertEquals ( null , quotaGeneralToSpecific ) ; }
Source:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return org.ovirt.engine.core.common.businessentities.VmTemplate._vmProperties ; }

Target:
public boolean isDisabled ( ) { return disabled ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel ) ( result.getState ( ) ) ) ; localModel.getWindow ( ) . StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { }
Source:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVmDeviceDao ( ) . saveAll ( newVmDevices ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVmJobDao ( ) . removeAll ( vmJobIdsToRemove ) ; return null ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeTypeForPool ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return storageType.isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeTypeForStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return storageType.isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; }
Source:
private org.ovirt.engine.api.model.StorageDomain getStorageDomainById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }
Source:
protected java.lang.String getTooltip ( java.lang.String value ) { return getEscapedValue ( ( ( title ) != null ? title : value ) ) . asString ( ) ; }

Target:
protected java.lang.String getTooltip ( java.lang.String value ) { return new com.google.gwt.user.client.ui.HTML ( ( ( title ) != null ? title : value ) ) . getText ( ) ; }
Source:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmCommand.failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid getDestinationVdsId ( ) { org.ovirt.engine.core.common.businessentities.VDS destinationVds = getDestinationVds ( ) ; return destinationVds != null ? destinationVds.getId ( ) : null ; }
Source:
private void mockBackend ( ) { org.mockito.Mockito.when ( backend.runAction ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.ActionType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.CpuProfileParameters.class ) ) ) . thenReturn ( new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ) ; }

Target:
private void mockBackend ( ) { org.mockito.Mockito.when ( backend.runAction ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.ActionType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.CpuProfileParameters.class ) ) ) . thenReturn ( new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ) ; }
Source:
public void oneSequenceThreeSubsequence ( ) { org.junit.Assert.assertFalse ( BootSequence.C.containsSubsequence ( BootSequence.DCN ) ) ; }

Target:
public void oneSequenceThreeSubsequence ( ) { org.junit.jupiter.api.Assertions.assertFalse ( BootSequence.C.containsSubsequence ( BootSequence.DCN ) ) ; }
Source:
public org.ovirt.engine.api.model.HostNIC addParents ( org.ovirt.engine.api.model.HostNIC nic ) { nic.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; nic.getHost ( ) . setId ( hostId ) ; return nic ; }

Target:
public org.ovirt.engine.api.model.HostNic addParents ( org.ovirt.engine.api.model.HostNic nic ) { nic.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; nic.getHost ( ) . setId ( hostId ) ; return nic ; }
Source:
public int compareTo ( ovirt_engine_dwh.configurationsync_3_5.ConfigurationSync.delete_usersStruct other ) { int returnValue = - 1 ; returnValue = checkNullsAndCompare ( this . user_join_id , other.user_join_id ) ; if ( returnValue != 0 ) { return returnValue ; } return returnValue ; }

Target:
public int compareTo ( ovirt_engine_dwh.configurationsync_3_5.ConfigurationSync.delete_usersStruct other ) { int returnValue = - 1 ; returnValue = checkNullsAndCompare ( this . user_id , other.user_id ) ; if ( returnValue != 0 ) { return returnValue ; } return returnValue ; }
Source:
public javax.ws.rs.core.Response remove ( java.lang.String id , org.ovirt.engine.api.model.Host host ) { return null ; }

Target:
public javax.ws.rs.core.Response remove ( java.lang.String id , org.ovirt.engine.api.model.Action action ) { return null ; }
Source:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getCpuFlagsManagerHandler ( ) . checkIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void updateHost ( org.ovirt.vdsmfake.domain.Host host ) { org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . updateHost ( host ) ; }

Target:
public void updateHost ( org.ovirt.vdsmfake.domain.Host host ) { vdsmManager.updateHost ( host ) ; }
Source:
public final void setEventBus ( com.google.gwt.event.shared.EventBus eventBus ) { assert eventBus != null : "EventBus cannot be null" ; assert ( this . eventBus ) == null : "EventBus is already set" ; this . eventBus = eventBus ; registerHandlers ( ) ; }

Target:
public void fireEvent ( com.google.gwt.event.shared.GwtEvent < ? > event ) { getEventBus ( ) . fireEventFromSource ( event , this ) ; }
Source:
private boolean isVnicAttachedToExternalNetwork ( ) { final org.ovirt.engine.core.common.businessentities.network.Network network = org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getNetworkByVnicProfileId ( nic.getVnicProfileId ( ) ) ; return ( network != null ) && ( network.isExternal ( ) ) ; }

Target:
private boolean isVnicAttachedToExternalNetwork ( ) { final org.ovirt.engine.core.common.businessentities.network.Network network = org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.UpdateVmNicValidator.getNetwork ( ) ; return ( network != null ) && ( network.isExternal ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.ClusterFeaturesResource getClusterFeaturesResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.resource.ClusterFeaturesResource getClusterFeaturesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterFeaturesResource ( id ) ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VncInfoModel object ) { org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VncInfoPopupWidget.Driver.driver.edit ( object ) ; message.setHTML ( ( ( java.lang.String ) ( object.getVncMessage ( ) . getEntity ( ) ) ) ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VncInfoModel object ) { driver.edit ( object ) ; message.setHTML ( ( ( java.lang.String ) ( object.getVncMessage ( ) . getEntity ( ) ) ) ) ; }
Source:
private void RemoveTagAndChildren ( org.ovirt.engine.core.common.businessentities.Tags tag ) { for ( org.ovirt.engine.core.common.businessentities.Tags child : tag.getChildren ( ) ) { RemoveTagAndChildren ( child ) ; } RemoveTagFromHash ( tag ) ; }

Target:
private void removeTagAndChildren ( org.ovirt.engine.core.common.businessentities.Tags tag ) { for ( org.ovirt.engine.core.common.businessentities.Tags child : tag.getChildren ( ) ) { removeTagAndChildren ( child ) ; } removeTagFromHash ( tag ) ; }
Source:
public void setCompress ( boolean compress ) { this . compress = compress ; }

Target:
public void setSsoRevokeUrl ( java.lang.String ssoRevokeUrl ) { this . ssoRevokeUrl = ssoRevokeUrl ; }
Source:
private void Cancel ( ) { setWindow ( null ) ; ResetData ( ) ; }

Target:
private void Cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
private void assertCanDoActionSuccess ( ) { org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . isEmpty ( ) ) ; }

Target:
private void assertValidateSuccess ( ) { org.junit.Assert.assertTrue ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus getRawValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity object ) { return object.getStatus ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getNewVolumeCommand ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineVirtualDiskSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineVirtualDiskPresenter.constants.virtualMachineVirtualDiskSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
private void readNetworkItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = getNetwotkInterface ( node ) ; updateSingleNic ( node , iface ) ; vmBase.getInterfaces ( ) . add ( iface ) ; readManagedVmDevice ( node , iface.getId ( ) ) ; }

Target:
private void readCdItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { readManagedVmDevice ( node , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
protected void updateProfileChangability ( ) { getProfile ( ) . setIsChangable ( true ) ; }

Target:
protected void updateProfileChangability ( ) { getProfile ( ) . setIsChangeable ( true ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogSeverity getseverity ( ) { return org.ovirt.engine.core.common.AuditLogSeverity.forValue ( severity ) ; }

Target:
public org.ovirt.engine.core.common.AuditLogSeverity getSeverity ( ) { return org.ovirt.engine.core.common.AuditLogSeverity.forValue ( severity ) ; }
Source:
public static void addPermissionsOnNetwork ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid networkId ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( userId , networkId , PredefinedRoles.NETWORK_ADMIN ) ; }

Target:
public static void addPermissionsOnNetwork ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid networkId ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( userId , networkId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.Network ) ; }
Source:
public void setDefaultStartTime ( org.ovirt.engine.core.compat.TimeSpan value ) { defaultStartTime = value ; }

Target:
public void setDefaultEndTime ( org.ovirt.engine.core.compat.TimeSpan value ) { defaultEndTime = value ; }
Source:
private void setSubnetName ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > subnetName ) { this . subnetName = subnetName ; }

Target:
private void setCreateSubnet ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > createSubnet ) { this . createSubnet = createSubnet ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getAllForDiskProfile ( org.ovirt.engine.core.compat.Guid diskProfileId ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getAllForDiskProfiles ( java.util.Collection < org.ovirt.engine.core.compat.Guid > diskProfileIds ) ;
Source:
public void render ( org.ovirt.engine.ui.common.widget.table.column.Cell.Context context , com.google.gwt.safehtml.shared.SafeHtml value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { if ( value != null ) { sb.append ( value ) ; } }

Target:
public void render ( com.google.gwt.cell.client.Cell.Context context , com.google.gwt.safehtml.shared.SafeHtml value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb , java.lang.String id ) { if ( value != null ) { sb.append ( value ) ; } }
Source:
public void testCanDoActionNonExistingStorageDomain ( ) { org.junit.Assert.assertFalse ( "canDoAction shouldn't be possible for a non-existent storage domain" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessages ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }

Target:
public void testCanDoActionNonExistingStorageDomain ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction shouldn't be possible for a non-existent storage domain" , command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }
Source:
public void preventRollback ( ) { getParameters ( ) . setExecutionIndex ( 0 ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getParameters ( ) . getImageId ( ) , ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getParameters ( ) . getDestinationImageId ( ) , ImageStatus.OK ) ; }

Target:
public void preventRollback ( ) { getParameters ( ) . setExecutionIndex ( 0 ) ; org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }
Source:
public void reuseSession ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; } else { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; } }

Target:
public void reuseSession ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; scheduleKeepAliveHeartbeat ( ) ; } else { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; } }
Source:
protected boolean verifyDisksNotLocked ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disks ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage disk : disks ) { if ( ( disk.getimageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.LOCKED ) ) { return false ; } } return true ; }

Target:
protected boolean verifyDisksNotLocked ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disks ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage disk : disks ) { if ( ( disk.getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.LOCKED ) ) { return false ; } } return true ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > filterClusters ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters ) { return null ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > filterClusters ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters ) { return java.util.Collections.emptyList ( ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "HttpLocationInfo [url=" + ( url ) ) + ", headers=" ) + ( headers ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "url" , url ) . append ( "headers" , headers ) . build ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , org.ovirt.engine.api.model.NIC nic ) { return new org.ovirt.engine.core.common.action.AddVmTemplateInterfaceParameters ( parentId , setNetwork ( nic , entity ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , org.ovirt.engine.api.model.NIC nic ) { return new org.ovirt.engine.core.common.action.AddVmTemplateInterfaceParameters ( parentId , setNetwork ( nic , entity ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForPool ( org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getStorageType ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForStorageDomain ( org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; }
Source:
protected boolean canDoAction ( ) { boolean retValue = true ; if ( org.apache.commons.lang.StringUtils.isBlank ( org.ovirt.engine.core.bll.AddJobCommand.getParameters ( ) . getDescription ( ) ) ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_EMPTY_DESCRIPTION ) ; retValue = false ; } return retValue ; }

Target:
protected boolean validate ( ) { boolean retValue = true ; if ( org.apache.commons.lang.StringUtils.isBlank ( org.ovirt.engine.core.bll.AddJobCommand.getParameters ( ) . getDescription ( ) ) ) { addValidationMessage ( EngineMessage.ACTION_TYPE_EMPTY_DESCRIPTION ) ; retValue = false ; } return retValue ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogoffVDSCommand.getBroker ( ) . desktopLogoff ( mVmId.toString ( ) , java.lang.String.valueOf ( mForce ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogoffVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogoffVDSCommand.getBroker ( ) . desktopLogoff ( mVmId.toString ( ) , java.lang.String.valueOf ( mForce ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogoffVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
protected void HandleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; } }

Target:
public java.lang.String getVmtDescription ( ) { return this . vmtDescription ; }
Source:
public boolean isAllowSnapshot ( ) { return ! ( isShareable ( ) ) ; }

Target:
public boolean isAllowSnapshot ( ) { return ( ! ( isShareable ( ) ) ) && ( ! ( java.lang.Boolean.TRUE.equals ( getReadOnly ( ) ) ) ) ; }
Source:
public void moveShareableDisk ( ) { initializeCommand ( ImageOperation.Move ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void moveDiskToGluster ( ) { initializeCommand ( ImageOperation.Move ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterSnapshotActivate ( java.lang.String snapshotName , boolean force ) ;
Source:
private boolean isUpdatedToNonShareable ( org.ovirt.engine.core.common.businessentities.Disk oldDisk , org.ovirt.engine.core.common.businessentities.Disk newDisk ) { return ( ! ( newDisk.isShareable ( ) ) ) && ( oldDisk.isShareable ( ) ) ; }

Target:
private boolean isUpdatedToNonShareable ( org.ovirt.engine.core.common.businessentities.storage.Disk oldDisk , org.ovirt.engine.core.common.businessentities.storage.Disk newDisk ) { return ( ! ( newDisk.isShareable ( ) ) ) && ( oldDisk.isShareable ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkClusterSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkClusterSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
public void macAddressIsNullForUpdate ( ) throws java.lang.Exception { assertNicValidation ( createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , false , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }

Target:
public void macAddressIsNullForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertNicValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , false , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }
Source:
protected org.ovirt.engine.api.model.HostNIC populate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface entity ) { return parent.addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.HostNIC doPopulate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { return parent.doPopulate ( model , entity ) ; }
Source:
private boolean supportsGlusterGeoRepFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterGeoReplication ( cluster.getcompatibility_version ( ) ) ) ; }

Target:
private boolean supportsGlusterGeoRepFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( getGlusterUtil ( ) . isGlusterGeoReplicationSupported ( cluster.getcompatibility_version ( ) , cluster.getId ( ) ) ) ; }
Source:
public void oldHostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( oldHost , null , false ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }

Target:
public void oldHostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( oldHost , null , false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }
Source:
protected void setupDisk ( ) { disk.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; disk.setVmEntityType ( VmEntityType.VM ) ; }

Target:
protected void setupDisk ( ) { disk.setId ( diskId ) ; disk.setVmEntityType ( VmEntityType.VM ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult providerExist ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( providerDao.get ( libvirtSecret.getProviderId ( ) ) ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult providerExist ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( providerDao.get ( libvirtSecret.getProviderId ( ) ) ) == null ) ) ; }
Source:
private boolean shouldUpdatePropertiesOtherThanSize ( ) { return ( shouldUpdateDiskProperties ( ) ) || ( shouldUpdateImageProperties ( ) ) ; }

Target:
private boolean shouldUpdatePropertiesOtherThanSizeAndAlias ( ) { return ( shouldUpdateDiskProperties ( ) ) || ( shouldUpdateImageProperties ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > findGroupsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryGroups ( extension , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.GROUP ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > findGroupsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryGroups ( extension , namespace , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.GROUP ) , false , false ) ; }
Source:
public void validateFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 , true ) , 2 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithDuplicateBricks ( ) { initTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 , true ) , 2 , 0 , false ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public < T > void set ( T current ) { getMap ( ) . put ( current.getClass ( ) , current ) ; }

Target:
public org.ovirt.engine.core.common.mode.ApplicationMode getApplicationMode ( ) { return applicationMode ; }
Source:
public java.util.Date getcpu_over_commit_time_stamp ( ) { return this . cpu_over_commit_time_stamp ; }

Target:
public java.lang.String getOnlineCpus ( ) { return this . onlineCpus ; }
Source:
protected boolean addVmLease ( org.ovirt.engine.core.compat.Guid leaseStorageDomainId , org.ovirt.engine.core.compat.Guid vmId ) { if ( leaseStorageDomainId == null ) { return true ; } return runInternalActionWithTasksContext ( ActionType.AddVmLease , new org.ovirt.engine.core.common.action.VmLeaseParameters ( getStoragePoolId ( ) , leaseStorageDomainId , vmId ) ) . getSucceeded ( ) ; }

Target:
public void onSuccess ( ) { ovfDataUpdater.triggerNow ( ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VdsmVm > build ( ) { return pairOf ( null , createVmInternalData ( ) ) ; }

Target:
org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm > build ( ) { return pairOf ( null , createVmInternalData ( ) ) ; }
Source:
public boolean canMoveToMaintenance ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getvm_count ( ) ) == 0 ; }

Target:
public boolean canMoveToMaintenance ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getVmCount ( ) ) == 0 ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.VnicProfileView , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkProfileListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkProfileSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.VnicProfileView , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkProfileListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.vnicProfilesMainTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public org.ovirt.engine.api.model.NIC addParents ( org.ovirt.engine.api.model.NIC nic ) { org.ovirt.engine.api.model.InstanceType parent = new org.ovirt.engine.api.model.InstanceType ( ) ; parent.setId ( parentId.toString ( ) ) ; nic.setInstanceType ( parent ) ; return nic ; }

Target:
public org.ovirt.engine.api.model.Nic addParents ( org.ovirt.engine.api.model.Nic nic ) { org.ovirt.engine.api.model.InstanceType parent = new org.ovirt.engine.api.model.InstanceType ( ) ; parent.setId ( parentId.toString ( ) ) ; nic.setInstanceType ( parent ) ; return nic ; }
Source:
public void setPlugged ( boolean isPlugged ) { this . isPlugged = isPlugged ; }

Target:
public void updateOriginalTemplateName ( org.ovirt.engine.core.compat.Guid originalTemplateId , java.lang.String originalTemplateName ) { getCallsHandler ( ) . executeModification ( "UpdateOriginalTemplateName" , getCustomMapSqlParameterSource ( ) . addValue ( "original_template_id" , originalTemplateId ) . addValue ( "original_template_name" , originalTemplateName ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isUp ( ) { return validateStatus ( VDSStatus.Up , VdcBllMessages.VAR__HOST_STATUS__UP ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isUp ( ) { return validateStatus ( VDSStatus.Up , EngineMessage.VAR__HOST_STATUS__UP ) ; }
Source:
public void setIpv4BootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol value ) { if ( ( ipv4BootProtocol ) != value ) { ipv4BootProtocol = value ; bootProtocolChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocol" ) ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > getIpv6Gateway ( ) { return ipv6Gateway ; }
Source:
public void portMirroringEnableSupported ( ) { mockVnicProfilePortMirroringChange ( false ) ; mockVmsUsingVnicProfile ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void portMirroringEnableSupported ( ) { mockVnicProfilePortMirroringChange ( false ) ; mockVmsUsingVnicProfile ( java.util.Collections.emptyList ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }