auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void load ( java.util.Properties configuration ) { loadImpl ( configuration , null ) ; }

Target:
public java.lang.String load ( java.util.Properties configuration ) { return loadImpl ( configuration , null ) ; }
Source:
protected org.ovirt.engine.core.bll.tasks.SPMAsyncTaskHandler getCurrentTaskHandler ( ) { return getTaskHandlers ( ) . get ( getExecutionIndex ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTaskHandler getCurrentTaskHandler ( ) { return getTaskHandlers ( ) . get ( getExecutionIndex ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.bll.tasks.SPMAsyncTaskHandler > initTaskHandlers ( ) { return java.util.Arrays.< org.ovirt.engine.core.bll.tasks.SPMAsyncTaskHandler > asList ( new org.ovirt.engine.core.bll.lsm.LiveSnapshotTaskHandler ( this ) , new org.ovirt.engine.core.bll.lsm.CreateImagePlaceholderTaskHandler ( this ) , new org.ovirt.engine.core.bll.lsm.VmReplicateDiskStartTaskHandler ( this ) , new org.ovirt.engine.core.bll.lsm.VmReplicateDiskFinishTaskHandler ( this ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.bll.tasks.SPMAsyncTaskHandler > initTaskHandlers ( ) { return java.util.Arrays.< org.ovirt.engine.core.bll.tasks.SPMAsyncTaskHandler > asList ( new org.ovirt.engine.core.bll.lsm.CreateImagePlaceholderTaskHandler ( this ) , new org.ovirt.engine.core.bll.lsm.VmReplicateDiskStartTaskHandler ( this ) , new org.ovirt.engine.core.bll.lsm.VmReplicateDiskFinishTaskHandler ( this ) ) ; }
Source:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , NAMESPACE , new java.lang.String ( javax.xml.bind.DatatypeConverter.parseHexBinary ( EXTERNAL_IDS [ index ] ) , java.nio.charset.Charset.forName ( "UTF-8" ) ) , NAMES [ index ] ) ; }

Target:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , NAMESPACE , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendVmPoolsResource ( ) ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendVmPoolsResource ( ) ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.Disk getDisk ( ) { if ( ( disk ) == null ) { disk = getDiskDao ( ) . get ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getDiskId ( ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.Disk getDisk ( ) { if ( ( disk ) == null ) { disk = org.ovirt.engine.core.bll.RemoveDiskCommand.getDiskDao ( ) . get ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getDiskId ( ) ) ; } return disk ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) { return getCallsHandler ( ) . executeReadList ( "GetVdsStaticByVdsGroupId" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , vdsGroup ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) { return getCallsHandler ( ) . executeReadList ( "GetVdsStaticByVdsGroupId" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , vdsGroup ) ) ; }
Source:
protected boolean isBugs ( ) { return bugs ; }

Target:
public boolean isBugs ( ) { return bugs ; }
Source:
private void initLunDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk lunDisk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; org.mockito.Mockito.when ( diskDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( lunDisk ) ; }

Target:
private void initLunDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk lunDisk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; org.mockito.Mockito.when ( diskDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( lunDisk ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return org.ovirt.engine.core.bll.network.dc.NetworkCommon.getParameters ( ) . getNetwork ( ) ; }

Target:
protected abstract org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) ;
Source:
public int getValue ( ) { return this . ordinal ( ) ; }

Target:
public int getValue ( ) { return value ; }
Source:
public void setupMocks ( ) { org.mockito.Mockito.when ( clusterDao.get ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommandTest.CLUSTER_ID ) ) . thenReturn ( getCluster ( ) ) ; org.mockito.Mockito.doReturn ( hookSyncJob ) . when ( cmd ) . getSyncJobInstance ( ) ; }

Target:
public void setupMocks ( ) { org.mockito.Mockito.when ( clusterDao.get ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommandTest.CLUSTER_ID ) ) . thenReturn ( getCluster ( ) ) ; }
Source:
public boolean matches ( java.lang.Object argument ) { if ( argument instanceof org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ) { return ( ( ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ) ( argument ) ) . getConfigValue ( ) ) == configValue ; } return false ; }

Target:
public boolean matches ( java.lang.Object argument ) { return ( argument instanceof org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ) && ( ( ( ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ) ( argument ) ) . getConfigValue ( ) ) == configValue ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml doubleImageContainer ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , com.google.gwt.safehtml.shared.SafeHtml decoratorHtml , int left , int top ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml doubleImageContainer ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , com.google.gwt.safehtml.shared.SafeHtml decoratorHtml , int left , int top , java.lang.String id ) ;
Source:
protected void doTestGet ( org.ovirt.engine.core.common.mode.ApplicationMode appMode , java.lang.String base ) { setupExpectations ( appMode , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.relationships ) ; verifyResponse ( resource.get ( ) ) ; }

Target:
protected void doTestGet ( org.ovirt.engine.core.common.mode.ApplicationMode appMode ) { setupExpectations ( appMode , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.relationships ) ; verifyResponse ( resource.get ( ) ) ; }
Source:
protected R addLinks ( R model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , boolean doNotLinkSubCollections ) { return doNotLinkSubCollections ? org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( org.ovirt.engine.api.restapi.resource.AbstractBackendResource.getUriInfo ( ) , addParents ( model ) , suggestedParent ) : addLinks ( model , suggestedParent ) ; }

Target:
protected R addLinks ( R model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , boolean doNotLinkSubCollections ) { return doNotLinkSubCollections ? org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( addParents ( model ) , suggestedParent ) : addLinks ( model , suggestedParent ) ; }
Source:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.macpool.MacRangeModel value ) { return ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( value.getLeftBound ( ) . getEntity ( ) ) ) && ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( value.getRightBound ( ) . getEntity ( ) ) ) ; }

Target:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.macpool.MacRangeModel value ) { return false ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageFormatType getPreferred ( org.ovirt.engine.core.common.businessentities.StorageType type ) { if ( type.isBlockDomain ( ) ) { return org.ovirt.engine.core.common.businessentities.StorageFormatType.V2 ; } return org.ovirt.engine.core.common.businessentities.StorageFormatType.V1 ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageFormatType getPreferred ( org.ovirt.engine.core.common.businessentities.StorageType type ) { if ( ( type != null ) && ( type.isBlockDomain ( ) ) ) { return org.ovirt.engine.core.common.businessentities.StorageFormatType.V2 ; } return org.ovirt.engine.core.common.businessentities.StorageFormatType.V1 ; }
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . setIsCustomPropertiesTabAvailable ( false ) ; getModel ( ) . getLabelList ( ) . setIsAvailable ( false ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . setIsCustomPropertiesTabAvailable ( false ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession object ) { return object.getPairList ( ) . get ( 0 ) . getPairStatus ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession object ) { return object.getStatus ( ) . toString ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > list = new java.util.ArrayList < > ( ) ; list.add ( createCluster ( Version.v3_5 , org.ovirt.engine.core.bll.gluster.StorageDeviceSyncJobTest.CLUSTER_GUID_3_5 ) ) ; list.add ( createCluster ( Version.v3_6 , org.ovirt.engine.core.bll.gluster.StorageDeviceSyncJobTest.CLUSTER_GUID_3_6 ) ) ; return list ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > list = new java.util.ArrayList < > ( ) ; list.add ( createCluster ( Version.v3_6 , org.ovirt.engine.core.bll.gluster.StorageDeviceSyncJobTest.CLUSTER_GUID_3_6 ) ) ; return list ; }
Source:
public void calculateNetworkImplementationDetailsUnmanagedNetwork ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertManaged ( iface , false , java.util.Collections.< java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > emptyMap ( ) ) ; }

Target:
public void calculateNetworkImplementationDetailsUnmanagedNetwork ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertManaged ( iface , false , null ) ; }
Source:
public void setid ( java.lang.String value ) { this . id = value ; }

Target:
public void setId ( java.lang.String value ) { this . id = value ; }
Source:
protected boolean validateVmArchitecture ( ) { return ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }

Target:
protected boolean validateVmArchitecture ( ) { return ( getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }
Source:
protected void setImageId ( org.ovirt.engine.core.compat.Guid imageId ) { this . mImageId = imageId ; }

Target:
protected void setImageId ( org.ovirt.engine.core.compat.Guid imageId ) { this . imageId = imageId ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpGetStorageDomainExpectations ( StorageDomainType.ImportExport , null ) ; setUpGetEntityExpectations ( StorageDomainType.ImportExport , org.ovirt.engine.api.restapi.resource.BackendExportDomainDisksResourceTest.STORAGE_DOMAIN_ID , failure ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpGetStorageDomainExpectations ( StorageDomainType.ImportExport , null ) ; setUpGetEntityExpectations ( StorageDomainType.ImportExport , org.ovirt.engine.api.restapi.resource.BackendExportDomainDisksResourceTest.STORAGE_DOMAIN_ID , failure ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; }
Source:
public void testValidate ( ) { org.ovirt.engine.core.bll.UpdateRngDeviceCommand command = mockCommand ( Version.v3_5 ) ; org.junit.Assert.assertEquals ( true , command.validate ( ) ) ; }

Target:
public void testValidate ( ) { org.ovirt.engine.core.bll.UpdateRngDeviceCommand command = mockCommand ( ) ; org.junit.Assert.assertEquals ( true , command.validate ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomainEntity ( int index ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , index , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomainEntity ( ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , StorageType.NFS ) ; }
Source:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getHostListByCluster ( query , cluster.getname ( ) ) ; }

Target:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getHostListByCluster ( query , cluster.getName ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue1 ) { clusterSnapshotConfigModel.getClusters ( ) . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > ) ( returnValue ) ) , ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue1 ) ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { clusterSnapshotConfigModel.getClusters ( ) . setItems ( returnValue , cluster ) ; }
Source:
private org.ovirt.engine.core.bll.AddQuotaCommand createCommand ( ) { org.ovirt.engine.core.common.action.QuotaCRUDParameters param = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( mockGeneralStorageQuota ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddQuotaCommand ( param , null ) ) ; org.mockito.Mockito.doReturn ( quotaDao ) . when ( command ) . getQuotaDao ( ) ; return command ; }

Target:
private org.ovirt.engine.core.bll.AddQuotaCommand createCommand ( ) { org.ovirt.engine.core.common.action.QuotaCRUDParameters param = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( mockGeneralStorageQuota ( ) ) ; return new org.ovirt.engine.core.bll.AddQuotaCommand ( param , null ) ; }
Source:
public boolean getIsReadOnly ( ) { return isReadOnly ; }

Target:
public java.lang.Boolean getIsReadOnly ( ) { return ( isReadOnly ) == null ? java.lang.Boolean.FALSE : isReadOnly ; }
Source:
public java.lang.String getStorageName ( ) { return getStorageStaticData ( ) . getstorage_name ( ) ; }

Target:
public java.lang.String getStorageName ( ) { return getStorageStaticData ( ) . getStorageName ( ) ; }
Source:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( javax.ws.rs.core.UriInfo uriInfo , R model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( uriInfo , model , null ) ; }

Target:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( R model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( model , null ) ; }
Source:
private void addViolation ( org.ovirt.engine.core.dal.VdcBllMessages violation ) { violations.add ( violation ) ; }

Target:
private void addViolation ( org.ovirt.engine.core.dal.VdcBllMessages violation ) { addViolation ( violation , null ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageType getEnum ( org.ovirt.engine.core.common.businessentities.storage_pool storage ) { return storage.getstorage_pool_type ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageType getEnum ( org.ovirt.engine.core.common.businessentities.StoragePool storage ) { return storage.getstorage_pool_type ( ) ; }
Source:
public java.util.Date getVar_datetime ( ) { return this . var_datetime ; }

Target:
public java.lang.String getValue ( ) { return this . value ; }
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.VM > ( ) ; } return source ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ; }
Source:
public void setBalloonEnabled ( boolean enableBalloon ) { this . balloonEnabled = enableBalloon ; }

Target:
public void setBalloonEnabled ( boolean enableBalloon ) { balloonEnabled = enableBalloon ; }
Source:
public org.ovirt.engine.api.model.Events list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( ) ) ; } }

Target:
public org.ovirt.engine.api.model.Events list ( ) { return mapCollection ( getBackendCollection ( ) ) ; }
Source:
public void testGetSystemStatisticsValueWithSpecifiedStatus ( ) { int numOfVmWithStatusMigratingFrom = underTest.getSystemStatisticsValue ( "VM" , java.lang.Integer.toString ( VMStatus.MigratingFrom.getValue ( ) ) ) ; org.junit.Assert.assertTrue ( ( numOfVmWithStatusMigratingFrom == ( org.ovirt.engine.core.dao.SystemStatisticsDaoImplTest.NUM_OF_VM_IN_FIXTURES_WITH_STATUS_MIGRATING_FROM ) ) ) ; }

Target:
public void testGetSystemStatisticsValueWithSpecifiedStatus ( ) { int numOfVmWithStatusMigratingFrom = underTest.getSystemStatisticsValue ( "VM" , java.lang.Integer.toString ( VMStatus.MigratingFrom.getValue ( ) ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.SystemStatisticsDaoImplTest.NUM_OF_VM_IN_FIXTURES_WITH_STATUS_MIGRATING_FROM , numOfVmWithStatusMigratingFrom ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.api.model.VM > getEntitiesFromExportDomain ( ) { org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters params = new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( getDataCenterId ( storageDomainId ) , storageDomainId ) ; params.setGetAll ( true ) ; return getBackendCollection ( VdcQueryType.GetVmsFromExportDomain , params ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.api.model.VM > getEntitiesFromExportDomain ( ) { org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters params = new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( getDataCenterId ( storageDomainId ) , storageDomainId ) ; return getBackendCollection ( VdcQueryType.GetVmsFromExportDomain , params ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher create ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager , org.ovirt.engine.core.vdsbroker.ResourceManager resourceManager ) { return org.ovirt.engine.core.di.Injector.injectMembers ( getRefresherForVds ( vdsManager , resourceManager ) ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher create ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager ) { return org.ovirt.engine.core.di.Injector.injectMembers ( getRefresherForVds ( vdsManager ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException , javax.xml.bind.JAXBException { org.ovirt.engine.sdk.codegen.xsd.XsdCodegen generator = new org.ovirt.engine.sdk.codegen.xsd.XsdCodegen ( args [ 0 ] ) ; generator.generate ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException , javax.xml.bind.JAXBException { org.ovirt.engine.sdk.codegen.xsd.XsdCodegen generator = new org.ovirt.engine.sdk.codegen.xsd.XsdCodegen ( args [ 0 ] , args [ 1 ] ) ; generator.generate ( ) ; }
Source:
public boolean isQosOverridden ( ) { return networkAttachmentModel.getQosOverridden ( ) . getEntity ( ) ; }

Target:
public boolean isQosOverridden ( ) { return ( networkAttachmentModel.getQosOverridden ( ) ) != null ? networkAttachmentModel.getQosOverridden ( ) . getEntity ( ) : false ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; if ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getSelectedItem ( ) ) != null ) { updateAlerts ( ) ; } }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; updateAlerts ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage_domains object ) { return object.getstorage_pool_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getstorage_pool_name ( ) ; }
Source:
protected void onLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { super . onLogin ( loginModel ) ; loginModel.updateIsENGINEUser ( loginModel.getLoggedUser ( ) ) ; }

Target:
protected void onLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { loginModel.updateIsENGINEUser ( loginModel.getLoggedUser ( ) ) ; }
Source:
public void setBootTime ( java.lang.Long value ) { this . bootTime = value ; }

Target:
public void setBootTime ( java.lang.Long value ) { bootTime = value ; }
Source:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return org.ovirt.engine.core.bll.ImportVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.ImportClonedEntity.class ) ; } return org.ovirt.engine.core.bll.ImportVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.ImportEntity.class ) ; }

Target:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { if ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . isImportAsNewEntity ( ) ) { return org.ovirt.engine.core.bll.ImportVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.ImportClonedEntity.class ) ; } return org.ovirt.engine.core.bll.ImportVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.ImportEntity.class ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > searchNetworks ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getNetworkViewDao ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > searchNetworks ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getNetworkViewDao ( ) , true ) ; }
Source:
public void setKsmState ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; }

Target:
public void setKsmState ( java.lang.Boolean value ) { this . mVdsStatistics.setKsmState ( value ) ; }
Source:
public static boolean isFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.updateVdsStatic.IsFieldsUpdated ( source , destination , list ) ; }

