Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jdconrad committed Apr 3, 2024
1 parent 9cdea52 commit b228a16
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -617,7 +616,7 @@ public int forceEvict(Predicate<KeyType> cacheKeyPredicate) {

// used by tests
int getFreq(CacheFileRegion cacheFileRegion) {
//TODO: remove this
// TODO: remove this
return -1;
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b228a16

Please sign in to comment.