Skip to content

Commit

Permalink
try nullguard differently
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Apr 25, 2019
1 parent 75e214f commit 517ec72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Nancy.Rdf/DictionaryNamespaceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using NullGuard;

namespace Nancy.Rdf
{
/// <summary>
/// Dictionary-backed <see cref="INamespaceManager"/>
/// </summary>
[NullGuard(ValidationFlags.AllPublic)]
internal class DictionaryNamespaceManager : INamespaceManager
{
private readonly IDictionary<string, Uri> namespaces;
Expand Down Expand Up @@ -42,7 +44,7 @@ public void AddNamespace(string prefix, Uri ns)
}

/// <inheritdoc />
public void SetBaseUri(Uri baseUri)
public void SetBaseUri([AllowNull] Uri baseUri)
{
this.BaseUri = baseUri;
}
Expand Down

0 comments on commit 517ec72

Please sign in to comment.