Differences From Artifact [8c78490503]:
- File src/OFTriple.m — part of check-in [52011fbfd6] at 2017-09-26 21:53:44 on branch trunk — Many nullability fixes (user: js, size: 2603) [annotate] [blame] [check-ins using]
To Artifact [2e7a2cddf4]:
- File
src/OFTriple.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: 2632) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
25 26 27 28 29 30 31 | thirdObject: (id)thirdObject { return [[[self alloc] initWithFirstObject: firstObject secondObject: secondObject thirdObject: thirdObject] autorelease]; } | | | | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | thirdObject: (id)thirdObject { return [[[self alloc] initWithFirstObject: firstObject secondObject: secondObject thirdObject: thirdObject] autorelease]; } - (instancetype)initWithFirstObject: (id)firstObject secondObject: (id)secondObject thirdObject: (id)thirdObject { self = [super init]; @try { _firstObject = [firstObject retain]; _secondObject = [secondObject retain]; _thirdObject = [thirdObject retain]; |
︙ | ︙ | |||
106 107 108 109 110 111 112 | OF_HASH_ADD_HASH(hash, [_thirdObject hash]); OF_HASH_FINALIZE(hash); return hash; } | | | | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | OF_HASH_ADD_HASH(hash, [_thirdObject hash]); OF_HASH_FINALIZE(hash); return hash; } - (id)copy { return [self retain]; } - (id)mutableCopy { return [[OFMutableTriple alloc] initWithFirstObject: _firstObject secondObject: _secondObject thirdObject: _thirdObject]; } - (OFString *)description { return [OFString stringWithFormat: @"<<%@, %@, %@>>", _firstObject, _secondObject, _thirdObject]; } @end |