Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit f3a59cd

Browse files
committed
fixed void method
1 parent 50393c2 commit f3a59cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protobuf-rpc/src/java_plugin/cpp/java_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static void PrintInterface(const ServiceDescriptor* service,
323323
p->Print(*vars, "$Mono$<$output_type$> $lower_method_name$");
324324
} else {
325325
const Descriptor* output_type = method->output_type();
326-
if (output_type->field_count() > 0) {
326+
if (output_type->full_name() != "io.netifi.proteus.Empty") {
327327
p->Print(*vars, "$Mono$<$output_type$> $lower_method_name$");
328328
} else {
329329
p->Print(*vars, "$Mono$<Void> $lower_method_name$");

0 commit comments

Comments
 (0)