auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean isVmDuringInitiating ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( java.lang.Boolean ) ( getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.IsVmDuringInitiating , new org.ovirt.engine.core.common.vdscommands.IsVmDuringInitiatingVDSCommandParameters ( vm.getId ( ) ) ) . getReturnValue ( ) ) ) ; }

Target:
protected boolean isVmDuringInitiating ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( java.lang.Boolean ) ( getBackend ( ) . getResourceManager ( ) . runVdsCommand ( VDSCommandType.IsVmDuringInitiating , new org.ovirt.engine.core.common.vdscommands.IsVmDuringInitiatingVDSCommandParameters ( vm.getId ( ) ) ) . getReturnValue ( ) ) ) ; }
Source:
private boolean isTypeTenantOrAuthUrlAware ( ) { org.ovirt.engine.core.common.businessentities.ProviderType type = getType ( ) . getSelectedItem ( ) ; return ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_IMAGE ) ) ; }

Target:
private boolean isTypeTenantOrAuthUrlAware ( ) { org.ovirt.engine.core.common.businessentities.ProviderType type = getType ( ) . getSelectedItem ( ) ; return ( ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_IMAGE ) ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_VOLUME ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { model.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { model.stopProgress ( ) ; cancel ( ) ; }
Source:
private void updateVmDevices ( java.util.List < java.lang.String > vmsToUpdate ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] vms = getVmInfo ( vmsToUpdate ) ; updateVmDevices ( vms ) ; }

Target:
protected void updateVmDevices ( java.util.List < java.lang.String > vmsToUpdate ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] vms = getVmInfo ( vmsToUpdate ) ; if ( vms != null ) { for ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct vm : vms ) { processVmDevices ( vm ) ; } } }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command == ( getFilterServicesCommand ( ) ) ) { filterServices ( ) ; } else if ( command == ( getClearFilterServicesCommand ( ) ) ) { clearFilters ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getFilterServicesCommand ( ) ) ) { filterServices ( ) ; } else if ( command == ( getClearFilterServicesCommand ( ) ) ) { clearFilters ( ) ; } }
Source:
protected boolean canLockSnapshot ( ) { return validate ( new org.ovirt.engine.core.bll.snapshots.SnapshotsValidator ( ) . vmNotDuringSnapshot ( getSnapshot ( ) . getVmId ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.bll.snapshots.SnapshotsValidator createSnapshotsValidator ( ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsValidator ( ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > getDiskInterfaceList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO } ) ) ; }

Target:
public static boolean isWindowsOsType ( java.lang.Integer osType ) { if ( osType == null ) { return false ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.windowsOsIds.contains ( osType ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagsByVdsIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForVds ( org.ovirt.engine.core.bll.GetTagsByVdsIdQuery.getParameters ( ) . getVdsId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagsByVdsIdQuery.getQueryReturnValue ( ) . setReturnValue ( tagDao.getAllForVds ( org.ovirt.engine.core.bll.GetTagsByVdsIdQuery.getParameters ( ) . getVdsId ( ) ) ) ; }
Source:
public void managementNetworkRequiredValidManagementRequired ( ) { testmanagementNetworkRequired ( true , true , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }

Target:
public void managementNetworkRequiredValidManagementRequired ( ) { testManagementNetworkRequired ( true , true , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }
Source:
public void error ( java.lang.Object msg , java.lang.Throwable t ) { log.error ( addPrefixToLogMessage ( msg ) , t ) ; }

Target:
public void info ( java.lang.Object msg ) { log.info ( convertToString ( msg ) ) ; }
Source:
public void setLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser value ) { if ( ( loggedInUser ) != value ) { loggedInUser = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "LoggedInUser" ) ) ; } }

Target:
public void setLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser value ) { if ( ( loggedInUser ) != value ) { loggedInUser = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LoggedInUser" ) ) ; } }
Source:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . newNameWithSuffixCannotContainBlankOrSpecialChars ( length ) ; }

Target:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . nameMustConataionOnlyAlphanumericChars ( maxClonedNameLength ) ; }
Source:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsDynamic.setcpu_over_commit_time_stamp ( value ) ; }

Target:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsStatistics.setcpu_over_commit_time_stamp ( value ) ; }
Source:
private int generateMaxLength ( ) { return ( ( getMaxNameLength ( ) ) - ( getNumOfVmsInPoolLength ( ) ) ) - 1 ; }

