@@ -17,6 +17,8 @@ extern NSString * const GTFilterErrorDomain;
1717// / A filter with that name has already been registered.
1818extern const NSInteger GTFilterErrorNameAlreadyRegistered;
1919
20+ NS_ASSUME_NONNULL_BEGIN
21+
2022// / Git filter abstraction.
2123// /
2224// / **Note**: GTFilter is *not* thread safe. Registration and unregistration
@@ -45,15 +47,17 @@ extern const NSInteger GTFilterErrorNameAlreadyRegistered;
4547// / applyBlock - The block to use to apply the filter. Cannot be nil.
4648// /
4749// / Returns the initialized object.
48- - (id )initWithName : (NSString *)name attributes : (NSString *)attributes applyBlock : (NSData * (^)(void **payload, NSData *from, GTFilterSource *source, BOOL *applied))applyBlock NS_DESIGNATED_INITIALIZER;
50+ - (nullable instancetype )initWithName : (NSString *)name attributes : (nullable NSString *)attributes applyBlock : (NSData * (^)(void **payload, NSData *from, GTFilterSource *source, BOOL *applied))applyBlock NS_DESIGNATED_INITIALIZER;
4951
5052// / Look up a filter based on its name.
5153// /
5254// / Note that this will only find filters registered through
5355// / -registerWithName:priority:error:.
5456// /
57+ // / name - The name of the filter to retrieve. Must not be nil.
58+ // /
5559// / Returns the filter, or nil if none was found.
56- + (GTFilter *)filterForName : (NSString *)name ;
60+ + (nullable GTFilter *)filterForName : (NSString *)name ;
5761
5862// / Registers the filter with the given priority.
5963// /
@@ -73,3 +77,5 @@ extern const NSInteger GTFilterErrorNameAlreadyRegistered;
7377- (BOOL )unregister : (NSError **)error ;
7478
7579@end
80+
81+ NS_ASSUME_NONNULL_END
0 commit comments