Target:
public static boolean isFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.updateVdsStatic.isFieldsUpdated ( source , destination , list ) ; }
Source:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayDataInternal ( res , vm ) ; }

Target:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( res , vm , null ) ; }
Source:
public void removeAllInBatch ( java.util.Collection < T > entities ) { removeAllInBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForRemove ( ) , entities , getBatchMapper ( ) ) ; }

Target:
public void removeAllInBatch ( java.util.Collection < T > entities ) { if ( entities.isEmpty ( ) ) { return ; } removeAllInBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForRemove ( ) , entities , getBatchMapper ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByVdsName ( java.lang.String name ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByVdsName" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vds_name" , name ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByVdsName ( java.lang.String name ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByVdsName" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_name" , name ) ) ; }
Source:
public static void getOsMaxRam ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.GetMaxOsRam , osId , version ) , asyncQuery ) ; }

Target:
public static void getOsMaxRam ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.GetMaxOsRam , osId , version ) , asyncQuery ) ; }
Source:
public int hashCode ( ) { return vm.hashCode ( ) ; }

Target:
public int hashCode ( ) { return getVm ( ) . hashCode ( ) ; }
Source:
private static boolean shouldMonitorCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , boolean isInternal , boolean hasCorrelationId ) { return ( ( actionType.isActionMonitored ( ) ) || hasCorrelationId ) && ( ! isInternal ) ; }

