Differences From Artifact [2b45f06590]:
- File src/OFMessagePackExtension.m — part of check-in [c8f7b90082] at 2017-07-22 20:50:27 on branch trunk — Split OFDataArray into OFData and OFMutableData (user: js, size: 3590) [annotate] [blame] [check-ins using]
To Artifact [67186a8de4]:
- File
src/OFMessagePackExtension.m
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 3622) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
28 29 30 31 32 33 34 | + (instancetype)extensionWithType: (int8_t)type data: (OFData *)data { return [[[self alloc] initWithType: type data: data] autorelease]; } | | | | | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | + (instancetype)extensionWithType: (int8_t)type data: (OFData *)data { return [[[self alloc] initWithType: type data: data] autorelease]; } - (instancetype)init { OF_INVALID_INIT_METHOD } - (instancetype)initWithType: (int8_t)type data: (OFData *)data { self = [super init]; @try { if (data == nil || [data itemSize] != 1) @throw [OFInvalidArgumentException exception]; |
︙ | ︙ | |||
183 184 185 186 187 188 189 | OF_HASH_ADD_HASH(hash, [_data hash]); OF_HASH_FINALIZE(hash); return hash; } | | | 183 184 185 186 187 188 189 190 191 192 193 194 | OF_HASH_ADD_HASH(hash, [_data hash]); OF_HASH_FINALIZE(hash); return hash; } - (id)copy { return [self retain]; } @end |