Skip to content

Commit 9594c7a

Browse files
committed
sealed internal types
1 parent 4fca64a commit 9594c7a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

SystemTextJsonPatch/Internal/JSonObjectAdapter.cs

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

55
namespace SystemTextJsonPatch.Internal;
66

7-
public class JSonObjectAdapter : IAdapter
7+
public sealed class JSonObjectAdapter : IAdapter
88
{
99
public bool TryAdd(
1010
object target,

SystemTextJsonPatch/Internal/ListAdapter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SystemTextJsonPatch.Internal;
99
/// This API supports infrastructure and is not intended to be used
1010
/// directly from your code. This API may change or be removed in future releases.
1111
/// </summary>
12-
public class ListAdapter : IAdapter
12+
public sealed class ListAdapter : IAdapter
1313
{
1414
public bool TryAdd(
1515
object target,

SystemTextJsonPatch/Internal/PocoAdapter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace SystemTextJsonPatch.Internal;
1212
/// This API supports infrastructure and is not intended to be used
1313
/// directly from your code. This API may change or be removed in future releases.
1414
/// </summary>
15-
public class PocoAdapter : IAdapter
15+
public sealed class PocoAdapter : IAdapter
1616
{
1717
public bool TryAdd(
1818
object target,
@@ -224,7 +224,7 @@ out IPropertyProxy? jsonProperty
224224
return new DictionaryPropertyProxy(dictionary, propertyName);
225225
}
226226

227-
if (target is IDictionary<string, object> typedDictionary)
227+
if (target is IDictionary<string, object?> typedDictionary)
228228
{
229229
return new DictionaryTypedPropertyProxy(typedDictionary, propertyName);
230230
}

0 commit comments

Comments
 (0)