From 4252b7aff3ac38d09b7ea6dba3b603d71561330c Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 25 Oct 2019 14:49:07 +0200 Subject: [PATCH] Fix broken javadoc generation for repeated enum values --- src/google/protobuf/compiler/java/java_enum_field.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/java/java_enum_field.cc b/src/google/protobuf/compiler/java/java_enum_field.cc index 5f77f042c..65dd35364 100644 --- a/src/google/protobuf/compiler/java/java_enum_field.cc +++ b/src/google/protobuf/compiler/java/java_enum_field.cc @@ -656,7 +656,7 @@ void RepeatedImmutableEnumFieldGenerator::GenerateMembers( " java.lang.Integer, $type$>($name$_, $name$_converter_);\n" "}\n"); printer->Annotate("{", "}", descriptor_); - WriteFieldAccessorDocComment(printer, descriptor_, LIST_ADDER); + WriteFieldAccessorDocComment(printer, descriptor_, LIST_COUNT); printer->Print( variables_, "$deprecation$public int ${$get$capitalized_name$Count$}$() {\n"