Target:
private static boolean shouldMonitorCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , boolean isInternal ) { return ( actionType.isActionMonitored ( ) ) && ( ! isInternal ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.StorageDomainValidator getStorageDomainValidator ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) ; return storageDomainValidator ; }

Target:
protected org.ovirt.engine.core.bll.validator.StorageDomainValidator getStorageDomainValidator ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.provider.ProviderValidator validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( getProvider ( ) ) ; return validate ( validator.providerIsSet ( ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.provider.ProviderValidator validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( getProvider ( ) ) ; return validate ( validator.providerIsSet ( ) ) ; }
Source:
public java.util.ArrayList getStorageDelay ( ) { return storageDelay ; }

Target:
public java.util.List < java.lang.String > getStorageDelay ( ) { return storageDelay ; }
Source:
protected void removeMemoryVolume ( java.lang.String memoryVolumes ) { super . removeMemoryVolume ( org.ovirt.engine.core.bll.memory.MemoryUtils.changeStorageDomainAndPoolInMemoryState ( memoryVolumes , storageDomainId , storagePoolId ) ) ; }

Target:
protected boolean removeMemoryVolume ( java.lang.String memoryVolumes ) { return super . removeMemoryVolume ( org.ovirt.engine.core.bll.memory.MemoryUtils.changeStorageDomainAndPoolInMemoryState ( memoryVolumes , storageDomainId , storagePoolId ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getVmName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getName ( ) ; }
Source:
public void versionDecrease ( ) { createCommandWithOlderVersion ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuExists ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuManufacturersMatch ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecrease ( ) { createCommandWithOlderVersion ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateDataCenterVersion ( ) ; getSearchCommand ( ) . execute ( ) ; updateIsDiskHotPlugAvailable ( ) ; } updateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateDataCenterVersion ( ) ; getSearchCommand ( ) . execute ( ) ; } updateActionAvailability ( ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { endAction ( cmdId , false ) ; }
Source:
public void testDoGetNotFoundInvalidPath ( ) throws java.io.IOException , javax.servlet.ServletException { org.mockito.Mockito.when ( mockRequest.getPathInfo ( ) ) . thenReturn ( null ) ; testServlet.doGet ( mockRequest , mockResponse ) ; org.mockito.Mockito.verify ( mockResponse ) . sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }

Target:
public void testDoGetNotFoundInvalidPath ( ) throws java.io.IOException , javax.servlet.ServletException { testServlet.doGet ( mockRequest , mockResponse ) ; org.mockito.Mockito.verify ( mockResponse ) . sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }
Source:
public java.util.Date getGuestLastLoginTime ( ) { return this . vmDynamic.getguest_last_login_time ( ) ; }

Target:
public java.util.Date getGuestLastLoginTime ( ) { return this . vmDynamic.getGuestLastLoginTime ( ) ; }
Source:
private void mockVmTemplateDAOReturnVmTemplate ( ) { org.powermock.api.mockito.PowerMockito.when ( vmTemplateDAO.get ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( createVmTemplate ( ) ) ; }

Target:
private void mockVmTemplateDAOReturnVmTemplate ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( createVmTemplate ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.importAllocationModifiedCollapse ( ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.importAllocationModifiedCollapse ( ) ; }
Source:
public org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend getBackendInstance ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) ; }

Target:
public org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend getResourceManager ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }
Source:
public static java.lang.String getDisplayStringForPluginName ( java.lang.String pluginName ) { try { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType.valueOf ( pluginName ) ) ; } catch ( java.lang.Exception e ) { return pluginName == null ? "" : pluginName ; } }

Target:
public static java.lang.String getDisplayStringForPluginName ( java.lang.String pluginName ) { try { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . get ( org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType.valueOf ( pluginName ) ) ; } catch ( java.lang.Exception e ) { return pluginName == null ? "" : pluginName ; } }
Source:
private void localize ( ) { checkConnectivity.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostSetupNetworksPopupView.constants.checkConHostPopup ( ) ) ; commitChanges.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostSetupNetworksPopupView.constants.saveNetConfigHostPopup ( ) ) ; }

