@@ -18,6 +18,8 @@ typedef NS_OPTIONS(NSInteger, GTFilterListOptions) {
1818 GTFilterListOptionsAllowUnsafe = GIT_FILTER_ALLOW_UNSAFE,
1919};
2020
21+ NS_ASSUME_NONNULL_BEGIN
22+
2123// / An opaque list of filters that apply to a given path.
2224@interface GTFilterList : NSObject
2325
@@ -26,7 +28,9 @@ typedef NS_OPTIONS(NSInteger, GTFilterListOptions) {
2628// / filterList - The filter list to wrap and take ownership of. This filter list
2729// / will be automatically disposed when the receiver deallocates.
2830// / Must not be NULL.
29- - (instancetype )initWithGitFilterList : (git_filter_list *)filterList NS_DESIGNATED_INITIALIZER;
31+ // /
32+ // / Returns an initialized filter list, or nil if an error occurred.
33+ - (nullable instancetype )initWithGitFilterList : (git_filter_list *)filterList NS_DESIGNATED_INITIALIZER;
3034
3135// / Returns the underlying `git_filter_list`.
3236- (git_filter_list *)git_filter_list __attribute__((objc_returns_inner_pointer));
@@ -37,7 +41,7 @@ typedef NS_OPTIONS(NSInteger, GTFilterListOptions) {
3741// / error - If not NULL, set to any error that occurs.
3842// /
3943// / Returns the filtered data, or nil if an error occurs.
40- - (NSData *)applyToData : (NSData *)inputData error : (NSError **)error ;
44+ - (nullable NSData *)applyToData : (NSData *)inputData error : (NSError **)error ;
4145
4246// / Attempts to apply the filter list to a file in the given repository.
4347// /
@@ -47,14 +51,16 @@ typedef NS_OPTIONS(NSInteger, GTFilterListOptions) {
4751// / error - If not NULL, set to any error that occurs.
4852// /
4953// / Returns the filtered data, or nil if an error occurs.
50- - (NSData *)applyToPath : (NSString *)relativePath inRepository : (GTRepository *)repository error : (NSError **)error ;
54+ - (nullable NSData *)applyToPath : (NSString *)relativePath inRepository : (GTRepository *)repository error : (NSError **)error ;
5155
5256// / Attempts to apply the filter list to a blob.
5357// /
5458// / blob - A blob of the data that should be filtered. Must not be nil.
5559// / error - If not NULL, set to any error that occurs.
5660// /
5761// / Returns the filtered data, or nil if an error occurs.
58- - (NSData *)applyToBlob : (GTBlob *)blob error : (NSError **)error ;
62+ - (nullable NSData *)applyToBlob : (GTBlob *)blob error : (NSError **)error ;
5963
6064@end
65+
66+ NS_ASSUME_NONNULL_END
0 commit comments