File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,8 @@ open class Thread : NSObject {
153
153
#endif
154
154
internal var _status = _NSThreadStatus. initialized
155
155
internal var _cancelled = false
156
- /// - Note: this differs from the Darwin implementation in that the keys must be Strings
157
- open var threadDictionary = [ String : Any ] ( )
156
+
157
+ open private ( set ) var threadDictionary : NSMutableDictionary = NSMutableDictionary ( )
158
158
159
159
internal init ( thread: pthread_t ) {
160
160
// Note: even on Darwin this is a non-optional pthread_t; this is only used for valid threads, which are never null pointers.
Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ open class XMLParser : NSObject {
471
471
if let p = parser {
472
472
Thread . current. threadDictionary [ " __CurrentNSXMLParser " ] = p
473
473
} else {
474
- Thread . current. threadDictionary. removeValue ( forKey: " __CurrentNSXMLParser " )
474
+ Thread . current. threadDictionary. removeObject ( forKey: " __CurrentNSXMLParser " )
475
475
}
476
476
}
477
477
You can’t perform that action at this time.
0 commit comments