File tree 4 files changed +8
-12
lines changed
Sources/FoundationEssentials 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,7 @@ open class JSONDecoder {
257
257
}
258
258
259
259
/// Contextual user-provided information for use during decoding.
260
- @preconcurrency
261
- open var userInfo : [ CodingUserInfoKey : any Sendable ] {
260
+ open var userInfo : [ CodingUserInfoKey : Any ] {
262
261
get {
263
262
optionsLock. lock ( )
264
263
defer { optionsLock. unlock ( ) }
@@ -310,7 +309,7 @@ open class JSONDecoder {
310
309
var dataDecodingStrategy : DataDecodingStrategy = . base64
311
310
var nonConformingFloatDecodingStrategy : NonConformingFloatDecodingStrategy = . throw
312
311
var keyDecodingStrategy : KeyDecodingStrategy = . useDefaultKeys
313
- var userInfo : [ CodingUserInfoKey : any Sendable ] = [ : ]
312
+ var userInfo : [ CodingUserInfoKey : Any ] = [ : ]
314
313
var json5 : Bool = false
315
314
}
316
315
Original file line number Diff line number Diff line change @@ -295,8 +295,7 @@ open class JSONEncoder {
295
295
}
296
296
297
297
/// Contextual user-provided information for use during encoding.
298
- @preconcurrency
299
- open var userInfo : [ CodingUserInfoKey : any Sendable ] {
298
+ open var userInfo : [ CodingUserInfoKey : Any ] {
300
299
get {
301
300
optionsLock. lock ( )
302
301
defer { optionsLock. unlock ( ) }
@@ -325,7 +324,7 @@ open class JSONEncoder {
325
324
var dataEncodingStrategy : DataEncodingStrategy = . base64
326
325
var nonConformingFloatEncodingStrategy : NonConformingFloatEncodingStrategy = . throw
327
326
var keyEncodingStrategy : KeyEncodingStrategy = . useDefaultKeys
328
- var userInfo : [ CodingUserInfoKey : any Sendable ] = [ : ]
327
+ var userInfo : [ CodingUserInfoKey : Any ] = [ : ]
329
328
}
330
329
331
330
/// The options set on the top-level encoder.
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ open class PropertyListDecoder {
38
38
// MARK: Options
39
39
40
40
/// Contextual user-provided information for use during decoding.
41
- @preconcurrency
42
- open var userInfo : [ CodingUserInfoKey : any Sendable ] {
41
+ open var userInfo : [ CodingUserInfoKey : Any ] {
43
42
get {
44
43
optionsLock. lock ( )
45
44
defer { optionsLock. unlock ( ) }
@@ -63,7 +62,7 @@ open class PropertyListDecoder {
63
62
64
63
/// Options set on the top-level encoder to pass down the decoding hierarchy.
65
64
internal struct _Options {
66
- var userInfo : [ CodingUserInfoKey : any Sendable ] = [ : ]
65
+ var userInfo : [ CodingUserInfoKey : Any ] = [ : ]
67
66
}
68
67
69
68
/// The options set on the top-level decoder.
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ open class PropertyListEncoder {
51
51
}
52
52
53
53
/// Contextual user-provided information for use during encoding.
54
- @preconcurrency
55
- open var userInfo : [ CodingUserInfoKey : any Sendable ] {
54
+ open var userInfo : [ CodingUserInfoKey : Any ] {
56
55
get {
57
56
optionsLock. lock ( )
58
57
defer { optionsLock. unlock ( ) }
@@ -77,7 +76,7 @@ open class PropertyListEncoder {
77
76
/// Options set on the top-level encoder to pass down the encoding hierarchy.
78
77
internal struct _Options {
79
78
var outputFormat : PropertyListDecoder . PropertyListFormat = . binary
80
- var userInfo : [ CodingUserInfoKey : any Sendable ] = [ : ]
79
+ var userInfo : [ CodingUserInfoKey : Any ] = [ : ]
81
80
}
82
81
83
82
/// The options set on the top-level encoder.
You can’t perform that action at this time.
0 commit comments