From 5b138d57c5fe29b7acddf03ab2db2b40b62cd849 Mon Sep 17 00:00:00 2001 From: Rory Hunter Date: Tue, 7 Dec 2021 13:51:47 +0000 Subject: [PATCH] Checkstyle shadows vars pt10 (#81361) Part of #19752. Fix more instances where local variable names were shadowing field names. --- .../src/main/resources/checkstyle.xml | 9 +++- .../xpack/ml/MachineLearning.java | 10 ++-- .../xpack/ml/MlInitializationService.java | 4 +- .../TransportDeleteExpiredDataAction.java | 46 ++++++++++--------- ...ransportStartDataFrameAnalyticsAction.java | 2 +- .../CategorizeTextAggregatorFactory.java | 10 ++-- .../InternalCategorizationAggregation.java | 12 ++--- .../InferencePipelineAggregationBuilder.java | 6 +-- .../kstest/BucketCountKSTestAggregator.java | 4 +- .../MlAutoscalingDeciderService.java | 6 +-- .../extractor/scroll/ScrollDataExtractor.java | 1 + .../scroll/ScrollDataExtractorFactory.java | 8 ++-- .../dataframe/DataFrameAnalyticsManager.java | 12 +++-- .../ml/dataframe/DataFrameAnalyticsTask.java | 6 +-- .../extractor/ExtractedFieldsDetector.java | 4 +- .../process/AnalyticsProcessManager.java | 6 +-- .../TrainedModelAllocationNodeService.java | 2 +- .../deployment/DeploymentManager.java | 18 +++----- .../TrainedModelDeploymentTask.java | 20 ++++---- .../nlp/ZeroShotClassificationProcessor.java | 30 ++++++------ .../process/PyTorchResultProcessor.java | 4 +- .../xpack/ml/job/JobManager.java | 4 +- .../ml/job/UpdateJobProcessNotifier.java | 6 +-- .../ml/job/persistence/JobDataDeleter.java | 18 ++++++-- .../job/persistence/JobResultsPersister.java | 11 +++-- .../job/persistence/JobResultsProvider.java | 2 +- .../job/persistence/RecordsQueryBuilder.java | 4 +- .../process/autodetect/ProcessContext.java | 4 +- .../v2/RollupActionSingleNodeTests.java | 22 +++++---- .../SearchableSnapshots.java | 8 ++-- .../SearchableSnapshotsStatsResponse.java | 2 +- ...ShardsOnInvalidLicenseClusterListener.java | 6 +-- ...eSnapshotIndexFoldersDeletionListener.java | 16 +++---- ...chableSnapshotEnableAllocationDecider.java | 10 ++-- .../BlobStoreCacheMaintenanceService.java | 6 +-- .../cache/common/ByteRange.java | 4 +- .../cache/common/CacheFile.java | 24 +++++----- .../ProgressListenableActionFuture.java | 44 +++++++++--------- .../cache/shared/FrozenCacheService.java | 16 +++---- .../store/SearchableSnapshotDirectory.java | 17 +++---- .../BaseSearchableSnapshotIndexInput.java | 22 ++++----- .../integration/IndexPrivilegeIntegTests.java | 8 ++-- .../integration/SecurityClearScrollTests.java | 6 +-- .../xpack/spatial/common/CartesianPoint.java | 1 + .../index/fielddata/CentroidCalculator.java | 11 +++-- .../xpack/spatial/index/fielddata/Extent.java | 1 + .../fielddata/GeometryDocValueReader.java | 10 ++-- .../index/fielddata/Tile2DVisitor.java | 7 +-- .../mapper/LatLonShapeDocValuesQuery.java | 4 +- .../search/aggregations/InternalGeoLine.java | 14 +++--- .../geogrid/BoundedGeoTileGridTiler.java | 7 +-- .../DelimitedTextStructureFinderFactory.java | 4 +- .../TransformCheckpointServiceNodeTests.java | 6 +-- .../xpack/transform/Transform.java | 6 +-- .../transforms/ClientTransformIndexer.java | 10 ++-- .../transforms/TransformIndexer.java | 4 +- .../transform/transforms/TransformTask.java | 14 +++--- .../TransformIndexerStateTests.java | 4 +- .../transforms/TransformIndexerTests.java | 4 +- 59 files changed, 310 insertions(+), 277 deletions(-) diff --git a/build-tools-internal/src/main/resources/checkstyle.xml b/build-tools-internal/src/main/resources/checkstyle.xml index e0db1be76d965..95a32e026c1ff 100644 --- a/build-tools-internal/src/main/resources/checkstyle.xml +++ b/build-tools-internal/src/main/resources/checkstyle.xml @@ -107,6 +107,13 @@ +