From e75106ed2fb541b8fba14d8526d6e6f77d8a63b1 Mon Sep 17 00:00:00 2001 From: rauhul Date: Tue, 12 Jun 2018 18:11:32 -0700 Subject: [PATCH] replace public let with open private(set) var --- Foundation/NSURL.swift | 4 ++-- Foundation/URLSession/URLSession.swift | 4 ++-- Foundation/URLSession/URLSessionTask.swift | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Foundation/NSURL.swift b/Foundation/NSURL.swift index 72472f7ab6..e847be619b 100644 --- a/Foundation/NSURL.swift +++ b/Foundation/NSURL.swift @@ -955,8 +955,8 @@ open class NSURLQueryItem : NSObject, NSSecureCoding, NSCopying { && other.value == self.value) } - public let name: String - public let value: String? + open private(set) var name: String + open private(set) var value: String? } open class NSURLComponents: NSObject, NSCopying { diff --git a/Foundation/URLSession/URLSession.swift b/Foundation/URLSession/URLSession.swift index 8f69564078..aa5b149281 100644 --- a/Foundation/URLSession/URLSession.swift +++ b/Foundation/URLSession/URLSession.swift @@ -265,9 +265,9 @@ open class URLSession : NSObject { let _ = URLSession.registerProtocols } - public let delegateQueue: OperationQueue + open private(set) var delegateQueue: OperationQueue open var delegate: URLSessionDelegate? - public let configuration: URLSessionConfiguration + open private(set) var configuration: URLSessionConfiguration /* * The sessionDescription property is available for the developer to diff --git a/Foundation/URLSession/URLSessionTask.swift b/Foundation/URLSession/URLSessionTask.swift index 94ea22f389..b15fa217dc 100644 --- a/Foundation/URLSession/URLSessionTask.swift +++ b/Foundation/URLSession/URLSessionTask.swift @@ -102,10 +102,10 @@ open class URLSessionTask : NSObject, NSCopying { } /// An identifier for this task, assigned by and unique to the owning session - public let taskIdentifier: Int + open private(set) var taskIdentifier: Int /// May be nil if this is a stream task - /*@NSCopying*/ public let originalRequest: URLRequest? + /*@NSCopying*/ open private(set) var originalRequest: URLRequest? /// May differ from originalRequest due to http server redirection /*@NSCopying*/ open internal(set) var currentRequest: URLRequest? {