mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-22 20:18:53 +08:00
Fix issue that caused appledoc to fall over while building documentation.
There's currently a known issue for appledoc (https://github.com/tomaz/appledoc/issues/147) that causes it to fall over when it encounters a method declaration in an implementation that is missing a type (even if its in the header file). While this is valid Objective-C, lets update this to allow appledoc to go on its merry little way. * Fix 1 declaration relating to atKeyPath: in RKObjectMapper.m * Fix 2 declarations relating to atKeyPath: in RKObjectMapper_Private.h * Fix 1 declaration relating to atKeyPath: in RKObjectMappingOperation.m All declarations were changed to declare keyPath as an (NSString *).
This commit is contained in:
@@ -139,7 +139,7 @@ BOOL RKObjectIsValueEqualToValue(id sourceValue, id destinationValue) {
|
||||
return date;
|
||||
}
|
||||
|
||||
- (id)transformValue:(id)value atKeyPath:keyPath toType:(Class)destinationType {
|
||||
- (id)transformValue:(id)value atKeyPath:(NSString *)keyPath toType:(Class)destinationType {
|
||||
RKLogTrace(@"Found transformable value at keyPath '%@'. Transforming from type '%@' to '%@'", keyPath, NSStringFromClass([value class]), NSStringFromClass(destinationType));
|
||||
Class sourceType = [value class];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user