Minor little cleanups (#2695)
authorChristopher Tubbs <ctubbsii@apache.org>
Fri, 13 May 2022 22:18:42 +0000 (18:18 -0400)
committerGitHub <noreply@github.com>
Fri, 13 May 2022 22:18:42 +0000 (18:18 -0400)
commit1a0bb1e3d58583ab1f9a90dd1bbc33138345d85a
treef028f1009204484eb83e9422d5a1b52455afede3
parent79fb7964143695cfd2c6e58c60121998ae46dbb8
Minor little cleanups (#2695)

* Remove or narrow unnecessary or broad warnings suppressions
* Shorten the lookup of annotations in Property.java
* Use Streams where they simplify or improve the processing of big loops
* Shorten a few lines with casts using var
* Improve use of generics in a few places
* Fix license header in proto generation to be consistent with project
* Avoid unnecessary reflection to load DistCp in ShellServerIT
* Remove unneeded super()
54 files changed:
core/src/main/java/org/apache/accumulo/core/bloomfilter/BloomFilter.java
core/src/main/java/org/apache/accumulo/core/classloader/DefaultContextClassLoaderFactory.java
core/src/main/java/org/apache/accumulo/core/client/SampleNotPresentException.java
core/src/main/java/org/apache/accumulo/core/client/mapred/RangeInputSplit.java
core/src/main/java/org/apache/accumulo/core/client/security/tokens/AuthenticationToken.java
core/src/main/java/org/apache/accumulo/core/client/security/tokens/CredentialProviderToken.java
core/src/main/java/org/apache/accumulo/core/clientImpl/DelegationTokenImpl.java
core/src/main/java/org/apache/accumulo/core/clientImpl/IsolationException.java
core/src/main/java/org/apache/accumulo/core/clientImpl/mapred/BatchInputSplit.java
core/src/main/java/org/apache/accumulo/core/conf/Property.java
core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/lru/CachedBlock.java
core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/lru/LruBlockCache.java
core/src/main/java/org/apache/accumulo/core/file/blockfile/impl/CachableBlockFile.java
core/src/main/java/org/apache/accumulo/core/file/rfile/PrintInfo.java
core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/MetaBlockAlreadyExists.java
core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/MetaBlockDoesNotExist.java
core/src/main/java/org/apache/accumulo/core/iterators/FirstEntryInRowIterator.java
core/src/main/java/org/apache/accumulo/core/iterators/user/ColumnAgeOffFilter.java
core/src/main/java/org/apache/accumulo/core/iteratorsImpl/IteratorConfigUtil.java
core/src/main/java/org/apache/accumulo/core/iteratorsImpl/conf/ColumnToClassMapping.java
core/src/main/java/org/apache/accumulo/core/iteratorsImpl/system/IterationInterruptedException.java
core/src/main/java/org/apache/accumulo/core/singletons/SingletonReservation.java
core/src/main/java/org/apache/accumulo/core/spi/crypto/CryptoService.java
core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
core/src/main/java/org/apache/accumulo/fate/ZooStore.java
core/src/test/java/org/apache/accumulo/core/clientImpl/TabletLocatorImplTest.java
core/src/test/java/org/apache/accumulo/core/crypto/CryptoTest.java
hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapred/BatchInputSplit.java
hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapred/RangeInputSplit.java
minicluster/src/test/java/org/apache/accumulo/miniclusterImpl/CleanShutdownMacTest.java
server/base/src/main/java/org/apache/accumulo/server/compaction/RetryableThriftCall.java
server/base/src/main/java/org/apache/accumulo/server/conf/store/impl/ZooPropLoader.java
server/base/src/main/java/org/apache/accumulo/server/fs/PerTableVolumeChooser.java
server/base/src/main/java/org/apache/accumulo/server/fs/PreferredVolumeChooser.java
server/base/src/main/java/org/apache/accumulo/server/fs/RandomVolumeChooser.java
server/base/src/main/java/org/apache/accumulo/server/fs/SpaceAwareVolumeChooser.java
server/base/src/main/java/org/apache/accumulo/server/replication/proto/Replication.java
server/base/src/main/scripts/generate-protobuf.sh
server/base/src/test/java/org/apache/accumulo/server/conf/store/impl/PropCacheCaffeineImplTest.java
server/compaction-coordinator/src/main/java/org/apache/accumulo/coordinator/QueueAndPriority.java
server/manager/src/main/java/org/apache/accumulo/manager/replication/WorkDriver.java
server/monitor/src/main/java/org/apache/accumulo/monitor/util/logging/AccumuloMonitorAppender.java
server/tserver/src/main/java/org/apache/accumulo/tserver/MemKey.java
server/tserver/src/main/java/org/apache/accumulo/tserver/MemKeyConversionIterator.java
server/tserver/src/main/java/org/apache/accumulo/tserver/TabletClientHandler.java
server/tserver/src/main/java/org/apache/accumulo/tserver/compaction/DefaultCompactionStrategy.java
server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/TabletClosedException.java
server/tserver/src/test/java/org/apache/accumulo/tserver/memory/LargestFirstMemoryManagerTest.java
server/tserver/src/test/java/org/apache/accumulo/tserver/tablet/CompactableImplFileManagerTest.java
shell/src/main/java/org/apache/accumulo/shell/commands/SetIterCommand.java
test/src/main/java/org/apache/accumulo/test/compaction/ExternalDoNothingCompactor.java
test/src/main/java/org/apache/accumulo/test/metrics/TestStatsDSink.java
test/src/main/java/org/apache/accumulo/test/shell/ShellServerIT.java
test/src/main/java/org/apache/accumulo/test/util/CertUtils.java