Target:
private int generateMaxLengthNoQuestionMarks ( ) { return ( ( getMaxNameLength ( ) ) - ( getNumOfVmsInPoolLength ( ) ) ) - 1 ; }
Source:
public void vmNotDuringSnapshotReturnsInvalidResultWhenInSnapshot ( ) throws java.lang.Exception { org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( true ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.vmNotDuringSnapshot ( vmId ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; }

Target:
public void vmNotDuringSnapshotReturnsInvalidResultWhenInSnapshot ( ) throws java.lang.Exception { org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( true ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.vmNotDuringSnapshot ( vmId ) , EngineMessage.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( ) { try { java.util.Map < java.lang.String , java.lang.Object > response = vdsServer.glusterVolumeGeoRepStatus ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterHostsPubKeyReturnForXmlRpc glusterGeoRepKeysGet ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterGeoRepKeysGet ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GlusterHostsPubKeyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.gluster.GlusterHostsPubKeyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
public void setRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . policy = policy ; }

Target:
public void setRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . policy = policy ; if ( isOpen ( ) ) { disconnect ( ) ; } }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . StopProgress ( ) ; vmListModel1.cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . stopProgress ( ) ; vmListModel1.cancel ( ) ; }
Source:
public void testFilteredGetAllWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAll ( org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testFilteredGetAllWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAll ( org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void updateUsbFilter ( ) { fetchFile ( ( ( getSpiceBaseURL ( ) ) + "usbfilter.txt" ) , usbFilterFileFetchedEvent ) ; }

Target:
public void updateUsbFilter ( ) { fetchFile ( "/ovirt-engine-files/usbfilter.txt" , usbFilterFileFetchedEvent ) ; }
Source:
public java.lang.Void runInTransaction ( ) { initImportClonedTemplateDisks ( ) ; addVmTemplateToDb ( ) ; updateOriginalTemplateNameOnDerivedVms ( ) ; addVmInterfaces ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { initImportClonedTemplateDisks ( ) ; addVmTemplateToDb ( ) ; updateOriginalTemplateNameOnDerivedVms ( ) ; addVmInterfaces ( ) ; getCompensationContext ( ) . stateChanged ( ) ; org.ovirt.engine.core.bll.VmHandler.addVmInitToDB ( getVmTemplate ( ) ) ; return null ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getVdsDao ( ) . get ( getParameters ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return vdsDao.get ( getParameters ( ) . getId ( ) ) ; }
Source:
public void updateInterfaceForVds ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { persistQosChanges ( nic ) ; getCallsHandler ( ) . executeModification ( "Updatevds_interface" , createInterfaceParametersMapper ( nic ) ) ; }

Target:
public void updateInterfaceForVds ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { hostNetworkQosDao.persistQosChanges ( nic.getId ( ) , nic.getQos ( ) ) ; getCallsHandler ( ) . executeModification ( "Updatevds_interface" , createInterfaceParametersMapper ( nic ) ) ; }
Source:
public javax.ws.rs.core.Response stopMigrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action ) ; return performAction ( VdcActionType.StopRemoveGlusterVolumeBricks , params , action , false ) ; }

Target:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action.getBricks ( ) ) ; return performAction ( VdcActionType.StartRemoveGlusterVolumeBricks , params , action , false ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.CommandEntity getCommandEntity ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
org.ovirt.engine.core.compat.CommandStatus getCommandStatus ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForCluster ( org.ovirt.engine.core.compat.Guid cluster , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;
Source:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( session ) ; }

Target:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( session ) ; }
Source:
private int getSelectedIndex ( java.lang.String value ) { java.lang.Integer index = indexForOption.get ( value ) ; if ( index == null ) { return - 1 ; } return index.intValue ( ) ; }

Target:
private int getSelectedIndex ( java.lang.String value ) { return indexForOption.getOrDefault ( value , ( - 1 ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Network incoming , org.ovirt.engine.api.model.Network entity ) { org.ovirt.engine.api.model.Network updated = this . map ( incoming , entity ) ; return new org.ovirt.engine.core.common.action.AddNetworkStoragePoolParameters ( entity.getDataCenterId ( ) , updated ) ; }

Target:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.api.model.Network entity = getNetwork ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }
Source:
public boolean isErrorEnabled ( ) { return log.isErrorEnabled ( ) ; }

Target:
public void trace ( java.lang.Object msg ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupID ) { return getAllForVdsGroup ( vdsGroupID , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForCluster ( org.ovirt.engine.core.compat.Guid cluster ) { return getAllForCluster ( cluster , null , false ) ; }
Source:
private void assertBondRemoved ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper , java.lang.String expectedBondName ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected bond ''{0}'' to be removed but it wasn''t. Removed bonds: {1}" , expectedBondName , helper.getRemovedBonds ( ) ) , helper.getRemovedBonds ( ) . contains ( expectedBondName ) ) ; }

Target:
private void assertBondRemoved ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper , java.lang.String expectedBondName ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected bond ''{0}'' to be removed but it wasn''t. Removed bonds: {1}" , expectedBondName , helper.getRemovedBonds ( ) ) , helper.getRemovedBonds ( ) . containsKey ( expectedBondName ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) . intValue ( ) ) : org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth.depth16 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) . intValue ( ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }
Source:
public boolean getfail_back ( ) { return this . mVmStatic.getfail_back ( ) ; }

Target:
public void setExportDate ( java.util.Date value ) { this . vmStatic.setExportDate ( value ) ; }
Source:
public void trace ( java.lang.Object arg0 ) { log.trace ( arg0 ) ; }

Target:
public void trace ( java.lang.Object arg0 ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( arg0 ) ) ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getCpuFlagsManagerHandler ( ) . allServerCpuList ( org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getParameters ( ) . getVersion ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( cpuFlagsManagerHandler.allServerCpuList ( org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getParameters ( ) . getVersion ( ) ) ) ; }
Source:
public void getIdByTypeReturnsNullForNonExistingType ( ) { org.junit.Assert.assertNull ( dao.getId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.PREVIEW ) ) ; }

Target:
public void getIdByTypeReturnsNullForNonExistingType ( ) { org.junit.jupiter.api.Assertions.assertNull ( dao.getId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.PREVIEW ) ) ; }
Source:
private boolean isBlankTemplate ( java.lang.Object selectedItem ) { return ( ( selectedItem != null ) && ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) ) && ( org.ovirt.engine.core.compat.Guid.OpEquality ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( selectedItem ) ) . getId ( ) , NGuid.Empty ) ) ; }

Target:
private boolean isBlankTemplate ( java.lang.Object selectedItem ) { return ( ( selectedItem != null ) && ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) ) && ( Guid.Empty.equals ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( selectedItem ) ) . getId ( ) ) ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( null , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ATTACHMENT_NOT_EXISTS ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ATTACHMENT_NOT_EXISTS ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.VGListReturnForXmlRpc getVGList ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.getVGList ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VGListReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.VGListReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterStopProcesses ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterProcessesStop ( ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
private void initTimeZones ( ) { java.util.Set < java.lang.String > timeZoneTypes = TimeZoneType.GENERAL_TIMEZONE.getTimeZoneList ( ) . keySet ( ) ; getTimeZones ( ) . setItems ( timeZoneTypes ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { validate ( true ) ; }
Source:
private void checkVmsDependentOnTemplate ( org.ovirt.engine.core.compat.Guid dataCenterId , org.ovirt.engine.core.compat.Guid storageDomainId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmsFromExportDomain , new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( dataCenterId , storageDomainId ) , new org.ovirt.engine.ui.frontend.AsyncQuery ( this , createGetVmsFromExportDomainCallback ( ) ) ) ; }

Target:
private void checkVmsDependentOnTemplate ( org.ovirt.engine.core.compat.Guid dataCenterId , org.ovirt.engine.core.compat.Guid storageDomainId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmsFromExportDomain , new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( dataCenterId , storageDomainId ) , new org.ovirt.engine.ui.uicommonweb.models.storage.AsyncQuery ( createGetVmsFromExportDomainCallback ( ) ) ) ; }
Source:
protected void executeCommand ( ) { getDiskProfileDao ( ) . update ( getParameters ( ) . getProfile ( ) ) ; getReturnValue ( ) . setActionReturnValue ( getParameters ( ) . getProfile ( ) . getId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected org.ovirt.engine.core.dao.profiles.ProfilesDao < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getProfileDao ( ) { return getDiskProfileDao ( ) ; }
Source:
protected void OnSelectedItemChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { }

Target:
protected void onSelectedItemChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { }
Source:
protected org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { if ( doesUserHavePemissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) ) ; } return null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { if ( doesUserHavePermissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) ) ; } return null ; }
Source:
public void setvm_type ( org.ovirt.engine.core.common.businessentities.VmType value ) { this . mVmStatic.setvm_type ( value ) ; }

Target:
public boolean isFailBack ( ) { return this . vmStatic.isFailBack ( ) ; }
Source:
protected boolean canAddVm ( ) { if ( org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) ) ) { return failCanDoAction ( VdcBllMessages.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) ; } return true ; }

