aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-12-17 11:43:24 -0800
committerGravatar Jorge Canizales <jcanizales@google.com>2015-12-17 11:43:24 -0800
commit47a7b9ebb0083fd899de20eeeca7f42d886cd96f (patch)
tree3b6d8f1113d055c1737759bc5e71dd41a066a560 /src/objective-c/GRPCClient
parent1f3b18de01250342b288417ecc0c60644f223d24 (diff)
Prevent warnings on dictionaries w/o string keys
Because the category makes the protocol apply to all `NSMutableDictionaries`, it can't assume keys are `NSString`. Because these types are covariant, the change is not breaking.
Diffstat (limited to 'src/objective-c/GRPCClient')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h
index c9fda42855..7a77ae60b6 100644
--- a/src/objective-c/GRPCClient/GRPCCall.h
+++ b/src/objective-c/GRPCClient/GRPCCall.h
@@ -241,11 +241,11 @@ DEPRECATED_MSG_ATTRIBUTE("Use NSDictionary or NSMutableDictionary instead.")
@protocol GRPCRequestHeaders <NSObject>
@property(nonatomic, readonly) NSUInteger count;
-- (id)objectForKeyedSubscript:(NSString *)key;
-- (void)setObject:(id)obj forKeyedSubscript:(NSString *)key;
+- (id)objectForKeyedSubscript:(id)key;
+- (void)setObject:(id)obj forKeyedSubscript:(id)key;
- (void)removeAllObjects;
-- (void)removeObjectForKey:(NSString *)key;
+- (void)removeObjectForKey:(id)key;
@end
#pragma clang diagnostic push