From b228a16d5ef24b7fe2521be7be98545ab63e32fd Mon Sep 17 00:00:00 2001 From: Jack Conradson Date: Wed, 3 Apr 2024 13:45:37 -0700 Subject: [PATCH] spotless --- .../blobcache/shared/SharedBlobCacheService.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java b/x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java index 0d2ee3f7a2213..6714bf712e85a 100644 --- a/x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java +++ b/x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java @@ -55,7 +55,6 @@ import java.util.concurrent.Executor; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.LongAdder; import java.util.function.IntConsumer; import java.util.function.Predicate; @@ -262,12 +261,12 @@ void computeDecay() { // used in tests void maybeScheduleDecayAndNewEpoch() { - //TODO: remove this + // TODO: remove this } // used in tests long epoch() { - //TODO: remove this + // TODO: remove this return -1L; } @@ -572,7 +571,7 @@ public void maybeFetchRegion( // used by tests boolean maybeEvictLeastRecent() { - if (cache instanceof SharedBlobCacheService.LRUCache LRUCache) { + if (cache instanceof LRUCache LRUCache) { return LRUCache.maybeEvictLeastRecent(); } return false; @@ -617,7 +616,7 @@ public int forceEvict(Predicate cacheKeyPredicate) { // used by tests int getFreq(CacheFileRegion cacheFileRegion) { - //TODO: remove this + // TODO: remove this return -1; } @@ -1455,7 +1454,7 @@ private SharedBytes.IO maybeEvictAndTake() { * * @return true if an entry was evicted, false otherwise. */ - public boolean maybeEvictLeastRecent() { + public boolean maybeEvictLeastRecent() { synchronized (SharedBlobCacheService.this) { LRUCacheEntry entry = middle.tail; if (entry != null) {