Skip to content

Commit 2a3f9c8

Browse files
authored
seal (#250)
1 parent 9150637 commit 2a3f9c8

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

BitFaster.Caching/BitOps.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace BitFaster.Caching
55
/// <summary>
66
/// Provides utility methods for bit-twiddling operations.
77
/// </summary>
8-
public class BitOps
8+
public static class BitOps
99
{
1010
/// <summary>
1111
/// Calculate the smallest power of 2 greater than the input parameter.

BitFaster.Caching/Lfu/Builder/AtomicAsyncConcurrentLfuBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace BitFaster.Caching.Lfu.Builder
88
/// </summary>
99
/// <typeparam name="K">The type of the cache key.</typeparam>
1010
/// <typeparam name="V">The type of the cache value.</typeparam>
11-
public class AtomicAsyncConcurrentLfuBuilder<K, V> : LfuBuilderBase<K, V, AtomicAsyncConcurrentLfuBuilder<K, V>, IAsyncCache<K, V>>
11+
public sealed class AtomicAsyncConcurrentLfuBuilder<K, V> : LfuBuilderBase<K, V, AtomicAsyncConcurrentLfuBuilder<K, V>, IAsyncCache<K, V>>
1212
{
1313
private readonly ConcurrentLfuBuilder<K, AsyncAtomicFactory<K, V>> inner;
1414

BitFaster.Caching/Lfu/Builder/AtomicConcurrentLfuBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace BitFaster.Caching.Lfu.Builder
88
/// </summary>
99
/// <typeparam name="K">The type of the cache key.</typeparam>
1010
/// <typeparam name="V">The type of the cache value.</typeparam>
11-
public class AtomicConcurrentLfuBuilder<K, V> : LfuBuilderBase<K, V, AtomicConcurrentLfuBuilder<K, V>, ICache<K, V>>
11+
public sealed class AtomicConcurrentLfuBuilder<K, V> : LfuBuilderBase<K, V, AtomicConcurrentLfuBuilder<K, V>, ICache<K, V>>
1212
{
1313
private readonly ConcurrentLfuBuilder<K, AtomicFactory<K, V>> inner;
1414

BitFaster.Caching/Lfu/Builder/AtomicScopedConcurrentLfuBuilder.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using BitFaster.Caching.Atomic;
53

64
namespace BitFaster.Caching.Lfu.Builder
@@ -10,7 +8,7 @@ namespace BitFaster.Caching.Lfu.Builder
108
/// </summary>
119
/// <typeparam name="K">The type of the cache key.</typeparam>
1210
/// <typeparam name="V">The type of the cache value.</typeparam>
13-
public class AtomicScopedConcurrentLfuBuilder<K, V> : LfuBuilderBase<K, V, AtomicScopedConcurrentLfuBuilder<K, V>, IScopedCache<K, V>> where V : IDisposable
11+
public sealed class AtomicScopedConcurrentLfuBuilder<K, V> : LfuBuilderBase<K, V, AtomicScopedConcurrentLfuBuilder<K, V>, IScopedCache<K, V>> where V : IDisposable
1412
{
1513
private readonly ConcurrentLfuBuilder<K, ScopedAtomicFactory<K, V>> inner;
1614

0 commit comments

Comments
 (0)