Skip to content

Commit 7a93011

Browse files
committed
Underscore added as prefix for privare type CachePersistence as per API guidelines.
1 parent 0f21c7c commit 7a93011

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Foundation/URLCache.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ open class URLCache : NSObject {
126126
private static var sharedCache: URLCache?
127127

128128
private let syncQ = DispatchQueue(label: "org.swift.URLCache.syncQ")
129-
private var persistence: CachePersistence?
129+
private var persistence: _CachePersistence?
130130

131131
/*!
132132
@method sharedURLCache
@@ -196,7 +196,7 @@ open class URLCache : NSObject {
196196
self.diskCapacity = diskCapacity
197197

198198
if let _path = path {
199-
self.persistence = CachePersistence(path: _path)
199+
self.persistence = _CachePersistence(path: _path)
200200
}
201201

202202
super.init()
@@ -295,7 +295,7 @@ extension URLCache {
295295
public func removeCachedResponse(for dataTask: URLSessionDataTask) { NSUnimplemented() }
296296
}
297297

298-
fileprivate struct CachePersistence {
298+
fileprivate struct _CachePersistence {
299299

300300
let path: String
301301

0 commit comments

Comments
 (0)