Skip to content

Commit b4402b9

Browse files
authored
Commands: mark class SwiftTool as explicitly final (#5889)
This class is already not marked as `open`, but making it `final` explicitly signals that it is not and shouldn't be subclassed within the Commands module.
1 parent e26417c commit b4402b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CoreCommands/SwiftTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func exec(path: String, args: [String]) throws -> Never {
113113
try TSCBasic.exec(path: path, args: args)
114114
}
115115

116-
public class SwiftTool {
116+
public final class SwiftTool {
117117
#if os(Windows)
118118
// unfortunately this is needed for C callback handlers used by Windows shutdown handler
119119
static var cancellator: Cancellator?

0 commit comments

Comments
 (0)