Skip to content

Commit

Permalink
Fixed accessibility of NoOpStringBuilderPool: private -> public (#6244
Browse files Browse the repository at this point in the history
)
  • Loading branch information
shtannikov authored Jun 5, 2023
1 parent b2bfdff commit 9f21941
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,4 @@ internal static DescriptorContext Create(
contextData ?? new Dictionary<string, object?>(),
schema ?? new SchemaBuilder.LazySchema(),
typeInterceptor ?? new AggregateTypeInterceptor());

private sealed class NoOpStringBuilderPool : ObjectPool<StringBuilder>
{
public override StringBuilder Get() => new();

public override void Return(StringBuilder obj)
{
obj.Clear();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace HotChocolate.Types.Descriptors;

public class NoOpStringBuilderPool : ObjectPool<StringBuilder>
public sealed class NoOpStringBuilderPool : ObjectPool<StringBuilder>
{
public override StringBuilder Get() => new();

Expand Down

0 comments on commit 9f21941

Please sign in to comment.