Target:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) ) ? failCanDoAction ( VdcBllMessages.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }
Source:
public int getfreeDiskInGB ( ) { int availableDiskSize = ( ( getavailable_disk_size ( ) ) == null ) ? 0 : getavailable_disk_size ( ) ; return availableDiskSize ; }

Target:
public int getfreeDiskInGB ( ) { int availableDiskSize = ( ( getAvailableDiskSize ( ) ) == null ) ? 0 : getAvailableDiskSize ( ) ; return availableDiskSize ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { if ( ! ( object.isEnabled ( ) ) ) { return constants.disabledPolicyUnit ( ) ; } return constants.empty ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { if ( ! ( object.isEnabled ( ) ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.ManagePolicyUnitPopupView.constants.removePolicyUnit ( ) ; } return null ; }
Source:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDao ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }

Target:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDao ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }
Source:
private java.lang.String getCaCertPath ( ) { return org.ovirt.engine.core.bll.hostedengine.HostedEngineHelper.CA_CERT_PATH ; }

Target:
public org.ovirt.engine.core.compat.Guid getRunningHostId ( ) { return hostedEngineVm.getRunOnVds ( ) ; }
Source:
public void getUserIdVdcUserDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void vmTemplateIdRefDefault ( ) { final org.ovirt.engine.core.compat.Guid g = b.getVmTemplateIdRef ( ) ; org.junit.Assert.assertNull ( g ) ; }
Source:
public void setHeartbeat ( boolean isHeartbeat ) { this . isHeartbeat.set ( isHeartbeat ) ; }

Target:
public void setIncomingHeartbeat ( boolean isHeartbeat ) { this . isIncomingHeartbeat.set ( isHeartbeat ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Quota mockMemQuotaSpecificOverGrace ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.MEM_QUOTA_SPECIFIC_OVER_GRACE ) ; quota.setQuotaVdsGroups ( getQuotaVdsGroups ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.UNLIMITED_VCPU , 0 , 2048 , 5000 ) ) ; return quota ; }

