Skip to content

Commit cec545b

Browse files
author
Cédric Belin
committed
Mark some classes as sealed
1 parent 2d6954d commit cec545b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up .NET
1111
uses: actions/setup-dotnet@v4
1212
with:
13-
dotnet-version: 8
13+
dotnet-version: 9
1414
- name: Run tests
1515
run: dotnet test
1616
env:

src/author.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Belin.Akismet;
66
/// Represents the author of a comment.
77
/// </summary>
88
/// <param name="ipAddress">The author's IP address.</param>
9-
public class Author(string ipAddress) {
9+
public sealed class Author(string ipAddress) {
1010

1111
/// <summary>
1212
/// The author's mail address. If you set it to <c>"akismet-guaranteed-spam@example.com"</c>, Akismet will always return <see langword="true"/>.

src/blog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Belin.Akismet;
66
/// Represents the front page or home URL transmitted when making requests.
77
/// </summary>
88
/// <param name="url">The blog or site URL.</param>
9-
public class Blog(string url) {
9+
public sealed class Blog(string url) {
1010

1111
/// <summary>
1212
/// The character encoding for the values included in comments.

src/comment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Belin.Akismet;
44
/// Represents a comment submitted by an author.
55
/// </summary>
66
/// <param name="author">The comment's author.</param>
7-
public class Comment(Author author) {
7+
public sealed class Comment(Author author) {
88

99
/// <summary>
1010
/// The comment's author.

0 commit comments

Comments
 (0)