Mark several classes as final.

This commit is contained in:
Brent Simmons 2024-03-24 21:24:31 -07:00
parent f5c930a024
commit 8ad09228db
5 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ enum ArticleExtractorButtonState {
case off
}
class ArticleExtractorButton: NSButton {
final class ArticleExtractorButton: NSButton {
private var animatedLayer: CALayer?

View File

@ -8,7 +8,7 @@
import Foundation
class LegacyArticleExtractorButton: NSButton {
final class LegacyArticleExtractorButton: NSButton {
var isError = false {
didSet {

View File

@ -10,7 +10,7 @@ import AppKit
import Tree
import AppKitExtras
class SidebarOutlineView : NSOutlineView {
final class SidebarOutlineView : NSOutlineView {
@IBOutlet var keyboardDelegate: KeyboardDelegate!

View File

@ -22,7 +22,7 @@ protocol SidebarDelegate: AnyObject {
@MainActor func sidebarInvalidatedRestorationState(_: SidebarViewController)
}
@objc @MainActor class SidebarViewController: NSViewController, NSOutlineViewDelegate, NSMenuDelegate, UndoableCommandRunner {
@objc @MainActor final class SidebarViewController: NSViewController, NSOutlineViewDelegate, NSMenuDelegate, UndoableCommandRunner {
@IBOutlet weak var outlineView: NSOutlineView!

View File

@ -8,7 +8,7 @@
import AppKit
@MainActor final class UnreadCountView : NSView {
final class UnreadCountView : NSView {
@MainActor struct Appearance {
static let padding = NSEdgeInsets(top: 1.0, left: 7.0, bottom: 1.0, right: 7.0)