Skip to content

Commit e75106e

Browse files
committed
replace public let with open private(set) var
1 parent dc37b12 commit e75106e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Foundation/NSURL.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,8 +955,8 @@ open class NSURLQueryItem : NSObject, NSSecureCoding, NSCopying {
955955
&& other.value == self.value)
956956
}
957957

958-
public let name: String
959-
public let value: String?
958+
open private(set) var name: String
959+
open private(set) var value: String?
960960
}
961961

962962
open class NSURLComponents: NSObject, NSCopying {

Foundation/URLSession/URLSession.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ open class URLSession : NSObject {
265265
let _ = URLSession.registerProtocols
266266
}
267267

268-
public let delegateQueue: OperationQueue
268+
open private(set) var delegateQueue: OperationQueue
269269
open var delegate: URLSessionDelegate?
270-
public let configuration: URLSessionConfiguration
270+
open private(set) var configuration: URLSessionConfiguration
271271

272272
/*
273273
* The sessionDescription property is available for the developer to

Foundation/URLSession/URLSessionTask.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ open class URLSessionTask : NSObject, NSCopying {
102102
}
103103

104104
/// An identifier for this task, assigned by and unique to the owning session
105-
public let taskIdentifier: Int
105+
open private(set) var taskIdentifier: Int
106106

107107
/// May be nil if this is a stream task
108-
/*@NSCopying*/ public let originalRequest: URLRequest?
108+
/*@NSCopying*/ open private(set) var originalRequest: URLRequest?
109109

110110
/// May differ from originalRequest due to http server redirection
111111
/*@NSCopying*/ open internal(set) var currentRequest: URLRequest? {

0 commit comments

Comments
 (0)