Skip to content

Commit d19bd8c

Browse files
committed
Re-add virtual to intended overrideable methods
While there are lots of places in the code where `virtual` is there simply because the Java auto-port treated an absence of `final` as intending overrideability, these two places are INTENDED override points.
1 parent a11168a commit d19bd8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/json-ld.net/Core/DocumentLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ JsonLDContentType GetJsonLDContentType(string contentTypeStr)
4545
}
4646

4747
/// <exception cref="JsonLDNet.Core.JsonLdError"></exception>
48-
public RemoteDocument LoadDocument(string url)
48+
public virtual RemoteDocument LoadDocument(string url)
4949
{
5050
return LoadDocumentAsync(url).GetAwaiter().GetResult();
5151
}
5252

5353
/// <exception cref="JsonLDNet.Core.JsonLdError"></exception>
54-
public async Task<RemoteDocument> LoadDocumentAsync(string url)
54+
public virtual async Task<RemoteDocument> LoadDocumentAsync(string url)
5555
{
5656
RemoteDocument doc = new RemoteDocument(url, null);
5757
try

0 commit comments

Comments
 (0)