Skip to content

Commit 98e8ba3

Browse files
committed
Update TypeVisitor constructor to be protected
1 parent 8bf0b97 commit 98e8ba3

File tree

1 file changed

+4
-4
lines changed
  • src/Aliencube.AzureFunctions.Extensions.OpenApi.Core/Visitors

1 file changed

+4
-4
lines changed

src/Aliencube.AzureFunctions.Extensions.OpenApi.Core/Visitors/TypeVisitor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ namespace Aliencube.AzureFunctions.Extensions.OpenApi.Core.Visitors
1919
public abstract class TypeVisitor : IVisitor
2020
{
2121
/// <summary>
22-
/// Constructor required for <see cref="VisitorCollection"/>
22+
/// Initializes a new instance of the <see cref="TypeVisitor"/> class.
2323
/// </summary>
24-
/// <param name="visitorCollection"><see cref="VisitorCollection"/></param>
25-
public TypeVisitor(VisitorCollection visitorCollection)
24+
/// <param name="visitorCollection"><see cref="VisitorCollection"/> instance.</param>
25+
protected TypeVisitor(VisitorCollection visitorCollection)
2626
{
27-
this.VisitorCollection = visitorCollection;
27+
this.VisitorCollection = visitorCollection.ThrowIfNullOrDefault();
2828
}
2929

3030
/// <summary>

0 commit comments

Comments
 (0)