Skip to content

Commit 1e2fdc3

Browse files
Sync shared code from runtime (#31271)
Co-authored-by: Tratcher <[email protected]>
1 parent 5189524 commit 1e2fdc3

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/Shared/runtime/Http2/Hpack/DynamicTable.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace System.Net.Http.HPack
55
{
6-
internal class DynamicTable
6+
internal sealed class DynamicTable
77
{
88
private HeaderField[] _buffer;
99
private int _maxSize;

src/Shared/runtime/Http2/Hpack/HPackDecoder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace System.Net.Http.HPack
1313
{
14-
internal class HPackDecoder
14+
internal sealed class HPackDecoder
1515
{
1616
private enum State : byte
1717
{

src/Shared/runtime/Http2/Hpack/HPackDecodingException.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace System.Net.Http.HPack
77
{
88
// TODO: Should this be public?
99
[Serializable]
10-
internal class HPackDecodingException : Exception
10+
internal sealed class HPackDecodingException : Exception
1111
{
1212
public HPackDecodingException()
1313
{

src/Shared/runtime/Http2/Hpack/HuffmanDecodingException.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace System.Net.Http.HPack
77
{
88
// TODO: Should this be public?
99
[Serializable]
10-
internal class HuffmanDecodingException : Exception, ISerializable
10+
internal sealed class HuffmanDecodingException : Exception, ISerializable
1111
{
1212
public HuffmanDecodingException()
1313
{
@@ -18,7 +18,7 @@ public HuffmanDecodingException(string message)
1818
{
1919
}
2020

21-
protected HuffmanDecodingException(SerializationInfo info, StreamingContext context)
21+
private HuffmanDecodingException(SerializationInfo info, StreamingContext context)
2222
: base(info, context)
2323
{
2424
}

src/Shared/runtime/Http2/Hpack/IntegerDecoder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace System.Net.Http.HPack
88
{
9-
internal class IntegerDecoder
9+
internal sealed class IntegerDecoder
1010
{
1111
private int _i;
1212
private int _m;

src/Shared/runtime/Http3/QPack/QPackDecoder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace System.Net.Http.QPack
1515
{
16-
internal class QPackDecoder : IDisposable
16+
internal sealed class QPackDecoder : IDisposable
1717
{
1818
private enum State
1919
{

src/Shared/runtime/Http3/QPack/QPackEncoder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace System.Net.Http.QPack
1111
{
12-
internal class QPackEncoder
12+
internal sealed class QPackEncoder
1313
{
1414
private IEnumerator<KeyValuePair<string, string>>? _enumerator;
1515

0 commit comments

Comments
 (0)