Skip to content

Commit 839cc58

Browse files
author
Bart Koelman
committed
Sealed types
1 parent 2322ac8 commit 839cc58

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/JsonApiDotNetCore/Serialization/JsonApiReader.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
namespace JsonApiDotNetCore.Serialization
1919
{
2020
/// <inheritdoc />
21-
[PublicAPI]
22-
public class JsonApiReader : IJsonApiReader
21+
public sealed class JsonApiReader : IJsonApiReader
2322
{
2423
private readonly IJsonApiOptions _options;
2524
private readonly IDocumentAdapter _documentAdapter;

src/JsonApiDotNetCore/Serialization/JsonApiWriter.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Net.Http;
77
using System.Text;
88
using System.Threading.Tasks;
9-
using JetBrains.Annotations;
109
using JsonApiDotNetCore.Diagnostics;
1110
using JsonApiDotNetCore.Errors;
1211
using JsonApiDotNetCore.Middleware;
@@ -24,8 +23,7 @@ namespace JsonApiDotNetCore.Serialization
2423
/// Formats the response data used (see https://docs.microsoft.com/en-us/aspnet/core/web-api/advanced/formatting?view=aspnetcore-3.0). It was intended to
2524
/// have as little dependencies as possible in formatting layer for greater extensibility.
2625
/// </summary>
27-
[PublicAPI]
28-
public class JsonApiWriter : IJsonApiWriter
26+
public sealed class JsonApiWriter : IJsonApiWriter
2927
{
3028
private readonly IJsonApiSerializer _serializer;
3129
private readonly IExceptionHandler _exceptionHandler;

0 commit comments

Comments
 (0)