Target:
private void localize ( ) { checkConnectivity.setLabel ( constants.checkConHostPopup ( ) ) ; commitChanges.setLabel ( constants.saveNetConfigHostPopup ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > volumes = new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoDbFacadeImpl.volumeRowMapper ) ; fetchRelatedEntities ( volumes ) ; return volumes ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > volumes = jdbcTemplate.query ( query , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoDbFacadeImpl.volumeRowMapper ) ; fetchRelatedEntities ( volumes ) ; return volumes ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { return ( vfsNames.contains ( device.getDeviceName ( ) ) ) && ( isVf ( device ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { return vfsNames.contains ( device.getDeviceName ( ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.storage_pool result = dao.getByName ( existingPool.getname ( ) ) ; assertGetResult ( result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.getByName ( existingPool.getname ( ) ) ; assertGetResult ( result ) ; }
Source:
void mockSessionDataContainer ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.SSO_TOKEN ) . when ( sessionDataContainer ) . getSsoAccessToken ( org.mockito.ArgumentMatchers.anyString ( ) ) ; }

Target:
void mockSessionDataContainer ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.SSO_TOKEN ) . when ( sessionDataContainer ) . getSsoAccessToken ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
private boolean validateDestStorage ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.compat.Guid destDomainId ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = getValidator ( imageId , destDomainId ) ; return ( validateSourceStorageDomain ( imageId , destDomainId ) ) && ( validator.domainIsValidDestination ( org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ) ; }

Target:
private boolean validateDestStorage ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.compat.Guid destDomainId ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = getValidator ( imageId , destDomainId ) ; return ( validateSourceStorageDomain ( imageId , destDomainId ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setReportBaseUrl ( ( ( java.lang.String ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setReportBaseUrl ( ( ( java.lang.String ) ( returnValue ) ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains a ) { return ( ( a.getstatus ( ) ) == domainStatus ) && ( ! ( a.getId ( ) . equals ( getStorageDomain ( ) . getId ( ) ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( ( a.getstatus ( ) ) == domainStatus ) && ( ! ( a.getId ( ) . equals ( getStorageDomain ( ) . getId ( ) ) ) ) ; }
Source:
private static boolean map ( java.lang.String value ) { final org.ovirt.engine.api.model.VnicPassThroughMode vnicPassThroughMode = org.ovirt.engine.api.model.VnicPassThroughMode.fromValue ( value ) ; return ( org.ovirt.engine.api.model.VnicPassThroughMode.ENABLED ) == vnicPassThroughMode ; }

Target:
private static boolean map ( org.ovirt.engine.api.model.VnicPassThroughMode vnicPassThroughMode ) { return ( org.ovirt.engine.api.model.VnicPassThroughMode.ENABLED ) == vnicPassThroughMode ; }
Source:
public void testGetQuotaByAdElementId ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaByAdElementIdList = dao.getQuotaByAdElementId ( FixturesTool.USER_EXISTING_ID , FixturesTool.STORAGE_POOL_NFS , false ) ; org.junit.Assert.assertEquals ( quotaByAdElementIdList.get ( 0 ) . getQuotaName ( ) , "Quota General" ) ; }

Target:
public void testGetQuotaByAdElementId ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaByAdElementIdList = dao.getQuotaByAdElementId ( FixturesTool.USER_EXISTING_ID , FixturesTool.STORAGE_POOL_NFS , false ) ; org.junit.Assert.assertEquals ( "Quota General" , quotaByAdElementIdList.get ( 0 ) . getQuotaName ( ) ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Vms: cluster=" + ( getEntity ( ) . getname ( ) ) ) ) ; super . search ( ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Vms: cluster=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . search ( ) ; } }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( "foo" , resource.getParent ( ) ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( "foo" , resource.getParent ( ) ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ForceRemoveStorageDomainCommand.getParameters ( ) . getStorageDomainId ( ) , LockingGroup.STORAGE.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ForceRemoveStorageDomainCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) , LockingGroup.STORAGE.name ( ) ) ; }
Source:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
private static void raiseQueryStartedEvent ( final java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.lang.String context ) { for ( org.ovirt.engine.core.common.queries.VdcQueryType queryType : queryTypeList ) { org.ovirt.engine.ui.frontend.Frontend.raiseQueryStartedEvent ( queryType , context ) ; } }

Target:
private static void raiseQueryStartedEvent ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.lang.String context ) { for ( org.ovirt.engine.core.common.queries.VdcQueryType queryType : queryTypeList ) { org.ovirt.engine.ui.frontend.Frontend.raiseQueryStartedEvent ( queryType , context ) ; } }
Source:
private static void setHref ( org.ovirt.engine.api.model.BaseResource model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { java.lang.String path = org.ovirt.engine.api.restapi.util.LinkHelper.getPath ( model , suggestedParentType ) ; if ( path != null ) { model.setHref ( path ) ; } }

Target:
private static void setHref ( org.ovirt.engine.api.model.BaseResource model , java.lang.String path ) { if ( path != null ) { model.setHref ( path ) ; } }
Source:
public static org.ovirt.engine.core.compat.Guid createGuidFromString ( java.lang.String candidate ) { if ( candidate == null ) { return null ; } else { return new org.ovirt.engine.core.compat.Guid ( candidate ) ; } }

Target:
public static org.ovirt.engine.core.compat.Guid createGuidFromString ( java.lang.String candidate ) { if ( candidate == null ) { return null ; } return new org.ovirt.engine.core.compat.Guid ( candidate ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook getGlusterServerHook ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid serverId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverHook = getCallsHandler ( ) . executeRead ( "GetGlusterServerHook" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.glusterServerHookRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "hook_id" , hookId ) . addValue ( "server_id" , serverId ) ) ; return serverHook ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook getGlusterServerHook ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid serverId ) { return getCallsHandler ( ) . executeRead ( "GetGlusterServerHook" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.glusterServerHookRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "hook_id" , hookId ) . addValue ( "server_id" , serverId ) ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.VM result ) { editedVm = result ; vmInitLoaded ( editedVm ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { editedVm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ; vmInitLoaded ( editedVm ) ; }
Source:
public void reloadPolicyUnits ( ) { synchronized ( policyUnitsLock ) { policyUnits = new java.util.concurrent.ConcurrentHashMap < > ( ) ; loadPolicyUnits ( ) ; } }

Target:
private void reloadPolicyUnits ( ) { synchronized ( policyUnitsLock ) { policyUnits = new java.util.concurrent.ConcurrentHashMap < > ( ) ; loadPolicyUnits ( ) ; } }