Skip to content

Commit 1a14f6c

Browse files
authored
chore: Adding sealed keyword to classes (#191)
1 parent 18a092a commit 1a14f6c

7 files changed

+7
-7
lines changed

src/OpenFeature/Model/ClientMetadata.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace OpenFeature.Model
33
/// <summary>
44
/// Represents the client metadata
55
/// </summary>
6-
public class ClientMetadata : Metadata
6+
public sealed class ClientMetadata : Metadata
77
{
88
/// <summary>
99
/// Version of the client

src/OpenFeature/Model/FlagEvaluationDetails.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace OpenFeature.Model
77
/// </summary>
88
/// <typeparam name="T">Flag value type</typeparam>
99
/// <seealso href="https://github.com/open-feature/spec/blob/v0.5.2/specification/types.md#evaluation-details"/>
10-
public class FlagEvaluationDetails<T>
10+
public sealed class FlagEvaluationDetails<T>
1111
{
1212
/// <summary>
1313
/// Feature flag evaluated value

src/OpenFeature/Model/FlagEvaluationOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace OpenFeature.Model
77
/// The hook and hook hints are added to the list of hooks called during the evaluation process
88
/// </summary>
99
/// <seealso href="https://github.com/open-feature/spec/blob/v0.5.2/specification/types.md#evaluation-options">Flag Evaluation Options</seealso>
10-
public class FlagEvaluationOptions
10+
public sealed class FlagEvaluationOptions
1111
{
1212
/// <summary>
1313
/// A immutable list of <see cref="Hook"/>

src/OpenFeature/Model/HookContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace OpenFeature.Model
88
/// </summary>
99
/// <typeparam name="T">Flag value type</typeparam>
1010
/// <seealso href="https://github.com/open-feature/spec/blob/v0.5.2/specification/sections/04-hooks.md#41-hook-context"/>
11-
public class HookContext<T>
11+
public sealed class HookContext<T>
1212
{
1313
/// <summary>
1414
/// Feature flag being evaluated

src/OpenFeature/Model/ResolutionDetails.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace OpenFeature.Model
88
/// </summary>
99
/// <typeparam name="T">Flag value type</typeparam>
1010
/// <seealso href="https://github.com/open-feature/spec/blob/v0.5.2/specification/types.md#resolution-details"/>
11-
public class ResolutionDetails<T>
11+
public sealed class ResolutionDetails<T>
1212
{
1313
/// <summary>
1414
/// Feature flag evaluated value

src/OpenFeature/NoOpProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace OpenFeature
66
{
7-
internal class NoOpFeatureProvider : FeatureProvider
7+
internal sealed class NoOpFeatureProvider : FeatureProvider
88
{
99
private readonly Metadata _metadata = new Metadata(NoOpProvider.NoOpProviderName);
1010

src/OpenFeature/ProviderRepository.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace OpenFeature
1212
/// <summary>
1313
/// This class manages the collection of providers, both default and named, contained by the API.
1414
/// </summary>
15-
internal class ProviderRepository
15+
internal sealed class ProviderRepository
1616
{
1717
private FeatureProvider _defaultProvider = new NoOpFeatureProvider();
1818

0 commit comments

Comments
 (0)