Skip to content

Commit

Permalink
seal the internal classes
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed Jan 5, 2023
1 parent f6a7086 commit 226796f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ out result
new RFC5322MilitaryTimeZoneDefinition(" Z"),
};

private class RFC5322MilitaryTimeZoneDefinition : TimeZoneDefinition {
private sealed class RFC5322MilitaryTimeZoneDefinition : TimeZoneDefinition {
public override StringComparison SuffixComparison => StringComparison.OrdinalIgnoreCase;

public RFC5322MilitaryTimeZoneDefinition(string suffix)
Expand All @@ -157,7 +157,7 @@ public override DateTimeOffset AdjustToTimeZone(DateTimeOffset dateAndTime)
}

// EST(-05:00)/EDT(-04:00)
private class RFC5322EasternTimeZoneDefinition : RFC5322NorthAmericanTimeZoneDefinition {
private sealed class RFC5322EasternTimeZoneDefinition : RFC5322NorthAmericanTimeZoneDefinition {
#if SYSTEM_TIMEZONEINFO_FINDSYSTEMTIMEZONEBYID
private static readonly IReadOnlyList<string> timeZoneIds = new[] {
"US/Eastern",
Expand All @@ -184,7 +184,7 @@ public RFC5322EasternTimeZoneDefinition(string prefix)
}

// CST(-06:00)/CDT(-05:00)
private class RFC5322CentralTimeZoneDefinition : RFC5322NorthAmericanTimeZoneDefinition {
private sealed class RFC5322CentralTimeZoneDefinition : RFC5322NorthAmericanTimeZoneDefinition {
#if SYSTEM_TIMEZONEINFO_FINDSYSTEMTIMEZONEBYID
private static readonly IReadOnlyList<string> timeZoneIds = new[] {
"US/Central",
Expand All @@ -211,7 +211,7 @@ public RFC5322CentralTimeZoneDefinition(string prefix)
}

// MST(-07:00)/MDT(-06:00)
private class RFC5322MountainTimeZoneDefinition : RFC5322NorthAmericanTimeZoneDefinition {
private sealed class RFC5322MountainTimeZoneDefinition : RFC5322NorthAmericanTimeZoneDefinition {
#if SYSTEM_TIMEZONEINFO_FINDSYSTEMTIMEZONEBYID
private static readonly IReadOnlyList<string> timeZoneIds = new[] {
"US/Mountain",
Expand All @@ -238,7 +238,7 @@ public RFC5322MountainTimeZoneDefinition(string prefix)
}

// PST(-08:00)/PDT(-07:00)
private class RFC5322PacificTimeZoneDefinition : RFC5322NorthAmericanTimeZoneDefinition {
private sealed class RFC5322PacificTimeZoneDefinition : RFC5322NorthAmericanTimeZoneDefinition {
#if SYSTEM_TIMEZONEINFO_FINDSYSTEMTIMEZONEBYID
private static readonly IReadOnlyList<string> timeZoneIds = new[] {
"US/Pacific",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Smdn.Formats.DateAndTime;

internal class UniversalTimeZoneDefinition : TimeZoneDefinition {
internal sealed class UniversalTimeZoneDefinition : TimeZoneDefinition {
public override bool IsUniversal => true;

public UniversalTimeZoneDefinition(string suffix)
Expand Down

0 comments on commit 226796f

Please sign in to comment.