aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/objective_c_generator.cc
diff options
context:
space:
mode:
authorGravatar Benjamin Herzog <pirat267@gmail.com>2016-04-18 18:10:14 +0200
committerGravatar Benjamin Herzog <pirat267@gmail.com>2016-04-18 18:10:14 +0200
commit208795c0fe7a2783c370adfa9b4ff3f73101961a (patch)
treefa7fe0b482be0d02623a09951c9ae446f670329c /src/compiler/objective_c_generator.cc
parentc2b6a0bcf98fb3d153e319a4be255da8540977c8 (diff)
Added nullability to service declaration in objc
Diffstat (limited to 'src/compiler/objective_c_generator.cc')
-rw-r--r--src/compiler/objective_c_generator.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/objective_c_generator.cc b/src/compiler/objective_c_generator.cc
index ff092053ad..465491e385 100644
--- a/src/compiler/objective_c_generator.cc
+++ b/src/compiler/objective_c_generator.cc
@@ -75,11 +75,11 @@ void PrintMethodSignature(Printer *printer, const MethodDescriptor *method,
if (method->server_streaming()) {
printer->Print(vars,
" eventHandler:(void(^)(BOOL done, "
- "$response_class$ *response, NSError *error))eventHandler");
+ "$response_class$ *_Nullable response, NSError *_Nullable error))eventHandler");
} else {
printer->Print(vars,
- " handler:(void(^)($response_class$ *response, "
- "NSError *error))handler");
+ " handler:(void(^)($response_class$ *_Nullable response, "
+ "NSError *_Nullable error))handler");
}
}