Target:
private org.ovirt.engine.core.common.businessentities.Quota mockMemQuotaSpecificOverGrace ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.MEM_QUOTA_SPECIFIC_OVER_GRACE ) ; quota.setQuotaClusters ( getQuotaClusters ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.UNLIMITED_VCPU , 0 , 2048 , 5000 ) ) ; return quota ; }
Source:
public org.ovirt.engine.core.common.businessentities.OperationMode getoperation_mode ( ) { return this . mVmStatic.getoperation_mode ( ) ; }

Target:
public long getDbGeneration ( ) { return vmStatic.getDbGeneration ( ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap > getStoragePoolIsoMap ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return getStoragePoolIsoMapDao ( ) . getAllForStorage ( storageDomain.getId ( ) ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap > getStoragePoolIsoMap ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getStoragePoolIsoMapDao ( ) . getAllForStorage ( storageDomain.getId ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { addGlusterVolumeBricks ( bricksList , getParameters ( ) . getReplicaCount ( ) , getParameters ( ) . getStripeCount ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addGlusterVolumeBricks ( bricksList , getParameters ( ) . getReplicaCount ( ) , getParameters ( ) . getStripeCount ( ) , getParameters ( ) . isForce ( ) ) ; return null ; }
Source:
public org.ovirt.engine.core.common.errors.VdcFault getFault ( ) { if ( ( fault ) == null ) { fault = new org.ovirt.engine.core.common.errors.VdcFault ( ) ; fault.setError ( VdcBllErrors.ENGINE ) ; fault.setMessage ( VdcBllErrors.ENGINE.name ( ) ) ; } return fault ; }

Target:
public org.ovirt.engine.core.common.errors.VdcFault getFault ( ) { if ( ( fault ) == null ) { fault = new org.ovirt.engine.core.common.errors.VdcFault ( ) ; fault.setError ( EngineError.ENGINE ) ; fault.setMessage ( EngineError.ENGINE.name ( ) ) ; } return fault ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Disk.class , org.ovirt.engine.core.common.VdcObjectType.Disk ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Disk.class , org.ovirt.engine.core.common.VdcObjectType.Disk ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isShareable ( ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.shareable ( ) : null ) ) ; return object.isShareable ( ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.resources.shareableDiskIcon ( ) : null ; }

Target:
public java.lang.String getDefaultTitle ( ) { return org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.shareable ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNotChanged ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_CANNOT_UPDATE_CLUSTER ) . unless ( oldHost.getVdsGroupId ( ) . equals ( getHost ( ) . getVdsGroupId ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNotChanged ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_CANNOT_UPDATE_CLUSTER ) . unless ( oldHost.getClusterId ( ) . equals ( getHost ( ) . getClusterId ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmPoolType getRawValue ( org.ovirt.engine.core.common.businessentities.vm_pools object ) { return object.getvm_pool_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmPoolType getRawValue ( org.ovirt.engine.core.common.businessentities.VmPool object ) { return object.getvm_pool_type ( ) ; }
Source:
public void setIsVisiblePropertyName ( java.lang.String isVisiblePropertyName ) { this . isVisiblePropertyName = isVisiblePropertyName ; }

Target:
public com.google.gwt.user.client.ui.Widget resolveValueWidget ( ) { boolean showDefaultValue = ( ( defaultValueCondition ) != null ) && ( defaultValueCondition.showDefaultValue ( ) ) ; return showDefaultValue ? defaultValueLabel : valueWidget ; }
Source:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionHostsAndNetwork ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc vmUpdateDevice ( java.lang.String vmId , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct device ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) ;
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; } return source ; }
Source:
public java.lang.String getSoundDevice ( int osId , org.ovirt.engine.core.compat.Version version ) { return getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.audio" , version ) ; }

Target:
public java.lang.String getSoundDevice ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.ChipsetType chipset ) { return parseChipsetPrefixedValue ( getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.audio" , version ) , chipset ) ; }
Source:
private org.ovirt.engine.core.compat.Guid GetAnyVdsToRunOn ( ) { return getVdsToRunOn ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }

Target:
private org.ovirt.engine.core.compat.Guid GetAnyVdsToRunOn ( ) { return getVdsToRunOn ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }
Source:
public org.ovirt.engine.core.common.users.VdcUser getLoggedUser ( ) { privateLoggedUser.setPassword ( ( ( java.lang.String ) ( getPassword ( ) . getEntity ( ) ) ) ) ; return privateLoggedUser ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getLoggedUser ( ) { return privateLoggedUser ; }
Source:
private java.lang.String getTargetOrigin ( ) { return "http://" + ( com.google.gwt.user.client.Window.Location.getHost ( ) ) ; }

Target:
private java.lang.String getTargetOrigin ( ) { return ( ( com.google.gwt.user.client.Window.Location.getProtocol ( ) ) + "//" ) + ( com.google.gwt.user.client.Window.Location.getHost ( ) ) ; }
Source:
private void updateLabelStyle ( org.ovirt.engine.ui.common.widget.label.EnableableFormLabel label , java.lang.String contentStyle ) { label.addStyleName ( contentStyle ) ; }

Target:
private void updateLabelStyle ( com.google.gwt.user.client.ui.Widget label , java.lang.String contentStyle ) { label.addStyleName ( contentStyle ) ; }
Source:
protected void init ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel model ) { this . model = model ; widgets.clear ( ) ; super . init ( model ) ; if ( ! ( enabled ) ) { removeWidget ( widgets.getLast ( ) ) ; } }

Target:
protected void init ( T model ) { this . model = model ; widgets.clear ( ) ; super . init ( model ) ; if ( ! ( enabled ) ) { removeWidget ( widgets.getLast ( ) ) ; } }
Source:
private boolean isOutAverageLinkShareInSync ( ) { return java.util.Objects.equals ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface.getOutAverageLinkshare ( ifaceQos ) , org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface.getOutAverageLinkshare ( hostNetworkQos ) ) ; }

Target:
private boolean isIpv6PrimaryAddressExist ( ) { return ( ( networkDataCenterIpConfigurationDefinition ) != null ) && ( networkDataCenterIpConfigurationDefinition.hasIpv6PrimaryAddressSet ( ) ) ; }
Source:
protected abstract void ExecuteNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) ;

Target:
protected abstract void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) ;
Source:
protected void startVirtualSystem ( ) { _writer.writeStartElement ( "VirtualSystem" ) ; _writer.writeAttributeString ( org.ovirt.engine.core.utils.ovf.OVF_PREFIX , org.ovirt.engine.core.utils.ovf.OVF_URI , "id" , vmBase.getId ( ) . toString ( ) ) ; }

Target:
protected void startVirtualSystem ( ) { _writer.writeStartElement ( "VirtualSystem" ) ; _writer.writeAttributeString ( org.ovirt.engine.core.utils.ovf.OVF_PREFIX , getOvfUri ( ) , "id" , vmBase.getId ( ) . toString ( ) ) ; }
Source:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }
Source:
public void debug ( java.lang.Object msg ) { if ( isDebugEnabled ( ) ) { log.debug ( addPrefixToLogMessage ( msg ) ) ; } }

Target:
public void debug ( java.lang.Object msg ) { log.debug ( convertToString ( msg ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.CdRom incoming , org.ovirt.engine.core.common.businessentities.VM entity ) { return new org.ovirt.engine.core.common.action.VmManagementParametersBase ( getUpdatable ( incoming.getFile ( ) . getId ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Cdrom incoming , org.ovirt.engine.core.common.businessentities.VM entity ) { return new org.ovirt.engine.core.common.action.VmManagementParametersBase ( getUpdatable ( incoming.getFile ( ) . getId ( ) ) ) ; }
Source:
private void debugAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Action type '{}', Parameters '{}'" , actionType , params ) ; }

Target:
private void debugAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Action type '{}', Parameters '{}'" , actionType , params ) ; }
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.Permissions , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storagePermissionSubTabLabel ( ) , 9 , 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.Permissions , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storagePermissionSubTabLabel ( ) , 10 , modelProvider ) ; }
Source:
public org.ovirt.engine.core.compat.Version getcompatibility_version ( ) { if ( ( version ) == null ) { version = org.ovirt.engine.core.compat.Version.getLatest ( ) ; } return version ; }

Target:
public org.ovirt.engine.core.compat.Version getcompatibility_version ( ) { if ( ( version ) == null ) { version = new org.ovirt.engine.core.compat.Version ( compatibilityVersion ) ; } return version ; }
Source:
public static org.ovirt.engine.core.common.queries.VdcQueryParametersBase eqQueryParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.queries.VdcQueryParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { org.easymock.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.QueryParametersEquals ( clz , names , values ) ) ; return null ; }

Target:
public static org.ovirt.engine.core.common.queries.VdcQueryParametersBase eqQueryParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.queries.VdcQueryParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { return org.mockito.Matchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.QueryParametersEquals ( clz , names , values ) ) ; }
Source:
protected java.lang.String getEngineRpmVersion ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ProductRPMVersion , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , sessionId ) ) ) ; }

Target:
protected java.lang.String getEngineRpmVersion ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.config.ConfigValues.ProductRPMVersion , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , sessionId ) ) ) ; }
Source:
public void nonExistStep ( ) { org.junit.Assert.assertFalse ( dao.exists ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ) ; }

