aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/ProtoRPC/ProtoRPC.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-11-15 12:56:08 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-11-15 12:57:33 -0800
commit8a762d447813db1b1c3fe52b24e638581235460e (patch)
treee9645f76393e6b5b39bc1942513bc8849773917e /src/objective-c/ProtoRPC/ProtoRPC.h
parent6b6ab2bdc9d03ffe85398451342a140320aac1dd (diff)
Polish nullability + something else
Diffstat (limited to 'src/objective-c/ProtoRPC/ProtoRPC.h')
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.h b/src/objective-c/ProtoRPC/ProtoRPC.h
index b0f4ced99e..dc776368a8 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.h
+++ b/src/objective-c/ProtoRPC/ProtoRPC.h
@@ -33,13 +33,13 @@ NS_ASSUME_NONNULL_BEGIN
/**
* Issued when initial metadata is received from the server. The task must be scheduled onto the
* dispatch queue in property \a dispatchQueue. */
-- (void)receivedInitialMetadata:(NSDictionary *_Nullable)initialMetadata;
+- (void)receivedInitialMetadata:(nullable NSDictionary *)initialMetadata;
/**
* Issued when a message is received from the server. The message is the deserialized proto object.
* The task must be scheduled onto the dispatch queue in property \a dispatchQueue.
*/
-- (void)receivedProtoMessage:(GPBMessage *_Nullable)message;
+- (void)receivedProtoMessage:(nullable GPBMessage *)message;
/**
* Issued when a call finished. If the call finished successfully, \a error is nil and \a
@@ -48,8 +48,8 @@ NS_ASSUME_NONNULL_BEGIN
* error descriptions. The task must be scheduled onto the dispatch queue in property
* \a dispatchQueue.
*/
-- (void)closedWithTrailingMetadata:(NSDictionary *_Nullable)trailingMetadata
- error:(NSError *_Nullable)error;
+- (void)closedWithTrailingMetadata:(nullable NSDictionary *)trailingMetadata
+ error:(nullable NSError *)error;
@required
@@ -75,7 +75,7 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithRequestOptions:(GRPCRequestOptions *)requestOptions
message:(GPBMessage *)message
responseHandler:(id<GRPCProtoResponseHandler>)handler
- callOptions:(GRPCCallOptions *_Nullable)callOptions
+ callOptions:(nullable GRPCCallOptions *)callOptions
responseClass:(Class)responseClass NS_DESIGNATED_INITIALIZER;
/**
@@ -100,7 +100,7 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (instancetype)initWithRequestOptions:(GRPCRequestOptions *)requestOptions
responseHandler:(id<GRPCProtoResponseHandler>)handler
- callOptions:(GRPCCallOptions *_Nullable)callOptions
+ callOptions:(nullable GRPCCallOptions *)callOptions
responseClass:(Class)responseClass NS_DESIGNATED_INITIALIZER;
/**