From 6df6380e80e650c4e89db29c7c13e6ce6c8029f8 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) Backport of #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 +-- .../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/IndexPrivilegeTests.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 +- 54 files changed, 275 insertions(+), 238 deletions(-) diff --git a/build-tools-internal/src/main/resources/checkstyle.xml b/build-tools-internal/src/main/resources/checkstyle.xml index abc17672311c8..86718f32a9012 100644 --- a/build-tools-internal/src/main/resources/checkstyle.xml +++ b/build-tools-internal/src/main/resources/checkstyle.xml @@ -97,6 +97,13 @@ +