Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Alfonsi <[email protected]>
  • Loading branch information
Peter Alfonsi committed Jan 11, 2024
1 parent 3466ae0 commit c4d51ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ public void onRemoval(StoreAwareCacheRemovalNotification<K, V> notification) {
case ON_HEAP:
if (checkPolicies(notification.getValue())) {
try (ReleasableLock ignore = writeLock.acquire()) {
onDiskCache.ifPresent(diskTier -> {
diskTier.put(notification.getKey(), notification.getValue());
});
onDiskCache.ifPresent(diskTier -> { diskTier.put(notification.getKey(), notification.getValue()); });
}
onDiskCache.ifPresent(
diskTier -> listener.onCached(notification.getKey(), notification.getValue(), CacheStoreType.DISK)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ public void testDiskTierPolicies() throws Exception {

LoadAwareCacheLoader<String, String> loader = getLoadAwareCacheLoaderWithKeyValueMap(keyValuePairs);


for (String key : keyValuePairs.keySet()) {
Boolean expectedOutput = expectedOutputs.get(key);
String value = tieredSpilloverCache.computeIfAbsent(key, loader);
Expand Down

0 comments on commit c4d51ad

Please sign in to comment.