mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-27 09:41:53 +08:00
Use instancetype in constructors for increased subclassing friendliness
This commit is contained in:
@@ -95,7 +95,7 @@ extern NSString * const RKMappingTestExpectationErrorKey;
|
||||
@param destinationObject The destionation object being to.
|
||||
@return A new mapping test object for a mapping, a source object and a destination object.
|
||||
*/
|
||||
+ (RKMappingTest *)testForMapping:(RKMapping *)mapping sourceObject:(id)sourceObject destinationObject:(id)destinationObject;
|
||||
+ (instancetype)testForMapping:(RKMapping *)mapping sourceObject:(id)sourceObject destinationObject:(id)destinationObject;
|
||||
|
||||
/**
|
||||
Initializes the receiver with a given object mapping, source object, and destination object.
|
||||
@@ -105,7 +105,7 @@ extern NSString * const RKMappingTestExpectationErrorKey;
|
||||
@param destinationObject The destionation object being to.
|
||||
@return The receiver, initialized with mapping, sourceObject and destinationObject.
|
||||
*/
|
||||
- (id)initWithMapping:(RKMapping *)mapping sourceObject:(id)sourceObject destinationObject:(id)destinationObject;
|
||||
- (instancetype)initWithMapping:(RKMapping *)mapping sourceObject:(id)sourceObject destinationObject:(id)destinationObject;
|
||||
|
||||
///----------------------------
|
||||
/// @name Managing Expectations
|
||||
|
||||
Reference in New Issue
Block a user