Differences From Artifact [952618548a]:
- File src/OFIntrospection.m — part of check-in [6b6856298d] at 2017-10-01 18:09:11 on branch trunk — OFTarArchive: Support for star numbers (user: js, size: 12708) [annotate] [blame] [check-ins using]
To Artifact [045afb68a1]:
- File
src/OFIntrospection.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: 12778) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
23 24 25 26 27 28 29 | #import "OFArray.h" #import "OFInitializationFailedException.h" @implementation OFMethod @synthesize selector = _selector, name = _name, typeEncoding = _typeEncoding; | | | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #import "OFArray.h" #import "OFInitializationFailedException.h" @implementation OFMethod @synthesize selector = _selector, name = _name, typeEncoding = _typeEncoding; - (instancetype)init { OF_INVALID_INIT_METHOD } #if defined(OF_OBJFW_RUNTIME) - (instancetype)of_initWithMethod: (struct objc_method *)method { |
︙ | ︙ | |||
130 131 132 133 134 135 136 | } @end @implementation OFProperty @synthesize name = _name, attributes = _attributes; @synthesize getter = _getter, setter = _setter; | | | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | } @end @implementation OFProperty @synthesize name = _name, attributes = _attributes; @synthesize getter = _getter, setter = _setter; - (instancetype)init { OF_INVALID_INIT_METHOD } #if defined(OF_OBJFW_RUNTIME) - (instancetype)of_initWithProperty: (struct objc_property *)property { |
︙ | ︙ | |||
356 357 358 359 360 361 362 | return hash; } @end @implementation OFInstanceVariable @synthesize name = _name, offset = _offset, typeEncoding = _typeEncoding; | | | 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | return hash; } @end @implementation OFInstanceVariable @synthesize name = _name, offset = _offset, typeEncoding = _typeEncoding; - (instancetype)init { OF_INVALID_INIT_METHOD } #if defined(OF_OBJFW_RUNTIME) - (instancetype)of_initWithIvar: (struct objc_ivar *)ivar { |
︙ | ︙ | |||
428 429 430 431 432 433 434 | @synthesize properties = _properties, instanceVariables = _instanceVariables; + (instancetype)introspectionWithClass: (Class)class { return [[[self alloc] initWithClass: class] autorelease]; } | | | | 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 | @synthesize properties = _properties, instanceVariables = _instanceVariables; + (instancetype)introspectionWithClass: (Class)class { return [[[self alloc] initWithClass: class] autorelease]; } - (instancetype)init { OF_INVALID_INIT_METHOD } - (instancetype)initWithClass: (Class)class { self = [super init]; @try { #if defined(OF_OBJFW_RUNTIME) struct objc_method_list *methodList; struct objc_property_list *propertyList; |
︙ | ︙ |