Target:
public void nonExistStep ( ) { org.junit.Assert.assertFalse ( dao.exists ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; }
Source:
public void testUpdateFieldsQuotaEnforcementType ( ) { vm.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; vmStatic.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ; junit.framework.Assert.assertTrue ( "Quota enforcement type should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setQuotaDefault ( false ) ; org.junit.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }
Source:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }

Target:
private void cleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getGraphicsDevices ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.GRAPHICS , type.name ( ) . toLowerCase ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getGraphicsDevices ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.GRAPHICS , type.name ( ) . toLowerCase ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = getVdsByVdsId ( ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }
Source:
public static java.lang.String map ( org.ovirt.engine.api.restapi.types.GlusterHookContentType hookContentType , java.lang.String template ) { switch ( hookContentType ) { case BINARY : return HookContentType.BINARY.toString ( ) ; case TEXT : return HookContentType.TEXT.toString ( ) ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.HookContentType map ( org.ovirt.engine.api.restapi.types.GlusterHookContentType hookContentType , org.ovirt.engine.api.model.HookContentType template ) { switch ( hookContentType ) { case BINARY : return org.ovirt.engine.api.model.HookContentType.BINARY ; case TEXT : return org.ovirt.engine.api.model.HookContentType.TEXT ; default : return null ; } }
Source:
private void updateHeartbeatPolicy ( boolean isHeartbeat ) { org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy = client.getClientRetryPolicy ( ) ; policy.setIncomingHeartbeat ( isHeartbeat ) ; policy.setOutgoingHeartbeat ( isHeartbeat ) ; client.setClientRetryPolicy ( policy ) ; }

Target:
private void updateHeartbeatPolicy ( org.ovirt.vdsm.jsonrpc.client.internal.ClientPolicy policy , boolean isHeartbeat ) { policy.setIncomingHeartbeat ( isHeartbeat ) ; policy.setOutgoingHeartbeat ( isHeartbeat ) ; client.setClientRetryPolicy ( policy ) ; }