From aa81eb47d45c9a98789eb28df20ba75138c865a3 Mon Sep 17 00:00:00 2001 From: Kevin Harwood Date: Fri, 6 Nov 2015 08:37:11 -0600 Subject: [PATCH] Fixed swift interop issue with throws and Request/Response serialization Fix for #2810 --- AFNetworking/AFURLRequestSerialization.h | 2 +- AFNetworking/AFURLResponseSerialization.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AFNetworking/AFURLRequestSerialization.h b/AFNetworking/AFURLRequestSerialization.h index ef4d3661bd..d602094516 100644 --- a/AFNetworking/AFURLRequestSerialization.h +++ b/AFNetworking/AFURLRequestSerialization.h @@ -46,7 +46,7 @@ NS_ASSUME_NONNULL_BEGIN */ - (nullable NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request withParameters:(nullable id)parameters - error:(NSError * __nullable __autoreleasing *)error; + error:(NSError * __nullable __autoreleasing *)error NS_SWIFT_NOTHROW; @end diff --git a/AFNetworking/AFURLResponseSerialization.h b/AFNetworking/AFURLResponseSerialization.h index 1396cfbd11..2aa620d2b6 100644 --- a/AFNetworking/AFURLResponseSerialization.h +++ b/AFNetworking/AFURLResponseSerialization.h @@ -42,7 +42,7 @@ NS_ASSUME_NONNULL_BEGIN */ - (nullable id)responseObjectForResponse:(nullable NSURLResponse *)response data:(nullable NSData *)data - error:(NSError * __nullable __autoreleasing *)error; + error:(NSError * __nullable __autoreleasing *)error NS_SWIFT_NOTHROW; @end