Skip to content

Commit 14c0da0

Browse files
committed
Add missing generic types and nullability annotations to PFACLState.
1 parent eb1af0e commit 14c0da0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Parse/Internal/ACL/State/PFACLState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ typedef void (^PFACLStateMutationBlock)(PFMutableACLState *);
1717

1818
@interface PFACLState : PFBaseState<PFBaseStateSubclass, NSCopying, NSMutableCopying>
1919

20-
@property (nonatomic, copy, readonly) NSDictionary *permissions;
20+
@property (nonatomic, copy, readonly) NSDictionary<NSString *, id> *permissions;
2121
@property (nonatomic, assign, readonly, getter=isShared) BOOL shared;
2222

2323
///--------------------------------------

Parse/Internal/ACL/State/PFMutableACLState.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99

1010
#import "PFACLState.h"
1111

12+
NS_ASSUME_NONNULL_BEGIN
13+
1214
@interface PFMutableACLState : PFACLState
1315

14-
@property (nonatomic, copy, readwrite) NSMutableDictionary *permissions;
16+
@property (nonatomic, copy, readwrite) NSMutableDictionary<NSString *, id> *permissions;
1517
@property (nonatomic, assign, readwrite, getter=isShared) BOOL shared;
1618

1719
@end
20+
21+
NS_ASSUME_NONNULL_END

Parse/Internal/ACL/State/PFMutableACLState.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ @implementation PFMutableACLState
2222

2323
- (instancetype)init {
2424
self = [super init];
25-
if (!self) return nil;
25+
if (!self) return self;
2626

2727
_permissions = [NSMutableDictionary dictionary];
2828

0 commit comments

Comments
 (0)