Skip to content

Commit

Permalink
Make CharSequence implementations sealed, NightOwl888#80
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Oct 13, 2024
1 parent e55a06c commit 2e2c7f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/J2N/Text/CharArrayCharSequence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace J2N.Text
/// <summary>
/// A wrapper class that represents a <see cref="T:char[]"/> and implements <see cref="ICharSequence"/>.
/// </summary>
public class CharArrayCharSequence : ICharSequence,
public sealed class CharArrayCharSequence : ICharSequence,
IComparable<ICharSequence>, IComparable,
IComparable<string>, IComparable<StringBuilder>, IComparable<char[]>,
IEquatable<ICharSequence>,
Expand Down
2 changes: 1 addition & 1 deletion src/J2N/Text/StringBuilderCharSequence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace J2N.Text
/// <summary>
/// A wrapper class that represents a <see cref="System.Text.StringBuilder"/> and implements <see cref="ICharSequence"/>.
/// </summary>
public class StringBuilderCharSequence : ICharSequence, IAppendable,
public sealed class StringBuilderCharSequence : ICharSequence, IAppendable,
IComparable<ICharSequence>, IComparable,
IComparable<string>, IComparable<StringBuilder>, IComparable<char[]>,
IEquatable<ICharSequence>,
Expand Down
2 changes: 1 addition & 1 deletion src/J2N/Text/StringCharSequence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace J2N.Text
/// <summary>
/// A wrapper class that represents a <see cref="string"/> and implements <see cref="ICharSequence"/>.
/// </summary>
public class StringCharSequence : ICharSequence,
public sealed class StringCharSequence : ICharSequence,
IComparable<ICharSequence>, IComparable,
IComparable<string>, IComparable<StringBuilder>, IComparable<char[]>,
IEquatable<ICharSequence>,
Expand Down

0 comments on commit 2e2c7f8

Please sign in to comment.