diff --git a/src/Shared/runtime/Http2/Hpack/DynamicTable.cs b/src/Shared/runtime/Http2/Hpack/DynamicTable.cs index cb6a76350e2d..7b496baf83ee 100644 --- a/src/Shared/runtime/Http2/Hpack/DynamicTable.cs +++ b/src/Shared/runtime/Http2/Hpack/DynamicTable.cs @@ -3,7 +3,7 @@ namespace System.Net.Http.HPack { - internal class DynamicTable + internal sealed class DynamicTable { private HeaderField[] _buffer; private int _maxSize; diff --git a/src/Shared/runtime/Http2/Hpack/HPackDecoder.cs b/src/Shared/runtime/Http2/Hpack/HPackDecoder.cs index 8899104eb18d..2cce40894f1d 100644 --- a/src/Shared/runtime/Http2/Hpack/HPackDecoder.cs +++ b/src/Shared/runtime/Http2/Hpack/HPackDecoder.cs @@ -11,7 +11,7 @@ namespace System.Net.Http.HPack { - internal class HPackDecoder + internal sealed class HPackDecoder { private enum State : byte { diff --git a/src/Shared/runtime/Http2/Hpack/HPackDecodingException.cs b/src/Shared/runtime/Http2/Hpack/HPackDecodingException.cs index 605cac1c0fe4..b0225bb6f9a1 100644 --- a/src/Shared/runtime/Http2/Hpack/HPackDecodingException.cs +++ b/src/Shared/runtime/Http2/Hpack/HPackDecodingException.cs @@ -7,7 +7,7 @@ namespace System.Net.Http.HPack { // TODO: Should this be public? [Serializable] - internal class HPackDecodingException : Exception + internal sealed class HPackDecodingException : Exception { public HPackDecodingException() { diff --git a/src/Shared/runtime/Http2/Hpack/HuffmanDecodingException.cs b/src/Shared/runtime/Http2/Hpack/HuffmanDecodingException.cs index 7199e3666809..287497b7ee11 100644 --- a/src/Shared/runtime/Http2/Hpack/HuffmanDecodingException.cs +++ b/src/Shared/runtime/Http2/Hpack/HuffmanDecodingException.cs @@ -7,7 +7,7 @@ namespace System.Net.Http.HPack { // TODO: Should this be public? [Serializable] - internal class HuffmanDecodingException : Exception, ISerializable + internal sealed class HuffmanDecodingException : Exception, ISerializable { public HuffmanDecodingException() { @@ -18,7 +18,7 @@ public HuffmanDecodingException(string message) { } - protected HuffmanDecodingException(SerializationInfo info, StreamingContext context) + private HuffmanDecodingException(SerializationInfo info, StreamingContext context) : base(info, context) { } diff --git a/src/Shared/runtime/Http2/Hpack/IntegerDecoder.cs b/src/Shared/runtime/Http2/Hpack/IntegerDecoder.cs index f98fdf7b241a..6faa058ebf99 100644 --- a/src/Shared/runtime/Http2/Hpack/IntegerDecoder.cs +++ b/src/Shared/runtime/Http2/Hpack/IntegerDecoder.cs @@ -6,7 +6,7 @@ namespace System.Net.Http.HPack { - internal class IntegerDecoder + internal sealed class IntegerDecoder { private int _i; private int _m; diff --git a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs index fdb03562cc8a..96de7c653380 100644 --- a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs +++ b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs @@ -13,7 +13,7 @@ namespace System.Net.Http.QPack { - internal class QPackDecoder : IDisposable + internal sealed class QPackDecoder : IDisposable { private enum State { diff --git a/src/Shared/runtime/Http3/QPack/QPackEncoder.cs b/src/Shared/runtime/Http3/QPack/QPackEncoder.cs index 97b85b41a527..1b09f8e9ca39 100644 --- a/src/Shared/runtime/Http3/QPack/QPackEncoder.cs +++ b/src/Shared/runtime/Http3/QPack/QPackEncoder.cs @@ -9,7 +9,7 @@ namespace System.Net.Http.QPack { - internal class QPackEncoder + internal sealed class QPackEncoder { private IEnumerator>? _enumerator;