Skip to content

Commit 827bd7e

Browse files
Make some classes final
1 parent b0940f8 commit 827bd7e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/BlueConnect/Common/Registry.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ final class SubscriptionBox<ValueType>: @unchecked Sendable {
177177
/// to be invoked if it is not notified within the specified timeout.
178178
///
179179
/// - Note: `KeyType` must conform to `Hashable`.
180-
class KeyedRegistry<KeyType, ValueType> where KeyType: Hashable {
181-
180+
final class KeyedRegistry<KeyType, ValueType> where KeyType: Hashable {
181+
182182
// MARK: - Properties
183183

184184
/// A dictionary that stores subscriptions grouped by a unique key.
@@ -291,7 +291,7 @@ class KeyedRegistry<KeyType, ValueType> where KeyType: Hashable {
291291
/// `ListRegistry` allows you to register subscriptions, notify them with a result, and retrieve
292292
/// all active subscriptions. Each subscription includes a callback and an optional timeout
293293
/// with a handler that is invoked if the subscription is not notified within the specified time.
294-
class ListRegistry<ValueType> {
294+
final class ListRegistry<ValueType> {
295295

296296
// MARK: - Properties
297297

Tests/BlueConnectTests/DispatchTimeIntervalExtensionsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import XCTest
3636

3737
@testable import BlueConnect
3838

39-
class DispatchTimeIntervalExtensionsTests: XCTestCase {
39+
final class DispatchTimeIntervalExtensionsTests: XCTestCase {
4040

4141
func testSecondsAdd() {
4242
let x: DispatchTimeInterval = .seconds(4)

0 commit comments

Comments
 (0)