From 1a14f6cd6c8988756a2cf2da1137a739e8d960f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Silva?=
<2493377+askpt@users.noreply.github.com>
Date: Fri, 19 Jan 2024 17:18:58 +0000
Subject: [PATCH] chore: Adding sealed keyword to classes (#191)
---
src/OpenFeature/Model/ClientMetadata.cs | 2 +-
src/OpenFeature/Model/FlagEvaluationDetails.cs | 2 +-
src/OpenFeature/Model/FlagEvaluationOptions.cs | 2 +-
src/OpenFeature/Model/HookContext.cs | 2 +-
src/OpenFeature/Model/ResolutionDetails.cs | 2 +-
src/OpenFeature/NoOpProvider.cs | 2 +-
src/OpenFeature/ProviderRepository.cs | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/OpenFeature/Model/ClientMetadata.cs b/src/OpenFeature/Model/ClientMetadata.cs
index 6f148026..d006ff0d 100644
--- a/src/OpenFeature/Model/ClientMetadata.cs
+++ b/src/OpenFeature/Model/ClientMetadata.cs
@@ -3,7 +3,7 @@ namespace OpenFeature.Model
///
/// Represents the client metadata
///
- public class ClientMetadata : Metadata
+ public sealed class ClientMetadata : Metadata
{
///
/// Version of the client
diff --git a/src/OpenFeature/Model/FlagEvaluationDetails.cs b/src/OpenFeature/Model/FlagEvaluationDetails.cs
index 3871d306..af31ca6d 100644
--- a/src/OpenFeature/Model/FlagEvaluationDetails.cs
+++ b/src/OpenFeature/Model/FlagEvaluationDetails.cs
@@ -7,7 +7,7 @@ namespace OpenFeature.Model
///
/// Flag value type
///
- public class FlagEvaluationDetails
+ public sealed class FlagEvaluationDetails
{
///
/// Feature flag evaluated value
diff --git a/src/OpenFeature/Model/FlagEvaluationOptions.cs b/src/OpenFeature/Model/FlagEvaluationOptions.cs
index 92e4f355..6cf7478d 100644
--- a/src/OpenFeature/Model/FlagEvaluationOptions.cs
+++ b/src/OpenFeature/Model/FlagEvaluationOptions.cs
@@ -7,7 +7,7 @@ namespace OpenFeature.Model
/// The hook and hook hints are added to the list of hooks called during the evaluation process
///
/// Flag Evaluation Options
- public class FlagEvaluationOptions
+ public sealed class FlagEvaluationOptions
{
///
/// A immutable list of
diff --git a/src/OpenFeature/Model/HookContext.cs b/src/OpenFeature/Model/HookContext.cs
index edb2d93d..0b4a91f5 100644
--- a/src/OpenFeature/Model/HookContext.cs
+++ b/src/OpenFeature/Model/HookContext.cs
@@ -8,7 +8,7 @@ namespace OpenFeature.Model
///
/// Flag value type
///
- public class HookContext
+ public sealed class HookContext
{
///
/// Feature flag being evaluated
diff --git a/src/OpenFeature/Model/ResolutionDetails.cs b/src/OpenFeature/Model/ResolutionDetails.cs
index 66094410..024f36de 100644
--- a/src/OpenFeature/Model/ResolutionDetails.cs
+++ b/src/OpenFeature/Model/ResolutionDetails.cs
@@ -8,7 +8,7 @@ namespace OpenFeature.Model
///
/// Flag value type
///
- public class ResolutionDetails
+ public sealed class ResolutionDetails
{
///
/// Feature flag evaluated value
diff --git a/src/OpenFeature/NoOpProvider.cs b/src/OpenFeature/NoOpProvider.cs
index 6b29da2e..16ba38f4 100644
--- a/src/OpenFeature/NoOpProvider.cs
+++ b/src/OpenFeature/NoOpProvider.cs
@@ -4,7 +4,7 @@
namespace OpenFeature
{
- internal class NoOpFeatureProvider : FeatureProvider
+ internal sealed class NoOpFeatureProvider : FeatureProvider
{
private readonly Metadata _metadata = new Metadata(NoOpProvider.NoOpProviderName);
diff --git a/src/OpenFeature/ProviderRepository.cs b/src/OpenFeature/ProviderRepository.cs
index dbd0794c..ab2bdb30 100644
--- a/src/OpenFeature/ProviderRepository.cs
+++ b/src/OpenFeature/ProviderRepository.cs
@@ -12,7 +12,7 @@ namespace OpenFeature
///
/// This class manages the collection of providers, both default and named, contained by the API.
///
- internal class ProviderRepository
+ internal sealed class ProviderRepository
{
private FeatureProvider _defaultProvider = new NoOpFeatureProvider();