From 56c333dffaacd2d533c477325a7ab40341eb216d Mon Sep 17 00:00:00 2001 From: Sho Ikeda Date: Thu, 23 Nov 2017 22:51:24 +0900 Subject: [PATCH] [SR-6419] Use `@available(*, unavailable)` instead of inappropriate `@available(*, obsoleted: 4.0)` `swift` should be used instead of `*` with `obsoleted: 4.0` here. But somehow use `unavailable` (as requested). --- Foundation/NSNotification.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/NSNotification.swift b/Foundation/NSNotification.swift index b848d6d443..b218860c33 100644 --- a/Foundation/NSNotification.swift +++ b/Foundation/NSNotification.swift @@ -188,7 +188,7 @@ open class NotificationCenter: NSObject { }) } - @available(*,obsoleted:4.0,renamed:"addObserver(forName:object:queue:using:)") + @available(*, unavailable, renamed: "addObserver(forName:object:queue:using:)") open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, usingBlock block: @escaping (Notification) -> Void) -> NSObjectProtocol { return addObserver(forName: name, object: obj, queue: queue, using: block) }