[Issue #240] Adding semicolon to _af_nsjon_encode/decode labels

This commit is contained in:
Mattt Thompson 2012-03-09 12:41:26 -08:00
parent 45df8ab6a7
commit 8d145b23d9

View file

@ -90,7 +90,7 @@ NSData * AFJSONEncode(id object, NSError **error) {
data = [JSONString dataUsingEncoding:NSUTF8StringEncoding]; data = [JSONString dataUsingEncoding:NSUTF8StringEncoding];
} else if (_NSJSONSerializationClass && [_NSJSONSerializationClass respondsToSelector:_NSJSONSerializationSelector]) { } else if (_NSJSONSerializationClass && [_NSJSONSerializationClass respondsToSelector:_NSJSONSerializationSelector]) {
#ifdef _AFNETWORKING_PREFER_NSJSONSERIALIZATION_ #ifdef _AFNETWORKING_PREFER_NSJSONSERIALIZATION_
_af_nsjson_encode: _af_nsjson_encode:;
#endif #endif
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[_NSJSONSerializationClass methodSignatureForSelector:_NSJSONSerializationSelector]]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[_NSJSONSerializationClass methodSignatureForSelector:_NSJSONSerializationSelector]];
invocation.target = _NSJSONSerializationClass; invocation.target = _NSJSONSerializationClass;
@ -176,7 +176,7 @@ id AFJSONDecode(NSData *data, NSError **error) {
[invocation getReturnValue:&JSON]; [invocation getReturnValue:&JSON];
} else if (_NSJSONSerializationClass && [_NSJSONSerializationClass respondsToSelector:_NSJSONSerializationSelector]) { } else if (_NSJSONSerializationClass && [_NSJSONSerializationClass respondsToSelector:_NSJSONSerializationSelector]) {
#ifdef _AFNETWORKING_PREFER_NSJSONSERIALIZATION_ #ifdef _AFNETWORKING_PREFER_NSJSONSERIALIZATION_
_af_nsjson_decode: _af_nsjson_decode:;
#endif #endif
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[_NSJSONSerializationClass methodSignatureForSelector:_NSJSONSerializationSelector]]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[_NSJSONSerializationClass methodSignatureForSelector:_NSJSONSerializationSelector]];
invocation.target = _NSJSONSerializationClass; invocation.target = _NSJSONSerializationClass;