Skip to content

Commit b30d39a

Browse files
committed
Underscore added as prefix for privare type CachePersistence as per API guidelines.
1 parent e345e4b commit b30d39a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Foundation/URLCache.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ open class URLCache : NSObject {
132132
private static var sharedCache: URLCache?
133133

134134
private let syncQ = DispatchQueue(label: "org.swift.URLCache.syncQ")
135-
private var persistence: CachePersistence?
135+
private var persistence: _CachePersistence?
136136

137137
/*!
138138
@method sharedURLCache
@@ -202,7 +202,7 @@ open class URLCache : NSObject {
202202
self.diskCapacity = diskCapacity
203203

204204
if let _path = path {
205-
self.persistence = CachePersistence(path: _path)
205+
self.persistence = _CachePersistence(path: _path)
206206
}
207207

208208
super.init()
@@ -301,7 +301,7 @@ extension URLCache {
301301
public func removeCachedResponse(for dataTask: URLSessionDataTask) { NSUnimplemented() }
302302
}
303303

304-
fileprivate struct CachePersistence {
304+
fileprivate struct _CachePersistence {
305305

306306
let path: String
307307

0 commit comments

Comments
 (0)